|
Isis 3.0 Object Programmers' Reference |
Home |
Gui for Isis Applications. More...
#include <Gui.h>


Public Member Functions | |
| void | ProgressText (const QString &text) |
| Change progress text. | |
| void | Progress (int percent) |
| Update the progress bar. | |
| int | Exec (void(*funct)()) |
| Start the Gui and enter the main loop This routine only returns when the program is ready to exit. | |
| bool | ProcessEvents () |
| Let the event loop have some time to see if we need to cancel. | |
| void | LoadMessage (const QString &message) |
| Add more information to the error message. | |
| int | ShowWarning () |
| Show an error message and return if the user wants to continue/abort. | |
| void | ShowLog () |
| void | Log (const QString &text) |
| Write text to the gui log. | |
| Gui (Isis::UserInterface &ui) | |
| Constructor. | |
| ~Gui () | |
| Destructor. | |
| bool | eventFilter (QObject *o, QEvent *e) |
| Reset the Progress bar when the user moves the mouse onto the toolbar. | |
Static Public Member Functions | |
| static void | checkX11 () |
| check to see if X is available | |
| static Gui * | Create (Isis::UserInterface &ui, int &argc, char *argv[]) |
Private Slots | |
| void | StartProcess () |
| The user pressed the go button. | |
| void | StopProcessing () |
| The user pressed the stop button ... see what they want to do. | |
| void | ResetParameters () |
| Reset the parameters fields to the defaults. | |
| void | NextHistory () |
| Goto the next history entry. | |
| void | PreviousHistory () |
| Goto the previous history entry. | |
| void | UpdateExclusions () |
| Grey out parameters that should be excluded for radio buttons and checkboxes. | |
| void | UpdateCommandLine () |
| Update the command line toolbar. | |
| void | UpdateParameters () |
| Update Parameters. | |
| void | WhatsThis () |
| void | AboutProgram () |
| void | AboutIsis () |
| void | InvokeHelper (const QString &funct) |
| Activate helper buttons. | |
Private Member Functions | |
| GuiParameter * | AddParameter (Isis::UserInterface &ui, int group, int param) |
| void | Preferences () |
| void | CreateAreas () |
| QAction * | CreateProcessAction () |
| QAction * | CreateStopAction () |
| QAction * | CreateExitAction () |
| QAction * | CreateResetAction () |
| QAction * | CreatePreviousHistoryAction () |
| QAction * | CreateNextHistoryAction () |
| QAction * | CreateSaveLogAction () |
| QAction * | CreateClearLogAction () |
| QAction * | CreateWhatsThisAction () |
| void | UpdateHistory () |
| Changed the parameters based on the history pointer. | |
Private Attributes | |
| void(* | p_funct )() |
| QScrollArea * | p_scrollArea |
| QWidget * | p_scrollWidget |
| QVBoxLayout * | p_scrollLayout |
| QLabel * | p_statusText |
| QProgressBar * | p_progressBar |
| GuiLog * | p_log |
| QAction * | p_processAction |
| QAction * | p_exitAction |
| QAction * | p_stopAction |
| QAction * | p_resetAction |
| QAction * | p_saveLogAction |
| QAction * | p_clearLogAction |
| QAction * | p_previousHistoryAction |
| QAction * | p_nextHistoryAction |
| QMap< QString, QGridLayout * > | p_grids |
| std::vector< GuiParameter * > | p_parameters |
| QString | p_errorString |
| bool | p_stop |
| int | p_historyEntry |
| QLineEdit * | p_commandLineEdit |
Static Private Attributes | |
| static Gui * | p_gui = NULL |
| Singleton. | |
This is the main GUI for all Isis Applications.
For internal use only.
Definition at line 82 of file Gui.h.
| Isis::Gui::Gui | ( | Isis::UserInterface & | ui | ) |
Constructor.
Definition at line 100 of file Gui.cpp.
References IsisAml::NumGroups(), IsisAml::NumParams(), Isis::GuiParameter::Update(), and UpdateCommandLine().
| void Isis::Gui::checkX11 | ( | ) | [static] |
check to see if X is available
Definition at line 45 of file Gui.cpp.
Referenced by Isis::UserInterface::UserInterface().
| bool Isis::Gui::eventFilter | ( | QObject * | o, | |
| QEvent * | e | |||
| ) |
Reset the Progress bar when the user moves the mouse onto the toolbar.
Definition at line 581 of file Gui.cpp.
References FALSE, Progress(), and ProgressText().
| int Isis::Gui::Exec | ( | void(*)() | funct | ) |
Start the Gui and enter the main loop This routine only returns when the program is ready to exit.
Definition at line 539 of file Gui.cpp.
Referenced by Isis::Application::Run().
| void Isis::Gui::InvokeHelper | ( | const QString & | funct | ) | [private, slot] |
Activate helper buttons.
Definition at line 822 of file Gui.cpp.
References IsisAml::Clear(), Isis::Application::GetGuiHelper(), Isis::Application::GetUserInterface(), Isis::Application::GuiReportError(), Isis::GuiParameter::IsEnabled(), Isis::GuiParameter::IsModified(), Isis::GuiParameter::Name(), IsisAml::PutAsString(), and UpdateParameters().
| void Isis::Gui::LoadMessage | ( | const QString & | message | ) |
Add more information to the error message.
Definition at line 545 of file Gui.cpp.
Referenced by Isis::Application::FunctionError(), Isis::Application::GuiReportError(), and UpdateHistory().
| void Isis::Gui::Log | ( | const QString & | text | ) |
Write text to the gui log.
Definition at line 576 of file Gui.cpp.
References Isis::GuiLog::Write().
Referenced by Isis::Application::FunctionCleanup(), Isis::Application::GuiLog(), and Isis::Application::Log().
| void Isis::Gui::NextHistory | ( | ) | [private, slot] |
| void Isis::Gui::PreviousHistory | ( | ) | [private, slot] |
Goto the previous history entry.
Definition at line 648 of file Gui.cpp.
References UpdateHistory().
| bool Isis::Gui::ProcessEvents | ( | ) |
Let the event loop have some time to see if we need to cancel.
This is normally called by the Isis::Progress class.
Definition at line 620 of file Gui.cpp.
Referenced by Isis::Application::ProcessGuiEvents(), and StartProcess().
| void Isis::Gui::Progress | ( | int | percent | ) |
Update the progress bar.
Definition at line 530 of file Gui.cpp.
Referenced by eventFilter(), StartProcess(), and Isis::Application::UpdateProgress().
| void Isis::Gui::ProgressText | ( | const QString & | text | ) |
Change progress text.
Definition at line 524 of file Gui.cpp.
Referenced by eventFilter(), Isis::Application::GuiReportError(), StartProcess(), and Isis::Application::UpdateProgress().
| void Isis::Gui::ResetParameters | ( | ) | [private, slot] |
Reset the parameters fields to the defaults.
Definition at line 626 of file Gui.cpp.
References IsisAml::Clear(), Isis::Application::GetUserInterface(), Isis::GuiParameter::Name(), and Isis::GuiParameter::Update().
Referenced by UpdateHistory().
| int Isis::Gui::ShowWarning | ( | ) |
Show an error message and return if the user wants to continue/abort.
Definition at line 565 of file Gui.cpp.
References Isis::Application::GetUserInterface(), and IsisAml::ProgramName().
Referenced by Isis::Application::GuiReportError(), StartProcess(), and UpdateHistory().
| void Isis::Gui::StartProcess | ( | ) | [private, slot] |
The user pressed the go button.
For internal use only.
Definition at line 297 of file Gui.cpp.
References IsisAml::Clear(), exit(), Isis::Application::FunctionCleanup(), Isis::Application::FunctionError(), Isis::Application::GetUserInterface(), Isis::GuiParameter::IsEnabled(), Isis::GuiParameter::IsModified(), Isis::GuiParameter::Name(), ProcessEvents(), Progress(), ProgressText(), IsisAml::PutAsString(), Isis::UserInterface::SaveHistory(), ShowWarning(), Isis::IException::toString(), Isis::GuiParameter::Update(), and IsisAml::VerifyAll().
| void Isis::Gui::StopProcessing | ( | ) | [private, slot] |
The user pressed the stop button ... see what they want to do.
Definition at line 592 of file Gui.cpp.
References Isis::Application::GetUserInterface(), and IsisAml::ProgramName().
| void Isis::Gui::UpdateCommandLine | ( | ) | [private, slot] |
Update the command line toolbar.
Definition at line 754 of file Gui.cpp.
References cline, Isis::Application::GetUserInterface(), Isis::GuiParameter::IsEnabled(), Isis::GuiParameter::IsModified(), Isis::GuiParameter::Name(), and IsisAml::ProgramName().
Referenced by Gui().
| void Isis::Gui::UpdateExclusions | ( | ) | [private, slot] |
Grey out parameters that should be excluded for radio buttons and checkboxes.
Definition at line 732 of file Gui.cpp.
References Isis::GuiParameter::Exclusions(), Isis::GuiParameter::Name(), and Isis::GuiParameter::SetEnabled().
| void Isis::Gui::UpdateHistory | ( | ) | [private] |
Changed the parameters based on the history pointer.
Definition at line 654 of file Gui.cpp.
References IsisAml::Clear(), exit(), Isis::PvlObject::FindGroup(), Isis::Application::GetUserInterface(), Isis::PvlObject::Group(), Isis::PvlObject::Groups(), Isis::PvlContainer::IsNamed(), Isis::PvlContainer::Keywords(), LoadMessage(), Isis::PvlContainer::Name(), IsisAml::ProgramName(), IsisAml::PutAsString(), Isis::Pvl::Read(), ResetParameters(), ShowWarning(), Isis::PvlObject::Traverse, and Isis::GuiParameter::Update().
Referenced by NextHistory(), and PreviousHistory().
| void Isis::Gui::UpdateParameters | ( | ) | [private, slot] |
Update Parameters.
Definition at line 786 of file Gui.cpp.
References Isis::GuiParameter::Update().
Referenced by InvokeHelper().
Gui * Isis::Gui::p_gui = NULL [static, private] |