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.

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 GNEAttributesEditor::abortReparenting(), and setNewParent().

Here is the caller graph for this function:

◆ buildRows()

◆ checkAttributes()

bool GNEAttributesEditorType::checkAttributes ( const bool  showWarning)

check if current edited attributes are valid

Definition at line 312 of file GNEAttributesEditorType.cpp.

References GNEFrame::getViewNet(), myAttributesEditorRows, myFrameParent, GNEViewNet::setStatusBarText(), TLF, and WRITE_WARNING.

Referenced by GNEAttributesEditor::checkAttributes().

Here is the caller graph for this function:

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

Referenced by GNEAttributesEditor::checkNewParent().

Here is the caller graph for this function:

◆ disableAttributesEditor()

void GNEAttributesEditorType::disableAttributesEditor ( )

disable attribute editor

Definition at line 304 of file GNEAttributesEditorType.cpp.

References myAttributesEditorRows.

Referenced by GNEAttributesEditor::disableAttributesEditor().

Here is the caller graph for this function:

◆ enableReparent()

void GNEAttributesEditorType::enableReparent ( )
protected

void enable reparent

Definition at line 589 of file GNEAttributesEditorType.cpp.

References GNEFrame::getViewNet(), myEditedACs, myFrameParent, myReparentTag, and refreshAttributesEditor().

Referenced by GNEAttributesEditorRow::onCmdReparent().

Here is the caller graph for this function:

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

Referenced by GNEAttributesEditor::fillSumoBaseObject().

Here is the caller graph for this function:

◆ 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 MFXGroupBoxModule::myCollapsableFrame.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkMoveOptions::NetworkMoveOptions(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNEAttributesEditorRow::showAttributeRow(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), 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.

Referenced by GNEAttributesEditor::fillSumoBaseObject().

Here is the caller graph for this function:

◆ getFrameParent()

GNEFrame * GNEAttributesEditorType::getFrameParent ( ) const

pointer to GNEFrame parent

Definition at line 120 of file GNEAttributesEditorType.cpp.

References myFrameParent.

Referenced by buildRows(), GNEAttributesEditorRow::getAttributeValue(), GNEAttributesEditorRow::onCmdOpenColorDialog(), GNEAttributesEditorRow::onCmdOpenFileDialog(), and GNEAttributesEditorRow::onCmdOpenVClassDialog().

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 GNEAttributesEditor::hideAttributesEditor(), and 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 GNENet::getAttributeCarriers(), GNEViewParent::getInspectorFrame(), GNEViewNet::getNet(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNEInspectorFrame::inspectElement(), myEditedACs, myFrameParent, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_TYPE, and SUMO_TAG_VTYPE.

Referenced by GNEAttributesEditorRow::onCmdInspectParent().

Here is the caller graph for this function:

◆ 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(), GNEAttributesEditorRow::onCmdSetAttribute(), 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 GNEAttributesEditor::isReparenting(), and 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 MFXGroupBoxModule::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 GNENet::getAttributeCarriers(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myEditedACs, myFrameParent, GNENetHelper::AttributeCarriers::retrieveLane(), setAttribute(), and SUMO_ATTR_LANE.

Referenced by GNEAttributesEditorRow::onCmdMoveLaneDown().

Here is the caller graph for this function:

◆ moveLaneUp()

void GNEAttributesEditorType::moveLaneUp ( )
protected

move lane up

Definition at line 608 of file GNEAttributesEditorType.cpp.

References GNENet::getAttributeCarriers(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myEditedACs, myFrameParent, GNENetHelper::AttributeCarriers::retrieveLane(), setAttribute(), and SUMO_ATTR_LANE.

Referenced by GNEAttributesEditorRow::onCmdMoveLaneUp().

Here is the caller graph for this function:

◆ onCmdAttributesEditorHelp()

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

called when user press the help button

Definition at line 491 of file GNEAttributesEditorType.cpp.

References myEditedACs, myFrameParent, and GNEFrame::openHelpAttributesDialog().

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 GNEUndoList::begin(), CREATOR, GNEUndoList::end(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), myAttributesEditorParent, myEditedACs, myEditorType, myFrameParent, GNEAttributesEditor::refreshAttributesEditor(), 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(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::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 GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

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 MFXGroupBoxModule::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 GNEViewNet::getMarkFrontElements(), GNEFrame::getViewNet(), myEditedACs, myFrameParent, and GNEViewNetHelper::MarkFrontElements::unmarkAll().

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, GNEUndoList::begin(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), 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, GNENet::getAttributeCarriers(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myEditedACs, myFrameParent, refreshAttributesEditor(), and GNENetHelper::AttributeCarriers::retrieveDemandElement().

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 GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

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 MFXGroupBoxModule::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 GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEAttributesEditorType & GNEAttributesEditorType::operator= ( GNEAttributesEditorType )
privatedelete

Invalidated assignment operator.

◆ 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 MFXGroupBoxModule::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 GNEFrame::attributeUpdated(), GNEUndoList::begin(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), isEditorTypeCreator(), isEditorTypeEditor(), myEditedACs, myFrameParent, refreshAttributesEditor(), SUMO_ATTR_ID, and TLF.

Referenced by moveLaneDown(), moveLaneUp(), and GNEAttributesEditorRow::onCmdSetAttribute().

Here is the caller graph for this function:

◆ setNewParent()

void GNEAttributesEditorType::setNewParent ( const GNEAttributeCarrier AC)

set new parent

Definition at line 361 of file GNEAttributesEditorType.cpp.

References abortReparenting(), GNEAttributeCarrier::getID(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNE_ATTR_PARENT, myEditedACs, and myFrameParent.

Referenced by GNEAttributesEditor::setNewParent().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 120 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myLabel.

Referenced by GNETLSEditorFrame::TLSPrograms::onCmdDefSwitchTLSProgram(), GNEViewObjectSelector::showNetworkElementsSelector(), GNESelectorFrame::SelectionInformation::updateInformationLabel(), 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().

Referenced by GNEAttributesEditor::showAttributesEditor(), and GNEAttributesEditor::showAttributesEditor().

Here is the caller graph for this function:

◆ 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 GNEFrame::attributeUpdated(), GNEUndoList::begin(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), isEditorTypeCreator(), isEditorTypeEditor(), myEditedACs, myFrameParent, refreshAttributesEditor(), SUMO_ATTR_ID, and TLF.

Referenced by GNEAttributesEditorRow::onCmdToggleEnableAttribute().

Here is the caller graph for this function:

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 241 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::mySaveButton.

Friends And Related Symbol Documentation

◆ GNEAttributesEditorRow

FOX-declaration.

declare friend class

Definition at line 49 of file GNEAttributesEditorType.h.

Referenced by buildRows().

Field Documentation

◆ myAttributesEditorParent

GNEAttributesEditor* GNEAttributesEditorType::myAttributesEditorParent
private

pointer to GNEAttributesEditor parent

Definition at line 189 of file GNEAttributesEditorType.h.

Referenced by 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 refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 109 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::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::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 GNEAttributesEditorRow::getAttributeValue(), isEditorTypeCreator(), isEditorTypeEditor(), and onCmdAttributesEditorReset().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

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

◆ myFrameParent

◆ myFrontButton

MFXButtonTooltip* GNEAttributesEditorType::myFrontButton = nullptr
private

pointer to front button

Definition at line 192 of file GNEAttributesEditorType.h.

Referenced by 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 MFXGroupBoxModule::setText().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myOpenDialogButton

MFXButtonTooltip* GNEAttributesEditorType::myOpenDialogButton = nullptr
private

pointer to open dialog button (usually additionals)

Definition at line 195 of file GNEAttributesEditorType.h.

Referenced by refreshAttributesEditor().

◆ myOpenExtendedAttributesButton

MFXButtonTooltip* GNEAttributesEditorType::myOpenExtendedAttributesButton = nullptr
private

pointer to open extended attributes button

Definition at line 198 of file GNEAttributesEditorType.h.

◆ myOpenGenericParametersEditorButton

MFXButtonTooltip* GNEAttributesEditorType::myOpenGenericParametersEditorButton = nullptr
private

pointer to open generic parameters editor button

Definition at line 201 of file GNEAttributesEditorType.h.

Referenced by refreshAttributesEditor().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

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

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

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