![]() |
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 FRONTELEMENT, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, GUIDesignButtonIcon, GUIDesignButtonRectangular, MID_GNE_ATTRIBUTESEDITOR_DIALOG, MID_GNE_ATTRIBUTESEDITOR_EXTENDED, MID_GNE_ATTRIBUTESEDITOR_FRONT, MID_GNE_ATTRIBUTESEDITOR_HELP, MID_GNE_ATTRIBUTESEDITOR_PARAMETERS, MID_GNE_ATTRIBUTESEDITOR_RESET, RESET, and TL.
| GNEAttributesEditorType::~GNEAttributesEditorType | ( | ) |
constructor
Definition at line 112 of file GNEAttributesEditorType.cpp.
References myFirstSingletonAttributesEditorRows, and mySecondSingletonAttributesEditorRows.
|
privatedelete |
Invalidated copy constructor.
| 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().
|
staticprivate |
build rows
Definition at line 675 of file GNEAttributesEditorType.cpp.
References BASIC, FLOW, GEO, getFrameParent(), GNETagPropertiesDatabase::getMaxNumberOfEditableAttributeRows(), GNEViewNet::getNet(), GNENet::getTagPropertiesDatabase(), GNEFrame::getViewNet(), GNEAttributesEditorRow, myFirstSingletonAttributesEditorRows, mySecondSingletonAttributesEditorRows, NETEDIT, and PARAMETERS.
| 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().
| 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().
| void GNEAttributesEditorType::disableAttributesEditor | ( | ) |
disable attribute editor
Definition at line 304 of file GNEAttributesEditorType.cpp.
References myAttributesEditorRows.
Referenced by GNEAttributesEditor::disableAttributesEditor().
|
protected |
void enable reparent
Definition at line 589 of file GNEAttributesEditorType.cpp.
References GNEFrame::getViewNet(), myEditedACs, myFrameParent, myReparentTag, and refreshAttributesEditor().
Referenced by GNEAttributesEditorRow::onCmdReparent().
|
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.
Referenced by GNEAttributesEditor::fillSumoBaseObject().
|
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().
| 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().
| 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().
| void GNEAttributesEditorType::hideAttributesEditor | ( | ) |
hide attribute editor
Definition at line 178 of file GNEAttributesEditorType.cpp.
References myAttributesEditorRows, and myEditedACs.
Referenced by GNEAttributesEditor::hideAttributesEditor(), and refreshAttributesEditor().
|
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().
| 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(), GNEAttributesEditorRow::onCmdSetAttribute(), refreshAttributesEditor(), setAttribute(), and toggleEnableAttribute().
| bool GNEAttributesEditorType::isReparenting | ( | ) | const |
Definition at line 349 of file GNEAttributesEditorType.cpp.
References myReparentTag, and SUMO_TAG_NOTHING.
Referenced by GNEAttributesEditor::isReparenting(), and refreshAttributesEditor().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 234 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
|
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().
|
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().
| 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().
| 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().
|
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().
|
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().
|
inherited |
load contents
Definition at line 215 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
| 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().
| 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().
| 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, GNENet::getAttributeCarriers(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myEditedACs, myFrameParent, refreshAttributesEditor(), and GNENetHelper::AttributeCarriers::retrieveDemandElement().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 187 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 209 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::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 GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
| 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(), GNEApplicationWindow::onCmdToggleFrontElement(), GNEAttributesEditor::refreshAttributesEditor(), 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 MFXGroupBoxModule::onCmdSaveButton().
|
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().
| 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().
|
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().
| 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().
Referenced by GNEAttributesEditor::showAttributesEditor(), and GNEAttributesEditor::showAttributesEditor().
|
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().
|
protectedinherited |
enable or disable save buttons
Definition at line 241 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
|
friend |
FOX-declaration.
declare friend class
Definition at line 49 of file GNEAttributesEditorType.h.
Referenced by buildRows().
|
private |
pointer to GNEAttributesEditor parent
Definition at line 189 of file GNEAttributesEditorType.h.
Referenced by 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 refreshAttributesEditor(), showAttributesEditor(), and showAttributesEditor().
|
privateinherited |
vertical collapsable frame
Definition at line 103 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::getCollapsableFrame(), MFXGroupBoxModule::MFXGroupBoxModule(), MFXGroupBoxModule::onCmdCollapseButton(), and MFXGroupBoxModule::onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 109 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 124 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdCollapseButton().
|
private |
current edited ACs
Definition at line 213 of file GNEAttributesEditorType.h.
Referenced by enableReparent(), GNEAttributesEditorRow::getAttributeValue(), getEditedAttributeCarriers(), hideAttributesEditor(), inspectParent(), GNEAttributesEditorRow::isAttributeEnabled(), moveLaneDown(), moveLaneUp(), onCmdAttributesEditorHelp(), onCmdAttributesEditorReset(), onCmdMarkAsFront(), onCmdOpenEditParametersDialog(), onCmdOpenElementDialog(), onCmdOpenExtendedAttributesDialog(), GNEAttributesEditorRow::onCmdSetAttribute(), onUpdMarkAsFront(), refreshAttributesEditor(), setAttribute(), setNewParent(), GNEAttributesEditorRow::showAttributeRow(), showAttributesEditor(), showAttributesEditor(), GNEAttributesEditorRow::showValueComboBox(), and toggleEnableAttribute().
|
private |
variable use for packing editorType type options
Definition at line 222 of file GNEAttributesEditorType.h.
Referenced by GNEAttributesEditorRow::getAttributeValue(), isEditorTypeCreator(), isEditorTypeEditor(), and onCmdAttributesEditorReset().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
|
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 refreshAttributesEditor().
|
private |
pointer to GNEFrame parent
Definition at line 186 of file GNEAttributesEditorType.h.
Referenced by checkAttributes(), GNEAttributesEditorRow::enableElements(), enableReparent(), getFrameParent(), inspectParent(), moveLaneDown(), moveLaneUp(), onCmdAttributesEditorHelp(), onCmdAttributesEditorReset(), onCmdMarkAsFront(), onCmdOpenEditParametersDialog(), onCmdOpenExtendedAttributesDialog(), setAttribute(), setNewParent(), GNEAttributesEditorRow::showAttributeRow(), GNEAttributesEditorRow::showMoveLaneButtons(), GNEAttributesEditorRow::showValueComboBox(), and toggleEnableAttribute().
|
private |
pointer to front button
Definition at line 192 of file GNEAttributesEditorType.h.
Referenced by onUpdMarkAsFront(), and refreshAttributesEditor().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 106 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 121 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
private |
pointer to open dialog button (usually additionals)
Definition at line 195 of file GNEAttributesEditorType.h.
Referenced by refreshAttributesEditor().
|
private |
pointer to open extended attributes button
Definition at line 198 of file GNEAttributesEditorType.h.
|
private |
pointer to open generic parameters editor button
Definition at line 201 of file GNEAttributesEditorType.h.
Referenced by refreshAttributesEditor().
|
privateinherited |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::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.
|
privateinherited |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().
|
staticprivate |
second singleton with attributes editor rows
Definition at line 47 of file GNEAttributesEditorType.h.
Referenced by buildRows(), showAttributesEditor(), showAttributesEditor(), and ~GNEAttributesEditorType().