Eclipse SUMO - Simulation of Urban MObility
GNEFrameModules::SelectorParent Class Reference

#include <GNEFrameModules.h>

Inheritance diagram for GNEFrameModules::SelectorParent:
[legend]
Collaboration diagram for GNEFrameModules::SelectorParent:
[legend]

Public Types

enum  Options { NOTHING = 1 << 0, COLLAPSIBLE = 1 << 1, SAVE = 1 << 2, LOAD = 1 << 3 }
 GroupBoxModule options. More...
 

Public Member Functions

FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toogled) More...
 
std::string getIdSelected () const
 get currently parent additional selected More...
 
void hideSelectorParentModule ()
 hide SelectorParent Module 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 refreshSelectorParentModule ()
 Refresh list of Additional Parents Module. More...
 
 SelectorParent (GNEFrame *frameParent)
 constructor More...
 
void setIDSelected (const std::string &id)
 select manually a element of the list More...
 
void setText (const std::string &text)
 set text More...
 
void showSelectorParentModule (const std::vector< SumoXMLTag > &parentTags)
 Show list of SelectorParent Module. More...
 
 ~SelectorParent ()
 destructor More...
 

Protected Member Functions

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...
 
GNEFramemyFrameParent
 pointer to Frame Parent 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...
 
FXLabel * myParentsLabel
 Label with parent name. More...
 
FXList * myParentsList
 List of parents. More...
 
std::vector< SumoXMLTagmyParentTags
 current parent additional tag More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 

Detailed Description

Definition at line 404 of file GNEFrameModules.h.

Member Enumeration Documentation

◆ Options

enum FXGroupBoxModule::Options
inherited

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
SAVE 
LOAD 

Definition at line 32 of file FXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ SelectorParent()

GNEFrameModules::SelectorParent::SelectorParent ( GNEFrame frameParent)

◆ ~SelectorParent()

GNEFrameModules::SelectorParent::~SelectorParent ( )

destructor

Definition at line 1876 of file GNEFrameModules.cpp.

Member Function Documentation

◆ getCollapsableFrame()

FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame ( )
inherited

get collapsable frame (used by all elements that will be collapsed if button is toogled)

Definition at line 82 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myCollapsableFrame.

Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECommonNetworkModules::ConsecutiveLaneSelector::ConsecutiveLaneSelector(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameModules::DrawingShape::DrawingShape(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::FlowEditor::FlowEditor(), 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(), GNETAZRelDataFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::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(), 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().

◆ getIdSelected()

std::string GNEFrameModules::SelectorParent::getIdSelected ( ) const

get currently parent additional selected

Definition at line 1880 of file GNEFrameModules.cpp.

Referenced by GNEAdditionalFrame::createBaseAdditionalObject(), and GNEWireFrame::createBaseWireObject().

Here is the caller graph for this function:

◆ hideSelectorParentModule()

void GNEFrameModules::SelectorParent::hideSelectorParentModule ( )

hide SelectorParent Module

Definition at line 1922 of file GNEFrameModules.cpp.

Referenced by SelectorParent(), GNEWireFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ loadContents()

bool FXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 142 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

long FXGroupBoxModule::onCmdCollapseButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

◆ onCmdLoadButton()

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

load contents

Definition at line 123 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::loadContents().

◆ onCmdSaveButton()

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

save contents

Definition at line 117 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::saveContents().

◆ onPaint()

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

draw FXGroupBoxModule

Definition at line 88 of file FXGroupBoxModule.cpp.

◆ refreshSelectorParentModule()

void GNEFrameModules::SelectorParent::refreshSelectorParentModule ( )

Refresh list of Additional Parents Module.

Definition at line 1929 of file GNEFrameModules.cpp.

References GNEAttributeCarrier::getTagProperty().

Referenced by GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEWireFrame::buildWireOverView(), GNEWireFrame::createPath(), and GNEAdditionalFrame::createPath().

Here is the caller graph for this function:

◆ saveContents()

bool FXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions.

Definition at line 135 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setIDSelected()

void GNEFrameModules::SelectorParent::setIDSelected ( const std::string &  id)

select manually a element of the list

Definition at line 1891 of file GNEFrameModules.cpp.

Referenced by GNEAdditionalFrame::createBaseAdditionalObject(), and GNEWireFrame::createBaseWireObject().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 76 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myLabel.

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

Here is the caller graph for this function:

◆ showSelectorParentModule()

void GNEFrameModules::SelectorParent::showSelectorParentModule ( const std::vector< SumoXMLTag > &  parentTags)

Show list of SelectorParent Module.

Definition at line 1908 of file GNEFrameModules.cpp.

References toString().

Referenced by GNEWireFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ toogleSaveButton()

void FXGroupBoxModule::toogleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 149 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::mySaveButton.

Field Documentation

◆ myCollapsableFrame

FXVerticalFrame* FXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 81 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapseButton

FXButton* FXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 87 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool FXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 96 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myFrameParent

GNEFrame* GNEFrameModules::SelectorParent::myFrameParent
private

pointer to Frame Parent

Definition at line 429 of file GNEFrameModules.h.

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myLoadButton

FXButton* FXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 93 of file FXGroupBoxModule.h.

◆ myOptions

const int FXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 78 of file FXGroupBoxModule.h.

◆ myParentsLabel

FXLabel* GNEFrameModules::SelectorParent::myParentsLabel
private

Label with parent name.

Definition at line 435 of file GNEFrameModules.h.

Referenced by SelectorParent().

◆ myParentsList

FXList* GNEFrameModules::SelectorParent::myParentsList
private

List of parents.

Definition at line 438 of file GNEFrameModules.h.

Referenced by SelectorParent().

◆ myParentTags

std::vector<SumoXMLTag> GNEFrameModules::SelectorParent::myParentTags
private

current parent additional tag

Definition at line 432 of file GNEFrameModules.h.

◆ mySaveButton

FXButton* FXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 90 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::toogleSaveButton().


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