![]() |
Eclipse SUMO - Simulation of Urban MObility
|
FXGroupBoxModule (based on FXGroupBox) More...
#include <FXGroupBoxModule.h>
Inherits FXVerticalFrame.
Inherited by DemandElementSelector, GNEAttributesCreator, GNEConnectorFrame::ConnectionModifications, GNEConnectorFrame::ConnectionOperations, GNEConnectorFrame::ConnectionSelection, GNEConnectorFrame::CurrentLane, GNEConnectorFrame::Legend, GNEConsecutiveSelector, GNECreateEdgeFrame::EdgeTypeSelector, GNECreateEdgeFrame::LaneTypeSelector, GNECreateEdgeFrame::Legend, GNECrossingFrame::CreateCrossing, GNECrossingFrame::CrossingParameters, GNECrossingFrame::CurrentJunction, GNECrossingFrame::EdgesSelector, GNECrossingFrame::Information, GNEDeleteFrame::DeleteOptions, GNEDeleteFrame::ProtectElements, GNEDrawingShape, GNEElementSet, GNEElementTree, GNEFixAdditionalElements::ConsecutiveLaneOptions, GNEFixAdditionalElements::PositionOptions, GNEFixDemandElements::FixOptions, GNEFixNetworkElements::FixOptions, GNEFlowEditor, GNEFrameAttributeModules::AttributesEditor, GNEFrameAttributeModules::AttributesEditorExtended, GNEFrameAttributeModules::GenericDataAttributes, GNEGenericDataFrame::AttributeSelector, GNEGenericDataFrame::DataSetSelector, GNEGenericDataFrame::IntervalSelector, GNEInspectorFrame::AdditionalDialog, GNEInspectorFrame::GEOAttributesEditor, GNEInspectorFrame::NeteditAttributesEditor, GNEInspectorFrame::ParametersEditor, GNEInspectorFrame::TemplateEditor, GNEM_PathLegend, GNEMatchAttribute, GNEMatchGenericDataAttribute, GNEMoveFrame::ChangeZInSelection, GNEMoveFrame::CommonModeOptions, GNEMoveFrame::DemandModeOptions, GNEMoveFrame::NetworkModeOptions, GNEMoveFrame::ShiftEdgeSelectedGeometry, GNEMoveFrame::ShiftShapeGeometry, GNENeteditAttributes, GNENetworkSelector, GNEOverlappedInspection, GNEPathCreator, GNEProhibitionFrame::Legend, GNEProhibitionFrame::Modifications, GNEProhibitionFrame::RelativeToConnection, GNERouteFrame::RouteModeSelector, GNESelectorFrame::Information, GNESelectorFrame::ModificationMode, GNESelectorFrame::SelectionHierarchy, GNESelectorFrame::SelectionInformation, GNESelectorFrame::SelectionOperation, GNESelectorFrame::VisualScaling, GNESelectorParent, GNEShapeFrame::GEOPOICreator, GNEStopFrame::HelpCreation, GNETagSelector, 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::TLSModifications, GNETLSEditorFrame::TLSPhases, 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 | |
| FXGroupBoxModule (FXVerticalFrame *contentFrame, const std::string &text, const int options=Options::NOTHING) | |
| constructor for fix dialogs More... | |
| FXGroupBoxModule (GNEFrame *frame, const std::string &text, const int options=Options::COLLAPSIBLE) | |
| constructor for frames More... | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toggled) More... | |
| long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
| collapse GroupBoxModule More... | |
| long | onCmdExtendButton (FXObject *, FXSelector, void *) |
| extends GroupBoxModule More... | |
| long | onCmdLoadButton (FXObject *, FXSelector, void *) |
| load contents More... | |
| long | onCmdResetButton (FXObject *, FXSelector, void *) |
| reset GroupBoxModule More... | |
| long | onCmdSaveButton (FXObject *, FXSelector, void *) |
| save contents More... | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw FXGroupBoxModule More... | |
| long | onUpdResetButton (FXObject *, FXSelector, void *) |
| update reset GroupBoxModule More... | |
| void | setText (const std::string &text) |
| set text More... | |
| ~FXGroupBoxModule () | |
| destructor More... | |
Protected Member Functions | |
| FXGroupBoxModule () | |
| FOX need this. More... | |
| virtual bool | loadContents () const |
| load contents (can be reimplemented in children) More... | |
| virtual bool | saveContents () const |
| save contents (can be reimplemented in children) More... | |
| void | toggleSaveButton (const bool value) |
| enable or disable save buttons More... | |
Private Attributes | |
| FXVerticalFrame * | myCollapsableFrame = nullptr |
| vertical collapsable frame More... | |
| FXButton * | myCollapseButton = nullptr |
| button for collapse elements More... | |
| bool | myCollapsed |
| flag to check if this groupbox is collapsed More... | |
| FXButton * | myExtendButton = nullptr |
| button for extend elements More... | |
| GNEFrame * | myFrameParent = nullptr |
| GNEFrame in which this GroupBox is placed. More... | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable FXGroupBoxModule More... | |
| FXButton * | myLoadButton = nullptr |
| button for load elements More... | |
| const int | myOptions |
| GroupBoxModule options. More... | |
| FXButton * | myResetWidthButton = nullptr |
| button for reset frame width More... | |
| FXButton * | mySaveButton = nullptr |
| button for save elements More... | |
FXGroupBoxModule (based on FXGroupBox)
Definition at line 30 of file FXGroupBoxModule.h.
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 35 of file FXGroupBoxModule.h.
| FXGroupBoxModule::FXGroupBoxModule | ( | GNEFrame * | frame, |
| const std::string & | text, | ||
| const int | options = Options::COLLAPSIBLE |
||
| ) |
constructor for frames
Definition at line 57 of file FXGroupBoxModule.cpp.
References COLLAPSE, EXTEND, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonFXGroupBoxModule, GUIDesignCollapsableFrame, GUIDesignLabelFXGroupBoxModule, MID_GROUPBOXMODULE_COLLAPSE, MID_GROUPBOXMODULE_EXTEND, MID_GROUPBOXMODULE_LOAD, MID_GROUPBOXMODULE_RESETWIDTH, MID_GROUPBOXMODULE_SAVE, OPEN_NET, RESET, and SAVE.
| FXGroupBoxModule::FXGroupBoxModule | ( | FXVerticalFrame * | contentFrame, |
| const std::string & | text, | ||
| const int | options = Options::NOTHING |
||
| ) |
constructor for fix dialogs
Definition at line 83 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonFXGroupBoxModule, GUIDesignCollapsableFrame, GUIDesignLabelFXGroupBoxModule, MID_GROUPBOXMODULE_COLLAPSE, MID_GROUPBOXMODULE_LOAD, MID_GROUPBOXMODULE_SAVE, myCollapsableFrame, myCollapseButton, myLabel, myLoadButton, myOptions, mySaveButton, OPEN_NET, and SAVE.
| FXGroupBoxModule::~FXGroupBoxModule | ( | ) |
destructor
Definition at line 107 of file FXGroupBoxModule.cpp.
|
protected |
FOX need this.
Definition at line 206 of file FXGroupBoxModule.cpp.
| FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame | ( | ) |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 117 of file FXGroupBoxModule.cpp.
References myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEDeleteFrame::DeleteOptions::DeleteOptions(), DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEM_PathLegend::GNEM_PathLegend(), GNEPathCreator::GNEPathCreator(), GNESelectorParent::GNESelectorParent(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEStopFrame::HelpCreation::HelpCreation(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNETAZRelDataFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNENeteditAttributes::onCmdHelp(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), 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(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
|
protectedvirtual |
load contents (can be reimplemented in children)
Definition at line 220 of file FXGroupBoxModule.cpp.
Referenced by onCmdLoadButton().
| long FXGroupBoxModule::onCmdCollapseButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
collapse GroupBoxModule
Definition at line 136 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.
| long FXGroupBoxModule::onCmdExtendButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
extends GroupBoxModule
Definition at line 152 of file FXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myFrameParent, and GNEViewParent::setFrameAreaWith().
| long FXGroupBoxModule::onCmdLoadButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
| long FXGroupBoxModule::onCmdResetButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
reset GroupBoxModule
Definition at line 173 of file FXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myFrameParent, and GNEViewParent::setFrameAreaWith().
| long FXGroupBoxModule::onCmdSaveButton | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
| long FXGroupBoxModule::onPaint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
draw FXGroupBoxModule
Definition at line 123 of file FXGroupBoxModule.cpp.
| long FXGroupBoxModule::onUpdResetButton | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
update reset GroupBoxModule
Definition at line 182 of file FXGroupBoxModule.cpp.
References GNEViewParent::getFrameAreaWith(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and myFrameParent.
|
protectedvirtual |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.
Definition at line 213 of file FXGroupBoxModule.cpp.
Referenced by onCmdSaveButton().
| void FXGroupBoxModule::setText | ( | const std::string & | text | ) |
set text
Definition at line 111 of file FXGroupBoxModule.cpp.
References myLabel.
Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
|
protected |
enable or disable save buttons
Definition at line 227 of file FXGroupBoxModule.cpp.
References mySaveButton.
|
private |
vertical collapsable frame
Definition at line 100 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule(), getCollapsableFrame(), and onCmdCollapseButton().
|
private |
button for collapse elements
Definition at line 106 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule(), and onCmdCollapseButton().
|
private |
flag to check if this groupbox is collapsed
Definition at line 121 of file FXGroupBoxModule.h.
Referenced by onCmdCollapseButton().
|
private |
button for extend elements
Definition at line 109 of file FXGroupBoxModule.h.
|
private |
GNEFrame in which this GroupBox is placed.
Definition at line 97 of file FXGroupBoxModule.h.
Referenced by onCmdExtendButton(), onCmdResetButton(), and onUpdResetButton().
|
private |
label used in non collapsable FXGroupBoxModule
Definition at line 103 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule(), and setText().
|
private |
button for load elements
Definition at line 118 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule().
|
private |
GroupBoxModule options.
Definition at line 94 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule().
|
private |
button for reset frame width
Definition at line 112 of file FXGroupBoxModule.h.
|
private |
button for save elements
Definition at line 115 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule(), and toggleSaveButton().