|
Isis 3 Programmer Reference
|
1 #ifndef Isis_GuiMainWindow_h
2 #define Isis_GuiMainWindow_h
20 #include <QMainWindow>
21 #include <QProgressBar>
22 #include <QScrollArea>
25 #include "PvlObject.h"
29 #include "GuiParameter.h"
30 #include "GuiParameterFactory.h"
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;
146 QLineEdit *p_commandLineEdit;
void InvokeHelper(const QString &funct)
Activate helper buttons.
void Progress(int percent)
Update the progress bar.
void ResetParameters()
Reset the parameters fields to the defaults.
void UpdateExclusions()
Grey out parameters that should be excluded for radio buttons and checkboxes.
void LoadMessage(const QString &message)
Add more information to the error message.
Gui for Isis Applications.
bool ProcessEvents()
Let the event loop have some time to see if we need to cancel.
bool eventFilter(QObject *o, QEvent *e)
Reset the Progress bar when the user moves the mouse onto the toolbar.
void UpdateCommandLine()
Update the command line toolbar.
void ProgressText(const QString &text)
Change progress text.
void NextHistory()
Goto the next history entry.
int ShowWarning()
Show an error message and return if the user wants to continue/abort.
void UpdateHistory()
Changed the parameters based on the history pointer.
void Log(const QString &text)
Write text to the gui log.
Gui(Isis::UserInterface &ui)
Constructor.
static Gui * p_gui
Singleton.
Command Line and Xml loader, validation, and access.
int Exec(void(*funct)())
Start the Gui and enter the main loop This routine only returns when the program is ready to exit.
static void checkX11()
check to see if X is available
void StartProcess()
The user pressed the go button.
void UpdateParameters()
Update Parameters.
This is free and unencumbered software released into the public domain.
void PreviousHistory()
Goto the previous history entry.
void StopProcessing()
The user pressed the stop button ... see what they want to do.