Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MFXGroupBoxModule Class Reference

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.

Collaboration diagram for MFXGroupBoxModule:
[legend]

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
 
MFXButtonTooltipmyExtendButton = nullptr
 button for extend elements
 
GNEFramemyFrameParent = 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
 

Detailed Description

MFXGroupBoxModule (based on FXGroupBox)

Definition at line 33 of file MFXGroupBoxModule.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ MFXGroupBoxModule() [1/3]

◆ MFXGroupBoxModule() [2/3]

◆ ~MFXGroupBoxModule()

MFXGroupBoxModule::~MFXGroupBoxModule ( )

destructor

Definition at line 113 of file MFXGroupBoxModule.cpp.

◆ MFXGroupBoxModule() [3/3]

MFXGroupBoxModule::MFXGroupBoxModule ( )
protected

FOX need this.

Definition at line 217 of file MFXGroupBoxModule.cpp.

Member Function Documentation

◆ getCollapsableFrame()

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

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtual

load contents (can be reimplemented in children)

Definition at line 231 of file MFXGroupBoxModule.cpp.

Referenced by onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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

Here is the caller graph for this function:

◆ onCmdExtendButton()

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

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 212 of file MFXGroupBoxModule.cpp.

References loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetButton()

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

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 206 of file MFXGroupBoxModule.cpp.

References saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

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

draw MFXGroupBoxModule

Definition at line 129 of file MFXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

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

Here is the caller graph for this function:

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
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().

Here is the caller graph for this function:

◆ setText()

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

Here is the caller graph for this function:

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool  value)
protected

enable or disable save buttons

Definition at line 238 of file MFXGroupBoxModule.cpp.

References mySaveButton.

Field Documentation

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
private

vertical collapsable frame

Definition at line 103 of file MFXGroupBoxModule.h.

Referenced by getCollapsableFrame(), MFXGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
private

button for collapse elements

Definition at line 109 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), and onCmdCollapseButton().

◆ myCollapsed

bool MFXGroupBoxModule::myCollapsed
private

flag to check if this groupbox is collapsed

Definition at line 124 of file MFXGroupBoxModule.h.

Referenced by onCmdCollapseButton().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
private

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

◆ myFrameParent

GNEFrame* MFXGroupBoxModule::myFrameParent = nullptr
private

GNEFrame in which this GroupBox is placed.

Definition at line 100 of file MFXGroupBoxModule.h.

Referenced by onCmdExtendButton(), onCmdResetButton(), and onUpdResetButton().

◆ myLabel

FXLabel* MFXGroupBoxModule::myLabel = nullptr
private

label used in non collapsable MFXGroupBoxModule

Definition at line 106 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), and setText().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
private

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
private

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
private

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
private

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), and toggleSaveButton().


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