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>
Inherits QMainWindow.
|
void | closeEvent (QCloseEvent *event) |
| Handles any QCloseEvents for the metawindow. More...
|
|
|
void | resetModel () |
| Resets the treemodel to its default state. More...
|
|
bool | saveFileAs () |
| Saves the parameter list settings to a user specified file. More...
|
|
void | saveFile () |
| Saves the current solver to the file the user has already specified. More...
|
|
void | loadFile () |
| Loads a solver the user was previously working on and had saved. More...
|
|
bool | saveCurrentUnsavedFile () |
| Asks the user whether or not they would like to currently save the file they are working on. Should be used when the user has modified the file and is about to perform an action that would cause those modifiation to be lost. More...
|
|
void | loadRecentDoc () |
| Loads a document from the set of recent documents. More...
|
|
void | showAbout () |
| Shows information about the program. More...
|
|
void | initiateSearch () |
| Starts a search for a parituclar Parameter or ParameterList. More...
|
|
void | doAction () |
| What should happen when the user clicks the action button. More...
|
|
void | doActionNoSave () |
| What should happen when the user clicks the actionNoSave button. More...
|
|
The Main Window that contains all other widgets in the Optika GUI. For all undocumented functions please refer to the Qt API.
Definition at line 157 of file Optika_metawindow.hpp.
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.
- Parameters
-
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. |
Definition at line 139 of file Optika_metawindow.cpp.
Optika::MetaWindow::~MetaWindow |
( |
| ) |
|
void Optika::MetaWindow::setAboutInfo |
( |
QString |
aboutInfo | ) |
|
Adds the information specified to the about dialog of the GUI.
- Parameters
-
aboutInfo | Information to be added to the about dialog of the GUI. |
Definition at line 417 of file Optika_metawindow.cpp.
QString Optika::MetaWindow::getAboutInfo |
( |
| ) |
|
Gets the information to be added to the about dialog of the GUI.
- Returns
- the information to be added to the about dialog of the GUI.
Definition at line 421 of file Optika_metawindow.cpp.
void Optika::MetaWindow::setActionButtonText |
( |
QString |
newText | ) |
|
Sets the action button text.
- Parameters
-
text | The text to put in the action button. |
Definition at line 425 of file Optika_metawindow.cpp.
QString Optika::MetaWindow::getActionButtonText |
( |
| ) |
|
Gets the text being displayed int he action button.
- Returns
- The text being displayed in the action button.
Definition at line 429 of file Optika_metawindow.cpp.
void Optika::MetaWindow::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protected |
Handles any QCloseEvents for the metawindow.
- Parameters
-
event | The QCloseEvent that was issued. |
Definition at line 156 of file Optika_metawindow.cpp.
static QString Optika::MetaWindow::getSettingsFileName |
( |
| ) |
|
|
inlinestaticprivate |
void Optika::MetaWindow::initilization |
( |
void(*)(RCP< const ParameterList >) |
customFunc = 0 , |
|
|
const std::string |
actionButtonText = "submit" , |
|
|
const std::string |
actionNoSaveButtonText = "" |
|
) |
| |
|
private |
Common initialization shared by all constructors.
- Parameters
-
customFunc | The function to run whenever the user clicks the action button. |
actionButtonText | Text to be placed in the action button. |
Definition at line 172 of file Optika_metawindow.cpp.
void Optika::MetaWindow::createMenus |
( |
| ) |
|
|
private |
void Optika::MetaWindow::createActions |
( |
| ) |
|
|
private |
void Optika::MetaWindow::load |
( |
| ) |
|
|
private |
void Optika::MetaWindow::loadLastSettings |
( |
| ) |
|
|
private |
void Optika::MetaWindow::saveSettings |
( |
| ) |
|
|
private |
void Optika::MetaWindow::addRecentDocument |
( |
QString |
recentDocument | ) |
|
|
private |
void Optika::MetaWindow::updateRecentDocsMenu |
( |
| ) |
|
|
private |
static QString Optika::MetaWindow::lastSaveDirSetting |
( |
| ) |
|
|
inlinestaticprivate |
static QString Optika::MetaWindow::lastLoadDirSetting |
( |
| ) |
|
|
inlinestaticprivate |
static QString Optika::MetaWindow::xresSetting |
( |
| ) |
|
|
inlinestaticprivate |
static QString Optika::MetaWindow::yresSetting |
( |
| ) |
|
|
inlinestaticprivate |
static QString Optika::MetaWindow::xposSetting |
( |
| ) |
|
|
inlinestaticprivate |
static QString Optika::MetaWindow::yposSetting |
( |
| ) |
|
|
inlinestaticprivate |
void Optika::MetaWindow::resetModel |
( |
| ) |
|
|
privateslot |
bool Optika::MetaWindow::saveFileAs |
( |
| ) |
|
|
privateslot |
void Optika::MetaWindow::saveFile |
( |
| ) |
|
|
privateslot |
Saves the current solver to the file the user has already specified.
Definition at line 345 of file Optika_metawindow.cpp.
void Optika::MetaWindow::loadFile |
( |
| ) |
|
|
privateslot |
bool Optika::MetaWindow::saveCurrentUnsavedFile |
( |
| ) |
|
|
privateslot |
Asks the user whether or not they would like to currently save the file they are working on. Should be used when the user has modified the file and is about to perform an action that would cause those modifiation to be lost.
Definition at line 363 of file Optika_metawindow.cpp.
void Optika::MetaWindow::loadRecentDoc |
( |
| ) |
|
|
privateslot |
void Optika::MetaWindow::showAbout |
( |
| ) |
|
|
privateslot |
void Optika::MetaWindow::initiateSearch |
( |
| ) |
|
|
privateslot |
void Optika::MetaWindow::doAction |
( |
| ) |
|
|
privateslot |
void Optika::MetaWindow::doActionNoSave |
( |
| ) |
|
|
privateslot |
QAction* Optika::MetaWindow::resetAct |
|
private |
QAction * Optika::MetaWindow::loadAct |
|
private |
QAction * Optika::MetaWindow::saveAct |
|
private |
QAction * Optika::MetaWindow::saveAsAct |
|
private |
QAction * Optika::MetaWindow::quitAct |
|
private |
QAction * Optika::MetaWindow::aboutAct |
|
private |
QAction * Optika::MetaWindow::searchAct |
|
private |
QMenu* Optika::MetaWindow::fileMenu |
|
private |
QMenu * Optika::MetaWindow::recentMenu |
|
private |
QMenu * Optika::MetaWindow::helpMenu |
|
private |
QPushButton* Optika::MetaWindow::actionButton |
|
private |
QPushButton* Optika::MetaWindow::actionNoSaveButton |
|
private |
QString Optika::MetaWindow::aboutInfo |
|
private |
Any additional about information that should be displayed in the about dialog.
Definition at line 259 of file Optika_metawindow.hpp.
QString Optika::MetaWindow::currentLoadDir |
|
private |
QString Optika::MetaWindow::currentSaveDir |
|
private |
QStringList Optika::MetaWindow::recentDocsList |
|
private |
The custom function to run when the user clicks the action button.
Definition at line 294 of file Optika_metawindow.hpp.
The documentation for this class was generated from the following files: