41 #ifndef OPTIKA_GUI_HPP_
42 #define OPTIKA_GUI_HPP_
71 RCP<ParameterList> validParameters,
72 RCP<DependencySheet> dependencySheet=null,
73 void (*customFunc)(RCP<const ParameterList>)=NULL);
89 const std::string& nameOfXmlFile,
90 RCP<ParameterList>& userInput,
91 void (*customFunc)(RCP<const ParameterList>)=NULL);
111 RCP<ParameterList> validParameters,
112 RCP<DependencySheet> dependencySheet=null,
113 std::string styleSheetFilePath =
"",
114 std::string iconFilePath =
"",
115 void (*customFunc)(RCP<const ParameterList>)=NULL);
135 const std::string& nameOfXmlFile,
136 RCP<ParameterList>& userInput,
137 std::string styleSheetFilePath =
"",
138 std::string iconFilePath =
"",
139 void (*customFunc)(RCP<const ParameterList>)=NULL);
174 OptikaGUI(
const std::string& xmlFileName,
322 #endif //OPTIKA_GUI_HPP_
void setActionButtonText(const std::string &text)
Sets the text in the "action" button".
std::string styleSheetFilePath
File path to the QT style sheet to be used for the GUI.
std::string getAboutInfo()
Gets the information to be added to the about dialog of the GUI.
std::string aboutInfo
Information to be added to the about dialog of the GUI.
A class that allows the user to create and customize their Optika GUI.
void(* customFunc)(RCP< const ParameterList >)
The custom function to be run whenever the user clicks the action button.
std::string getStyleSheet()
Gets the file path describing the location of the file being used as the QT Style Sheet...
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...
void getInput(RCP< ParameterList > validParameters, RCP< DependencySheet > dependencySheet, void(*customFunc)(RCP< const ParameterList >))
Retreives the input for a Teuchos Parameter List using a GUI. Note the Parameter List will be edited...
RCP< DependencySheet > dependencySheet
A sheet listing any dependencies between parameters in the validParameters.
void setWindowIcon(const std::string &filePath)
Sets the window icon to the image specified in the filePath.
std::string getWindowTitle()
Gets the window title.
std::string actionButtonText
Text to display in the action button.
std::string title
A string containing the window title.
void setStyleSheet(const std::string &filePath)
Sets the QT style sheet that should be used for the GUI.
void getInputExtraOptions(RCP< ParameterList > validParameters, RCP< DependencySheet > dependencySheet, std::string styleSheetFilePath, std::string iconFilePath, void(*customFunc)(RCP< const ParameterList >))
Retreives the input for a Teuchos Parameter List using a GUI. Note the Parameter List will be edited...
RCP< ParameterList > validParameters
A list of parameters from which the users may specify values.
void setWindowTitle(const std::string &title)
Sets the title of the GUI window that is displayed to the user.
OptikaGUI(RCP< ParameterList > validParameters, RCP< DependencySheet > dependencySheet=null, 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.
std::string getWindowIcon()
Gets the file path describing the location of the file being used for the window icon.
std::string iconFilePath
File path to the image that should be used as the window icon.