![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
#include <NetworkWindow.h>
Public Slots | |
virtual void | popOut () |
calls main window's popOut | |
virtual void | popIn () |
calls main window's popIn | |
virtual void | setFileName (const QString &) |
set file name and window title | |
virtual void | setWindowTitle (const QString &) |
set window title | |
Signals | |
void | networkClosing (NetworkHandle *, bool *) |
signals when a window is going to close | |
void | networkClosed (NetworkHandle *) |
signals after a window is closed | |
Public Member Functions | |
virtual GraphicsScene * | newScene () |
replace the current text editor or scene with a new scene | |
virtual TextEditor * | newTextEditor () |
replace the current text editor or scene with a new text editor | |
Public Attributes | |
NetworkHandle * | network |
the network displayed in this window | |
ItemHandle * | handle |
this pointer will be non-zero if an ItemHandle is associated with this window | |
GraphicsScene * | scene |
the scene inside this window. Either the scene or the editor must be 0 | |
TextEditor * | editor |
the editor inside this window. Either the scene or the editor must be 0 | |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *event) |
close event sends signal to all tools asking for confirmation becore closing | |
virtual void | focusInEvent (QFocusEvent *) |
focus receved changes the main windows current network pointer | |
virtual void | resizeEvent (QResizeEvent *event) |
resize event checks if the window has been minimized and calls popIn instead of minimizing | |
virtual void | setAsCurrentWindow () |
calls main window's setAsCurrentWindow | |
virtual void | changeEvent (QEvent *event) |
calls popIn when minimized | |
virtual void | connectToMainWindow () |
make all the main window connections | |
NetworkWindow (NetworkHandle *network, GraphicsScene *scene) | |
constructor with scene | |
NetworkWindow (NetworkHandle *network, TextEditor *editor) | |
constructor with text editor | |
virtual | ~NetworkWindow () |
destructor | |
Protected Attributes | |
QString | filename |
filename associated with this window | |
Friends | |
class | MainWindow |
class | GraphicsScene |
class | GraphicsView |
class | TextEditor |
class | NetworkHandle |
class | SymbolsTable |
Definition at line 30 of file NetworkWindow.h.
Tinkercell::NetworkWindow::NetworkWindow | ( | NetworkHandle * | network, |
GraphicsScene * | scene | ||
) | [protected] |
constructor with scene
Definition at line 107 of file NetworkWindow.cpp.
Tinkercell::NetworkWindow::NetworkWindow | ( | NetworkHandle * | network, |
TextEditor * | editor | ||
) | [protected] |
constructor with text editor
Definition at line 148 of file NetworkWindow.cpp.
Tinkercell::NetworkWindow::~NetworkWindow | ( | ) | [protected, virtual] |
destructor
Definition at line 212 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::changeEvent | ( | QEvent * | event | ) | [protected, virtual] |
calls popIn when minimized
Definition at line 267 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual] |
close event sends signal to all tools asking for confirmation becore closing
QCloseEvent | * event |
Definition at line 185 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::connectToMainWindow | ( | ) | [protected, virtual] |
make all the main window connections
Definition at line 13 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::focusInEvent | ( | QFocusEvent * | ) | [protected, virtual] |
focus receved changes the main windows current network pointer
QFocusEvent* |
Definition at line 230 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::networkClosed | ( | NetworkHandle * | ) | [signal] |
signals after a window is closed
NetworkWindow | * the window that was closed |
void Tinkercell::NetworkWindow::networkClosing | ( | NetworkHandle * | , |
bool * | |||
) | [signal] |
signals when a window is going to close
NetworkWindow | * the window that is closing |
Boolean | setting to false will prevent this window from closing |
GraphicsScene * Tinkercell::NetworkWindow::newScene | ( | ) | [virtual] |
replace the current text editor or scene with a new scene
Definition at line 278 of file NetworkWindow.cpp.
TextEditor * Tinkercell::NetworkWindow::newTextEditor | ( | ) | [virtual] |
replace the current text editor or scene with a new text editor
Definition at line 307 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::popIn | ( | ) | [virtual, slot] |
calls main window's popIn
Definition at line 261 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::popOut | ( | ) | [virtual, slot] |
calls main window's popOut
Definition at line 253 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
resize event checks if the window has been minimized and calls popIn instead of minimizing
QResizeEvent* |
Definition at line 236 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::setAsCurrentWindow | ( | ) | [protected, virtual] |
calls main window's setAsCurrentWindow
Definition at line 247 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::setFileName | ( | const QString & | text | ) | [virtual, slot] |
set file name and window title
Definition at line 345 of file NetworkWindow.cpp.
void Tinkercell::NetworkWindow::setWindowTitle | ( | const QString & | text | ) | [virtual, slot] |
set window title
Definition at line 334 of file NetworkWindow.cpp.
friend class GraphicsScene [friend] |
Definition at line 118 of file NetworkWindow.h.
friend class GraphicsView [friend] |
Definition at line 119 of file NetworkWindow.h.
friend class MainWindow [friend] |
Definition at line 117 of file NetworkWindow.h.
friend class NetworkHandle [friend] |
Definition at line 121 of file NetworkWindow.h.
friend class SymbolsTable [friend] |
Definition at line 122 of file NetworkWindow.h.
friend class TextEditor [friend] |
Definition at line 120 of file NetworkWindow.h.
the editor inside this window. Either the scene or the editor must be 0
Definition at line 59 of file NetworkWindow.h.
QString Tinkercell::NetworkWindow::filename [protected] |
filename associated with this window
Definition at line 115 of file NetworkWindow.h.
this pointer will be non-zero if an ItemHandle is associated with this window
Definition at line 53 of file NetworkWindow.h.
the network displayed in this window
Definition at line 50 of file NetworkWindow.h.
the scene inside this window. Either the scene or the editor must be 0
Definition at line 56 of file NetworkWindow.h.