Overture  Version 25
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DialogData Class Reference

#include <DialogData.h>

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

Public Types

enum  WidgetTypeEnum {
  optionMenuWidget, pushButtonWidget, pullDownWidget, toggleButtonWidget,
  textBoxWidget, radioBoxWidget
}
 
enum  cursorTypeEnum { pointerCursor =0, watchCursor, numberOfCursors }
 

Public Member Functions

 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)
 

Protected Member Functions

 DialogData (DialogData &source)
 
void operator= (DialogData &source)
 

Protected Attributes

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
 

Member Enumeration Documentation

Enumerator
pointerCursor 
watchCursor 
numberOfCursors 
Enumerator
optionMenuWidget 
pushButtonWidget 
pullDownWidget 
toggleButtonWidget 
textBoxWidget 
radioBoxWidget 

Constructor & Destructor Documentation

DialogData::DialogData ( )
DialogData::~DialogData ( )
DialogData::DialogData ( DialogData source)
protected

Member Function Documentation

int DialogData::addInfoLabel ( const aString textLabel)
int DialogData::addOptionMenu ( const aString opMainLabel,
const aString  opCommands[],
const aString  opLabels[],
int  initCommand 
)
int DialogData::addPulldownMenu ( const aString pdMainLabel,
const aString  commands[],
const aString  labels[],
button_type  bt,
int *  initState = NULL 
)
bool DialogData::addRadioBox ( const aString rbMainLabel,
const aString  rbCommands[],
const aString  rbLabels[],
int  initCommand,
int  columns = 1 
)
bool DialogData::changeOptionMenu ( int  nOption,
const aString  opCommands[],
const aString  opLabels[],
int  initCommand 
)
bool DialogData::changeOptionMenu ( const aString opMainLabel,
const aString  opCommands[],
const aString  opLabels[],
int  initCommand 
)
void DialogData::closeDialog ( )
int DialogData::deleteInfoLabels ( )

References n_infoLabels.

Referenced by closeDialog().

int DialogData::deleteOptionMenus ( )
int DialogData::deleteToggleButtons ( )

References n_toggle, NULL, and tButtons.

Referenced by closeDialog().

int DialogData::dialogCommands ( aString **  commands)
int DialogData::getBuiltInDialog ( )

References builtInDialog.

aString & DialogData::getExitCommand ( )

References exitCommand.

OptionMenu & DialogData::getOptionMenu ( int  n)
OptionMenu & DialogData::getOptionMenu ( const aString opMainLabel)
PullDownMenu & DialogData::getPulldownMenu ( int  n)

References max(), min(), n_pullDownMenu, and pdMenuData.

Referenced by main(), and PlotIt::plotGrid().

PullDownMenu & DialogData::getPulldownMenu ( const aString label)
RadioBox & DialogData::getRadioBox ( int  n)
RadioBox & DialogData::getRadioBox ( const aString radioLabel)
bool DialogData::getTextValue ( const aString answer,
const aString label,
const aString format,
GUITypes::real target 
)
bool DialogData::getTextValue ( const aString answer,
const aString label,
const aString format,
int &  target 
)
bool DialogData::getTextValue ( const aString answer,
const aString label,
const aString format,
aString target 
)
bool DialogData::getToggleValue ( const aString answer,
const aString label,
bool &  target 
)
bool DialogData::getToggleValue ( const aString answer,
const aString label,
int &  target 
)

References getToggleValue().

void * DialogData::getWidget ( )

References dialogWindow.

Referenced by makeGraphicsWindow().

int DialogData::hideSibling ( )
void DialogData::openDialog ( int  managed = 1)
void DialogData::operator= ( DialogData source)
protected
void DialogData::setBuiltInDialog ( )
void DialogData::setCursor ( cursorTypeEnum  c)
int DialogData::setExitCommand ( const aString exitC,
const aString exitL 
)

References exitCommand, exitCommandSet, exitLabel, and printF().

Referenced by MappingBuilder::assignBoundaryConditions(), MappingBuilder::build(), MappingBuilder::buildBoxGrid(), HyperbolicMapping::buildCurve(), MappingBuilder::buildCurveOnSurface(), Mapping::buildMappingParametersDialog(), OgmgParameters::buildOptionsDialog(), ShowFilePlotter::buildPlotStuffDialog(), MappingBuilder::buildSurfacePatch(), TrimmedMappingBuilder::buildTrimmedMapping(), Ogen::changeParameters(), PlotIt::contour2d(), PlotIt::contour3d(), OffsetShell::createOffsetMappings(), Integrate::defineSurfacesAndComputeWeights(), TrimmedMapping::editNurbsTrimCurve(), CompositeTopology::getAnotherEdge(), main(), ogen(), GL_GraphicsInterface::pause(), PlotIt::plot(), MeshQualityMetrics::plot(), Ogen::plot(), plot3dToOverture(), PlotIt::plotCompositeSurface(), BodyForce::plotForcingRegions(), PlotIt::plotGrid(), PlotIt::plotGridQuality(), PlotIt::plotUM(), Ogen::queryAPoint(), saveOvertureTextFile(), GL_GraphicsInterface::setupHardCopy(), showFileFromDataFile(), PlotIt::streamLines2d(), PlotIt::streamLines3d(), MatchingCurve::update(), LoftedSurfaceMapping::update(), CompositeTopology::update(), StretchTransform::update(), SquareMapping::update(), ColourBar::update(), FilletMapping::update(), UserDefinedMapping1::update(), GridStretcher::update(), AnnulusMapping::update(), CompositeSurface::update(), HyperbolicMapping::update(), UnstructuredMapping::update(), Ugen::updateHybrid(), and DataFormats::writePlot3d().

bool DialogData::setInfoLabel ( int  n,
const aString buff 
)
void DialogData::setLastPullDownIsHelp ( int  trueFalse)

References pdLastIsHelp.

Referenced by CompositeTopology::update().

void DialogData::setOptionMenuColumns ( int  columns)
int DialogData::setPushButtons ( const aString  pbCommands[],
const aString  pbLabels[],
int  numberOfRows = 2 
)

References PushButton::buttonCommand, PushButton::buttonLabel, n_pButtons, pButtonRows, pButtons, and printF().

Referenced by MappingBuilder::assignBoundaryConditions(), MappingBuilder::build(), MappingBuilder::buildBoxGrid(), MappingBuilder::buildCurveOnSurface(), GridStretcher::buildDialog(), GridSmoother::buildDialog(), Mapping::buildMappingParametersDialog(), HyperbolicMapping::buildMarchingSpacingDialog(), OgmgParameters::buildOptionsDialog(), ShowFilePlotter::buildPlotStuffDialog(), HyperbolicMapping::buildStartCurveSpacingDialog(), StretchTransform::buildStretchingParametersDialog(), HyperbolicMapping::buildSurfaceGridParametersDialog(), MappingBuilder::buildSurfacePatch(), TrimmedMappingBuilder::buildTrimmedMapping(), Ogen::changeParameters(), PlotIt::contour2d(), PlotIt::contour3d(), OffsetShell::createOffsetMappings(), Integrate::defineSurfacesAndComputeWeights(), TrimmedMapping::editNurbsTrimCurve(), main(), ogen(), GL_GraphicsInterface::pause(), Ogen::plot(), plot3dToOverture(), PlotIt::plotCompositeSurface(), BodyForce::plotForcingRegions(), PlotIt::plotGrid(), Ogen::queryAPoint(), saveOvertureTextFile(), GL_GraphicsInterface::setupHardCopy(), showFileFromDataFile(), PlotIt::streamLines2d(), PlotIt::streamLines3d(), LoftedSurfaceMapping::update(), CompositeTopology::update(), StretchTransform::update(), SquareMapping::update(), ColourBar::update(), FilletMapping::update(), UserDefinedMapping1::update(), AnnulusMapping::update(), HyperbolicMapping::update(), and DataFormats::writePlot3d().

void DialogData::setSensitive ( int  trueFalse)
void DialogData::setSensitive ( bool  trueOrFalse,
WidgetTypeEnum  widgetType,
int  number 
)
void DialogData::setSensitive ( bool  trueOrFalse,
WidgetTypeEnum  widgetType,
const aString label 
)
int DialogData::setTextBoxes ( const aString  textCommands[],
const aString  textLabels[],
const aString  initString[] 
)

References n_text, printF(), TextLabel::string, textBoxes, TextLabel::textCommand, and TextLabel::textLabel.

Referenced by MappingBuilder::assignBoundaryConditions(), MappingBuilder::build(), MappingBuilder::buildBoxGrid(), MappingBuilder::buildCurveOnSurface(), GridStretcher::buildDialog(), GridSmoother::buildDialog(), Mapping::buildMappingParametersDialog(), HyperbolicMapping::buildMarchingParametersDialog(), HyperbolicMapping::buildMarchingSpacingDialog(), OgmgParameters::buildOptionsDialog(), HyperbolicMapping::buildPlotOptionsDialog(), ShowFilePlotter::buildPlotStuffDialog(), HyperbolicMapping::buildStartCurveSpacingDialog(), StretchTransform::buildStretchingParametersDialog(), HyperbolicMapping::buildSurfaceGridParametersDialog(), MappingBuilder::buildSurfacePatch(), TrimmedMappingBuilder::buildTrimmedMapping(), PlotIt::contour2d(), PlotIt::contour3d(), OffsetShell::createOffsetMappings(), Integrate::defineSurfacesAndComputeWeights(), TrimmedMapping::editNurbsTrimCurve(), main(), ogen(), Ogen::plot(), plot3dToOverture(), PlotIt::plotGrid(), PlotIt::plotGridQuality(), PlotIt::plotUM(), Ogen::queryAPoint(), saveOvertureTextFile(), GL_GraphicsInterface::setupHardCopy(), showFileFromDataFile(), PlotIt::streamLines2d(), PlotIt::streamLines3d(), MatchingCurve::update(), LoftedSurfaceMapping::update(), CompositeTopology::update(), StretchTransform::update(), SquareMapping::update(), FilletMapping::update(), UserDefinedMapping1::update(), GridStretcher::update(), AnnulusMapping::update(), HyperbolicMapping::update(), and DataFormats::writePlot3d().

int DialogData::setTextLabel ( int  n,
const aString buff 
)
int DialogData::setTextLabel ( const aString textLabel,
const aString buff 
)
int DialogData::setToggleButtons ( const aString  tbCommands[],
const aString  tbLabels[],
const int  initState[],
int  numberOfColumns = 2 
)
int DialogData::setToggleState ( int  n,
int  trueFalse 
)
int DialogData::setToggleState ( const aString toggleButtonLabel,
int  trueFalse 
)

References n_toggle, setToggleState(), and tButtons.

void DialogData::setWindowTitle ( const aString title)
int DialogData::showSibling ( )

Member Data Documentation

int DialogData::builtInDialog
protected
void* DialogData::dialogWindow
protected
aString DialogData::exitCommand
protected
bool DialogData::exitCommandSet
protected
aString DialogData::exitLabel
protected
InfoLabel DialogData::infoLabelData[MAX_INFO_LABELS]
protected
int DialogData::n_infoLabels
protected
int DialogData::n_optionMenu
protected
int DialogData::n_pButtons
protected
int DialogData::n_pullDownMenu
protected
int DialogData::n_radioBoxes
protected
int DialogData::n_text
protected
int DialogData::n_toggle
protected
OptionMenu DialogData::opMenuData[MAX_OP_MENU]
protected
int DialogData::optionMenuColumns
protected
int DialogData::pButtonRows
protected
PushButton* DialogData::pButtons
protected
int DialogData::pdLastIsHelp
protected
PullDownMenu DialogData::pdMenuData[MAX_PD_MENU]
protected
RadioBox DialogData::radioBoxData[MAX_RADIO_BOXES]
protected
ToggleButton* DialogData::tButtons
protected
TextLabel* DialogData::textBoxes
protected
int DialogData::toggleButtonColumns
protected
aString DialogData::windowTitle
protected

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