USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::Gui Class Reference

Gui for Isis Applications. More...

#include <Gui.h>

Inherits QMainWindow.

List of all members.

Public Member Functions

void ProgressText (const std::string &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 std::string &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 std::string &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 GuiCreate (Isis::UserInterface &ui, int &argc, char *argv[])

Detailed Description

Gui for Isis Applications.

This is the main GUI for all Isis Applications.

Author:
2003-01-01 Stuart Sides

Constructor & Destructor Documentation

Isis::Gui::Gui ( Isis::UserInterface ui  ) 

Constructor.

Isis::Gui::~Gui (  ) 

Destructor.


Member Function Documentation

void Isis::Gui::checkX11 (  )  [static]

check to see if X is available

Referenced by Create(), and Isis::UserInterface::UserInterface().

Gui * Isis::Gui::Create ( Isis::UserInterface ui,
int &  argc,
char *  argv[] 
) [static]
bool Isis::Gui::eventFilter ( QObject o,
QEvent *  e 
)

Reset the Progress bar when the user moves the mouse onto the toolbar.

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.

void Isis::Gui::LoadMessage ( const std::string &  message  ) 

Add more information to the error message.

void Isis::Gui::Log ( const std::string &  text  ) 

Write text to the gui log.

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.

void Isis::Gui::Progress ( int  percent  ) 

Update the progress bar.

References IsisAml::GroupName().

void Isis::Gui::ProgressText ( const std::string &  text  ) 

Change progress text.

void Isis::Gui::ShowLog (  )  [inline]
int Isis::Gui::ShowWarning (  ) 

Show an error message and return if the user wants to continue/abort.


The documentation for this class was generated from the following files: