![]() |
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 | |
| bool | checkSavedPosition (const Position &clickedPosition) const |
| check if given position is near to saved position More... | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toogled) More... | |
| int | getNumberOfOverlappedACs () const |
| get number of overlapped ACSs More... | |
| void | hideOverlappedInspection () |
| hide template editor More... | |
| bool | nextElement (const Position &clickedPosition) |
| try to go to next element if clicked position is near to saved position 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... | |
| OverlappedInspection (GNEFrame *frameParent) | |
| FOX-declaration. More... | |
| OverlappedInspection (GNEFrame *frameParent, const SumoXMLTag filteredTag) | |
| constructor (used for filter objects under cusor More... | |
| bool | overlappedInspectionShown () const |
| check if overlappedInspection modul is shown More... | |
| bool | previousElement (const Position &clickedPosition) |
| try to go to previous element if clicked position is near to saved position More... | |
| void | setText (const std::string &text) |
| set text More... | |
| void | showOverlappedInspection (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition) |
| show template editor More... | |
| ~OverlappedInspection () | |
| destructor More... | |
FOX-callbacks | |
| long | onCmdNextElement (FXObject *, FXSelector, void *) |
| Inspect next Element (from top to bot) More... | |
| long | onCmdPreviousElement (FXObject *, FXSelector, void *) |
| Inspect previous element (from top to bot) More... | |
| long | onCmdShowList (FXObject *, FXSelector, void *) |
| show list of overlapped elements More... | |
| long | onCmdListItemSelected (FXObject *, FXSelector, void *) |
| called when a list item is selected More... | |
| long | onCmdOverlappingHelp (FXObject *, FXSelector, void *) |
| Called when user press the help button. More... | |
Protected Member Functions | |
| void | buildFXElements () |
| build Fox Toolkit elemements More... | |
| virtual bool | loadContents () const |
| load contents (can be reimplemented in children) More... | |
| OverlappedInspection () | |
| FOX needs this. More... | |
| virtual bool | saveContents () const |
| save contents (can be reimplemented in children) More... | |
| void | toogleSaveButton (const bool value) |
| enable or disable save buttons More... | |
Private Attributes | |
| 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... | |
| FXButton * | myCurrentIndexButton |
| Button for current index. More... | |
| const SumoXMLTag | myFilteredTag |
| filtered tag More... | |
| GNEFrame * | myFrameParent |
| current frame parent More... | |
| FXButton * | myHelpButton |
| button for help More... | |
| size_t | myItemIndex |
| current index item More... | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable FXGroupBoxModule More... | |
| FXButton * | myLoadButton = nullptr |
| button for load elements More... | |
| FXButton * | myNextElement |
| Next element button. More... | |
| const int | myOptions |
| GroupBoxModule options. More... | |
| std::vector< GNEAttributeCarrier * > | myOverlappedACs |
| objects under cursor More... | |
| FXList * | myOverlappedElementList |
| list of overlapped elements More... | |
| FXButton * | myPreviousElement |
| Previous element button. More... | |
| FXButton * | mySaveButton = nullptr |
| button for save elements More... | |
| Position | mySavedClickedPosition |
| saved clicked position More... | |
Definition at line 445 of file GNEFrameModules.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 32 of file FXGroupBoxModule.h.
| GNEFrameModules::OverlappedInspection::OverlappedInspection | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 1966 of file GNEFrameModules.cpp.
References buildFXElements().
| GNEFrameModules::OverlappedInspection::OverlappedInspection | ( | GNEFrame * | frameParent, |
| const SumoXMLTag | filteredTag | ||
| ) |
constructor (used for filter objects under cusor
Definition at line 1976 of file GNEFrameModules.cpp.
References buildFXElements().
| GNEFrameModules::OverlappedInspection::~OverlappedInspection | ( | ) |
destructor
Definition at line 1986 of file GNEFrameModules.cpp.
|
protected |
FOX needs this.
Definition at line 2207 of file GNEFrameModules.cpp.
|
protected |
build Fox Toolkit elemements
Definition at line 2220 of file GNEFrameModules.cpp.
References BIGARROWLEFT, BIGARROWRIGHT, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, GUIDesignButtonIconRectangular, GUIDesignButtonRectangular, GUIDesignListFixedHeight, MID_GNE_OVERLAPPED_ITEMSELECTED, MID_GNE_OVERLAPPED_NEXT, MID_GNE_OVERLAPPED_PREVIOUS, MID_GNE_OVERLAPPED_SHOWLIST, and MID_HELP.
Referenced by OverlappedInspection().
| bool GNEFrameModules::OverlappedInspection::checkSavedPosition | ( | const Position & | clickedPosition | ) | const |
check if given position is near to saved position
Definition at line 2062 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::openObjectDialogAtCursor().
|
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(), GNEFrameModules::HierarchicalElementTree::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().
| int GNEFrameModules::OverlappedInspection::getNumberOfOverlappedACs | ( | ) | const |
get number of overlapped ACSs
Definition at line 2056 of file GNEFrameModules.cpp.
Referenced by GNETLSEditorFrame::editTLS().
| void GNEFrameModules::OverlappedInspection::hideOverlappedInspection | ( | ) |
hide template editor
Definition at line 2042 of file GNEFrameModules.cpp.
Referenced by GNETLSEditorFrame::editTLS(), GNEInspectorFrame::inspectMultisection(), and GNETLSEditorFrame::show().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 142 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdLoadButton().
| bool GNEFrameModules::OverlappedInspection::nextElement | ( | const Position & | clickedPosition | ) |
try to go to next element if clicked position is near to saved position
Definition at line 2068 of file GNEFrameModules.cpp.
Referenced by GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), and GNEInspectorFrame::processNetworkSupermodeClick().
|
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::OverlappedInspection::onCmdListItemSelected | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when a list item is selected
Definition at line 2171 of file GNEFrameModules.cpp.
References toString().
|
inherited |
load contents
Definition at line 123 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::loadContents().
| long GNEFrameModules::OverlappedInspection::onCmdNextElement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Inspect next Element (from top to bot)
Definition at line 2130 of file GNEFrameModules.cpp.
References toString().
| long GNEFrameModules::OverlappedInspection::onCmdOverlappingHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user press the help button.
Definition at line 2189 of file GNEFrameModules.cpp.
References ACCEPT, GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, and GUIDesignLabelFrameInformation.
| long GNEFrameModules::OverlappedInspection::onCmdPreviousElement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Inspect previous element (from top to bot)
Definition at line 2104 of file GNEFrameModules.cpp.
References toString().
|
inherited |
save contents
Definition at line 117 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::saveContents().
| long GNEFrameModules::OverlappedInspection::onCmdShowList | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
show list of overlapped elements
Definition at line 2152 of file GNEFrameModules.cpp.
|
inherited |
draw FXGroupBoxModule
Definition at line 88 of file FXGroupBoxModule.cpp.
| bool GNEFrameModules::OverlappedInspection::overlappedInspectionShown | ( | ) | const |
check if overlappedInspection modul is shown
Definition at line 2049 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::openObjectDialogAtCursor().
| bool GNEFrameModules::OverlappedInspection::previousElement | ( | const Position & | clickedPosition | ) |
try to go to previous element if clicked position is near to saved position
Definition at line 2086 of file GNEFrameModules.cpp.
Referenced by GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), and GNEInspectorFrame::processNetworkSupermodeClick().
|
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().
| void GNEFrameModules::OverlappedInspection::showOverlappedInspection | ( | const GNEViewNetHelper::ObjectsUnderCursor & | objectsUnderCursor, |
| const Position & | clickedPosition | ||
| ) |
show template editor
Definition at line 1990 of file GNEFrameModules.cpp.
References GNEViewNetHelper::ObjectsUnderCursor::getClickedAttributeCarriers(), SUMO_TAG_NOTHING, and toString().
Referenced by GNETLSEditorFrame::editTLS(), and GNEInspectorFrame::inspectClickedElement().
|
protectedinherited |
enable or disable save buttons
Definition at line 149 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::mySaveButton.
|
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 |
Button for current index.
Definition at line 514 of file GNEFrameModules.h.
|
private |
filtered tag
Definition at line 526 of file GNEFrameModules.h.
|
private |
current frame parent
Definition at line 508 of file GNEFrameModules.h.
|
private |
button for help
Definition at line 523 of file GNEFrameModules.h.
|
private |
current index item
Definition at line 532 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.
|
private |
Next element button.
Definition at line 517 of file GNEFrameModules.h.
|
privateinherited |
GroupBoxModule options.
Definition at line 78 of file FXGroupBoxModule.h.
|
private |
objects under cursor
Definition at line 529 of file GNEFrameModules.h.
|
private |
list of overlapped elements
Definition at line 520 of file GNEFrameModules.h.
|
private |
Previous element button.
Definition at line 511 of file GNEFrameModules.h.
|
privateinherited |
button for save elements
Definition at line 90 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::toogleSaveButton().
|
private |
saved clicked position
Definition at line 535 of file GNEFrameModules.h.