Eclipse SUMO - Simulation of Urban MObility
GNEAdditionalFrame::SelectorChildLanes Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::SelectorChildLanes:
Collaboration diagram for GNEAdditionalFrame::SelectorChildLanes:

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::vector< std::string > getLaneIdsSelected () const
 get list of selecte lane ids in string format More...
 
void hideSelectorChildLanesModule ()
 hide SelectorChildLanes 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...
 
 SelectorChildLanes (GNEAdditionalFrame *additionalFrameParent)
 FOX-declaration. More...
 
void setText (const std::string &text)
 set text More...
 
void showSelectorChildLanesModule (std::string search="")
 Show list of SelectorChildLanes Module. More...
 
void updateUseSelectedLanes ()
 
 ~SelectorChildLanes ()
 destructor More...
 
FOX-callbacks

called when user trigger checkBox of useSelectedLanes

long onCmdUseSelectedLanes (FXObject *, FXSelector, void *)
 
long onCmdTypeInSearchBox (FXObject *, FXSelector, void *)
 called when user type in search box More...
 
long onCmdSelectLane (FXObject *, FXSelector, void *)
 called when user select a lane of the list More...
 
long onCmdClearSelection (FXObject *, FXSelector, void *)
 called when clear selection button is pressed More...
 
long onCmdInvertSelection (FXObject *, FXSelector, void *)
 called when invert selection button is pressed 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

FXButton * clearLanesSelection
 button for clear selection More...
 
FXButton * invertLanesSelection
 button for invert selection More...
 
GNEAdditionalFramemyAdditionalFrameParent
 pointer to additional frame parent More...
 
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...
 
FXTextField * myLanesSearch
 text field for search lane IDs More...
 
FXList * myList
 List of SelectorChildLanes. More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 
FXCheckButton * myUseSelectedLanesCheckButton
 CheckBox for selected lanes. More...
 

Detailed Description

Definition at line 186 of file GNEAdditionalFrame.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

◆ SelectorChildLanes()

◆ ~SelectorChildLanes()

GNEAdditionalFrame::SelectorChildLanes::~SelectorChildLanes ( )

destructor

Definition at line 486 of file GNEAdditionalFrame.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::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(), 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().

◆ getLaneIdsSelected()

std::vector< std::string > GNEAdditionalFrame::SelectorChildLanes::getLaneIdsSelected ( ) const

get list of selecte lane ids in string format

Definition at line 490 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes().

Here is the caller graph for this function:

◆ hideSelectorChildLanesModule()

void GNEAdditionalFrame::SelectorChildLanes::hideSelectorChildLanesModule ( )

hide SelectorChildLanes Module

Definition at line 528 of file GNEAdditionalFrame.cpp.

Referenced by SelectorChildLanes(), 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:

◆ onCmdClearSelection()

long GNEAdditionalFrame::SelectorChildLanes::onCmdClearSelection ( FXObject *  ,
FXSelector  ,
void *   
)

called when clear selection button is pressed

Definition at line 580 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), and FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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

collapse GroupBoxModule

Definition at line 101 of file FXGroupBoxModule.cpp.

References COLLAPSE, GUIIconSubSys::getIcon(), FXGroupBoxModule::myCollapsableFrame, FXGroupBoxModule::myCollapseButton, FXGroupBoxModule::myCollapsed, and UNCOLLAPSE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdInvertSelection()

long GNEAdditionalFrame::SelectorChildLanes::onCmdInvertSelection ( FXObject *  ,
FXSelector  ,
void *   
)

called when invert selection button is pressed

Definition at line 591 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 123 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 117 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectLane()

long GNEAdditionalFrame::SelectorChildLanes::onCmdSelectLane ( FXObject *  ,
FXSelector  ,
void *   
)

called when user select a lane of the list

Definition at line 574 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdTypeInSearchBox()

long GNEAdditionalFrame::SelectorChildLanes::onCmdTypeInSearchBox ( FXObject *  ,
FXSelector  ,
void *   
)

called when user type in search box

Definition at line 566 of file GNEAdditionalFrame.cpp.

References GNEAdditionalFrame::showSelectorChildLanesModule().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdUseSelectedLanes()

long GNEAdditionalFrame::SelectorChildLanes::onCmdUseSelectedLanes ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 545 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

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

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

◆ 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:

◆ showSelectorChildLanesModule()

void GNEAdditionalFrame::SelectorChildLanes::showSelectorChildLanesModule ( std::string  search = "")

Show list of SelectorChildLanes Module.

Definition at line 512 of file GNEAdditionalFrame.cpp.

References GNEAdditionalFrame::show().

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

◆ updateUseSelectedLanes()

void GNEAdditionalFrame::SelectorChildLanes::updateUseSelectedLanes ( )

Definition at line 534 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::showSelectorChildLanesModule().

Here is the caller graph for this function:

Field Documentation

◆ clearLanesSelection

FXButton* GNEAdditionalFrame::SelectorChildLanes::clearLanesSelection
private

button for clear selection

Definition at line 244 of file GNEAdditionalFrame.h.

Referenced by SelectorChildLanes().

◆ invertLanesSelection

FXButton* GNEAdditionalFrame::SelectorChildLanes::invertLanesSelection
private

button for invert selection

Definition at line 247 of file GNEAdditionalFrame.h.

Referenced by SelectorChildLanes().

◆ myAdditionalFrameParent

GNEAdditionalFrame* GNEAdditionalFrame::SelectorChildLanes::myAdditionalFrameParent
private

pointer to additional frame parent

Definition at line 232 of file GNEAdditionalFrame.h.

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

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myLanesSearch

FXTextField* GNEAdditionalFrame::SelectorChildLanes::myLanesSearch
private

text field for search lane IDs

Definition at line 241 of file GNEAdditionalFrame.h.

Referenced by SelectorChildLanes().

◆ myList

FXList* GNEAdditionalFrame::SelectorChildLanes::myList
private

List of SelectorChildLanes.

Definition at line 238 of file GNEAdditionalFrame.h.

Referenced by SelectorChildLanes().

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

◆ mySaveButton

FXButton* FXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 90 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::toogleSaveButton().

◆ myUseSelectedLanesCheckButton

FXCheckButton* GNEAdditionalFrame::SelectorChildLanes::myUseSelectedLanesCheckButton
private

CheckBox for selected lanes.

Definition at line 235 of file GNEAdditionalFrame.h.

Referenced by SelectorChildLanes().


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