Eclipse SUMO - Simulation of Urban MObility
GNEFrameAttributeModules::NeteditAttributes Class Reference

#include <GNEFrameAttributeModules.h>

Inheritance diagram for GNEFrameAttributeModules::NeteditAttributes:
[legend]
Collaboration diagram for GNEFrameAttributeModules::NeteditAttributes:
[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...
 
bool getNeteditAttributesAndValues (CommonXMLStructure::SumoBaseObject *baseObject, const GNELane *lane) const
 fill valuesMap with netedit attributes More...
 
void hideNeteditAttributesModule ()
 hide Netedit attributes modul More...
 
 NeteditAttributes (GNEFrame *frameParent)
 FOX-declaration. 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...
 
void showNeteditAttributesModule (const GNETagProperties &tagValue)
 show Netedit attributes modul More...
 
 ~NeteditAttributes ()
 destructor More...
 
FOX-callbacks

Called when user changes some element of NeteditAttributes

long onCmdSetNeteditAttribute (FXObject *, FXSelector, void *)
 
long onCmdHelp (FXObject *, FXSelector, void *)
 Called when user press the help button. 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 Types

enum  AdditionalReferencePoint { AdditionalReferencePoint::LEFT, AdditionalReferencePoint::RIGHT, AdditionalReferencePoint::CENTER, AdditionalReferencePoint::INVALID }
 list of the reference points More...
 

Private Member Functions

double setEndPosition (double positionOfTheMouseOverLane, double lengthOfAdditional) const
 obtain the End position values of StoppingPlaces and E2 detector over the lane More...
 
double setStartPosition (double positionOfTheMouseOverLane, double lengthOfAdditional) const
 obtain the Start position values of StoppingPlaces and E2 detector over the lane More...
 

Private Attributes

FXButton * helpReferencePoint
 Button for help about the reference point. More...
 
AdditionalReferencePoint myActualAdditionalReferencePoint
 actual additional reference point selected in the match Box More...
 
FXCheckButton * myCenterViewAfterCreationButton
 checkbox to enable/disable center element after creation More...
 
FXHorizontalFrame * myCenterViewAfterCreationFrame
 horizontal frame for center view after creation frame More...
 
FXCheckButton * myCloseShapeCheckButton
 checkbox to enable/disable close polygon More...
 
FXHorizontalFrame * myCloseShapeFrame
 horizontal frame for close polygon 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...
 
bool myCurrentLengthValid
 Flag to check if current length is valid. More...
 
GNEFramemyFrameParent
 pointer to frame parent More...
 
FXLabel * myLabel = nullptr
 label used in non collapsable FXGroupBoxModule More...
 
FXHorizontalFrame * myLengthFrame
 horizontal frame for length More...
 
FXTextField * myLengthTextField
 textField for length More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
FXComboBox * myReferencePointMatchBox
 match box with the list of reference points More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 

Detailed Description

Definition at line 554 of file GNEFrameAttributeModules.h.

Member Enumeration Documentation

◆ AdditionalReferencePoint

list of the reference points

Enumerator
LEFT 
RIGHT 
CENTER 
INVALID 

Definition at line 588 of file GNEFrameAttributeModules.h.

◆ Options

enum FXGroupBoxModule::Options
inherited

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
SAVE 
LOAD 

Definition at line 32 of file FXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ NeteditAttributes()

◆ ~NeteditAttributes()

GNEFrameAttributeModules::NeteditAttributes::~NeteditAttributes ( )

destructor

Definition at line 2214 of file GNEFrameAttributeModules.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(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::FlowEditor::FlowEditor(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEM_PathLegend::GNEM_PathLegend(), GNEPathCreator::GNEPathCreator(), GNESelectorParent::GNESelectorParent(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEStopFrame::HelpCreation::HelpCreation(), 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(), NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), 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(), 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().

◆ getNeteditAttributesAndValues()

bool GNEFrameAttributeModules::NeteditAttributes::getNeteditAttributesAndValues ( CommonXMLStructure::SumoBaseObject baseObject,
const GNELane lane 
) const

◆ hideNeteditAttributesModule()

void GNEFrameAttributeModules::NeteditAttributes::hideNeteditAttributesModule ( )

hide Netedit attributes modul

Definition at line 2255 of file GNEFrameAttributeModules.cpp.

Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEStopFrame::show(), GNEPersonFrame::tagSelected(), GNEContainerFrame::tagSelected(), GNEWireFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEStopFrame::tagSelected(), and GNEShapeFrame::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

◆ onCmdHelp()

long GNEFrameAttributeModules::NeteditAttributes::onCmdHelp ( FXObject *  ,
FXSelector  ,
void *   
)

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

◆ onCmdSetNeteditAttribute()

long GNEFrameAttributeModules::NeteditAttributes::onCmdSetNeteditAttribute ( FXObject *  obj,
FXSelector  ,
void *   
)

Definition at line 2302 of file GNEFrameAttributeModules.cpp.

◆ onPaint()

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

draw FXGroupBoxModule

Definition at line 88 of file FXGroupBoxModule.cpp.

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

◆ setEndPosition()

double GNEFrameAttributeModules::NeteditAttributes::setEndPosition ( double  positionOfTheMouseOverLane,
double  lengthOfAdditional 
) const
private

obtain the End position values of StoppingPlaces and E2 detector over the lane

Definition at line 2425 of file GNEFrameAttributeModules.cpp.

◆ setStartPosition()

double GNEFrameAttributeModules::NeteditAttributes::setStartPosition ( double  positionOfTheMouseOverLane,
double  lengthOfAdditional 
) const
private

obtain the Start position values of StoppingPlaces and E2 detector over the lane

Definition at line 2410 of file GNEFrameAttributeModules.cpp.

◆ setText()

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

set text

Definition at line 76 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myLabel.

Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ showNeteditAttributesModule()

void GNEFrameAttributeModules::NeteditAttributes::showNeteditAttributesModule ( const GNETagProperties tagValue)

◆ 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

◆ helpReferencePoint

FXButton* GNEFrameAttributeModules::NeteditAttributes::helpReferencePoint
private

Button for help about the reference point.

Definition at line 626 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

◆ myActualAdditionalReferencePoint

AdditionalReferencePoint GNEFrameAttributeModules::NeteditAttributes::myActualAdditionalReferencePoint
private

actual additional reference point selected in the match Box

Definition at line 632 of file GNEFrameAttributeModules.h.

◆ myCenterViewAfterCreationButton

FXCheckButton* GNEFrameAttributeModules::NeteditAttributes::myCenterViewAfterCreationButton
private

checkbox to enable/disable center element after creation

Definition at line 623 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

◆ myCenterViewAfterCreationFrame

FXHorizontalFrame* GNEFrameAttributeModules::NeteditAttributes::myCenterViewAfterCreationFrame
private

horizontal frame for center view after creation frame

Definition at line 620 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

◆ myCloseShapeCheckButton

FXCheckButton* GNEFrameAttributeModules::NeteditAttributes::myCloseShapeCheckButton
private

checkbox to enable/disable close polygon

Definition at line 617 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

◆ myCloseShapeFrame

FXHorizontalFrame* GNEFrameAttributeModules::NeteditAttributes::myCloseShapeFrame
private

horizontal frame for close polygon

Definition at line 614 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

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

◆ myCurrentLengthValid

bool GNEFrameAttributeModules::NeteditAttributes::myCurrentLengthValid
private

Flag to check if current length is valid.

Definition at line 629 of file GNEFrameAttributeModules.h.

◆ myFrameParent

GNEFrame* GNEFrameAttributeModules::NeteditAttributes::myFrameParent
private

pointer to frame parent

Definition at line 602 of file GNEFrameAttributeModules.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().

◆ myLengthFrame

FXHorizontalFrame* GNEFrameAttributeModules::NeteditAttributes::myLengthFrame
private

horizontal frame for length

Definition at line 608 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

◆ myLengthTextField

FXTextField* GNEFrameAttributeModules::NeteditAttributes::myLengthTextField
private

textField for length

Definition at line 611 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

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

◆ myReferencePointMatchBox

FXComboBox* GNEFrameAttributeModules::NeteditAttributes::myReferencePointMatchBox
private

match box with the list of reference points

Definition at line 605 of file GNEFrameAttributeModules.h.

Referenced by NeteditAttributes().

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