![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETLSEditorFrame.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) | |
| GNEJunction * | getCurrentJunction () const |
| get current modified junction | |
| const std::vector< std::string > & | getSelectedJunctionIDs () const |
| get selected junction IDs | |
| bool | isJoiningJunctions () const |
| is joining junctions | |
| bool | isJunctionSelected (const GNEJunction *junction) const |
| check if given junction is selected (used fo joining) | |
| 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 | setCurrentJunction (GNEJunction *junction) |
| set current junction | |
| void | setText (const std::string &text) |
| set text | |
| TLSJunction (GNETLSEditorFrame *TLSEditorParent) | |
| FOX-declaration. | |
| void | toggleJunctionSelected (const GNEJunction *junction) |
| select or unselect junction in the current TLS | |
| void | updateJunctionDescription () |
| update junction description | |
| ~TLSJunction () | |
| destructor | |
FOX-callbacks | |
Called when the user rename TLS | |
| long | onCmdRenameTLS (FXObject *, FXSelector, void *) |
| long | onUpdTLSID (FXObject *, FXSelector, void *) |
| Called when occurs an update of modified. | |
| long | onCmdChangeType (FXObject *, FXSelector, void *) |
| Called when the user change TLS Type. | |
| long | onUpdTLSType (FXObject *, FXSelector, void *) |
| Called when occurs an update of modified. | |
| long | onCmdToggleJoinTLS (FXObject *, FXSelector, void *) |
| Called when the user join TLS. | |
| long | onUpdJoinTLS (FXObject *, FXSelector, void *) |
| Called when update join TLS. | |
| long | onCmdDisjoinTLS (FXObject *, FXSelector, void *) |
| Called when the user join TLS. | |
| long | onUpdDisjoinTLS (FXObject *, FXSelector, void *) |
| Called when update join TLS. | |
| long | onCmdAcceptJoin (FXObject *, FXSelector, void *) |
| accept join | |
| long | onCmdCancelJoin (FXObject *, FXSelector, void *) |
| cancel join | |
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 | |
| GNEJunction * | myCurrentJunction = nullptr |
| the junction of the tls is being modified | |
| MFXButtonTooltip * | myDisjoinTLSButton = nullptr |
| button for disjoin TLS | |
| FXButton * | myExtendButton = nullptr |
| button for extend elements | |
| GNEFrame * | myFrameParent = nullptr |
| GNEFrame in which this GroupBox is placed. | |
| FXHorizontalFrame * | myJoinControlButtons = nullptr |
| frame for accept/cancel buttons | |
| MFXToggleButtonTooltip * | myJoinTLSToggleButton = nullptr |
| Toggle button for join TLS. | |
| FXLabel * | myJunctionIDLabel = nullptr |
| label for junction ID | |
| MFXTextFieldTooltip * | myJunctionIDTextField = nullptr |
| text field for junction ID | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable MFXGroupBoxModule | |
| FXButton * | myLoadButton = nullptr |
| button for load elements | |
| const int | myOptions |
| GroupBoxModule options. | |
| std::vector< std::string > | myOriginalSelectedJunctionIDs |
| original selected junction (used for join) | |
| FXButton * | myResetWidthButton = nullptr |
| button for reset frame width | |
| FXButton * | mySaveButton = nullptr |
| button for save elements | |
| std::vector< std::string > | mySelectedJunctionIDs |
| selected junction (used for join) | |
| GNETLSEditorFrame * | myTLSEditorParent |
| FOX needs this. | |
| MFXTextFieldTooltip * | myTLSIDTextField = nullptr |
| text field for junction ID | |
| MFXComboBoxIcon * | myTLSTypeComboBox = nullptr |
| ComboBox for TLS Types. | |
Definition at line 51 of file GNETLSEditorFrame.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 37 of file MFXGroupBoxModule.h.
| GNETLSEditorFrame::TLSJunction::TLSJunction | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
FOX-declaration.
constructor
Definition at line 880 of file GNETLSEditorFrame.cpp.
References ACCEPT, ACTUATED, MFXComboBoxIcon::appendIconItem(), CANCEL, DELAYBASED, DISJOIN, MFXGroupBoxModule::getCollapsableFrame(), GNEViewParent::getGNEAppWindows(), GUIIconSubSys::getIcon(), MFXComboBoxIcon::getNumItems(), GUIMainWindow::getStaticTooltipMenu(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GUIDesignAuxiliarHorizontalFrame, GUIDesignAuxiliarHorizontalFrameUniform, GUIDesignButton, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelThickedFixed, GUIDesignTextField, GUIDesignTextFieldNCol, JOIN, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_TLSFRAME_TLSJUNCTION_DISJOIN, MID_GNE_TLSFRAME_TLSJUNCTION_ID, MID_GNE_TLSFRAME_TLSJUNCTION_TOGGLEJOIN, MID_GNE_TLSFRAME_TLSJUNCTION_TYPE, myDisjoinTLSButton, myJoinControlButtons, myJoinTLSToggleButton, myJunctionIDLabel, myJunctionIDTextField, myTLSIDTextField, myTLSTypeComboBox, NEMA, MFXComboBoxIcon::setNumVisible(), GNETLSEditorFrame::show(), STATIC, SUMO_ATTR_TYPE, TL, toString(), and updateJunctionDescription().
| GNETLSEditorFrame::TLSJunction::~TLSJunction | ( | ) |
destructor
Definition at line 935 of file GNETLSEditorFrame.cpp.
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 118 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEE2DetectorLegendModule::GNEE2DetectorLegendModule(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), 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::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), 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(), TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeDistributionFrame::TypeAttributesEditor::TypeAttributesEditor(), GNETypeDistributionFrame::TypeDistributionSelector::TypeDistributionSelector(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
| GNEJunction * GNETLSEditorFrame::TLSJunction::getCurrentJunction | ( | ) | const |
get current modified junction
Definition at line 939 of file GNETLSEditorFrame.cpp.
Referenced by GNETLSEditorFrame::buildInternalLanes(), GNETLSEditorFrame::cleanup(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::drawTemporalJunctionTLSLines(), and GNETLSEditorFrame::editJunction().
| const std::vector< std::string > & GNETLSEditorFrame::TLSJunction::getSelectedJunctionIDs | ( | ) | const |
get selected junction IDs
Definition at line 1023 of file GNETLSEditorFrame.cpp.
Referenced by GNEViewNet::drawTemporalJunctionTLSLines().
| bool GNETLSEditorFrame::TLSJunction::isJoiningJunctions | ( | ) | const |
is joining junctions
Definition at line 995 of file GNETLSEditorFrame.cpp.
Referenced by GNEViewNet::abortOperation(), GNETLSEditorFrame::editTLS(), GNEViewNet::hotkeyEnter(), and GNEViewNet::selectingJunctionsTLSMode().
| bool GNETLSEditorFrame::TLSJunction::isJunctionSelected | ( | const GNEJunction * | junction | ) | const |
check if given junction is selected (used fo joining)
Definition at line 1001 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::getID().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 226 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
| long GNETLSEditorFrame::TLSJunction::onCmdAcceptJoin | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
accept join
Definition at line 1348 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP(), and GNEViewNet::hotkeyEnter().
| long GNETLSEditorFrame::TLSJunction::onCmdCancelJoin | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
cancel join
Definition at line 1355 of file GNETLSEditorFrame.cpp.
Referenced by GNEViewNet::abortOperation(), and FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onCmdChangeType | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user change TLS Type.
Definition at line 1109 of file GNETLSEditorFrame.cpp.
References MODETLS, SUMO_ATTR_TLTYPE, TL, toString(), and SUMOXMLDefinitions::TrafficLightTypes.
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 137 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onCmdDisjoinTLS | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user join TLS.
Definition at line 1274 of file GNETLSEditorFrame.cpp.
References NBTrafficLightLogicCont::exist(), MODETLS, SUMO_ATTR_TLID, SUMO_ATTR_TLTYPE, SUMO_ATTR_TYPE, TL, and toString().
Referenced by FXDEFMAP().
|
inherited |
extends GroupBoxModule
Definition at line 153 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 207 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onCmdRenameTLS | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1029 of file GNETLSEditorFrame.cpp.
References SUMOXMLDefinitions::isValidNetID(), MODETLS, and TL.
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 179 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 201 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::saveContents().
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onCmdToggleJoinTLS | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user join TLS.
Definition at line 1186 of file GNETLSEditorFrame.cpp.
References MODETLS, SUMO_ATTR_TLID, SUMO_ATTR_TYPE, and TL.
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 124 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onUpdDisjoinTLS | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Called when update join TLS.
Definition at line 1321 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onUpdJoinTLS | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Called when update join TLS.
Definition at line 1253 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 188 of file MFXGroupBoxModule.cpp.
References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onUpdTLSID | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when occurs an update of modified.
Definition at line 1080 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSJunction::onUpdTLSType | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when occurs an update of modified.
Definition at line 1160 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.
Definition at line 219 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdSaveButton().
| void GNETLSEditorFrame::TLSJunction::setCurrentJunction | ( | GNEJunction * | junction | ) |
set current junction
Definition at line 945 of file GNETLSEditorFrame.cpp.
Referenced by GNETLSEditorFrame::cleanup(), and GNETLSEditorFrame::editJunction().
|
inherited |
set text
Definition at line 112 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myLabel.
Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
| void GNETLSEditorFrame::TLSJunction::toggleJunctionSelected | ( | const GNEJunction * | junction | ) |
select or unselect junction in the current TLS
Definition at line 1007 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::getID().
Referenced by GNETLSEditorFrame::editTLS().
|
protectedinherited |
enable or disable save buttons
Definition at line 233 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
| void GNETLSEditorFrame::TLSJunction::updateJunctionDescription | ( | ) |
update junction description
Definition at line 953 of file GNETLSEditorFrame.cpp.
References SUMO_ATTR_TLTYPE, and TL.
Referenced by TLSJunction().
|
privateinherited |
vertical collapsable frame
Definition at line 102 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::getCollapsableFrame(), MFXGroupBoxModule::MFXGroupBoxModule(), MFXGroupBoxModule::onCmdCollapseButton(), and MFXGroupBoxModule::onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 108 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 123 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdCollapseButton().
|
private |
the junction of the tls is being modified
Definition at line 147 of file GNETLSEditorFrame.h.
|
private |
button for disjoin TLS
Definition at line 141 of file GNETLSEditorFrame.h.
Referenced by TLSJunction().
|
privateinherited |
button for extend elements
Definition at line 111 of file MFXGroupBoxModule.h.
|
privateinherited |
GNEFrame in which this GroupBox is placed.
Definition at line 99 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdExtendButton(), MFXGroupBoxModule::onCmdResetButton(), and MFXGroupBoxModule::onUpdResetButton().
|
private |
frame for accept/cancel buttons
Definition at line 144 of file GNETLSEditorFrame.h.
Referenced by TLSJunction().
|
private |
Toggle button for join TLS.
Definition at line 138 of file GNETLSEditorFrame.h.
Referenced by TLSJunction().
|
private |
label for junction ID
Definition at line 126 of file GNETLSEditorFrame.h.
Referenced by TLSJunction().
|
private |
text field for junction ID
Definition at line 129 of file GNETLSEditorFrame.h.
Referenced by TLSJunction().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 105 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 120 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 96 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
private |
original selected junction (used for join)
Definition at line 153 of file GNETLSEditorFrame.h.
|
privateinherited |
button for reset frame width
Definition at line 114 of file MFXGroupBoxModule.h.
|
privateinherited |
button for save elements
Definition at line 117 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().
|
private |
selected junction (used for join)
Definition at line 150 of file GNETLSEditorFrame.h.
|
private |
|
private |
text field for junction ID
Definition at line 132 of file GNETLSEditorFrame.h.
Referenced by TLSJunction().
|
private |
ComboBox for TLS Types.
Definition at line 135 of file GNETLSEditorFrame.h.
Referenced by TLSJunction().