|
Overture
Version 25
|
#include <GUIState.h>


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 () |
| DialogData & | getDialogSibling (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) |
| RadioBox & | getRadioBox (int n) |
| RadioBox & | getRadioBox (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) |
| PullDownMenu & | getPulldownMenu (int n) |
| PullDownMenu & | getPulldownMenu (const aString &label) |
| OptionMenu & | getOptionMenu (int n) |
| OptionMenu & | getOptionMenu (const aString &opMainLabel) |
| void | closeDialog () |
| void * | getWidget () |
| aString & | getExitCommand () |
| 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_GraphicsInterface * | gl |
| int | nPopup |
| aString * | popupMenu |
| int | nWindowButtons |
| aString * | windowButtonCommands |
| aString * | windowButtonLabels |
| int | nPulldown |
| aString | pulldownTitle |
| aString * | pulldownCommand |
| GUIState * | prev |
| int | nAllCommands |
| aString * | allCommands |
| 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 |
| PushButton * | pButtons |
| int | toggleButtonColumns |
| int | n_toggle |
| ToggleButton * | tButtons |
| int | n_text |
| TextLabel * | textBoxes |
| 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 |
| GUIState::GUIState | ( | ) |
References allCommands, gl, nAllCommands, nDialogSiblings, nPopup, nPulldown, NULL, nWindowButtons, popupMenu, prev, pulldownCommand, pulldownTitle, windowButtonCommands, and windowButtonLabels.
| GUIState::~GUIState | ( | ) |
References allCommands, popupMenu, pulldownCommand, windowButtonCommands, and windowButtonLabels.
|
protected |
|
static |
References assert, and printF().
Referenced by PlotIt::buildColourDialog(), GridStretcher::buildDialog(), GridSmoother::buildDialog(), HyperbolicMapping::buildMarchingParametersDialog(), StretchTransform::buildStretchingParametersDialog(), HyperbolicMapping::buildSurfaceGridParametersDialog(), PlotIt::plotGridQuality(), StretchTransform::update(), GridStretcher::update(), and HyperbolicMapping::update().
| void GUIState::buildPopup | ( | const aString | menu[] | ) |
References aString, nPopup, NULL, and popupMenu.
Referenced by MappingBuilder::build(), HyperbolicMapping::buildCurve(), TrimmedMappingBuilder::buildTrimmedMapping(), Ogen::changeParameters(), PlotIt::contour1d(), PlotIt::contour2d(), PlotIt::contour3d(), PlotIt::contourCuts(), OffsetShell::createOffsetMappings(), GL_GraphicsInterface::getMenuItem(), GenericGraphicsInterface::getValues(), ogen(), GL_GraphicsInterface::pickPoints(), ShowFilePlotter::plot(), PlotIt::plot(), Ogen::plot(), PlotIt::plotCompositeSurface(), PlotIt::plotGrid(), PlotIt::plotStructured(), PlotIt::plotUM(), PlotIt::streamLines2d(), PlotIt::streamLines3d(), StretchTransform::update(), SquareMapping::update(), ColourBar::update(), FilletMapping::update(), AnnulusMapping::update(), CompositeSurface::update(), OgmgParameters::update(), and HyperbolicMapping::update().
| DialogData & GUIState::getDialogSibling | ( | int | number = -1 | ) |
References dialogSiblings, MAX_SIBLINGS, and nDialogSiblings.
Referenced by MappingBuilder::buildBoxGrid(), MappingBuilder::buildSurfacePatch(), PlotIt::contour3d(), main(), BodyForce::plotForcingRegions(), PlotIt::plotGrid(), StretchTransform::update(), SquareMapping::update(), AnnulusMapping::update(), TrimmedMapping::update(), HyperbolicMapping::update(), and Ugen::updateHybrid().
|
protected |
| void GUIState::setAllCommands | ( | ) |
References allCommands, aString, DialogData::dialogCommands(), nAllCommands, nDialogSiblings, nPopup, nPulldown, nWindowButtons, popupMenu, pulldownCommand, and windowButtonCommands.
Referenced by GL_GraphicsInterface::processSpecialMenuItems(), and GL_GraphicsInterface::pushGUI().
| void GUIState::setUserButtons | ( | const aString | buttons[][2] | ) |
References aString, NULL, nWindowButtons, windowButtonCommands, and windowButtonLabels.
Referenced by GL_GraphicsInterface::pickPoints(), PlotIt::plotStructured(), and PlotIt::plotTrimmedMapping().
References aString, nPulldown, NULL, pulldownCommand, and pulldownTitle.
Referenced by PlotIt::plotStructured().
| aString* GUIState::allCommands |
| DialogData GUIState::dialogSiblings[MAX_SIBLINGS] |
| GL_GraphicsInterface* GUIState::gl |
Referenced by GUIState(), and GL_GraphicsInterface::pushGUI().
| int GUIState::nAllCommands |
Referenced by GUIState(), GL_GraphicsInterface::popGUI(), GenericGraphicsInterface::promptAnswer(), and setAllCommands().
| int GUIState::nDialogSiblings |
| int GUIState::nPopup |
Referenced by buildPopup(), GUIState(), and setAllCommands().
| int GUIState::nPulldown |
Referenced by GUIState(), setAllCommands(), and setUserMenu().
| int GUIState::nWindowButtons |
Referenced by GUIState(), setAllCommands(), and setUserButtons().
| aString* GUIState::popupMenu |
| GUIState* GUIState::prev |
| aString* GUIState::pulldownCommand |
| aString GUIState::pulldownTitle |
| aString* GUIState::windowButtonCommands |
| aString* GUIState::windowButtonLabels |
1.8.3