![]() |
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 | |
void | clearTLSAttributes () |
clear TLS attributes More... | |
void | disableE1DetectorMode () |
disable detector mode More... | |
FXVerticalFrame * | getCollapsableFrame () |
get collapsable frame (used by all elements that will be collapsed if button is toggled) More... | |
const std::map< std::string, std::string > & | getE1Detectors () const |
get E1 detectors vinculated with this TLS More... | |
SUMOTime | getOffset () const |
get current offset in string format More... | |
std::string | getParameters () const |
get current parameters in string format More... | |
void | hideTLSAttributes () |
hide TLSAttributes More... | |
void | initTLSAttributes () |
initializes the definitions and corresponding listbox More... | |
bool | isSetDetectorsToggleButtonEnabled () const |
toggle button for set detectors mode More... | |
bool | isValidOffset () |
is current offset valid More... | |
bool | isValidParameters () |
are current parameter valid More... | |
long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
collapse GroupBoxModule More... | |
long | onCmdExtendButton (FXObject *, FXSelector, void *) |
extends GroupBoxModule More... | |
long | onCmdLoadButton (FXObject *, FXSelector, void *) |
load contents More... | |
long | onCmdResetButton (FXObject *, FXSelector, void *) |
reset GroupBoxModule More... | |
long | onCmdSaveButton (FXObject *, FXSelector, void *) |
save contents More... | |
long | onPaint (FXObject *, FXSelector, void *) |
draw MFXGroupBoxModule More... | |
long | onUpdResetButton (FXObject *, FXSelector, void *) |
update reset GroupBoxModule More... | |
void | setOffset (const SUMOTime &offset) |
set new offset More... | |
void | setParameters (const std::string ¶meters) |
set new parameters More... | |
void | setText (const std::string &text) |
set text More... | |
void | showTLSAttributes () |
show TLSAttributes More... | |
TLSAttributes (GNETLSEditorFrame *TLSEditorParent) | |
FOX-declaration. More... | |
bool | toggleE1DetectorSelection (const GNEAdditional *E1) |
select or unselect E1 detector in the current TLS More... | |
~TLSAttributes () | |
destructor More... | |
FOX-callbacks | |
Called when the user changes the offset of a TLS | |
long | onCmdSetOffset (FXObject *, FXSelector, void *) |
long | onUpdOffset (FXObject *, FXSelector, void *) |
Called when the offset is updated. More... | |
long | onCmdSetParameters (FXObject *, FXSelector, void *) |
Called when the user changes parameters of a TLS. More... | |
long | onCmdParametersDialog (FXObject *, FXSelector, void *ptr) |
Called when user press edit parameters button. More... | |
long | onUpdParameters (FXObject *, FXSelector, void *) |
Called when the offset is updated. More... | |
long | onCmdToggleDetectorMode (FXObject *, FXSelector, void *ptr) |
Called when user toggle set detector mode. More... | |
long | onUpdSetDetectorMode (FXObject *, FXSelector, void *) |
Called when occurs an update of set detector mode. More... | |
Protected Member Functions | |
virtual bool | loadContents () const |
load contents (can be reimplemented in children) More... | |
virtual bool | saveContents () const |
save contents (can be reimplemented in children) More... | |
void | toggleSaveButton (const bool value) |
enable or disable save buttons More... | |
void | updateE1Detectors () |
FOX needs this. More... | |
Private Attributes | |
FXButton * | myButtonEditParameters = nullptr |
button for edit parameters 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... | |
std::map< std::string, std::string > | myE1Detectors |
set with E1 detector IDs and their lanes vinculated with the TLS <laneID, E1ID> More... | |
FXButton * | myExtendButton = nullptr |
button for extend elements More... | |
GNEFrame * | myFrameParent = nullptr |
GNEFrame in which this GroupBox is placed. More... | |
FXLabel * | myLabel = nullptr |
label used in non collapsable MFXGroupBoxModule More... | |
FXButton * | myLoadButton = nullptr |
button for load elements More... | |
FXTextField * | myOffsetTextField = nullptr |
the TextField for modifying offset More... | |
const int | myOptions |
GroupBoxModule options. More... | |
FXTextField * | myParametersTextField = nullptr |
the TextField for modifying parameters More... | |
FXButton * | myResetWidthButton = nullptr |
button for reset frame width More... | |
FXButton * | mySaveButton = nullptr |
button for save elements More... | |
MFXToggleButtonTooltip * | mySetDetectorsToggleButton = nullptr |
toggle button for set detectors mode More... | |
GNETLSEditorFrame * | myTLSEditorParent |
pointer to TLSEditorParent More... | |
Definition at line 263 of file GNETLSEditorFrame.h.
|
inherited |
GroupBoxModule options.
Enumerator | |
---|---|
NOTHING | |
COLLAPSIBLE | |
EXTENSIBLE | |
SAVE | |
LOAD |
Definition at line 37 of file MFXGroupBoxModule.h.
GNETLSEditorFrame::TLSAttributes::TLSAttributes | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
FOX-declaration.
constructor
Definition at line 544 of file GNETLSEditorFrame.cpp.
References E1, MFXGroupBoxModule::getCollapsableFrame(), GNEViewParent::getGNEAppWindows(), GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, GUIDesignButtonAttribute, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_TLSFRAME_ATTRIBUTES_OFFSET, MID_GNE_TLSFRAME_ATTRIBUTES_PARAMETERS, MID_GNE_TLSFRAME_ATTRIBUTES_PARAMETERSDIALOG, MID_GNE_TLSFRAME_ATTRIBUTES_TOGGLEDETECTOR, myButtonEditParameters, myOffsetTextField, myParametersTextField, mySetDetectorsToggleButton, SUMO_ATTR_OFFSET, TL, and toString().
GNETLSEditorFrame::TLSAttributes::~TLSAttributes | ( | ) |
destructor
Definition at line 568 of file GNETLSEditorFrame.cpp.
void GNETLSEditorFrame::TLSAttributes::clearTLSAttributes | ( | ) |
clear TLS attributes
Definition at line 604 of file GNETLSEditorFrame.cpp.
References RGBColor::BLACK, and MFXUtils::getFXColor().
Referenced by GNETLSEditorFrame::cleanup().
void GNETLSEditorFrame::TLSAttributes::disableE1DetectorMode | ( | ) |
disable detector mode
Definition at line 721 of file GNETLSEditorFrame.cpp.
Referenced by GNEViewNet::abortOperation(), and GNEViewNet::hotkeyEnter().
|
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(), GNEM_PathLegend::GNEM_PathLegend(), GNEPathCreator::GNEPathCreator(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEInspectorFrame::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(), TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), GNESelectorFrame::VisualScaling::VisualScaling(), and GNETypeFrame::VTypeDistributions::VTypeDistributions().
const std::map< std::string, std::string > & GNETLSEditorFrame::TLSAttributes::getE1Detectors | ( | ) | const |
get E1 detectors vinculated with this TLS
Definition at line 715 of file GNETLSEditorFrame.cpp.
Referenced by GNEViewNet::drawTemporalE1TLSLines().
SUMOTime GNETLSEditorFrame::TLSAttributes::getOffset | ( | ) | const |
get current offset in string format
Definition at line 618 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSUMOTime().
std::string GNETLSEditorFrame::TLSAttributes::getParameters | ( | ) | const |
get current parameters in string format
Definition at line 643 of file GNETLSEditorFrame.cpp.
void GNETLSEditorFrame::TLSAttributes::hideTLSAttributes | ( | ) |
hide TLSAttributes
Definition at line 578 of file GNETLSEditorFrame.cpp.
References GNEFrame::hide().
void GNETLSEditorFrame::TLSAttributes::initTLSAttributes | ( | ) |
initializes the definitions and corresponding listbox
Definition at line 584 of file GNETLSEditorFrame.cpp.
References RGBColor::BLACK, and MFXUtils::getFXColor().
Referenced by GNETLSEditorFrame::editJunction().
bool GNETLSEditorFrame::TLSAttributes::isSetDetectorsToggleButtonEnabled | ( | ) | const |
toggle button for set detectors mode
Definition at line 672 of file GNETLSEditorFrame.cpp.
Referenced by GNEViewNet::abortOperation(), GNETLSEditorFrame::editTLS(), GNEViewNet::hotkeyEnter(), and GNEViewNet::selectingDetectorsTLSMode().
bool GNETLSEditorFrame::TLSAttributes::isValidOffset | ( | ) |
is current offset valid
Definition at line 631 of file GNETLSEditorFrame.cpp.
References RGBColor::BLACK, MFXUtils::getFXColor(), and RGBColor::RED.
bool GNETLSEditorFrame::TLSAttributes::isValidParameters | ( | ) |
are current parameter valid
Definition at line 660 of file GNETLSEditorFrame.cpp.
References Parameterised::areParametersValid(), RGBColor::BLACK, MFXUtils::getFXColor(), and RGBColor::RED.
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 226 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
|
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().
|
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::TLSAttributes::onCmdParametersDialog | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Called when user press edit parameters button.
Definition at line 772 of file GNETLSEditorFrame.cpp.
References WRITE_DEBUG.
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::TLSAttributes::onCmdSetOffset | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 727 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
long GNETLSEditorFrame::TLSAttributes::onCmdSetParameters | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user changes parameters of a TLS.
Definition at line 760 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
long GNETLSEditorFrame::TLSAttributes::onCmdToggleDetectorMode | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Called when user toggle set detector mode.
Definition at line 823 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 124 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
long GNETLSEditorFrame::TLSAttributes::onUpdOffset | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the offset is updated.
Definition at line 739 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
long GNETLSEditorFrame::TLSAttributes::onUpdParameters | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the offset is updated.
Definition at line 798 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::TLSAttributes::onUpdSetDetectorMode | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when occurs an update of set detector mode.
Definition at line 838 of file GNETLSEditorFrame.cpp.
References STATIC.
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::TLSAttributes::setOffset | ( | const SUMOTime & | offset | ) |
set new offset
Definition at line 624 of file GNETLSEditorFrame.cpp.
References RGBColor::BLACK, MFXUtils::getFXColor(), and GNETLSEditorFrame::getSteps2Time().
void GNETLSEditorFrame::TLSAttributes::setParameters | ( | const std::string & | parameters | ) |
set new parameters
Definition at line 649 of file GNETLSEditorFrame.cpp.
References RGBColor::BLACK, MFXUtils::getFXColor(), and STATIC.
|
inherited |
set text
Definition at line 112 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myLabel.
Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
void GNETLSEditorFrame::TLSAttributes::showTLSAttributes | ( | ) |
show TLSAttributes
Definition at line 572 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::show().
bool GNETLSEditorFrame::TLSAttributes::toggleE1DetectorSelection | ( | const GNEAdditional * | E1 | ) |
select or unselect E1 detector in the current TLS
Definition at line 678 of file GNETLSEditorFrame.cpp.
References E1.
Referenced by GNETLSEditorFrame::editTLS().
|
protectedinherited |
enable or disable save buttons
Definition at line 233 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
|
protected |
FOX needs this.
update E1 detectors
Definition at line 857 of file GNETLSEditorFrame.cpp.
References SUMO_TAG_INDUCTION_LOOP.
|
private |
button for edit parameters
Definition at line 356 of file GNETLSEditorFrame.h.
Referenced by TLSAttributes().
|
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 |
set with E1 detector IDs and their lanes vinculated with the TLS <laneID, E1ID>
Definition at line 365 of file GNETLSEditorFrame.h.
|
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().
|
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().
|
private |
the TextField for modifying offset
Definition at line 353 of file GNETLSEditorFrame.h.
Referenced by TLSAttributes().
|
privateinherited |
GroupBoxModule options.
Definition at line 96 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
private |
the TextField for modifying parameters
Definition at line 359 of file GNETLSEditorFrame.h.
Referenced by TLSAttributes().
|
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 |
toggle button for set detectors mode
Definition at line 362 of file GNETLSEditorFrame.h.
Referenced by TLSAttributes().
|
private |
pointer to TLSEditorParent
Definition at line 350 of file GNETLSEditorFrame.h.