![]() |
Eclipse SUMO - Simulation of Urban MObility
|
FXGroupBoxModule (based on FXGroupBox) More...
#include <FXGroupBoxModule.h>
Inherits FXVerticalFrame.
Inherited by GNEAdditionalFrame::E2MultilaneLaneSelector, GNEAdditionalFrame::SelectorChildEdges, GNEAdditionalFrame::SelectorChildLanes, GNEAdditionalFrame::SelectorParentLanes, GNEConnectorFrame::ConnectionModifications, GNEConnectorFrame::ConnectionOperations, GNEConnectorFrame::ConnectionSelection, GNEConnectorFrame::CurrentLane, GNEConnectorFrame::Legend, GNECreateEdgeFrame::EdgeTypeSelector, GNECreateEdgeFrame::LaneTypeSelector, GNECreateEdgeFrame::Legend, GNECrossingFrame::CreateCrossing, GNECrossingFrame::CrossingParameters, GNECrossingFrame::CurrentJunction, GNECrossingFrame::EdgesSelector, GNECrossingFrame::Information, GNEDeleteFrame::DeleteOptions, GNEDeleteFrame::ProtectElements, GNEElementSet, GNEFixAdditionalElements::ConsecutiveLaneOptions, GNEFixAdditionalElements::PositionOptions, GNEFixDemandElements::FixOptions, GNEFrameAttributeModules::AttributesCreator, GNEFrameAttributeModules::AttributesCreatorFlow, GNEFrameAttributeModules::AttributesEditor, GNEFrameAttributeModules::AttributesEditorExtended, GNEFrameAttributeModules::AttributesEditorFlow, GNEFrameAttributeModules::DrawingShape, GNEFrameAttributeModules::GenericDataAttributes, GNEFrameAttributeModules::NeteditAttributes, GNEFrameModules::DemandElementSelector, GNEFrameModules::DrawingShape, GNEFrameModules::HierarchicalElementTree, GNEFrameModules::OverlappedInspection, GNEFrameModules::PathCreator, GNEFrameModules::PathLegend, GNEFrameModules::SelectorParent, GNEFrameModules::TagSelector, GNEGenericDataFrame::AttributeSelector, GNEGenericDataFrame::DataSetSelector, GNEGenericDataFrame::IntervalSelector, GNEInspectorFrame::AdditionalDialog, GNEInspectorFrame::GEOAttributesEditor, GNEInspectorFrame::NeteditAttributesEditor, GNEInspectorFrame::ParametersEditor, GNEInspectorFrame::TemplateEditor, GNEMatchAttribute, GNEMatchGenericDataAttribute, GNEMoveFrame::ChangeZInSelection, GNEMoveFrame::CommonModeOptions, GNEMoveFrame::DemandModeOptions, GNEMoveFrame::NetworkModeOptions, GNEMoveFrame::ShiftEdgeSelectedGeometry, GNEMoveFrame::ShiftShapeGeometry, GNEPolygonFrame::GEOPOICreator, GNEProhibitionFrame::Legend, GNEProhibitionFrame::Modifications, GNEProhibitionFrame::RelativeToConnection, GNERouteFrame::RouteModeSelector, GNESelectorFrame::Information, GNESelectorFrame::ModificationMode, GNESelectorFrame::SelectionHierarchy, GNESelectorFrame::SelectionInformation, GNESelectorFrame::SelectionOperation, GNESelectorFrame::VisualScaling, GNEStopFrame::HelpCreation, GNETAZFrame::CurrentTAZ, GNETAZFrame::TAZChildDefaultParameters, GNETAZFrame::TAZCommonStatistics, GNETAZFrame::TAZEdgesGraphic, GNETAZFrame::TAZParameters, GNETAZFrame::TAZSaveChanges, GNETAZFrame::TAZSelectionStatistics, 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 , SAVE = 1 << 2 , LOAD = 1 << 3 } |
GroupBoxModule options. More... | |
Public Member Functions | |
FXGroupBoxModule (FXVerticalFrame *contentFrame, const std::string &text, const int options=Options::COLLAPSIBLE) | |
constructor More... | |
FXVerticalFrame * | getCollapsableFrame () |
get collapsable frame (used by all elements that will be collapsed if button is toogled) More... | |
long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
collapse GroupBoxModule More... | |
long | onCmdLoadButton (FXObject *, FXSelector, void *) |
load contents More... | |
long | onCmdSaveButton (FXObject *, FXSelector, void *) |
save contents More... | |
long | onPaint (FXObject *, FXSelector, void *) |
draw FXGroupBoxModule 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 | toogleSaveButton (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... | |
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 * | mySaveButton = nullptr |
button for save elements More... | |
FXGroupBoxModule (based on FXGroupBox)
Definition at line 27 of file FXGroupBoxModule.h.
GroupBoxModule options.
Enumerator | |
---|---|
NOTHING | |
COLLAPSIBLE | |
SAVE | |
LOAD |
Definition at line 32 of file FXGroupBoxModule.h.
FXGroupBoxModule::FXGroupBoxModule | ( | FXVerticalFrame * | contentFrame, |
const std::string & | text, | ||
const int | options = Options::COLLAPSIBLE |
||
) |
constructor
Definition at line 51 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonFXGroupBoxModule, GUIDesignCollapsableFrame, GUIDesignLabelFXGroupBoxModule, MID_GROUPBOXMODULE_COLLAPSE, MID_GROUPBOXMODULE_LOAD, MID_GROUPBOXMODULE_SAVE, OPEN_NET, and SAVE.
FXGroupBoxModule::~FXGroupBoxModule | ( | ) |
destructor
Definition at line 72 of file FXGroupBoxModule.cpp.
|
protected |
FOX need this.
Definition at line 128 of file FXGroupBoxModule.cpp.
FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame | ( | ) |
get collapsable frame (used by all elements that will be collapsed if button is toogled)
Definition at line 82 of file FXGroupBoxModule.cpp.
References myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesCreatorFlow::AttributesCreatorFlow(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEFrameAttributeModules::AttributesEditorFlow::AttributesEditorFlow(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNEFrameModules::DrawingShape::DrawingShape(), GNEAdditionalFrame::E2MultilaneLaneSelector::E2MultilaneLaneSelector(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEFrameModules::HierarchicalElementTree::HierarchicalElementTree(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributeModules::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEFrameModules::PathCreator::PathCreator(), GNEFrameModules::PathLegend::PathLegend(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEAdditionalFrame::SelectorChildEdges::SelectorChildEdges(), GNEAdditionalFrame::SelectorChildLanes::SelectorChildLanes(), GNEFrameModules::SelectorParent::SelectorParent(), 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 142 of file FXGroupBoxModule.cpp.
Referenced by onCmdLoadButton().
long FXGroupBoxModule::onCmdCollapseButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
collapse GroupBoxModule
Definition at line 101 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
long FXGroupBoxModule::onCmdLoadButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
load contents
Definition at line 123 of file FXGroupBoxModule.cpp.
References loadContents().
Referenced by FXDEFMAP().
long FXGroupBoxModule::onCmdSaveButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
save contents
Definition at line 117 of file FXGroupBoxModule.cpp.
References saveContents().
Referenced by FXDEFMAP().
long FXGroupBoxModule::onPaint | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
draw FXGroupBoxModule
Definition at line 88 of file FXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
protectedvirtual |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions.
Definition at line 135 of file FXGroupBoxModule.cpp.
Referenced by onCmdSaveButton().
void FXGroupBoxModule::setText | ( | const std::string & | text | ) |
set text
Definition at line 76 of file FXGroupBoxModule.cpp.
References myLabel.
Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().
|
protected |
enable or disable save buttons
Definition at line 149 of file FXGroupBoxModule.cpp.
References mySaveButton.
|
private |
vertical collapsable frame
Definition at line 81 of file FXGroupBoxModule.h.
Referenced by getCollapsableFrame(), and onCmdCollapseButton().
|
private |
button for collapse elements
Definition at line 87 of file FXGroupBoxModule.h.
Referenced by onCmdCollapseButton().
|
private |
flag to check if this groupbox is collapsed
Definition at line 96 of file FXGroupBoxModule.h.
Referenced by onCmdCollapseButton().
|
private |
label used in non collapsable FXGroupBoxModule
Definition at line 84 of file FXGroupBoxModule.h.
Referenced by setText().
|
private |
button for load elements
Definition at line 93 of file FXGroupBoxModule.h.
|
private |
GroupBoxModule options.
Definition at line 78 of file FXGroupBoxModule.h.
|
private |
button for save elements
Definition at line 90 of file FXGroupBoxModule.h.
Referenced by toogleSaveButton().