A class that allows the user to create and customize their Optika GUI.
More...
#include <Optika_GUI.hpp>
List of all members.
Public Member Functions |
|
| | OptikaGUI (RCP< ParameterList > validParameters, RCP< DependencySheet > dependencySheet=null, void(*customFunc)(RCP< const ParameterList >)=NULL) |
| | Constructs an OptikaGUI object.
|
| | OptikaGUI (const std::string &xmlFileName, void(*customFunc)(RCP< const ParameterList >)=NULL) |
| | Constructs an OptikaGUI object.
|
|
|
void | exec () |
| | Runs the GUI and gets the user input.
|
|
| void | setAboutInfo (const std::string &aboutInfo) |
| | Adds the information specified to the about dialog of the GUI.
|
| void | setActionButtonText (const std::string &text) |
| | Sets the text in the "action" button".
|
| void | setWindowTitle (const std::string &title) |
| | Sets the title of the GUI window that is displayed to the user.
|
| void | setWindowIcon (const std::string &filePath) |
| | Sets the window icon to the image specified in the filePath.
|
| void | setStyleSheet (const std::string &filePath) |
| | Sets the QT style sheet that should be used for the GUI.
|
| void | setCustomFunction (void(*customFunc)(RCP< const ParameterList >)) |
| | Sets the custom function to be used in the GUI. When ever the user clicks the action button, this function will be run.
|
| std::string | getWindowTitle () |
| | Gets the window title.
|
| std::string | getWindowIcon () |
| | Gets the file path describing the location of the file being used for the window icon.
|
| std::string | getStyleSheet () |
| | Gets the file path describing the location of the file being used as the QT Style Sheet.
|
| std::string | getAboutInfo () |
| | Gets the information to be added to the about dialog of the GUI.
|
Detailed Description
A class that allows the user to create and customize their Optika GUI.
Constructor & Destructor Documentation
| Optika::OptikaGUI::OptikaGUI |
( |
RCP< ParameterList > |
validParameters, |
|
|
RCP< DependencySheet > |
dependencySheet = null, |
|
|
void(*)(RCP< const ParameterList >) |
customFunc = NULL |
|
) |
| |
Constructs an OptikaGUI object.
- Parameters:
-
| validParameters | A list of parameters from which the users may specify values. |
| dependencySheet | A sheet listing any dependencies between parameters in the validParameters ParameterList. |
| customFunc | A custom function for Optika to run upon the user clicking the action button. |
Constructs an OptikaGUI object.
- Parameters:
-
| xmlFileName | Name of an XML file describing the GUI. |
| customFunc | A custom function for Optika to run upon the user clicking the action button. |
Member Function Documentation
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.
Gets the file path describing the location of the file being used as the QT Style Sheet.
- Returns:
- The file path describing the location of the file being used as the QT Style Sheet.
Gets the file path describing the location of the file being used for the window icon.
- Returns:
- The file path describing the location of the file being used for the window icon.
Gets the window title.
- Returns:
- A string containing the window title.
Adds the information specified to the about dialog of the GUI.
- Parameters:
-
| aboutInfo | Information to be added to the about dialog of the GUI. |
Sets the text in the "action" button".
- Parameters:
-
| text | The text for the action button |
Sets the custom function to be used in the GUI. When ever the user clicks the action button, this function will be run.
- Parameters:
-
| The | custom function to be run whenever the user clicks the action button. |
Sets the QT style sheet that should be used for the GUI.
- Parameters:
-
| filePath | File path to the QT style sheet to be used for the GUI. |
Sets the window icon to the image specified in the filePath.
- Parameters:
-
| filePath | File path to the image that should be used as the window icon. |
Referenced by exec().
Sets the title of the GUI window that is displayed to the user.
- Parameters:
-
| title | A string containing what the title of the GUI window should be. |
The documentation for this class was generated from the following files: