Eclipse SUMO - Simulation of Urban MObility
|
MFXGroupBoxModule (based on FXGroupBox) More...
#include <MFXGroupBoxModule.h>
Inherits FXVerticalFrame.
Inherited by GNEAdditionalFrame::E2MultilaneLegendModule, GNEAdditionalFrame::HelpCreationModule, GNEAttributesCreator, GNEAttributesEditor, GNEConnectorFrame::ConnectionModifications, GNEConnectorFrame::ConnectionOperations, GNEConnectorFrame::ConnectionSelection, GNEConnectorFrame::CurrentLane, GNEConnectorFrame::Legend, GNEConsecutiveSelector, GNECreateEdgeFrame::EdgeTypeSelector, GNECreateEdgeFrame::LaneTypeSelector, GNECreateEdgeFrame::Legend, GNECrossingFrame::CreateCrossing, GNECrossingFrame::CrossingParameters, GNECrossingFrame::EdgesSelector, GNECrossingFrame::Information, GNECrossingFrame::JunctionInformation, GNEDeleteFrame::DeleteOptions, GNEDeleteFrame::ProtectElements, GNEDemandElementSelector, GNEDistributionFrame::DistributionEditor, GNEDistributionFrame::DistributionSelector, GNEDistributionFrame::DistributionValuesEditor, GNEDrawingShape, GNEElementSet, GNEElementTree, GNEFixAdditionalElements::ConsecutiveLaneOptions, GNEFixAdditionalElements::PositionOptions, GNEFixDemandElements::FixOptions, GNEFixElementsDialog::ConsecutiveLaneOptions, GNEFixElementsDialog::PositionOptions, GNEFixNetworkElements::FixOptions, GNEFlowEditor, GNEFrameAttributeModules::GenericDataAttributes, GNEFrameAttributeModules::ParametersEditor, GNEGenericDataFrame::AttributeSelector, GNEGenericDataFrame::DataSetSelector, GNEGenericDataFrame::IntervalSelector, GNEInspectorFrame::TemplateEditor, GNEMatchAttribute, GNEMatchGenericDataAttribute, GNEMeanDataFrame::MeanDataEditor, GNEMeanDataFrame::MeanDataSelector, GNEMeanDataFrame::MeanDataTypeSelector, GNEMoveFrame::ChangeZInSelection, GNEMoveFrame::CommonModeOptions, GNEMoveFrame::DemandModeOptions, GNEMoveFrame::Information, GNEMoveFrame::NetworkModeOptions, GNEMoveFrame::ShiftEdgeSelectedGeometry, GNEMoveFrame::ShiftShapeGeometry, GNENeteditAttributes, GNENetworkSelector, GNEOverlappedInspection, GNEPathCreator, GNEPathLegendModule, GNEPlanCreator, GNEPlanCreatorLegend, GNEPlanSelector, GNEProhibitionFrame::Legend, GNEProhibitionFrame::RelativeToConnection, GNEProhibitionFrame::Selection, GNERouteFrame::RouteModeSelector, GNESelectorFrame::Information, GNESelectorFrame::ModificationMode, GNESelectorFrame::SelectionHierarchy, GNESelectorFrame::SelectionInformation, GNESelectorFrame::SelectionOperation, GNESelectorFrame::VisualScaling, GNESelectorParent, GNEShapeFrame::GEOPOICreator, GNEStopFrame::HelpCreation, GNETAZFrame::CurrentTAZ, GNETAZFrame::TAZChildDefaultParameters, GNETAZFrame::TAZCommonStatistics, GNETAZFrame::TAZEdgesGraphic, GNETAZFrame::TAZParameters, GNETAZFrame::TAZSaveChanges, GNETAZFrame::TAZSelectionStatistics, GNETAZRelDataFrame::ConfirmTAZRelation, GNETAZRelDataFrame::Legend, GNETLSEditorFrame::TLSAttributes, GNETLSEditorFrame::TLSDefinition, GNETLSEditorFrame::TLSFile, GNETLSEditorFrame::TLSJunction, GNETLSEditorFrame::TLSPhases, GNETagSelector, GNETypeFrame::TypeEditor, GNETypeFrame::TypeSelector, and GNEVehicleFrame::HelpCreation.
Public Types | |
enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 , LOAD = 1 << 4 } |
GroupBoxModule options. More... | |
Public Member Functions | |
FXVerticalFrame * | getCollapsableFrame () |
get collapsable frame (used by all elements that will be collapsed if button is toggled) | |
MFXGroupBoxModule (FXVerticalFrame *contentFrame, const std::string &text, const int options=Options::NOTHING) | |
constructor for fix dialogs | |
MFXGroupBoxModule (GNEFrame *frame, const std::string &text, const int options=Options::COLLAPSIBLE) | |
constructor for frames | |
long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
collapse GroupBoxModule | |
long | onCmdExtendButton (FXObject *, FXSelector, void *) |
extends GroupBoxModule | |
long | onCmdLoadButton (FXObject *, FXSelector, void *) |
load contents | |
long | onCmdResetButton (FXObject *, FXSelector, void *) |
reset GroupBoxModule | |
long | onCmdSaveButton (FXObject *, FXSelector, void *) |
save contents | |
long | onPaint (FXObject *, FXSelector, void *) |
draw MFXGroupBoxModule | |
long | onUpdResetButton (FXObject *, FXSelector, void *) |
update reset GroupBoxModule | |
void | setText (const std::string &text) |
set text | |
~MFXGroupBoxModule () | |
destructor | |
Protected Member Functions | |
virtual bool | loadContents () const |
load contents (can be reimplemented in children) | |
MFXGroupBoxModule () | |
FOX need this. | |
virtual bool | saveContents () const |
save contents (can be reimplemented in children) | |
void | toggleSaveButton (const bool value) |
enable or disable save buttons | |
Private Attributes | |
FXVerticalFrame * | myCollapsableFrame = nullptr |
vertical collapsable frame | |
FXButton * | myCollapseButton = nullptr |
button for collapse elements | |
bool | myCollapsed |
flag to check if this groupbox is collapsed | |
MFXButtonTooltip * | myExtendButton = nullptr |
button for extend elements | |
GNEFrame * | myFrameParent = nullptr |
GNEFrame in which this GroupBox is placed. | |
FXLabel * | myLabel = nullptr |
label used in non collapsable MFXGroupBoxModule | |
FXButton * | myLoadButton = nullptr |
button for load elements | |
const int | myOptions |
GroupBoxModule options. | |
FXButton * | myResetWidthButton = nullptr |
button for reset frame width | |
FXButton * | mySaveButton = nullptr |
button for save elements | |
MFXGroupBoxModule (based on FXGroupBox)
Definition at line 33 of file MFXGroupBoxModule.h.
GroupBoxModule options.
Enumerator | |
---|---|
NOTHING | |
COLLAPSIBLE | |
EXTENSIBLE | |
SAVE | |
LOAD |
Definition at line 38 of file MFXGroupBoxModule.h.
MFXGroupBoxModule::MFXGroupBoxModule | ( | GNEFrame * | frame, |
const std::string & | text, | ||
const int | options = Options::COLLAPSIBLE |
||
) |
constructor for frames
Definition at line 60 of file MFXGroupBoxModule.cpp.
References GUIDesigns::buildFXButton(), COLLAPSE, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonMFXGroupBoxModule, GUIDesignButtonMFXGroupBoxModuleExtend, GUIDesignCollapsableFrame, GUIDesignLabelMFXGroupBoxModule, MID_GROUPBOXMODULE_COLLAPSE, MID_GROUPBOXMODULE_EXTEND, MID_GROUPBOXMODULE_LOAD, MID_GROUPBOXMODULE_RESETWIDTH, MID_GROUPBOXMODULE_SAVE, OPEN_NET, RESET, SAVE, and TL.
MFXGroupBoxModule::MFXGroupBoxModule | ( | FXVerticalFrame * | contentFrame, |
const std::string & | text, | ||
const int | options = Options::NOTHING |
||
) |
constructor for fix dialogs
Definition at line 89 of file MFXGroupBoxModule.cpp.
References GUIDesigns::buildFXButton(), COLLAPSE, COLLAPSIBLE, EXTENSIBLE, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonMFXGroupBoxModule, GUIDesignCollapsableFrame, GUIDesignLabelMFXGroupBoxModule, LOAD, MID_GROUPBOXMODULE_COLLAPSE, MID_GROUPBOXMODULE_LOAD, MID_GROUPBOXMODULE_SAVE, myCollapsableFrame, myCollapseButton, myLabel, myLoadButton, myOptions, mySaveButton, OPEN_NET, SAVE, and SAVE.
MFXGroupBoxModule::~MFXGroupBoxModule | ( | ) |
destructor
Definition at line 113 of file MFXGroupBoxModule.cpp.
|
protected |
FOX need this.
Definition at line 217 of file MFXGroupBoxModule.cpp.
FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame | ( | ) |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 123 of file MFXGroupBoxModule.cpp.
References myCollapsableFrame.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
|
protectedvirtual |
load contents (can be reimplemented in children)
Definition at line 231 of file MFXGroupBoxModule.cpp.
Referenced by onCmdLoadButton().
long MFXGroupBoxModule::onCmdCollapseButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
collapse GroupBoxModule
Definition at line 142 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
long MFXGroupBoxModule::onCmdExtendButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
extends GroupBoxModule
Definition at line 158 of file MFXGroupBoxModule.cpp.
References GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myCollapsableFrame, myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
long MFXGroupBoxModule::onCmdLoadButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
load contents
Definition at line 212 of file MFXGroupBoxModule.cpp.
References loadContents().
Referenced by FXDEFMAP().
long MFXGroupBoxModule::onCmdResetButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reset GroupBoxModule
Definition at line 184 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
long MFXGroupBoxModule::onCmdSaveButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
save contents
Definition at line 206 of file MFXGroupBoxModule.cpp.
References saveContents().
Referenced by FXDEFMAP().
long MFXGroupBoxModule::onPaint | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
draw MFXGroupBoxModule
Definition at line 129 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
long MFXGroupBoxModule::onUpdResetButton | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
update reset GroupBoxModule
Definition at line 193 of file MFXGroupBoxModule.cpp.
References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and myFrameParent.
Referenced by FXDEFMAP().
|
protectedvirtual |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.
Definition at line 224 of file MFXGroupBoxModule.cpp.
Referenced by onCmdSaveButton().
void MFXGroupBoxModule::setText | ( | const std::string & | text | ) |
set text
Definition at line 117 of file MFXGroupBoxModule.cpp.
References myLabel.
Referenced by GNETLSEditorFrame::TLSDefinition::onCmdDefSwitchTLSProgram(), GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
|
protected |
enable or disable save buttons
Definition at line 238 of file MFXGroupBoxModule.cpp.
References mySaveButton.
|
private |
vertical collapsable frame
Definition at line 103 of file MFXGroupBoxModule.h.
Referenced by getCollapsableFrame(), MFXGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().
|
private |
button for collapse elements
Definition at line 109 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), and onCmdCollapseButton().
|
private |
flag to check if this groupbox is collapsed
Definition at line 124 of file MFXGroupBoxModule.h.
Referenced by onCmdCollapseButton().
|
private |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
|
private |
GNEFrame in which this GroupBox is placed.
Definition at line 100 of file MFXGroupBoxModule.h.
Referenced by onCmdExtendButton(), onCmdResetButton(), and onUpdResetButton().
|
private |
label used in non collapsable MFXGroupBoxModule
Definition at line 106 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), and setText().
|
private |
button for load elements
Definition at line 121 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule().
|
private |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule().
|
private |
button for reset frame width
Definition at line 115 of file MFXGroupBoxModule.h.
|
private |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), and toggleSaveButton().