The Main Window that contains all other widgets in the Optika GUI. For all undocumented functions please refer to the Qt API. More...
#include <Optika_metawindow.hpp>


Public Member Functions | |
Constructors/Destructor | |
| MetaWindow (RCP< ParameterList > validParameters, RCP< DependencySheet > dependencySheet=null, void(*customFunc)(RCP< const ParameterList >)=NULL, QString fileName=QString(), const std::string actionButtonText="submit", const std::string actionNoSaveButtonText="") | |
| Constructs a MainWindow object. More... | |
| ~MetaWindow () | |
| Deconstructer for the metawindow. | |
Getters and Setters | |
| void | setAboutInfo (QString aboutInfo) |
| Adds the information specified to the about dialog of the GUI. More... | |
| QString | getAboutInfo () |
| Gets the information to be added to the about dialog of the GUI. More... | |
| void | setActionButtonText (QString newText) |
| Sets the action button text. More... | |
| QString | getActionButtonText () |
| Gets the text being displayed int he action button. More... | |
Protected Member Functions | |
Overridden from QWidget | |
| void | closeEvent (QCloseEvent *event) |
| Handles any QCloseEvents for the metawindow. More... | |
The Main Window that contains all other widgets in the Optika GUI. For all undocumented functions please refer to the Qt API.
| Optika::MetaWindow::MetaWindow | ( | RCP< ParameterList > | validParameters, |
| RCP< DependencySheet > | dependencySheet = null, |
||
| void(*)(RCP< const ParameterList >) | customFunc = NULL, |
||
| QString | fileName = QString(), |
||
| const std::string | actionButtonText = "submit", |
||
| const std::string | actionNoSaveButtonText = "" |
||
| ) |
Constructs a MainWindow object.
| validParameters | The Parameter List the metawindow will display and the user will edit. |
| dependencySheet | A sheet listing any dependencies between parameters in the validParameters ParameterList. |
| customFunc | The function to run whenever the user clicks the action button. |
| fileName | The name of a save file that may store previous values used by a user for the Parameter List specified by validParameters. |
|
protected |
Handles any QCloseEvents for the metawindow.
| event | The QCloseEvent that was issued. |
References Optika::TreeModel::isSaved().
| QString Optika::MetaWindow::getAboutInfo | ( | ) |
Gets the information to be added to the about dialog of the GUI.
| QString Optika::MetaWindow::getActionButtonText | ( | ) |
Gets the text being displayed int he action button.
| void Optika::MetaWindow::setAboutInfo | ( | QString | aboutInfo | ) |
Adds the information specified to the about dialog of the GUI.
| aboutInfo | Information to be added to the about dialog of the GUI. |
| void Optika::MetaWindow::setActionButtonText | ( | QString | newText | ) |
Sets the action button text.
| text | The text to put in the action button. |
1.8.6