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

#include <GNEAttributesEditorType.h>

Inheritance diagram for GNEAttributesEditorType:
[legend]
Collaboration diagram for GNEAttributesEditorType:
[legend]

Public Types

enum class  AttributeType {
  BASIC , EXTENDED , FLOW , GEO ,
  NETEDIT , PARAMETERS
}
 Attribute types. More...
enum class  EditorType { CREATOR , EDITOR }
 Editor type. More...
enum  Options {
  NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 ,
  LOAD = 1 << 4
}
 GroupBoxModule options. More...

Public Member Functions

bool checkAttributes (const bool showWarning)
 check if current edited attributes are valid
void disableAttributesEditor ()
 disable attribute editor
SumoXMLAttr fillSumoBaseObject (CommonXMLStructure::SumoBaseObject *baseObject, const bool insertDefaultValues) const
 fill sumo Base object
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled)
const std::vector< GNEAttributeCarrier * > & getEditedAttributeCarriers () const
 get edited attribute carriers
GNEFramegetFrameParent () const
 pointer to GNEFrame parent
 GNEAttributesEditorType (GNEFrame *frameParent, GNEAttributesEditor *attributesEditorParent, const std::string attributesEditorName, EditorType editorType, AttributeType attributeType)
 constructor
void hideAttributesEditor ()
 hide attribute editor
bool isEditorTypeCreator () const
 check if this is an attribute editor of type "creator"
bool isEditorTypeEditor () const
 check if this is an attribute editor of type "editor"
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 refreshAttributesEditor ()
 refresh attribute editor
void setText (const std::string &text)
 set text
void showAttributesEditor (const std::unordered_set< GNEAttributeCarrier * > &ACs, const bool primaryAttributeEditor)
 edit attributes of the given hash of ACs (usually the inspected ACs)
void showAttributesEditor (GNEAttributeCarrier *AC, const bool primaryAttributeEditor)
 edit attributes of the given AC (usually the edited template AC)
 ~GNEAttributesEditorType ()
 constructor
Functions related with selecting parents

check if we're selecting a parent clicking over view

bool isReparenting () const
bool checkNewParent (const GNEAttributeCarrier *AC) const
 check if the given AC can be a new parent
void setNewParent (const GNEAttributeCarrier *AC)
 set new parent
void abortReparenting ()
 abort selecting parent
FOX-callbacks

called when user press the "Mark as front element" button

long onCmdMarkAsFront (FXObject *, FXSelector, void *)
long onUpdMarkAsFront (FXObject *, FXSelector, void *)
 called when user update the "Mark as front element" button
long onCmdOpenElementDialog (FXObject *, FXSelector, void *)
 called when user press the "Element dialog" button
long onCmdOpenExtendedAttributesDialog (FXObject *, FXSelector, void *)
 called when user press the "Extended attributes" button
long onCmdOpenEditParametersDialog (FXObject *, FXSelector, void *)
 called when user press the "Edit parameters" button
long onCmdAttributesEditorHelp (FXObject *, FXSelector, void *)
 called when user press the help button
long onCmdAttributesEditorReset (FXObject *, FXSelector, void *)
 called when user press the reset button

Protected Member Functions

void fillStartEndAttributes (CommonXMLStructure::SumoBaseObject *baseObject) const
 fill start end attributes
virtual bool loadContents () const
 load contents (can be reimplemented in children)
virtual bool saveContents () const
 save contents (can be reimplemented in children)
void toggleSaveButton (const bool value)
 enable or disable save buttons
functions called from GNEAttributesEditorRow

fox need this

void setAttribute (SumoXMLAttr attr, const std::string &value)
 set attribute in the current ACs (Callend from row)
void toggleEnableAttribute (SumoXMLAttr attr, const bool value)
 set attribute in the current ACs (Callend from row)
void enableReparent ()
 void enable reparent
void inspectParent ()
 inspect parent (Callend from row)
void moveLaneUp ()
 move lane up
void moveLaneDown ()
 move lane down

Private Types

typedef std::map< AttributeType, std::vector< GNEAttributesEditorRow * > > AttributesEditorRows
 typedef used for pack attributes editor row

Private Member Functions

 GNEAttributesEditorType (GNEAttributesEditorType *)=delete
 Invalidated copy constructor.
GNEAttributesEditorTypeoperator= (GNEAttributesEditorType *)=delete
 Invalidated assignment operator.

Static Private Member Functions

static void buildRows (GNEAttributesEditorType *editorParent)
 build rows

Private Attributes

GNEAttributesEditormyAttributesEditorParent
 pointer to GNEAttributesEditor parent
std::vector< GNEAttributesEditorRow * > myAttributesEditorRows
 singleton with attributes editor rows
const AttributeType myAttributeType = AttributeType::BASIC
 variable use for packing attribute type options
FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame
FXButton * myCollapseButton = nullptr
 button for collapse elements
bool myCollapsed
 flag to check if this groupbox is collapsed
std::vector< GNEAttributeCarrier * > myEditedACs
 current edited ACs
const EditorType myEditorType = EditorType::EDITOR
 variable use for packing editorType type options
MFXButtonTooltipmyExtendButton = nullptr
 button for extend elements
FXHorizontalFrame * myFrameNeteditButtons = nullptr
 frame for netedit buttons (helps and reset)
GNEFramemyFrameParent
 pointer to GNEFrame parent
MFXButtonTooltipmyFrontButton = nullptr
 pointer to front button
FXLabel * myLabel = nullptr
 label used in non collapsable MFXGroupBoxModule
FXButton * myLoadButton = nullptr
 button for load elements
MFXButtonTooltipmyOpenDialogButton = nullptr
 pointer to open dialog button (usually additionals)
MFXButtonTooltipmyOpenExtendedAttributesButton = nullptr
 pointer to open extended attributes button
MFXButtonTooltipmyOpenGenericParametersEditorButton = nullptr
 pointer to open generic parameters editor button
const int myOptions
 GroupBoxModule options.
SumoXMLTag myReparentTag = SUMO_TAG_NOTHING
 check if we're reparent
FXButton * myResetWidthButton = nullptr
 button for reset frame width
FXButton * mySaveButton = nullptr
 button for save elements

Static Private Attributes

static AttributesEditorRows myFirstSingletonAttributesEditorRows = {}
 first singleton with attributes editor rows
static AttributesEditorRows mySecondSingletonAttributesEditorRows = {}
 second singleton with attributes editor rows

Friends

class GNEAttributesEditorRow
 FOX-declaration.

Detailed Description

Definition at line 44 of file GNEAttributesEditorType.h.

Member Typedef Documentation

◆ AttributesEditorRows

typedef used for pack attributes editor row

Definition at line 183 of file GNEAttributesEditorType.h.

Member Enumeration Documentation

◆ AttributeType

Attribute types.

Enumerator
BASIC 
EXTENDED 
FLOW 
GEO 
NETEDIT 
PARAMETERS 

Definition at line 60 of file GNEAttributesEditorType.h.

◆ EditorType

Editor type.

Enumerator
CREATOR 
EDITOR 

Definition at line 54 of file GNEAttributesEditorType.h.

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ GNEAttributesEditorType() [1/2]

◆ ~GNEAttributesEditorType()

GNEAttributesEditorType::~GNEAttributesEditorType ( )

◆ GNEAttributesEditorType() [2/2]

GNEAttributesEditorType::GNEAttributesEditorType ( GNEAttributesEditorType * )
privatedelete

Invalidated copy constructor.

References GNEAttributesEditorType().

Member Function Documentation

◆ abortReparenting()

void GNEAttributesEditorType::abortReparenting ( )

abort selecting parent

Definition at line 368 of file GNEAttributesEditorType.cpp.

References myReparentTag, refreshAttributesEditor(), and SUMO_TAG_NOTHING.

Referenced by setNewParent().

Here is the caller graph for this function:

◆ buildRows()

void GNEAttributesEditorType::buildRows ( GNEAttributesEditorType * editorParent)
staticprivate

build rows

Definition at line 675 of file GNEAttributesEditorType.cpp.

References BASIC, FLOW, GEO, getFrameParent(), GNEViewNet::getNet(), GNENet::getTagPropertiesDatabase(), GNEFrame::getViewNet(), GNEAttributesEditorRow, GNEAttributesEditorType(), myFirstSingletonAttributesEditorRows, mySecondSingletonAttributesEditorRows, NETEDIT, and PARAMETERS.

Referenced by GNEAttributesEditorType().

Here is the caller graph for this function:

◆ checkAttributes()

bool GNEAttributesEditorType::checkAttributes ( const bool showWarning)

check if current edited attributes are valid

Definition at line 312 of file GNEAttributesEditorType.cpp.

References myAttributesEditorRows, myFrameParent, TLF, and WRITE_WARNING.

◆ checkNewParent()

bool GNEAttributesEditorType::checkNewParent ( const GNEAttributeCarrier * AC) const

check if the given AC can be a new parent

Definition at line 355 of file GNEAttributesEditorType.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and myReparentTag.

◆ disableAttributesEditor()

void GNEAttributesEditorType::disableAttributesEditor ( )

disable attribute editor

Definition at line 304 of file GNEAttributesEditorType.cpp.

References myAttributesEditorRows.

◆ enableReparent()

void GNEAttributesEditorType::enableReparent ( )
protected

void enable reparent

Definition at line 589 of file GNEAttributesEditorType.cpp.

References myEditedACs, myFrameParent, myReparentTag, and refreshAttributesEditor().

◆ fillStartEndAttributes()

◆ fillSumoBaseObject()

SumoXMLAttr GNEAttributesEditorType::fillSumoBaseObject ( CommonXMLStructure::SumoBaseObject * baseObject,
const bool insertDefaultValues ) const

fill sumo Base object

Definition at line 331 of file GNEAttributesEditorType.cpp.

References fillStartEndAttributes(), myAttributesEditorRows, and SUMO_ATTR_NOTHING.

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
inherited

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

Definition at line 126 of file MFXGroupBoxModule.cpp.

References myCollapsableFrame.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEMoveFrame::CommonMoveOptions::CommonMoveOptions(), GNETAZRelDataFrame::ConfirmTAZRelation::ConfirmTAZRelation(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNEConnectorFrame::CurrentLane::CurrentLane(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEGenericDataFrame::DataSetSelector::DataSetSelector(), GNEDeleteFrame::DeleteOptions::DeleteOptions(), GNEMoveFrame::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionEditor::DistributionEditor(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNECreateEdgeFrame::EdgeTypeSelector::EdgeTypeSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEShapeFrame::GEOPOICreator::GEOPOICreator(), GNEAttributesEditorType::GNEAttributesEditorType(), GNEConsecutiveSelector::GNEConsecutiveSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEDrawingShape::GNEDrawingShape(), GNEElementTree::GNEElementTree(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), GNEOverlappedInspection::GNEOverlappedInspection(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNEPlanSelector::GNEPlanSelector(), GNESelectorParent::GNESelectorParent(), GNETagSelector::GNETagSelector(), GNEViewObjectSelector::GNEViewObjectSelector(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECrossingFrame::JunctionInformation::JunctionInformation(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEMeanDataFrame::MeanDataTypeSelector::MeanDataTypeSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkMoveOptions::NetworkMoveOptions(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSJunction::onCmdToggleJoinTLS(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEDistributionFrame::DistributionValuesEditor::refreshRows(), GNEProhibitionFrame::RelativeToConnection::RelativeToConnection(), GNERouteFrame::RouteModeSelector::RouteModeSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionInformation::SelectionInformation(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), GNETypeFrame::TypeSelector::TypeSelector(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getEditedAttributeCarriers()

const std::vector< GNEAttributeCarrier * > & GNEAttributesEditorType::getEditedAttributeCarriers ( ) const

get edited attribute carriers

Definition at line 138 of file GNEAttributesEditorType.cpp.

References myEditedACs.

◆ getFrameParent()

GNEFrame * GNEAttributesEditorType::getFrameParent ( ) const

pointer to GNEFrame parent

Definition at line 120 of file GNEAttributesEditorType.cpp.

References myFrameParent.

Referenced by buildRows().

Here is the caller graph for this function:

◆ hideAttributesEditor()

void GNEAttributesEditorType::hideAttributesEditor ( )

hide attribute editor

Definition at line 178 of file GNEAttributesEditorType.cpp.

References myAttributesEditorRows, and myEditedACs.

Referenced by refreshAttributesEditor().

Here is the caller graph for this function:

◆ inspectParent()

void GNEAttributesEditorType::inspectParent ( )
protected

inspect parent (Callend from row)

Definition at line 599 of file GNEAttributesEditorType.cpp.

References myEditedACs, myFrameParent, SUMO_ATTR_TYPE, and SUMO_TAG_VTYPE.

◆ isEditorTypeCreator()

bool GNEAttributesEditorType::isEditorTypeCreator ( ) const

check if this is an attribute editor of type "creator"

Definition at line 126 of file GNEAttributesEditorType.cpp.

References CREATOR, and myEditorType.

Referenced by onCmdOpenEditParametersDialog(), refreshAttributesEditor(), setAttribute(), and toggleEnableAttribute().

Here is the caller graph for this function:

◆ isEditorTypeEditor()

bool GNEAttributesEditorType::isEditorTypeEditor ( ) const

check if this is an attribute editor of type "editor"

Definition at line 132 of file GNEAttributesEditorType.cpp.

References EDITOR, and myEditorType.

Referenced by onCmdOpenEditParametersDialog(), refreshAttributesEditor(), setAttribute(), and toggleEnableAttribute().

Here is the caller graph for this function:

◆ isReparenting()

bool GNEAttributesEditorType::isReparenting ( ) const

Definition at line 349 of file GNEAttributesEditorType.cpp.

References myReparentTag, and SUMO_TAG_NOTHING.

Referenced by refreshAttributesEditor().

Here is the caller graph for this function:

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 234 of file MFXGroupBoxModule.cpp.

Referenced by onCmdLoadButton().

Here is the caller graph for this function:

◆ moveLaneDown()

void GNEAttributesEditorType::moveLaneDown ( )
protected

move lane down

Definition at line 618 of file GNEAttributesEditorType.cpp.

References myEditedACs, myFrameParent, setAttribute(), and SUMO_ATTR_LANE.

◆ moveLaneUp()

void GNEAttributesEditorType::moveLaneUp ( )
protected

move lane up

Definition at line 608 of file GNEAttributesEditorType.cpp.

References myEditedACs, myFrameParent, setAttribute(), and SUMO_ATTR_LANE.

◆ onCmdAttributesEditorHelp()

long GNEAttributesEditorType::onCmdAttributesEditorHelp ( FXObject * ,
FXSelector ,
void *  )

called when user press the help button

Definition at line 491 of file GNEAttributesEditorType.cpp.

References myEditedACs, and myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdAttributesEditorReset()

long GNEAttributesEditorType::onCmdAttributesEditorReset ( FXObject * ,
FXSelector ,
void *  )

called when user press the reset button

Definition at line 500 of file GNEAttributesEditorType.cpp.

References CREATOR, myAttributesEditorParent, myEditedACs, myEditorType, myFrameParent, and TLF.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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

collapse GroupBoxModule

Definition at line 145 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 *  )
inherited

extends GroupBoxModule

Definition at line 161 of file MFXGroupBoxModule.cpp.

References myCollapsableFrame, and myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 215 of file MFXGroupBoxModule.cpp.

References loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdMarkAsFront()

long GNEAttributesEditorType::onCmdMarkAsFront ( FXObject * ,
FXSelector ,
void *  )

Definition at line 375 of file GNEAttributesEditorType.cpp.

References myEditedACs, and myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenEditParametersDialog()

long GNEAttributesEditorType::onCmdOpenEditParametersDialog ( FXObject * ,
FXSelector ,
void *  )

called when user press the "Edit parameters" button

Definition at line 458 of file GNEAttributesEditorType.cpp.

References GNEDialog::ACCEPT, isEditorTypeCreator(), isEditorTypeEditor(), myEditedACs, myFrameParent, refreshAttributesEditor(), and TLF.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenElementDialog()

long GNEAttributesEditorType::onCmdOpenElementDialog ( FXObject * ,
FXSelector ,
void *  )

called when user press the "Element dialog" button

Definition at line 421 of file GNEAttributesEditorType.cpp.

References GNE_TAG_CALIBRATOR_LANE, myEditedACs, SUMO_TAG_CALIBRATOR, SUMO_TAG_REROUTER, and SUMO_TAG_VSS.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenExtendedAttributesDialog()

long GNEAttributesEditorType::onCmdOpenExtendedAttributesDialog ( FXObject * ,
FXSelector ,
void *  )

called when user press the "Extended attributes" button

Definition at line 442 of file GNEAttributesEditorType.cpp.

References GNEDialog::ACCEPT, myEditedACs, myFrameParent, and refreshAttributesEditor().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetButton()

long MFXGroupBoxModule::onCmdResetButton ( FXObject * ,
FXSelector ,
void *  )
inherited

reset GroupBoxModule

Definition at line 187 of file MFXGroupBoxModule.cpp.

References myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 209 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 )
inherited

draw MFXGroupBoxModule

Definition at line 132 of file MFXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdMarkAsFront()

long GNEAttributesEditorType::onUpdMarkAsFront ( FXObject * ,
FXSelector ,
void *  )

called when user update the "Mark as front element" button

Definition at line 399 of file GNEAttributesEditorType.cpp.

References myEditedACs, myFrontButton, and TL.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

long MFXGroupBoxModule::onUpdResetButton ( FXObject * sender,
FXSelector ,
void *  )
inherited

update reset GroupBoxModule

Definition at line 196 of file MFXGroupBoxModule.cpp.

References myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEAttributesEditorType & GNEAttributesEditorType::operator= ( GNEAttributesEditorType * )
privatedelete

Invalidated assignment operator.

References GNEAttributesEditorType().

◆ refreshAttributesEditor()

void GNEAttributesEditorType::refreshAttributesEditor ( )

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixElementsDialog< T >::FixOptions.

Definition at line 227 of file MFXGroupBoxModule.cpp.

Referenced by onCmdSaveButton().

Here is the caller graph for this function:

◆ setAttribute()

void GNEAttributesEditorType::setAttribute ( SumoXMLAttr attr,
const std::string & value )
protected

set attribute in the current ACs (Callend from row)

Definition at line 522 of file GNEAttributesEditorType.cpp.

References invalid_return< std::string >::value, isEditorTypeCreator(), isEditorTypeEditor(), myEditedACs, myFrameParent, refreshAttributesEditor(), SUMO_ATTR_ID, and TLF.

Referenced by moveLaneDown(), and moveLaneUp().

Here is the caller graph for this function:

◆ setNewParent()

void GNEAttributesEditorType::setNewParent ( const GNEAttributeCarrier * AC)

◆ setText()

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

set text

Definition at line 120 of file MFXGroupBoxModule.cpp.

References myLabel.

Referenced by GNEViewObjectSelector::showNetworkElementsSelector(), and GNETagSelector::updateTagTypes().

Here is the caller graph for this function:

◆ showAttributesEditor() [1/2]

void GNEAttributesEditorType::showAttributesEditor ( const std::unordered_set< GNEAttributeCarrier * > & ACs,
const bool primaryAttributeEditor )

edit attributes of the given hash of ACs (usually the inspected ACs)

Definition at line 160 of file GNEAttributesEditorType.cpp.

References myAttributesEditorRows, myAttributeType, myEditedACs, myFirstSingletonAttributesEditorRows, mySecondSingletonAttributesEditorRows, and refreshAttributesEditor().

◆ showAttributesEditor() [2/2]

void GNEAttributesEditorType::showAttributesEditor ( GNEAttributeCarrier * AC,
const bool primaryAttributeEditor )

edit attributes of the given AC (usually the edited template AC)

Definition at line 144 of file GNEAttributesEditorType.cpp.

References myAttributesEditorRows, myAttributeType, myEditedACs, myFirstSingletonAttributesEditorRows, mySecondSingletonAttributesEditorRows, and refreshAttributesEditor().

◆ toggleEnableAttribute()

void GNEAttributesEditorType::toggleEnableAttribute ( SumoXMLAttr attr,
const bool value )
protected

set attribute in the current ACs (Callend from row)

Definition at line 555 of file GNEAttributesEditorType.cpp.

References invalid_return< std::string >::value, isEditorTypeCreator(), isEditorTypeEditor(), myEditedACs, myFrameParent, refreshAttributesEditor(), SUMO_ATTR_ID, and TLF.

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool value)
protectedinherited

enable or disable save buttons

Definition at line 241 of file MFXGroupBoxModule.cpp.

References invalid_return< std::string >::value, and mySaveButton.

◆ GNEAttributesEditorRow

FOX-declaration.

declare friend class

Definition at line 49 of file GNEAttributesEditorType.h.

References GNEAttributesEditorRow.

Referenced by buildRows(), and GNEAttributesEditorRow.

Field Documentation

◆ myAttributesEditorParent

GNEAttributesEditor* GNEAttributesEditorType::myAttributesEditorParent
private

pointer to GNEAttributesEditor parent

Definition at line 189 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType(), and onCmdAttributesEditorReset().

◆ myAttributesEditorRows

std::vector<GNEAttributesEditorRow*> GNEAttributesEditorType::myAttributesEditorRows
private

◆ myAttributeType

const AttributeType GNEAttributesEditorType::myAttributeType = AttributeType::BASIC
private

variable use for packing attribute type options

Definition at line 225 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 103 of file MFXGroupBoxModule.h.

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

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 109 of file MFXGroupBoxModule.h.

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

◆ myCollapsed

bool MFXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 124 of file MFXGroupBoxModule.h.

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

◆ myEditedACs

◆ myEditorType

const EditorType GNEAttributesEditorType::myEditorType = EditorType::EDITOR
private

variable use for packing editorType type options

Definition at line 222 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType(), isEditorTypeCreator(), isEditorTypeEditor(), and onCmdAttributesEditorReset().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ myFirstSingletonAttributesEditorRows

GNEAttributesEditorType::AttributesEditorRows GNEAttributesEditorType::myFirstSingletonAttributesEditorRows = {}
staticprivate

first singleton with attributes editor rows

Definition at line 46 of file GNEAttributesEditorType.h.

Referenced by buildRows(), showAttributesEditor(), showAttributesEditor(), and ~GNEAttributesEditorType().

◆ myFrameNeteditButtons

FXHorizontalFrame* GNEAttributesEditorType::myFrameNeteditButtons = nullptr
private

frame for netedit buttons (helps and reset)

Definition at line 204 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType(), and refreshAttributesEditor().

◆ myFrameParent

◆ myFrontButton

MFXButtonTooltip* GNEAttributesEditorType::myFrontButton = nullptr
private

pointer to front button

Definition at line 192 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType(), onUpdMarkAsFront(), and refreshAttributesEditor().

◆ myLabel

FXLabel* MFXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable MFXGroupBoxModule

Definition at line 106 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and setText().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), and MFXGroupBoxModule().

◆ myOpenDialogButton

MFXButtonTooltip* GNEAttributesEditorType::myOpenDialogButton = nullptr
private

pointer to open dialog button (usually additionals)

Definition at line 195 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType(), and refreshAttributesEditor().

◆ myOpenExtendedAttributesButton

MFXButtonTooltip* GNEAttributesEditorType::myOpenExtendedAttributesButton = nullptr
private

pointer to open extended attributes button

Definition at line 198 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType().

◆ myOpenGenericParametersEditorButton

MFXButtonTooltip* GNEAttributesEditorType::myOpenGenericParametersEditorButton = nullptr
private

pointer to open generic parameters editor button

Definition at line 201 of file GNEAttributesEditorType.h.

Referenced by GNEAttributesEditorType(), and refreshAttributesEditor().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and MFXGroupBoxModule().

◆ myReparentTag

SumoXMLTag GNEAttributesEditorType::myReparentTag = SUMO_TAG_NOTHING
private

check if we're reparent

Definition at line 219 of file GNEAttributesEditorType.h.

Referenced by abortReparenting(), checkNewParent(), enableReparent(), and isReparenting().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and toggleSaveButton().

◆ mySecondSingletonAttributesEditorRows

GNEAttributesEditorType::AttributesEditorRows GNEAttributesEditorType::mySecondSingletonAttributesEditorRows = {}
staticprivate

second singleton with attributes editor rows

Definition at line 47 of file GNEAttributesEditorType.h.

Referenced by buildRows(), showAttributesEditor(), showAttributesEditor(), and ~GNEAttributesEditorType().


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