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

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::SelectorChildEdges:
Collaboration diagram for GNEAdditionalFrame::SelectorChildEdges:

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 > getEdgeIdsSelected () const
 get list of selecte id's in string format More...
 
void hideSelectorChildEdgesModule ()
 hide SelectorChildEdges 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...
 
 SelectorChildEdges (GNEAdditionalFrame *additionalFrameParent)
 FOX-declaration. More...
 
void setText (const std::string &text)
 set text More...
 
void showSelectorChildEdgesModule (std::string search="")
 Show SelectorChildEdges Module. More...
 
void updateUseSelectedEdges ()
 Update use selectedEdges. More...
 
 ~SelectorChildEdges ()
 destructor More...
 
FOX-callbacks

called when user trigger checkBox of useSelectedEdges

long onCmdUseSelectedEdges (FXObject *, FXSelector, void *)
 
long onCmdTypeInSearchBox (FXObject *, FXSelector, void *)
 called when user type in search box More...
 
long onCmdSelectEdge (FXObject *, FXSelector, void *)
 called when user select a edge 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

GNEAdditionalFramemyAdditionalFrameParent
 pointer to additional frame parent More...
 
FXButton * myClearEdgesSelection
 button for clear selection 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...
 
FXTextField * myEdgesSearch
 text field for search edge IDs More...
 
FXButton * myInvertEdgesSelection
 button for invert selection More...
 
FXLabel * myLabel = nullptr
 label used in non collapsable FXGroupBoxModule More...
 
FXList * myList
 List of SelectorChildEdges. More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 
FXCheckButton * myUseSelectedEdgesCheckButton
 CheckBox for selected edges. More...
 

Detailed Description

Definition at line 118 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

◆ SelectorChildEdges()

◆ ~SelectorChildEdges()

GNEAdditionalFrame::SelectorChildEdges::~SelectorChildEdges ( )

destructor

Definition at line 334 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(), 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().

◆ getEdgeIdsSelected()

std::vector< std::string > GNEAdditionalFrame::SelectorChildEdges::getEdgeIdsSelected ( ) const

get list of selecte id's in string format

Definition at line 338 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes().

Here is the caller graph for this function:

◆ hideSelectorChildEdgesModule()

void GNEAdditionalFrame::SelectorChildEdges::hideSelectorChildEdgesModule ( )

hide SelectorChildEdges Module

Definition at line 382 of file GNEAdditionalFrame.cpp.

Referenced by SelectorChildEdges(), 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::SelectorChildEdges::onCmdClearSelection ( FXObject *  ,
FXSelector  ,
void *   
)

called when clear selection button is pressed

Definition at line 434 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::SelectorChildEdges::onCmdInvertSelection ( FXObject *  ,
FXSelector  ,
void *   
)

called when invert selection button is pressed

Definition at line 445 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:

◆ onCmdSelectEdge()

long GNEAdditionalFrame::SelectorChildEdges::onCmdSelectEdge ( FXObject *  ,
FXSelector  ,
void *   
)

called when user select a edge of the list

Definition at line 428 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdTypeInSearchBox()

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

called when user type in search box

Definition at line 420 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdUseSelectedEdges()

long GNEAdditionalFrame::SelectorChildEdges::onCmdUseSelectedEdges ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 399 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:

◆ showSelectorChildEdgesModule()

void GNEAdditionalFrame::SelectorChildEdges::showSelectorChildEdgesModule ( std::string  search = "")

Show SelectorChildEdges Module.

Definition at line 360 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.

◆ updateUseSelectedEdges()

void GNEAdditionalFrame::SelectorChildEdges::updateUseSelectedEdges ( )

Update use selectedEdges.

Definition at line 388 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::showSelectorChildLanesModule().

Here is the caller graph for this function:

Field Documentation

◆ myAdditionalFrameParent

GNEAdditionalFrame* GNEAdditionalFrame::SelectorChildEdges::myAdditionalFrameParent
private

pointer to additional frame parent

Definition at line 164 of file GNEAdditionalFrame.h.

◆ myClearEdgesSelection

FXButton* GNEAdditionalFrame::SelectorChildEdges::myClearEdgesSelection
private

button for clear selection

Definition at line 176 of file GNEAdditionalFrame.h.

Referenced by SelectorChildEdges().

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

◆ myEdgesSearch

FXTextField* GNEAdditionalFrame::SelectorChildEdges::myEdgesSearch
private

text field for search edge IDs

Definition at line 173 of file GNEAdditionalFrame.h.

Referenced by SelectorChildEdges().

◆ myInvertEdgesSelection

FXButton* GNEAdditionalFrame::SelectorChildEdges::myInvertEdgesSelection
private

button for invert selection

Definition at line 179 of file GNEAdditionalFrame.h.

Referenced by SelectorChildEdges().

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myList

FXList* GNEAdditionalFrame::SelectorChildEdges::myList
private

List of SelectorChildEdges.

Definition at line 170 of file GNEAdditionalFrame.h.

Referenced by SelectorChildEdges().

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

◆ myUseSelectedEdgesCheckButton

FXCheckButton* GNEAdditionalFrame::SelectorChildEdges::myUseSelectedEdgesCheckButton
private

CheckBox for selected edges.

Definition at line 167 of file GNEAdditionalFrame.h.

Referenced by SelectorChildEdges().


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