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

Classes that inherit from this class can be used as GUI windows that provide interface to C programs (library files). More...

#include <AbstractInputWindow.h>

Inheritance diagram for Tinkercell::AbstractInputWindow:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::AbstractInputWindow:
Collaboration graph
[legend]

List of all members.

Public Slots

virtual void escapeSignal (const QWidget *)
 Escape signal is a request to stop the current process. This class will hide itself as a response.
virtual void exec ()
 Executes the CThread.
virtual void loadAPI (Tool *)
 Uses MainWindow's setupNewThread function to setup this window's thread.

Signals

void updateThread ()
 update the thread
void evalScript (const QString &)
 evaluate a command using command window's eval

Protected Member Functions

 AbstractInputWindow (const QString &name=tr(""), CThread *thread=0)
 constructor
virtual bool setMainWindow (MainWindow *main)
 Sets the main window. This function will set this tool as a docked widget by default and registed the escapeSignal event. Overwrite this function to prevent that default behavior.
virtual void setInput (const DataTable< qreal > &)
 set the input for this input window
virtual void setThread (CThread *)
 set the thread that will be started by this input window
virtual CThreadthread () const
 the thread that will be started by this input window
virtual void enterEvent (QEvent *event)
 when mouse enters this widget, the cthread is updated

Protected Attributes

CThreadcthread
 the target thread
QDockWidget * dockWidget
 the docked window for this widget (0 if not a docked widget)
void(* targetFunction )(tc_matrix)
 target function for this input window

Detailed Description

Classes that inherit from this class can be used as GUI windows that provide interface to C programs (library files).

See also:
LPSolveInput

Definition at line 88 of file AbstractInputWindow.h.


Constructor & Destructor Documentation

Tinkercell::AbstractInputWindow::AbstractInputWindow ( const QString &  name = tr(""),
CThread thread = 0 
) [protected]

constructor

Parameters:
QStringname of this tool
CThreadthe target thread to run from this input window

Definition at line 18 of file AbstractInputWindow.cpp.

Here is the call graph for this function:


Member Function Documentation

void Tinkercell::AbstractInputWindow::enterEvent ( QEvent *  event) [protected, virtual]

when mouse enters this widget, the cthread is updated

Reimplemented in Tinkercell::SimpleInputWindow.

Definition at line 115 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

void Tinkercell::AbstractInputWindow::escapeSignal ( const QWidget *  ) [virtual, slot]

Escape signal is a request to stop the current process. This class will hide itself as a response.

Definition at line 97 of file AbstractInputWindow.cpp.

Here is the caller graph for this function:

void Tinkercell::AbstractInputWindow::evalScript ( const QString &  ) [signal]

evaluate a command using command window's eval

Here is the caller graph for this function:

void Tinkercell::AbstractInputWindow::exec ( ) [virtual, slot]

Executes the CThread.

See also:
CThread

Reimplemented in Tinkercell::SimpleInputWindow.

Definition at line 105 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

void Tinkercell::AbstractInputWindow::loadAPI ( Tool ) [virtual, slot]

Uses MainWindow's setupNewThread function to setup this window's thread.

Definition at line 48 of file AbstractInputWindow.cpp.

void Tinkercell::AbstractInputWindow::setInput ( const DataTable< qreal > &  dat) [protected, virtual]

set the input for this input window

Definition at line 60 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

bool Tinkercell::AbstractInputWindow::setMainWindow ( MainWindow main) [protected, virtual]

Sets the main window. This function will set this tool as a docked widget by default and registed the escapeSignal event. Overwrite this function to prevent that default behavior.

Reimplemented from Tinkercell::Tool.

Definition at line 66 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::AbstractInputWindow::setThread ( CThread thread) [protected, virtual]

set the thread that will be started by this input window

Definition at line 30 of file AbstractInputWindow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CThread * Tinkercell::AbstractInputWindow::thread ( ) const [protected, virtual]

the thread that will be started by this input window

Definition at line 43 of file AbstractInputWindow.cpp.

Here is the caller graph for this function:

void Tinkercell::AbstractInputWindow::updateThread ( ) [signal]

update the thread

Here is the caller graph for this function:


Member Data Documentation

the target thread

Definition at line 143 of file AbstractInputWindow.h.

the docked window for this widget (0 if not a docked widget)

Definition at line 145 of file AbstractInputWindow.h.

void(* Tinkercell::AbstractInputWindow::targetFunction)(tc_matrix) [protected]

target function for this input window

Definition at line 147 of file AbstractInputWindow.h.


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