Overture  Version 25
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
GUIState Class Reference

#include <GUIState.h>

Inheritance diagram for GUIState:
Inheritance graph
[legend]
Collaboration diagram for GUIState:
Collaboration graph
[legend]

Public Member Functions

 GUIState ()
 
 ~GUIState ()
 
void setUserMenu (const aString menu[], const aString &menuTitle)
 
void setUserButtons (const aString buttons[][2])
 
void buildPopup (const aString menu[])
 
void setAllCommands ()
 
DialogDatagetDialogSibling (int number=-1)
 
- Public Member Functions inherited from DialogData
 DialogData ()
 
 ~DialogData ()
 
void openDialog (int managed=1)
 
int dialogCommands (aString **commands)
 
bool getToggleValue (const aString &answer, const aString &label, bool &target)
 
bool getToggleValue (const aString &answer, const aString &label, int &target)
 
bool getTextValue (const aString &answer, const aString &label, const aString &format, GUITypes::real &target)
 
bool getTextValue (const aString &answer, const aString &label, const aString &format, int &target)
 
bool getTextValue (const aString &answer, const aString &label, const aString &format, aString &target)
 
int showSibling ()
 
int hideSibling ()
 
void setSensitive (int trueFalse)
 
void setSensitive (bool trueOrFalse, WidgetTypeEnum widgetType, int number)
 
void setSensitive (bool trueOrFalse, WidgetTypeEnum widgetType, const aString &label)
 
int addOptionMenu (const aString &opMainLabel, const aString opCommands[], const aString opLabels[], int initCommand)
 
bool addRadioBox (const aString &rbMainLabel, const aString rbCommands[], const aString rbLabels[], int initCommand, int columns=1)
 
RadioBoxgetRadioBox (int n)
 
RadioBoxgetRadioBox (const aString &radioLabel)
 
bool changeOptionMenu (int nOption, const aString opCommands[], const aString opLabels[], int initCommand)
 
bool changeOptionMenu (const aString &opMainLabel, const aString opCommands[], const aString opLabels[], int initCommand)
 
int deleteOptionMenus ()
 
int addPulldownMenu (const aString &pdMainLabel, const aString commands[], const aString labels[], button_type bt, int *initState=NULL)
 
int setToggleButtons (const aString tbCommands[], const aString tbLabels[], const int initState[], int numberOfColumns=2)
 
int deleteToggleButtons ()
 
int setPushButtons (const aString pbCommands[], const aString pbLabels[], int numberOfRows=2)
 
int setTextBoxes (const aString textCommands[], const aString textLabels[], const aString initString[])
 
int setTextLabel (int n, const aString &buff)
 
int setTextLabel (const aString &textLabel, const aString &buff)
 
int setToggleState (int n, int trueFalse)
 
int setToggleState (const aString &toggleButtonLabel, int trueFalse)
 
int setExitCommand (const aString &exitC, const aString &exitL)
 
void setWindowTitle (const aString &title)
 
void setOptionMenuColumns (int columns)
 
void setLastPullDownIsHelp (int trueFalse)
 
PullDownMenugetPulldownMenu (int n)
 
PullDownMenugetPulldownMenu (const aString &label)
 
OptionMenugetOptionMenu (int n)
 
OptionMenugetOptionMenu (const aString &opMainLabel)
 
void closeDialog ()
 
void * getWidget ()
 
aStringgetExitCommand ()
 
void setBuiltInDialog ()
 
int getBuiltInDialog ()
 
void setCursor (cursorTypeEnum c)
 
int addInfoLabel (const aString &textLabel)
 
int deleteInfoLabels ()
 
bool setInfoLabel (int n, const aString &buff)
 

Static Public Member Functions

static int addPrefix (const aString label[], const aString &prefix, aString cmd[], const int maxCommands)
 

Public Attributes

GL_GraphicsInterfacegl
 
int nPopup
 
aStringpopupMenu
 
int nWindowButtons
 
aStringwindowButtonCommands
 
aStringwindowButtonLabels
 
int nPulldown
 
aString pulldownTitle
 
aStringpulldownCommand
 
GUIStateprev
 
int nAllCommands
 
aStringallCommands
 
int nDialogSiblings
 
DialogData dialogSiblings [MAX_SIBLINGS]
 

Protected Member Functions

 GUIState (GUIState &source)
 
void operator= (GUIState &source)
 
- Protected Member Functions inherited from DialogData
 DialogData (DialogData &source)
 
void operator= (DialogData &source)
 

Additional Inherited Members

- Public Types inherited from DialogData
enum  WidgetTypeEnum {
  optionMenuWidget, pushButtonWidget, pullDownWidget, toggleButtonWidget,
  textBoxWidget, radioBoxWidget
}
 
enum  cursorTypeEnum { pointerCursor =0, watchCursor, numberOfCursors }
 
- Protected Attributes inherited from DialogData
void * dialogWindow
 
aString windowTitle
 
aString exitCommand
 
aString exitLabel
 
bool exitCommandSet
 
int builtInDialog
 
int pButtonRows
 
int n_pButtons
 
PushButtonpButtons
 
int toggleButtonColumns
 
int n_toggle
 
ToggleButtontButtons
 
int n_text
 
TextLabeltextBoxes
 
int n_radioBoxes
 
RadioBox radioBoxData [MAX_RADIO_BOXES]
 
int optionMenuColumns
 
int n_optionMenu
 
OptionMenu opMenuData [MAX_OP_MENU]
 
int n_pullDownMenu
 
PullDownMenu pdMenuData [MAX_PD_MENU]
 
int n_infoLabels
 
InfoLabel infoLabelData [MAX_INFO_LABELS]
 
int pdLastIsHelp
 

Constructor & Destructor Documentation

GUIState::GUIState ( )
GUIState::~GUIState ( )
GUIState::GUIState ( GUIState source)
protected

Member Function Documentation

int GUIState::addPrefix ( const aString  label[],
const aString prefix,
aString  cmd[],
const int  maxCommands 
)
static
void GUIState::buildPopup ( const aString  menu[])
DialogData & GUIState::getDialogSibling ( int  number = -1)
void GUIState::operator= ( GUIState source)
protected
void GUIState::setAllCommands ( )
void GUIState::setUserButtons ( const aString  buttons[][2])
void GUIState::setUserMenu ( const aString  menu[],
const aString menuTitle 
)

Member Data Documentation

aString* GUIState::allCommands
DialogData GUIState::dialogSiblings[MAX_SIBLINGS]
GL_GraphicsInterface* GUIState::gl
int GUIState::nAllCommands
int GUIState::nDialogSiblings
int GUIState::nPopup
int GUIState::nPulldown
int GUIState::nWindowButtons
aString* GUIState::popupMenu
GUIState* GUIState::prev
aString* GUIState::pulldownCommand
aString GUIState::pulldownTitle
aString* GUIState::windowButtonCommands
aString* GUIState::windowButtonLabels

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