|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef Isis_GuiMainWindow_h
2 #define Isis_GuiMainWindow_h
20 #include <QMainWindow>
21 #include <QProgressBar>
22 #include <QScrollArea>
84 int Exec(
void (*funct)());
91 void Log(
const QString &text);
107 QAction *CreateProcessAction();
111 QAction *CreatePreviousHistoryAction();
112 QAction *CreateNextHistoryAction();
113 QAction *CreateSaveLogAction();
114 QAction *CreateClearLogAction();
115 QAction *CreateWhatsThisAction();
119 QScrollArea *p_scrollArea;
121 QVBoxLayout *p_scrollLayout;
123 QLabel *p_statusText;
133 QAction *p_previousHistoryAction;
138 std::vector<GuiParameter *> p_parameters;
140 QString p_errorString;
143 void UpdateHistory();
146 QLineEdit *p_commandLineEdit;
150 void StopProcessing();
152 void ResetParameters();
155 void PreviousHistory();
157 void UpdateExclusions();
158 void UpdateCommandLine();
159 void UpdateParameters();
165 void InvokeHelper(
const QString &funct);
Application * iApp
Definition: Application.cpp:51
void Progress(int percent)
Update the progress bar.
Definition: Gui.cpp:571
void PutAsString(const QString ¶mName, const QString &value)
Allows the insertion of a value for any parameter.
Definition: IsisAml.cpp:65
void Update()
Update the value on the GUI with the value in the UI.
Definition: GuiParameter.cpp:196
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
PvlGroup & group(const int index)
Return the group at the specified index.
Definition: PvlObject.cpp:452
@ BooleanWidget
Definition: GuiParameter.h:75
@ CubeWidget
Definition: GuiParameter.h:74
@ ComboWidget
Definition: GuiParameter.h:75
static void RunSystemCommand(QString commandLine)
This runs arbitrary system commands.
Definition: ProgramLauncher.cpp:207
int NumGroups() const
Returns the number of groups found in the XML.
Definition: IsisAml.cpp:1087
File name manipulation and expansion.
Definition: FileName.h:100
int groups() const
Returns the number of groups contained.
Definition: PvlObject.h:75
void Write(const QString &string)
Add more information to the log widget.
Definition: GuiLog.cpp:38
void SetEnabled(bool enabled, bool isParentCombo=false)
Enable or disable the parameter.
Definition: GuiParameter.cpp:217
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Container for cube-like labels.
Definition: Pvl.h:119
void LoadMessage(const QString &message)
Add more information to the error message.
Definition: Gui.cpp:586
Gui for Isis Applications.
Definition: Gui.h:73
bool ProcessEvents()
Let the event loop have some time to see if we need to cancel.
Definition: Gui.cpp:661
Definition: GuiParameter.h:34
void ShowLog()
Definition: Gui.h:90
@ Traverse
Search child objects.
Definition: PvlObject.h:158
bool eventFilter(QObject *o, QEvent *e)
Reset the Progress bar when the user moves the mouse onto the toolbar.
Definition: Gui.cpp:622
static UserInterface & GetUserInterface()
Returns the UserInterface object.
Definition: Application.cpp:463
QString GroupName(const int &group) const
Returns the group name of group[index].
Definition: IsisAml.cpp:1098
QString Name() const
Return the name of the parameter.
Definition: GuiParameter.h:44
void VerifyAll()
Verify all parameters.
Definition: IsisAml.cpp:2387
~Gui()
Destructor.
Definition: Gui.cpp:175
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
@ StringWidget
Definition: GuiParameter.h:73
void read(const QString &file)
Loads PVL information from a stream.
Definition: Pvl.cpp:90
bool isNamed(const QString &match) const
Returns whether the given string is equal to the container name or not.
Definition: PvlContainer.h:72
void GuiReportError(IException &e)
Loads the error message into the gui, but does not write it to the session log.
Definition: Application.cpp:708
void ProgressText(const QString &text)
Change progress text.
Definition: Gui.cpp:565
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
int ShowWarning()
Show an error message and return if the user wants to continue/abort.
Definition: Gui.cpp:606
void Log(const QString &text)
Write text to the gui log.
Definition: Gui.cpp:617
void * GetGuiHelper(QString helper)
Definition: Application.h:129
void Clear(const QString ¶mName)
Clears the value(s) in the named parameter.
Definition: IsisAml.cpp:1852
static SessionLog & TheLog(bool restart=false)
Definition: SessionLog.cpp:39
Gui(Isis::UserInterface &ui)
Constructor.
Definition: Gui.cpp:130
void SaveHistory()
Saves the user parameter information in the history of the program for later use.
Definition: UserInterface.cpp:261
Command Line and Xml loader, validation, and access.
Definition: UserInterface.h:140
static GuiParameter * Create(QGridLayout *grid, Isis::UserInterface &ui, int group, int param)
Definition: GuiParameterFactory.cpp:20
int Exec(void(*funct)())
Start the Gui and enter the main loop This routine only returns when the program is ready to exit.
Definition: Gui.cpp:580
static void checkX11()
check to see if X is available
Definition: Gui.cpp:55
int keywords() const
Returns the number of keywords contained in the PvlContainer.
Definition: PvlContainer.h:86
static Preference & Preferences(bool unitTest=false)
Definition: Preference.cpp:86
QString ProgramName() const
Returns the Program name.
Definition: IsisAml.cpp:1057
@ ListWidget
Definition: GuiParameter.h:74
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ FileNameWidget
Definition: GuiParameter.h:74
static Gui * Create(Isis::UserInterface &ui, int &argc, char *argv[])
Definition: Gui.cpp:84
int NumParams(const int &) const
Returns the number of parameters in a group.
Definition: IsisAml.cpp:1207