![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETagSelector.h>
Public Types | |
| enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 , LOAD = 1 << 4 } |
| GroupBoxModule options. More... | |
Public Member Functions | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toggled) | |
| GNEAttributeCarrier * | getCurrentTemplateAC () const |
| get current templateAC | |
| GNETagSelector (GNEFrame *frameParent, const GNETagProperties::Type type, const SumoXMLTag tag) | |
| FOX-declaration. | |
| void | hideTagSelector () |
| hide item selector | |
| 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 | refreshTagSelector () |
| refresh tagSelector (used when frameParent is show) | |
| void | setCurrentTag (SumoXMLTag newTag, const bool informParent=true) |
| set current type manually | |
| void | setText (const std::string &text) |
| set text | |
| void | showTagSelector () |
| show item selector | |
| void | updateTagTypes (const GNETagProperties::Type type, const SumoXMLTag tag, const bool informParent) |
| update tag types to select | |
| ~GNETagSelector () | |
| destructor | |
FOX-callbacks | |
Called when the user select an elementin ComboBox | |
| long | onCmdSelectTag (FXObject *, FXSelector, void *ptr) |
Protected Member Functions | |
| 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 | |
Private Attributes | |
| FXVerticalFrame * | myCollapsableFrame = nullptr |
| vertical collapsable frame | |
| FXButton * | myCollapseButton = nullptr |
| button for collapse elements | |
| bool | myCollapsed |
| flag to check if this groupbox is collapsed | |
| GNEAttributeCarrier * | myCurrentTemplateAC |
| current templateAC; | |
| MFXButtonTooltip * | myExtendButton = nullptr |
| button for extend elements | |
| GNEFrame * | myFrameParent |
| FOX need this. | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable MFXGroupBoxModule | |
| FXButton * | myLoadButton = nullptr |
| button for load elements | |
| const int | myOptions |
| GroupBoxModule options. | |
| FXButton * | myResetWidthButton = nullptr |
| button for reset frame width | |
| FXButton * | mySaveButton = nullptr |
| button for save elements | |
| MFXComboBoxIcon * | myTagsMatchBox |
| comboBox with the tags | |
Definition at line 36 of file GNETagSelector.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 38 of file MFXGroupBoxModule.h.
| GNETagSelector::GNETagSelector | ( | GNEFrame * | frameParent, |
| const GNETagProperties::Type | type, | ||
| const SumoXMLTag | tag | ||
| ) |
FOX-declaration.
constructor
Definition at line 47 of file GNETagSelector.cpp.
References GUIDesignComboBox, GUIDesignComboBoxVisibleItems, and MID_GNE_TAG_SELECTED.
| GNETagSelector::~GNETagSelector | ( | ) |
destructor
Definition at line 61 of file GNETagSelector.cpp.
|
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().
| GNEAttributeCarrier * GNETagSelector::getCurrentTemplateAC | ( | ) | const |
get current templateAC
Definition at line 77 of file GNETagSelector.cpp.
References myCurrentTemplateAC.
Referenced by GNEAdditionalFrame::addAdditional(), GNEContainerFrame::addContainer(), GNEPersonFrame::addPerson(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEWireFrame::addWire(), GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNERoute::checkCreatingVehicleOverRoute(), GNEDemandElement::checkDrawOverContour(), GNEContainerFrame::createPath(), GNEPersonFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEShapeFrame::processClick(), GNEShapeFrame::shapeDrawed(), GNEContainerFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEShapeFrame::tagSelected(), and GNEWireFrame::tagSelected().
| void GNETagSelector::hideTagSelector | ( | ) |
hide item selector
Definition at line 71 of file GNETagSelector.cpp.
Referenced by GNEStopFrame::demandElementSelected(), and GNEStopFrame::show().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 234 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
|
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().
|
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().
| long GNETagSelector::onCmdSelectTag | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 182 of file GNETagSelector.cpp.
References GNENet::getACTemplates(), GNEViewNet::getNet(), GNENetHelper::ACTemplate::getTemplateAC(), MFXComboBoxIcon::getText(), GNEFrame::getViewNet(), GUIDesignTextColorBlack, GUIDesignTextColorRed, myCurrentTemplateAC, myFrameParent, myTagsMatchBox, MFXComboBoxIcon::setTextColor(), and GNEFrame::tagSelected().
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 132 of file MFXGroupBoxModule.cpp.
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().
| void GNETagSelector::refreshTagSelector | ( | ) |
refresh tagSelector (used when frameParent is show)
Definition at line 175 of file GNETagSelector.cpp.
References myFrameParent, and GNEFrame::tagSelected().
Referenced by GNEContainerFrame::show(), GNEPersonFrame::show(), GNEStopFrame::show(), GNEVehicleFrame::show(), GNEAdditionalFrame::show(), GNEShapeFrame::show(), and GNEWireFrame::show().
|
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().
| void GNETagSelector::setCurrentTag | ( | SumoXMLTag | newTag, |
| const bool | informParent = true |
||
| ) |
set current type manually
Definition at line 155 of file GNETagSelector.cpp.
References GNENet::getACTemplates(), MFXComboBoxIcon::getItemText(), GNEViewNet::getNet(), MFXComboBoxIcon::getNumItems(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::getTagStr(), GNENetHelper::ACTemplate::getTemplateAC(), GNEFrame::getViewNet(), GUIDesignTextColorBlack, myCurrentTemplateAC, myFrameParent, myTagsMatchBox, MFXComboBoxIcon::setCurrentItem(), MFXComboBoxIcon::setTextColor(), and GNEFrame::tagSelected().
Referenced by updateTagTypes().
|
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 updateTagTypes().
| void GNETagSelector::showTagSelector | ( | ) |
show item selector
Definition at line 65 of file GNETagSelector.cpp.
Referenced by GNEStopFrame::demandElementSelected(), and GNEStopFrame::show().
|
protectedinherited |
enable or disable save buttons
Definition at line 241 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
| void GNETagSelector::updateTagTypes | ( | const GNETagProperties::Type | type, |
| const SumoXMLTag | tag, | ||
| const bool | informParent | ||
| ) |
update tag types to select
Definition at line 83 of file GNETagSelector.cpp.
References GNETagProperties::ADDITIONALELEMENT, MFXComboBoxIcon::appendIconItem(), MFXComboBoxIcon::clearItems(), GNETagProperties::CONTAINER, GNETagProperties::CONTAINERPLAN, MFXComboBoxIcon::disable(), MFXComboBoxIcon::enable(), GeoConvHelper::getFinal(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), MFXComboBoxIcon::getNumItems(), GeoConvHelper::getProjString(), GNETagPropertiesDatabase::getTagPropertiesByType(), GNENet::getTagPropertiesDatabase(), GNEFrame::getViewNet(), myFrameParent, myTagsMatchBox, GNETagProperties::NETWORKELEMENT, GNETagProperties::PERSON, GNETagProperties::PERSONPLAN, GNETagProperties::PERSONTRIP, GNETagProperties::RIDE, setCurrentTag(), MFXGroupBoxModule::setText(), GNETagProperties::SHAPE, GNETagProperties::STOP_PERSON, GNETagProperties::STOP_VEHICLE, GNETagProperties::TAZELEMENT, TL, GNETagProperties::VEHICLE, GNETagProperties::WALK, and GNETagProperties::WIRE.
|
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 templateAC;
Definition at line 83 of file GNETagSelector.h.
Referenced by getCurrentTemplateAC(), onCmdSelectTag(), and setCurrentTag().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
|
private |
FOX need this.
pointer to Frame Parent
Definition at line 77 of file GNETagSelector.h.
Referenced by onCmdSelectTag(), refreshTagSelector(), setCurrentTag(), and updateTagTypes().
|
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().
|
privateinherited |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
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().
|
private |
comboBox with the tags
Definition at line 80 of file GNETagSelector.h.
Referenced by onCmdSelectTag(), setCurrentTag(), and updateTagTypes().