![]() |
Eclipse SUMO - Simulation of Urban MObility
|
MFXGroupBoxModule (based on FXGroupBox) More...
#include <MFXGroupBoxModule.h>
Inherits FXVerticalFrame.
Inherited by GNEAdditionalFrame::E2MultilaneLegendModule, GNEAdditionalFrame::HelpCreationModule, GNEAttributesEditorType, 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, GNEElementTree, GNEFixElementsDialog< T >::FixOptions, GNEGenericDataFrame::AttributeSelector, GNEGenericDataFrame::DataSetSelector, GNEGenericDataFrame::IntervalSelector, GNEInspectorFrame::TemplateEditor, GNEMatchAttribute, GNEMeanDataFrame::MeanDataEditor, GNEMeanDataFrame::MeanDataSelector, GNEMeanDataFrame::MeanDataTypeSelector, GNEMoveFrame::ChangeZInSelection, GNEMoveFrame::CommonMoveOptions, GNEMoveFrame::DemandMoveOptions, GNEMoveFrame::Information, GNEMoveFrame::NetworkMoveOptions, GNEMoveFrame::ShiftEdgeSelectedGeometry, GNEMoveFrame::ShiftShapeGeometry, 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::TAZSaveChanges, GNETAZFrame::TAZSelectionStatistics, GNETAZRelDataFrame::ConfirmTAZRelation, GNETAZRelDataFrame::Legend, GNETLSEditorFrame::TLSAttributes, GNETLSEditorFrame::TLSFile, GNETLSEditorFrame::TLSJunction, GNETLSEditorFrame::TLSPhases, GNETLSEditorFrame::TLSPrograms, GNETagSelector, GNETypeFrame::TypeEditor, GNETypeFrame::TypeSelector, GNEVehicleFrame::HelpCreation, and GNEViewObjectSelector [protected].
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 92 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 116 of file MFXGroupBoxModule.cpp.
|
protected |
FOX need this.
Definition at line 220 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 126 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::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), 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::NetworkMoveOptions::NetworkMoveOptions(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNEAttributesEditorRow::showAttributeRow(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
|
protectedvirtual |
load contents (can be reimplemented in children)
Definition at line 234 of file MFXGroupBoxModule.cpp.
Referenced by onCmdLoadButton().
| long MFXGroupBoxModule::onCmdCollapseButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
collapse GroupBoxModule
Definition at line 145 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 161 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 215 of file MFXGroupBoxModule.cpp.
References loadContents().
Referenced by FXDEFMAP().
| long MFXGroupBoxModule::onCmdResetButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
reset GroupBoxModule
Definition at line 187 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 209 of file MFXGroupBoxModule.cpp.
References saveContents().
Referenced by FXDEFMAP().
| long MFXGroupBoxModule::onPaint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
draw MFXGroupBoxModule
Definition at line 132 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
| long MFXGroupBoxModule::onUpdResetButton | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
update reset GroupBoxModule
Definition at line 196 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 GNEFixElementsDialog< T >::FixOptions.
Definition at line 227 of file MFXGroupBoxModule.cpp.
Referenced by onCmdSaveButton().
| void MFXGroupBoxModule::setText | ( | const std::string & | text | ) |
set text
Definition at line 120 of file MFXGroupBoxModule.cpp.
References myLabel.
Referenced by GNETLSEditorFrame::TLSPrograms::onCmdDefSwitchTLSProgram(), GNEViewObjectSelector::showNetworkElementsSelector(), GNESelectorFrame::SelectionInformation::updateInformationLabel(), and GNETagSelector::updateTagTypes().
|
protected |
enable or disable save buttons
Definition at line 241 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().