![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
Classes that inherit from this class can be used as GUI windows that provide interface to C programs (library files). More...
#include <AbstractInputWindow.h>
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 CThread * | thread () 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 | |
CThread * | cthread |
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 |
Classes that inherit from this class can be used as GUI windows that provide interface to C programs (library files).
Definition at line 88 of file AbstractInputWindow.h.
Tinkercell::AbstractInputWindow::AbstractInputWindow | ( | const QString & | name = tr("") , |
CThread * | thread = 0 |
||
) | [protected] |
constructor
QString | name of this tool |
CThread | the target thread to run from this input window |
Definition at line 18 of file AbstractInputWindow.cpp.
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.
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.
void Tinkercell::AbstractInputWindow::evalScript | ( | const QString & | ) | [signal] |
evaluate a command using command window's eval
void Tinkercell::AbstractInputWindow::exec | ( | ) | [virtual, slot] |
Executes the CThread.
Reimplemented in Tinkercell::SimpleInputWindow.
Definition at line 105 of file AbstractInputWindow.cpp.
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.
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.
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.
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.
void Tinkercell::AbstractInputWindow::updateThread | ( | ) | [signal] |
update the thread
CThread* Tinkercell::AbstractInputWindow::cthread [protected] |
the target thread
Definition at line 143 of file AbstractInputWindow.h.
QDockWidget* Tinkercell::AbstractInputWindow::dockWidget [protected] |
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.