![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModules.h>
Public Types | |
| enum | Options { NOTHING = 1 << 0, COLLAPSIBLE = 1 << 1, SAVE = 1 << 2, LOAD = 1 << 3 } |
| GroupBoxModule options. More... | |
Public Member Functions | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toogled) More... | |
| void | hideHierarchicalElementTree () |
| hide HierarchicalElementTree More... | |
| HierarchicalElementTree (GNEFrame *frameParent) | |
| FOX-declaration. More... | |
| long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
| collapse GroupBoxModule More... | |
| long | onCmdLoadButton (FXObject *, FXSelector, void *) |
| load contents More... | |
| long | onCmdSaveButton (FXObject *, FXSelector, void *) |
| save contents More... | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw FXGroupBoxModule More... | |
| void | refreshHierarchicalElementTree () |
| refresh HierarchicalElementTree More... | |
| void | removeCurrentEditedAttributeCarrier (const GNEAttributeCarrier *HE) |
| if given AttributeCarrier is the same of myHE, set it as nullptr More... | |
| void | setText (const std::string &text) |
| set text More... | |
| void | showHierarchicalElementTree (GNEAttributeCarrier *AC) |
| show HierarchicalElementTree More... | |
| ~HierarchicalElementTree () | |
| destructor More... | |
FOX-callbacks | |
called when user press right click over an item of list of children | |
| long | onCmdShowChildMenu (FXObject *, FXSelector, void *data) |
| long | onCmdCenterItem (FXObject *, FXSelector, void *) |
| called when user click over option "center" of child Menu More... | |
| long | onCmdInspectItem (FXObject *, FXSelector, void *) |
| called when user click over option "inspect" of child menu More... | |
| long | onCmdDeleteItem (FXObject *, FXSelector, void *) |
| called when user click over option "delete" of child menu More... | |
| long | onCmdMoveItemUp (FXObject *, FXSelector, void *) |
| called when user click over option "Move up" of child menu More... | |
| long | onCmdMoveItemDown (FXObject *, FXSelector, void *) |
| called when user click over option "Move down" of child menu More... | |
Protected Member Functions | |
| FXTreeItem * | addListItem (FXTreeItem *itemParent, const std::string &text, FXIcon *icon, bool expanded) |
| add item into list More... | |
| FXTreeItem * | addListItem (GNEAttributeCarrier *AC, FXTreeItem *itemParent=nullptr, std::string prefix="", std::string sufix="") |
| add item into list More... | |
| void | createPopUpMenu (int X, int Y, GNEAttributeCarrier *clickedAC) |
| virtual bool | loadContents () const |
| load contents (can be reimplemented in children) More... | |
| virtual bool | saveContents () const |
| save contents (can be reimplemented in children) More... | |
| FXTreeItem * | showAttributeCarrierParents () |
| show child of current attributeCarrier More... | |
| void | showHierarchicalElementChildren (GNEHierarchicalElement *HE, FXTreeItem *itemParent) |
| show children of given hierarchical element More... | |
| void | toogleSaveButton (const bool value) |
| enable or disable save buttons More... | |
Private Attributes | |
| GNEAttributeCarrier * | myClickedAC |
| pointer to current clicked Attribute Carrier More... | |
| GNEAdditional * | myClickedAdditional |
| additional (casted from myClickedAC) More... | |
| GNEConnection * | myClickedConnection |
| junction (casted from myClickedAC) More... | |
| GNECrossing * | myClickedCrossing |
| crossing (casted from myClickedAC) More... | |
| GNEDataInterval * | myClickedDataInterval |
| data interval element (casted from myClickedAC) More... | |
| GNEDataSet * | myClickedDataSet |
| data set element (casted from myClickedAC) More... | |
| GNEDemandElement * | myClickedDemandElement |
| demand element (casted from myClickedAC) More... | |
| GNEEdge * | myClickedEdge |
| edge (casted from myClickedAC) More... | |
| GNEGenericData * | myClickedGenericData |
| generic data element (casted from myClickedAC) More... | |
| GNEJunction * | myClickedJunction |
| junction (casted from myClickedAC) More... | |
| GNELane * | myClickedLane |
| lane (casted from myClickedAC) More... | |
| FXVerticalFrame * | myCollapsableFrame = nullptr |
| vertical collapsable frame More... | |
| FXButton * | myCollapseButton = nullptr |
| button for collapse elements More... | |
| bool | myCollapsed |
| flag to check if this groupbox is collapsed More... | |
| GNEFrame * | myFrameParent |
| frame Parent More... | |
| GNEHierarchicalElement * | myHE |
| hierarchical element More... | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable FXGroupBoxModule More... | |
| FXButton * | myLoadButton = nullptr |
| button for load elements More... | |
| const int | myOptions |
| GroupBoxModule options. More... | |
| FXButton * | mySaveButton = nullptr |
| button for save elements More... | |
| std::set< FXTreeItem * > | myTreeItemsConnections |
| set used to save tree items without AC assigned, the Incoming/Outcoming connections More... | |
| std::map< FXTreeItem *, GNEAttributeCarrier * > | myTreeItemToACMap |
| map used to save the FXTreeItems items with their vinculated AC More... | |
| FXTreeListDinamic * | myTreeListDinamic = nullptr |
| tree list dinamic to show the children of the element to erase More... | |
Definition at line 202 of file GNEFrameModules.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 32 of file FXGroupBoxModule.h.
| GNEFrameModules::HierarchicalElementTree::HierarchicalElementTree | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 808 of file GNEFrameModules.cpp.
References FXGroupBoxModule::getCollapsableFrame(), GUIDesignTreeListDinamic, MID_GNE_ACHIERARCHY_SHOWCHILDMENU, and myTreeListDinamic.
| GNEFrameModules::HierarchicalElementTree::~HierarchicalElementTree | ( | ) |
destructor
Definition at line 829 of file GNEFrameModules.cpp.
|
protected |
add item into list
Definition at line 1700 of file GNEFrameModules.cpp.
|
protected |
add item into list
Definition at line 1687 of file GNEFrameModules.cpp.
References GNEAttributeCarrier::getHierarchyName(), and GNEAttributeCarrier::getIcon().
|
protected |
Definition at line 1038 of file GNEFrameModules.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getID(), GNEFrameAttributeModules::isSupermodeValid(), MID_GNE_CENTER, MID_GNE_DELETE, MID_GNE_INSPECT, MODEDELETE, MODEINSPECT, RECENTERVIEW, SUMO_TAG_DATAINTERVAL, and SUMO_TAG_DATASET.
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toogled)
Definition at line 82 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECommonNetworkModules::ConsecutiveLaneSelector::ConsecutiveLaneSelector(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameModules::DrawingShape::DrawingShape(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::FlowEditor::FlowEditor(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), HierarchicalElementTree(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNETAZRelDataFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributeModules::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEFrameModules::PathCreator::PathCreator(), GNEFrameModules::PathLegend::PathLegend(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEFrameModules::SelectorParent::SelectorParent(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
| void GNEFrameModules::HierarchicalElementTree::hideHierarchicalElementTree | ( | ) |
Definition at line 848 of file GNEFrameModules.cpp.
Referenced by GNEContainerPlanFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEInspectorFrame::inspectMultisection(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEContainerPlanFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 142 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdLoadButton().
| long GNEFrameModules::HierarchicalElementTree::onCmdCenterItem | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user click over option "center" of child Menu
Definition at line 906 of file GNEFrameModules.cpp.
|
inherited |
collapse GroupBoxModule
Definition at line 101 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), FXGroupBoxModule::myCollapsableFrame, FXGroupBoxModule::myCollapseButton, FXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
| long GNEFrameModules::HierarchicalElementTree::onCmdDeleteItem | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user click over option "delete" of child menu
Definition at line 941 of file GNEFrameModules.cpp.
References GNE_ATTR_DEFAULT_VTYPE, SUMO_ATTR_ID, SUMO_TAG_VTYPE, and WRITE_WARNING.
| long GNEFrameModules::HierarchicalElementTree::onCmdInspectItem | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user click over option "inspect" of child menu
Definition at line 932 of file GNEFrameModules.cpp.
|
inherited |
load contents
Definition at line 123 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::loadContents().
| long GNEFrameModules::HierarchicalElementTree::onCmdMoveItemDown | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user click over option "Move down" of child menu
Definition at line 1022 of file GNEFrameModules.cpp.
| long GNEFrameModules::HierarchicalElementTree::onCmdMoveItemUp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user click over option "Move up" of child menu
Definition at line 1006 of file GNEFrameModules.cpp.
|
inherited |
save contents
Definition at line 117 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::saveContents().
| long GNEFrameModules::HierarchicalElementTree::onCmdShowChildMenu | ( | FXObject * | , |
| FXSelector | , | ||
| void * | data | ||
| ) |
Definition at line 892 of file GNEFrameModules.cpp.
|
inherited |
draw FXGroupBoxModule
Definition at line 88 of file FXGroupBoxModule.cpp.
| void GNEFrameModules::HierarchicalElementTree::refreshHierarchicalElementTree | ( | ) |
refresh HierarchicalElementTree
Definition at line 870 of file GNEFrameModules.cpp.
Referenced by GNEContainerPlanFrame::createPath(), GNEPersonPlanFrame::createPath(), and GNEInspectorFrame::updateFrameAfterUndoRedo().
| void GNEFrameModules::HierarchicalElementTree::removeCurrentEditedAttributeCarrier | ( | const GNEAttributeCarrier * | HE | ) |
if given AttributeCarrier is the same of myHE, set it as nullptr
Definition at line 883 of file GNEFrameModules.cpp.
Referenced by GNEDataSet::removeDataIntervalChild(), GNEDataInterval::removeGenericDataChild(), and GNEEdge::removeLane().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions.
Definition at line 135 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdSaveButton().
|
inherited |
set text
Definition at line 76 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myLabel.
Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().
|
protected |
show child of current attributeCarrier
Definition at line 1132 of file GNEFrameModules.cpp.
References GNENet::getAttributeCarriers(), GNEGenericData::getDataIntervalParent(), GNEDataInterval::getDataSetParent(), GNEConnection::getEdgeFrom(), GNEConnection::getEdgeTo(), GNEEdge::getFromJunction(), GNENetworkElement::getHierarchyName(), GNEAttributeCarrier::getIcon(), GNENetworkElement::getID(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentDemandElements(), GNELane::getParentEdge(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentLanes(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEEdge::getToJunction(), GNE_TAG_POILANE, GNENetHelper::AttributeCarriers::retrieveAdditional(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_EDGEREL, SUMO_TAG_LANE, and toString().
|
protected |
show children of given hierarchical element
Definition at line 1520 of file GNEFrameModules.cpp.
References EDGE, GNENet::getAttributeCarriers(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildEdges(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildLanes(), GNEDataSet::getDataIntervalChildren(), GNEDataInterval::getGenericDataChildren(), GNEJunction::getGNECrossings(), GNELane::getGNEIncomingConnections(), GNELane::getGNEOutcomingConnections(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GNEAttributeCarrier::getNet(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isAdditionalElement(), GNETagProperties::isDataElement(), GNETagProperties::isDemandElement(), GNETagProperties::isNetworkElement(), LANE, GNENetHelper::AttributeCarriers::retrieveDataSet(), GNENetHelper::AttributeCarriers::retrieveEdge(), GNENetHelper::AttributeCarriers::retrieveJunction(), GNENetHelper::AttributeCarriers::retrieveLane(), SUMO_ATTR_EDGES, SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, and SUMO_TAG_LANE.
| void GNEFrameModules::HierarchicalElementTree::showHierarchicalElementTree | ( | GNEAttributeCarrier * | AC | ) |
Definition at line 833 of file GNEFrameModules.cpp.
Referenced by GNEInspectorFrame::inspectMultisection(), GNEContainerPlanFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
|
protectedinherited |
enable or disable save buttons
Definition at line 149 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::mySaveButton.
|
private |
pointer to current clicked Attribute Carrier
Definition at line 272 of file GNEFrameModules.h.
|
private |
additional (casted from myClickedAC)
Definition at line 290 of file GNEFrameModules.h.
|
private |
junction (casted from myClickedAC)
Definition at line 287 of file GNEFrameModules.h.
|
private |
crossing (casted from myClickedAC)
Definition at line 284 of file GNEFrameModules.h.
|
private |
data interval element (casted from myClickedAC)
Definition at line 299 of file GNEFrameModules.h.
|
private |
data set element (casted from myClickedAC)
Definition at line 296 of file GNEFrameModules.h.
|
private |
demand element (casted from myClickedAC)
Definition at line 293 of file GNEFrameModules.h.
|
private |
edge (casted from myClickedAC)
Definition at line 278 of file GNEFrameModules.h.
|
private |
generic data element (casted from myClickedAC)
Definition at line 302 of file GNEFrameModules.h.
|
private |
junction (casted from myClickedAC)
Definition at line 275 of file GNEFrameModules.h.
|
private |
lane (casted from myClickedAC)
Definition at line 281 of file GNEFrameModules.h.
|
privateinherited |
vertical collapsable frame
Definition at line 81 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
button for collapse elements
Definition at line 87 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 96 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
private |
frame Parent
Definition at line 266 of file GNEFrameModules.h.
|
private |
hierarchical element
Definition at line 269 of file GNEFrameModules.h.
|
privateinherited |
label used in non collapsable FXGroupBoxModule
Definition at line 84 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 93 of file FXGroupBoxModule.h.
|
privateinherited |
GroupBoxModule options.
Definition at line 78 of file FXGroupBoxModule.h.
|
privateinherited |
button for save elements
Definition at line 90 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::toogleSaveButton().
|
private |
set used to save tree items without AC assigned, the Incoming/Outcoming connections
Definition at line 311 of file GNEFrameModules.h.
|
private |
map used to save the FXTreeItems items with their vinculated AC
Definition at line 308 of file GNEFrameModules.h.
|
private |
tree list dinamic to show the children of the element to erase
Definition at line 305 of file GNEFrameModules.h.
Referenced by HierarchicalElementTree().