Eclipse SUMO - Simulation of Urban MObility
FXGroupBoxModule Class Reference

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.

Collaboration diagram for FXGroupBoxModule:

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...
 

Detailed Description

FXGroupBoxModule (based on FXGroupBox)

Definition at line 27 of file FXGroupBoxModule.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
SAVE 
LOAD 

Definition at line 32 of file FXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ FXGroupBoxModule() [1/2]

FXGroupBoxModule::FXGroupBoxModule ( FXVerticalFrame *  contentFrame,
const std::string &  text,
const int  options = Options::COLLAPSIBLE 
)

◆ ~FXGroupBoxModule()

FXGroupBoxModule::~FXGroupBoxModule ( )

destructor

Definition at line 72 of file FXGroupBoxModule.cpp.

◆ FXGroupBoxModule() [2/2]

FXGroupBoxModule::FXGroupBoxModule ( )
protected

FOX need this.

Definition at line 128 of file FXGroupBoxModule.cpp.

Member Function Documentation

◆ getCollapsableFrame()

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().

◆ loadContents()

bool FXGroupBoxModule::loadContents ( ) const
protectedvirtual

load contents (can be reimplemented in children)

Definition at line 142 of file FXGroupBoxModule.cpp.

Referenced by onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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().

Here is the caller graph for this function:

◆ onCmdLoadButton()

long FXGroupBoxModule::onCmdLoadButton ( FXObject *  ,
FXSelector  ,
void *   
)

load contents

Definition at line 123 of file FXGroupBoxModule.cpp.

References loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

long FXGroupBoxModule::onCmdSaveButton ( FXObject *  ,
FXSelector  ,
void *   
)

save contents

Definition at line 117 of file FXGroupBoxModule.cpp.

References saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long FXGroupBoxModule::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

draw FXGroupBoxModule

Definition at line 88 of file FXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ saveContents()

bool FXGroupBoxModule::saveContents ( ) const
protectedvirtual

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions.

Definition at line 135 of file FXGroupBoxModule.cpp.

Referenced by onCmdSaveButton().

Here is the caller graph for this function:

◆ setText()

void FXGroupBoxModule::setText ( const std::string &  text)

set text

Definition at line 76 of file FXGroupBoxModule.cpp.

References myLabel.

Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ toogleSaveButton()

void FXGroupBoxModule::toogleSaveButton ( const bool  value)
protected

enable or disable save buttons

Definition at line 149 of file FXGroupBoxModule.cpp.

References mySaveButton.

Field Documentation

◆ myCollapsableFrame

FXVerticalFrame* FXGroupBoxModule::myCollapsableFrame = nullptr
private

vertical collapsable frame

Definition at line 81 of file FXGroupBoxModule.h.

Referenced by getCollapsableFrame(), and onCmdCollapseButton().

◆ myCollapseButton

FXButton* FXGroupBoxModule::myCollapseButton = nullptr
private

button for collapse elements

Definition at line 87 of file FXGroupBoxModule.h.

Referenced by onCmdCollapseButton().

◆ myCollapsed

bool FXGroupBoxModule::myCollapsed
private

flag to check if this groupbox is collapsed

Definition at line 96 of file FXGroupBoxModule.h.

Referenced by onCmdCollapseButton().

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
private

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by setText().

◆ myLoadButton

FXButton* FXGroupBoxModule::myLoadButton = nullptr
private

button for load elements

Definition at line 93 of file FXGroupBoxModule.h.

◆ myOptions

const int FXGroupBoxModule::myOptions
private

GroupBoxModule options.

Definition at line 78 of file FXGroupBoxModule.h.

◆ mySaveButton

FXButton* FXGroupBoxModule::mySaveButton = nullptr
private

button for save elements

Definition at line 90 of file FXGroupBoxModule.h.

Referenced by toogleSaveButton().


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