TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Slots | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
Tinkercell::NetworkWindow Class Reference

#include <NetworkWindow.h>

Collaboration diagram for Tinkercell::NetworkWindow:
Collaboration graph
[legend]

List of all members.

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 GraphicsScenenewScene ()
 replace the current text editor or scene with a new scene
virtual TextEditornewTextEditor ()
 replace the current text editor or scene with a new text editor

Public Attributes

NetworkHandlenetwork
 the network displayed in this window
ItemHandlehandle
 this pointer will be non-zero if an ItemHandle is associated with this window
GraphicsScenescene
 the scene inside this window. Either the scene or the editor must be 0
TextEditoreditor
 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

Detailed Description

Definition at line 30 of file NetworkWindow.h.


Constructor & Destructor Documentation

Tinkercell::NetworkWindow::NetworkWindow ( NetworkHandle network,
GraphicsScene scene 
) [protected]

constructor with scene

Definition at line 107 of file NetworkWindow.cpp.

Here is the call graph for this function:

Tinkercell::NetworkWindow::NetworkWindow ( NetworkHandle network,
TextEditor editor 
) [protected]

constructor with text editor

Definition at line 148 of file NetworkWindow.cpp.

Here is the call graph for this function:

Tinkercell::NetworkWindow::~NetworkWindow ( ) [protected, virtual]

destructor

Definition at line 212 of file NetworkWindow.cpp.


Member Function Documentation

void Tinkercell::NetworkWindow::changeEvent ( QEvent *  event) [protected, virtual]

calls popIn when minimized

Returns:
void

Definition at line 267 of file NetworkWindow.cpp.

Here is the call graph for this function:

void Tinkercell::NetworkWindow::closeEvent ( QCloseEvent *  event) [protected, virtual]

close event sends signal to all tools asking for confirmation becore closing

Parameters:
QCloseEvent* event
Returns:
void

Definition at line 185 of file NetworkWindow.cpp.

Here is the call graph for this function:

void Tinkercell::NetworkWindow::connectToMainWindow ( ) [protected, virtual]

make all the main window connections

Definition at line 13 of file NetworkWindow.cpp.

Here is the caller graph for this function:

void Tinkercell::NetworkWindow::focusInEvent ( QFocusEvent *  ) [protected, virtual]

focus receved changes the main windows current network pointer

Parameters:
QFocusEvent*
Returns:
void

Definition at line 230 of file NetworkWindow.cpp.

Here is the call graph for this function:

void Tinkercell::NetworkWindow::networkClosed ( NetworkHandle ) [signal]

signals after a window is closed

Parameters:
NetworkWindow* the window that was closed
Returns:
void

Here is the caller graph for this function:

void Tinkercell::NetworkWindow::networkClosing ( NetworkHandle ,
bool *   
) [signal]

signals when a window is going to close

Parameters:
NetworkWindow* the window that is closing
Booleansetting to false will prevent this window from closing
Returns:
void

Here is the caller graph for this function:

GraphicsScene * Tinkercell::NetworkWindow::newScene ( ) [virtual]

replace the current text editor or scene with a new scene

Returns:
GraphicsScene * scene

Definition at line 278 of file NetworkWindow.cpp.

Here is the call graph for this function:

TextEditor * Tinkercell::NetworkWindow::newTextEditor ( ) [virtual]

replace the current text editor or scene with a new text editor

Returns:
GraphicsScene * scene

Definition at line 307 of file NetworkWindow.cpp.

Here is the call graph for this function:

void Tinkercell::NetworkWindow::popIn ( ) [virtual, slot]

calls main window's popIn

Returns:
void

Definition at line 261 of file NetworkWindow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::NetworkWindow::popOut ( ) [virtual, slot]

calls main window's popOut

Returns:
void

Definition at line 253 of file NetworkWindow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::NetworkWindow::resizeEvent ( QResizeEvent *  event) [protected, virtual]

resize event checks if the window has been minimized and calls popIn instead of minimizing

Parameters:
QResizeEvent*
Returns:
void

Definition at line 236 of file NetworkWindow.cpp.

Here is the call graph for this function:

void Tinkercell::NetworkWindow::setAsCurrentWindow ( ) [protected, virtual]

calls main window's setAsCurrentWindow

Returns:
void

Definition at line 247 of file NetworkWindow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::NetworkWindow::setFileName ( const QString &  text) [virtual, slot]

set file name and window title

Returns:
void

Definition at line 345 of file NetworkWindow.cpp.

Here is the call graph for this function:

void Tinkercell::NetworkWindow::setWindowTitle ( const QString &  text) [virtual, slot]

set window title

Returns:
void

Definition at line 334 of file NetworkWindow.cpp.

Here is the caller graph for this function:


Friends And Related Function Documentation

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.


Member Data Documentation

the editor inside this window. Either the scene or the editor must be 0

Definition at line 59 of file NetworkWindow.h.

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines