![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEAttributesEditorType.h>
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 | |
| GNEFrame * | getFrameParent () 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. | |
| GNEAttributesEditorType & | operator= (GNEAttributesEditorType *)=delete |
| Invalidated assignment operator. | |
Static Private Member Functions | |
| static void | buildRows (GNEAttributesEditorType *editorParent) |
| build rows | |
Private Attributes | |
| GNEAttributesEditor * | myAttributesEditorParent |
| 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 | |
| MFXButtonTooltip * | myExtendButton = nullptr |
| button for extend elements | |
| FXHorizontalFrame * | myFrameNeteditButtons = nullptr |
| frame for netedit buttons (helps and reset) | |
| GNEFrame * | myFrameParent |
| pointer to GNEFrame parent | |
| MFXButtonTooltip * | myFrontButton = nullptr |
| pointer to front button | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable MFXGroupBoxModule | |
| FXButton * | myLoadButton = nullptr |
| button for load elements | |
| MFXButtonTooltip * | myOpenDialogButton = nullptr |
| pointer to open dialog button (usually additionals) | |
| MFXButtonTooltip * | myOpenExtendedAttributesButton = nullptr |
| pointer to open extended attributes button | |
| MFXButtonTooltip * | myOpenGenericParametersEditorButton = 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. | |
Definition at line 44 of file GNEAttributesEditorType.h.
|
private |
typedef used for pack attributes editor row
Definition at line 183 of file GNEAttributesEditorType.h.
|
strong |
Attribute types.
| Enumerator | |
|---|---|
| BASIC | |
| EXTENDED | |
| FLOW | |
| GEO | |
| NETEDIT | |
| PARAMETERS | |
Definition at line 60 of file GNEAttributesEditorType.h.
|
strong |
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 38 of file MFXGroupBoxModule.h.
| GNEAttributesEditorType::GNEAttributesEditorType | ( | GNEFrame * | frameParent, |
| GNEAttributesEditor * | attributesEditorParent, | ||
| const std::string | attributesEditorName, | ||
| EditorType | editorType, | ||
| AttributeType | attributeType ) |
constructor
Definition at line 70 of file GNEAttributesEditorType.cpp.
References buildRows(), EXTENDED, FRONTELEMENT, MFXGroupBoxModule::getCollapsableFrame(), GUIIconSubSys::getIcon(), GNEAttributesEditorType(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, GUIDesignButtonIcon, GUIDesignButtonRectangular, MFXGroupBoxModule::MFXGroupBoxModule(), MID_GNE_ATTRIBUTESEDITOR_DIALOG, MID_GNE_ATTRIBUTESEDITOR_EXTENDED, MID_GNE_ATTRIBUTESEDITOR_FRONT, MID_GNE_ATTRIBUTESEDITOR_HELP, MID_GNE_ATTRIBUTESEDITOR_PARAMETERS, MID_GNE_ATTRIBUTESEDITOR_RESET, myAttributesEditorParent, myAttributeType, myEditorType, myFrameNeteditButtons, myFrameParent, myFrontButton, myOpenDialogButton, myOpenExtendedAttributesButton, myOpenGenericParametersEditorButton, NETEDIT, PARAMETERS, RESET, and TL.
Referenced by buildRows(), GNEAttributesEditorType(), GNEAttributesEditorType(), and operator=().
| GNEAttributesEditorType::~GNEAttributesEditorType | ( | ) |
constructor
Definition at line 112 of file GNEAttributesEditorType.cpp.
References myFirstSingletonAttributesEditorRows, and mySecondSingletonAttributesEditorRows.
|
privatedelete |
Invalidated copy constructor.
References GNEAttributesEditorType().
| void GNEAttributesEditorType::abortReparenting | ( | ) |
abort selecting parent
Definition at line 368 of file GNEAttributesEditorType.cpp.
References myReparentTag, refreshAttributesEditor(), and SUMO_TAG_NOTHING.
Referenced by setNewParent().
|
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().
| 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.
| 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.
| void GNEAttributesEditorType::disableAttributesEditor | ( | ) |
disable attribute editor
Definition at line 304 of file GNEAttributesEditorType.cpp.
References myAttributesEditorRows.
|
protected |
void enable reparent
Definition at line 589 of file GNEAttributesEditorType.cpp.
References myEditedACs, myFrameParent, myReparentTag, and refreshAttributesEditor().
|
protected |
fill start end attributes
Definition at line 628 of file GNEAttributesEditorType.cpp.
References CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), CommonXMLStructure::SumoBaseObject::getBoolAttribute(), CommonXMLStructure::SumoBaseObject::getDoubleAttribute(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), GNE_ATTR_FORCESIZE, GNE_ATTR_LANELENGTH, GNE_ATTR_REFERENCE, GNE_ATTR_SIZE, CommonXMLStructure::SumoBaseObject::hasBoolAttribute(), CommonXMLStructure::SumoBaseObject::hasDoubleAttribute(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), LEFT, SUMOXMLDefinitions::ReferencePositions, RIGHT, SUMO_ATTR_ENDPOS, SUMO_ATTR_POSITION, and SUMO_ATTR_STARTPOS.
Referenced by 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.
|
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().
| const std::vector< GNEAttributeCarrier * > & GNEAttributesEditorType::getEditedAttributeCarriers | ( | ) | const |
get edited attribute carriers
Definition at line 138 of file GNEAttributesEditorType.cpp.
References myEditedACs.
| GNEFrame * GNEAttributesEditorType::getFrameParent | ( | ) | const |
pointer to GNEFrame parent
Definition at line 120 of file GNEAttributesEditorType.cpp.
References myFrameParent.
Referenced by buildRows().
| void GNEAttributesEditorType::hideAttributesEditor | ( | ) |
hide attribute editor
Definition at line 178 of file GNEAttributesEditorType.cpp.
References myAttributesEditorRows, and myEditedACs.
Referenced by refreshAttributesEditor().
|
protected |
inspect parent (Callend from row)
Definition at line 599 of file GNEAttributesEditorType.cpp.
References myEditedACs, myFrameParent, SUMO_ATTR_TYPE, and SUMO_TAG_VTYPE.
| 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().
| 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().
| bool GNEAttributesEditorType::isReparenting | ( | ) | const |
Definition at line 349 of file GNEAttributesEditorType.cpp.
References myReparentTag, and SUMO_TAG_NOTHING.
Referenced by refreshAttributesEditor().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 234 of file MFXGroupBoxModule.cpp.
Referenced by onCmdLoadButton().
|
protected |
move lane down
Definition at line 618 of file GNEAttributesEditorType.cpp.
References myEditedACs, myFrameParent, setAttribute(), and SUMO_ATTR_LANE.
|
protected |
move lane up
Definition at line 608 of file GNEAttributesEditorType.cpp.
References myEditedACs, myFrameParent, setAttribute(), and SUMO_ATTR_LANE.
| 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().
| 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().
|
inherited |
collapse GroupBoxModule
Definition at line 145 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
|
inherited |
extends GroupBoxModule
Definition at line 161 of file MFXGroupBoxModule.cpp.
References myCollapsableFrame, and myFrameParent.
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 215 of file MFXGroupBoxModule.cpp.
References loadContents().
Referenced by FXDEFMAP().
| long GNEAttributesEditorType::onCmdMarkAsFront | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Definition at line 375 of file GNEAttributesEditorType.cpp.
References myEditedACs, and myFrameParent.
Referenced by FXDEFMAP().
| 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().
| 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().
| 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().
|
inherited |
reset GroupBoxModule
Definition at line 187 of file MFXGroupBoxModule.cpp.
References myFrameParent.
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 209 of file MFXGroupBoxModule.cpp.
References saveContents().
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 132 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
| 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().
|
inherited |
update reset GroupBoxModule
Definition at line 196 of file MFXGroupBoxModule.cpp.
References myFrameParent.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
References GNEAttributesEditorType().
| void GNEAttributesEditorType::refreshAttributesEditor | ( | ) |
refresh attribute editor
Definition at line 190 of file GNEAttributesEditorType.cpp.
References BASIC, EXTENDED, FLOW, GEO, GUIIconSubSys::getIcon(), GNE_ATTR_PARAMETERS, hideAttributesEditor(), isEditorTypeCreator(), isEditorTypeEditor(), isReparenting(), myAttributesEditorRows, myAttributeType, myEditedACs, myFrameNeteditButtons, myFrontButton, myOpenDialogButton, myOpenGenericParametersEditorButton, NETEDIT, PARAMETERS, and TLF.
Referenced by abortReparenting(), enableReparent(), onCmdOpenEditParametersDialog(), onCmdOpenExtendedAttributesDialog(), setAttribute(), showAttributesEditor(), showAttributesEditor(), and toggleEnableAttribute().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixElementsDialog< T >::FixOptions.
Definition at line 227 of file MFXGroupBoxModule.cpp.
Referenced by onCmdSaveButton().
|
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().
| void GNEAttributesEditorType::setNewParent | ( | const GNEAttributeCarrier * | AC | ) |
set new parent
Definition at line 361 of file GNEAttributesEditorType.cpp.
References abortReparenting(), GNEAttributeCarrier::getID(), GNE_ATTR_PARENT, myEditedACs, and myFrameParent.
|
inherited |
set text
Definition at line 120 of file MFXGroupBoxModule.cpp.
References myLabel.
Referenced by GNEViewObjectSelector::showNetworkElementsSelector(), and GNETagSelector::updateTagTypes().
| 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().
| 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().
|
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.
|
protectedinherited |
enable or disable save buttons
Definition at line 241 of file MFXGroupBoxModule.cpp.
References invalid_return< std::string >::value, and mySaveButton.
|
friend |
FOX-declaration.
declare friend class
Definition at line 49 of file GNEAttributesEditorType.h.
References GNEAttributesEditorRow.
Referenced by buildRows(), and GNEAttributesEditorRow.
|
private |
pointer to GNEAttributesEditor parent
Definition at line 189 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType(), and onCmdAttributesEditorReset().
|
private |
singleton with attributes editor rows
Definition at line 216 of file GNEAttributesEditorType.h.
Referenced by checkAttributes(), disableAttributesEditor(), fillSumoBaseObject(), hideAttributesEditor(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().
|
private |
variable use for packing attribute type options
Definition at line 225 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType(), refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().
|
privateinherited |
vertical collapsable frame
Definition at line 103 of file MFXGroupBoxModule.h.
Referenced by getCollapsableFrame(), MFXGroupBoxModule(), MFXGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 109 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 124 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), MFXGroupBoxModule(), and onCmdCollapseButton().
|
private |
current edited ACs
Definition at line 213 of file GNEAttributesEditorType.h.
Referenced by enableReparent(), getEditedAttributeCarriers(), hideAttributesEditor(), inspectParent(), moveLaneDown(), moveLaneUp(), onCmdAttributesEditorHelp(), onCmdAttributesEditorReset(), onCmdMarkAsFront(), onCmdOpenEditParametersDialog(), onCmdOpenElementDialog(), onCmdOpenExtendedAttributesDialog(), onUpdMarkAsFront(), refreshAttributesEditor(), setAttribute(), setNewParent(), showAttributesEditor(), showAttributesEditor(), and toggleEnableAttribute().
|
private |
variable use for packing editorType type options
Definition at line 222 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType(), isEditorTypeCreator(), isEditorTypeEditor(), and onCmdAttributesEditorReset().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule().
|
staticprivate |
first singleton with attributes editor rows
Definition at line 46 of file GNEAttributesEditorType.h.
Referenced by buildRows(), showAttributesEditor(), showAttributesEditor(), and ~GNEAttributesEditorType().
|
private |
frame for netedit buttons (helps and reset)
Definition at line 204 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType(), and refreshAttributesEditor().
|
private |
pointer to GNEFrame parent
Definition at line 186 of file GNEAttributesEditorType.h.
Referenced by checkAttributes(), enableReparent(), getFrameParent(), GNEAttributesEditorType(), inspectParent(), moveLaneDown(), moveLaneUp(), onCmdAttributesEditorHelp(), onCmdAttributesEditorReset(), onCmdMarkAsFront(), onCmdOpenEditParametersDialog(), onCmdOpenExtendedAttributesDialog(), setAttribute(), setNewParent(), and toggleEnableAttribute().
|
private |
pointer to front button
Definition at line 192 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType(), onUpdMarkAsFront(), and refreshAttributesEditor().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 106 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and setText().
|
privateinherited |
button for load elements
Definition at line 121 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), and MFXGroupBoxModule().
|
private |
pointer to open dialog button (usually additionals)
Definition at line 195 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType(), and refreshAttributesEditor().
|
private |
pointer to open extended attributes button
Definition at line 198 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType().
|
private |
pointer to open generic parameters editor button
Definition at line 201 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorType(), and refreshAttributesEditor().
|
privateinherited |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and MFXGroupBoxModule().
|
private |
check if we're reparent
Definition at line 219 of file GNEAttributesEditorType.h.
Referenced by abortReparenting(), checkNewParent(), enableReparent(), and isReparenting().
|
privateinherited |
button for reset frame width
Definition at line 115 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule().
|
privateinherited |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and toggleSaveButton().
|
staticprivate |
second singleton with attributes editor rows
Definition at line 47 of file GNEAttributesEditorType.h.
Referenced by buildRows(), showAttributesEditor(), showAttributesEditor(), and ~GNEAttributesEditorType().