Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETLSEditorFrame.h>
Data Structures | |
class | TLSAttributes |
class | TLSDefinition |
class | TLSFile |
class | TLSJunction |
class | TLSPhases |
Public Member Functions | |
bool | controlsEdge (GNEEdge *edge) const |
whether the given edge is controlled by the currently edited tlDef | |
void | editJunction (GNEJunction *junction) |
edits the traffic light for the given junction | |
void | editTLS (const Position &clickedPosition, const GNEViewNetHelper::ViewObjectsSelector &viewObjects) |
edits the traffic light for the given clicked junction | |
void | focusUpperElement () |
focus upper element of frame | |
void | frameWidthUpdated () |
function called after setting new width in current frame | |
FXVerticalFrame * | getContentFrame () const |
get vertical frame that holds all widgets of frame | |
FXFont * | getFrameHeaderFont () const |
get font of the header's frame | |
FXLabel * | getFrameHeaderLabel () const |
get the label for the frame's header | |
int | getScrollBarWidth () const |
get scrollBar width (zero if is hidden) | |
GNETLSEditorFrame::TLSAttributes * | getTLSAttributes () const |
get module for TLS attributes | |
GNETLSEditorFrame::TLSDefinition * | getTLSDefinition () const |
get module for TLS Definition | |
GNETLSEditorFrame::TLSJunction * | getTLSJunction () const |
get module for TLS Junction | |
GNEViewNet * | getViewNet () const |
get view net | |
GNETLSEditorFrame (GNEViewParent *viewParent, GNEViewNet *viewNet) | |
Constructor. | |
void | handleChange (GNEInternalLane *lane) |
update phase definition for the current traffic light and phase | |
void | handleMultiChange (GNELane *lane, FXObject *obj, FXSelector sel, void *data) |
update phase definition for the current traffic light and phase | |
virtual void | hide () |
hide Frame | |
bool | isTLSSaved () |
check if modifications in TLS was saved | |
void | openHelpAttributesDialog (const GNEAttributeCarrier *AC) const |
Open help attributes dialog. | |
bool | parseTLSPrograms (const std::string &file) |
parse TLS Programs from a file | |
void | selectedOverlappedElement (GNEAttributeCarrier *AC) |
open GNEAttributesCreator extended dialog (can be reimplemented in frame children) | |
void | setFrameWidth (const int newWidth) |
set width of GNEFrame | |
void | show () |
show inspector frame | |
virtual void | updateFrameAfterUndoRedo () |
function called after undo/redo in the current frame (can be reimplemented in frame children) | |
~GNETLSEditorFrame () | |
Destructor. | |
functions called by moduls that can be reimplemented in frame children (note: reimplement as protected, just for safety) | |
virtual void | tagSelected () |
Tag selected in GNETagSelector. | |
virtual void | demandElementSelected () |
selected demand element in DemandElementSelector | |
virtual bool | shapeDrawed () |
build a shaped element using the drawed shape | |
virtual void | attributeUpdated (SumoXMLAttr attribute) |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... | |
virtual void | attributesEditorExtendedDialogOpened () |
open GNEAttributesCreator extended dialog | |
virtual bool | createPath (const bool useLastRoute) |
create path between two elements | |
Protected Member Functions | |
const std::vector< std::string > & | getPredefinedTagsMML () const |
get predefinedTagsMML | |
Static Protected Member Functions | |
static FXLabel * | buildRainbow (FXComposite *parent) |
build rainbow in frame modul | |
static const std::string | getSteps2Time (const SUMOTime value) |
converts to SUMOTime | |
static SUMOTime | getSUMOTime (const std::string &value) |
converts to SUMOTime | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame = nullptr |
Vertical frame that holds all widgets of frame. | |
FXHorizontalFrame * | myHeaderFrame = nullptr |
fame for header elements | |
FXHorizontalFrame * | myHeaderLeftFrame = nullptr |
fame for left header elements | |
FXHorizontalFrame * | myHeaderRightFrame = nullptr |
fame for right header elements | |
GNEViewNet * | myViewNet = nullptr |
FOX need this. | |
Private Member Functions | |
void | buildInternalLanes (const NBTrafficLightDefinition *tlDef) |
builds internal lanes for the given tlDef | |
void | cleanup () |
cleans up previous lanes | |
const NBTrafficLightLogic::PhaseDefinition & | getPhase (const int index) |
get certain phase of the current traffic light | |
Static Private Member Functions | |
static std::string | varDurString (SUMOTime dur) |
convert duration (potentially undefined) to string | |
Private Attributes | |
NBLoadedSUMOTLDef * | myEditedDef = nullptr |
the traffic light definition being edited | |
FXLabel * | myFrameHeaderLabel = nullptr |
the label for the frame's header | |
std::map< int, std::vector< GNEInternalLane * > > | myInternalLanes |
the internal lanes belonging to the current junction indexed by their tl-index | |
GNEOverlappedInspection * | myOverlappedInspection = nullptr |
Overlapped Inspection. | |
std::vector< std::string > | myPredefinedTagsMML |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) | |
FXScrollWindow * | myScrollWindowsContents = nullptr |
scroll windows that holds the content frame | |
GNETLSEditorFrame::TLSAttributes * | myTLSAttributes = nullptr |
module for TLS attributes | |
GNETLSEditorFrame::TLSDefinition * | myTLSDefinition = nullptr |
module for TLS Definition | |
GNETLSEditorFrame::TLSFile * | myTLSFile = nullptr |
module for load/Save TLS Programs | |
GNETLSEditorFrame::TLSJunction * | myTLSJunction = nullptr |
module for TLS Junction | |
GNETLSEditorFrame::TLSPhases * | myTLSPhases = nullptr |
module for TLS Phases | |
Static Private Attributes | |
static FXFont * | myFrameHeaderFont = nullptr |
static Font for the Header (it's common for all headers, then create only one time) | |
The Widget for modifying Traffic Lights (TLS)
Definition at line 44 of file GNETLSEditorFrame.h.
GNETLSEditorFrame::GNETLSEditorFrame | ( | GNEViewParent * | viewParent, |
GNEViewNet * | viewNet | ||
) |
Constructor.
viewParent GNEViewParent in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 122 of file GNETLSEditorFrame.cpp.
References SUMO_TAG_JUNCTION.
GNETLSEditorFrame::~GNETLSEditorFrame | ( | ) |
Destructor.
Definition at line 146 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::TLSPhases::clearPhaseTable(), and myTLSPhases.
|
virtualinherited |
open GNEAttributesCreator extended dialog
Reimplemented in GNETypeFrame.
Definition at line 292 of file GNEFrame.cpp.
|
virtualinherited |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented in GNEInspectorFrame, GNEMeanDataFrame, GNERouteDistributionFrame, GNETypeDistributionFrame, and GNETypeFrame.
Definition at line 286 of file GNEFrame.cpp.
|
private |
builds internal lanes for the given tlDef
Definition at line 335 of file GNETLSEditorFrame.cpp.
References PositionVector::append(), GNENetHelper::AttributeCarriers::deleteInternalLane(), GNENet::getAttributeCarriers(), NBTrafficLightDefinition::getControlledLinks(), GNETLSEditorFrame::TLSJunction::getCurrentJunction(), Named::getID(), GNEJunction::getNBNode(), GNEViewNet::getNet(), NBTrafficLightDefinition::getNodes(), GNENetHelper::AttributeCarriers::insertInternalLane(), PositionVector::length(), MAX2(), MIN2(), PositionVector::move2side(), myInternalLanes, myTLSJunction, GNEFrame::myViewNet, NUM_POINTS, PositionVector::positionAtOffset(), PositionVector::reverse(), NBEdge::Connection::shape, toString(), and NBEdge::Connection::viaShape.
Referenced by cleanup().
|
staticprotectedinherited |
build rainbow in frame modul
Definition at line 317 of file GNEFrame.cpp.
References MFXUtils::getFXColor(), GNEViewNetHelper::getRainbowScaledColors(), GUIDesignAuxiliarHorizontalFrame, GUIDesignLabel, GUIDesignLabelThick, and TL.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().
|
private |
cleans up previous lanes
Definition at line 289 of file GNETLSEditorFrame.cpp.
References buildInternalLanes(), GNETLSEditorFrame::TLSAttributes::clearTLSAttributes(), GNETLSEditorFrame::TLSDefinition::clearTLSDefinitions(), GNENet::getAttributeCarriers(), GNETLSEditorFrame::TLSJunction::getCurrentJunction(), GNETLSEditorFrame::TLSDefinition::getCurrentTLSDefinition(), GNEViewNet::getNet(), NBTrafficLightDefinition::getNodes(), GNETLSEditorFrame::TLSDefinition::getNumberOfTLSDefinitions(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), myEditedDef, myTLSAttributes, myTLSDefinition, myTLSJunction, myTLSPhases, GNEFrame::myViewNet, GNENetHelper::AttributeCarriers::retrieveJunction(), GNEJunction::selectTLS(), and GNETLSEditorFrame::TLSJunction::setCurrentJunction().
bool GNETLSEditorFrame::controlsEdge | ( | GNEEdge * | edge | ) | const |
whether the given edge is controlled by the currently edited tlDef
Definition at line 491 of file GNETLSEditorFrame.cpp.
References NBTrafficLightDefinition::getControlledLinks(), GUIGlObject::getMicrosimID(), and myEditedDef.
Referenced by GNELane::getPopUpMenu().
|
virtualinherited |
create path between two elements
Reimplemented in GNEEdgeRelDataFrame, GNEGenericDataFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNERouteFrame, GNEVehicleFrame, GNEAdditionalFrame, and GNEWireFrame.
Definition at line 304 of file GNEFrame.cpp.
Referenced by GNEPlanCreator::addRoute(), GNEPlanCreator::addSingleEdge(), GNEPlanCreator::addSingleStoppingPlace(), GNEPathCreator::createPath(), GNEConsecutiveSelector::onCmdCreatePath(), GNEPlanCreator::onCmdCreatePath(), and GNEPlanCreator::onCmdUseLastRoute().
|
virtualinherited |
selected demand element in DemandElementSelector
Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEStopFrame, and GNEVehicleFrame.
Definition at line 273 of file GNEFrame.cpp.
Referenced by GNEDemandElementSelector::onCmdSelectDemandElement(), and GNEDemandElementSelector::setDemandElement().
void GNETLSEditorFrame::editJunction | ( | GNEJunction * | junction | ) |
edits the traffic light for the given junction
[in] | junction | The junction of which the traffic light shall be edited |
Definition at line 505 of file GNETLSEditorFrame.cpp.
References GNEUndoList::begin(), GNETLSEditorFrame::TLSDefinition::checkHaveModifications(), GNETLSEditorFrame::TLSDefinition::discardChanges(), GNENet::getAttributeCarriers(), GNETLSEditorFrame::TLSJunction::getCurrentJunction(), GNETLSEditorFrame::TLSDefinition::getCurrentTLSDefinition(), GNEViewNet::getNet(), NBTrafficLightDefinition::getNodes(), GNETLSEditorFrame::TLSDefinition::getNumberOfTLSDefinitions(), GNEViewNet::getUndoList(), GNETLSEditorFrame::TLSAttributes::initTLSAttributes(), GNETLSEditorFrame::TLSDefinition::initTLSDefinitions(), MODETLS, myTLSAttributes, myTLSDefinition, myTLSJunction, myTLSPhases, GNEFrame::myViewNet, GNENetHelper::AttributeCarriers::retrieveJunction(), GNEJunction::selectTLS(), GNETLSEditorFrame::TLSJunction::setCurrentJunction(), GNEViewNet::setStatusBarText(), TL, and GNETLSEditorFrame::TLSPhases::updateTLSColoring().
Referenced by editTLS(), GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), and selectedOverlappedElement().
void GNETLSEditorFrame::editTLS | ( | const Position & | clickedPosition, |
const GNEViewNetHelper::ViewObjectsSelector & | viewObjects | ||
) |
edits the traffic light for the given clicked junction
[in] | clickedPosition | clicked position |
[in] | viewObjects | The clicked objects under cursor |
Definition at line 168 of file GNETLSEditorFrame.cpp.
References editJunction(), GNEViewNetHelper::ViewObjectsSelector::getAdditionalFront(), GNEViewNetHelper::ViewObjectsSelector::getJunctionFront(), GNEOverlappedInspection::getNumberOfOverlappedACs(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEOverlappedInspection::hideOverlappedInspection(), GNETLSEditorFrame::TLSJunction::isJoiningJunctions(), GNETLSEditorFrame::TLSAttributes::isSetDetectorsToggleButtonEnabled(), myOverlappedInspection, myTLSAttributes, myTLSJunction, GNEFrame::myViewNet, GNEViewNet::setStatusBarText(), GNEOverlappedInspection::showOverlappedInspection(), SUMO_TAG_INDUCTION_LOOP, TL, GNETLSEditorFrame::TLSAttributes::toggleE1DetectorSelection(), and GNETLSEditorFrame::TLSJunction::toggleJunctionSelected().
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
inherited |
focus upper element of frame
Definition at line 109 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtual |
function called after setting new width in current frame
Reimplemented from GNEFrame.
Definition at line 161 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::TLSPhases::getPhaseTable(), myTLSPhases, and GNETLSTable::recalcTableWidth().
|
inherited |
get vertical frame that holds all widgets of frame
Definition at line 156 of file GNEFrame.cpp.
References GNEFrame::myContentFrame.
|
inherited |
get font of the header's frame
Definition at line 168 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 162 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectMultisection().
|
private |
get certain phase of the current traffic light
Definition at line 416 of file GNETLSEditorFrame.cpp.
References NBLoadedSUMOTLDef::getLogic(), NBTrafficLightLogic::getPhases(), myEditedDef, and TL.
|
protectedinherited |
get predefinedTagsMML
Definition at line 311 of file GNEFrame.cpp.
References GNEFrame::myPredefinedTagsMML.
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().
|
inherited |
get scrollBar width (zero if is hidden)
Definition at line 174 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
Referenced by MFXGroupBoxModule::onCmdExtendButton(), and GNETLSTable::recalcTableWidth().
|
staticprotected |
converts to SUMOTime
Definition at line 541 of file GNETLSEditorFrame.cpp.
References STEPS2TIME, and toString().
Referenced by GNETLSEditorFrame::TLSPhases::initActuatedPhaseTable(), GNETLSEditorFrame::TLSPhases::initDelayBasePhaseTable(), GNETLSEditorFrame::TLSPhases::initNEMAPhaseTable(), GNETLSEditorFrame::TLSPhases::initStaticPhaseTable(), GNETLSEditorFrame::TLSPhases::setDuration(), GNETLSEditorFrame::TLSAttributes::setOffset(), GNETLSEditorFrame::TLSPhases::updateCycleDuration(), and varDurString().
|
staticprotected |
converts to SUMOTime
Definition at line 536 of file GNETLSEditorFrame.cpp.
References TIME2STEPS.
Referenced by GNETLSEditorFrame::TLSPhases::buildDefaultPhase(), GNETLSEditorFrame::TLSAttributes::getOffset(), GNETLSEditorFrame::TLSPhases::setDuration(), GNETLSEditorFrame::TLSPhases::setEarliestEnd(), GNETLSEditorFrame::TLSPhases::setLatestEnd(), GNETLSEditorFrame::TLSPhases::setMaxDur(), GNETLSEditorFrame::TLSPhases::setMinDur(), GNETLSEditorFrame::TLSPhases::setRed(), GNETLSEditorFrame::TLSPhases::setVehExt(), and GNETLSEditorFrame::TLSPhases::setYellow().
GNETLSEditorFrame::TLSAttributes * GNETLSEditorFrame::getTLSAttributes | ( | ) | const |
get module for TLS attributes
Definition at line 329 of file GNETLSEditorFrame.cpp.
References myTLSAttributes.
Referenced by GNEViewNet::abortOperation(), GNEInductionLoopDetector::checkDrawRelatedContour(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::hotkeyEnter(), and GNEViewNet::selectingDetectorsTLSMode().
GNETLSEditorFrame::TLSDefinition * GNETLSEditorFrame::getTLSDefinition | ( | ) | const |
get module for TLS Definition
Definition at line 323 of file GNETLSEditorFrame.cpp.
References myTLSDefinition.
Referenced by GNEViewNet::abortOperation(), and GNEViewNet::hotkeyEnter().
GNETLSEditorFrame::TLSJunction * GNETLSEditorFrame::getTLSJunction | ( | ) | const |
get module for TLS Junction
Definition at line 317 of file GNETLSEditorFrame.cpp.
References myTLSJunction.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::hotkeyEnter(), and GNEViewNet::selectingJunctionsTLSMode().
|
inherited |
get view net
Definition at line 150 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEConsecutiveSelector::abortPathCreation(), GNEPathCreator::abortPathCreation(), GNEPlanCreator::abortPathCreation(), GNEPathCreator::addEdge(), GNEPlanCreator::addFromToStoppingPlace(), GNEPathCreator::addJunction(), GNEConsecutiveSelector::addLane(), GNEPlanCreator::addSingleEdge(), GNEPathCreator::addTAZ(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNETypeFrame::attributesEditorExtendedDialogOpened(), GNETLSTable::Cell::Cell(), GNEPathCreator::clearEdgeColors(), GNEInspectorFrame::clearInspectedAC(), GNEPathCreator::clearJunctionColors(), GNEConsecutiveSelector::clearPath(), GNENetworkSelector::clearSelection(), GNETLSTable::Column::Column(), GNEElementTree::createPopUpMenu(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNEDistributionFrame::DistributionRow::DistributionRow(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEInternalLane::drawGL(), GNENeteditAttributes::drawLaneReference(), GNEPlanCreator::drawTemporalRoute(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEAttributesCreatorRow::generateID(), GNENeteditAttributes::getNeteditAttributesAndValues(), GNEInternalLane::getPopUpMenu(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNEAttributesCreatorRow::isValidID(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEMultipleParametersDialog::onCmdAccept(), GNEElementTree::onCmdCenterItem(), GNEElementTree::onCmdDeleteItem(), GNEFrameAttributeModules::ParametersEditor::onCmdEditParameters(), MFXGroupBoxModule::onCmdExtendButton(), GNEElementTree::onCmdInspectItem(), GNEElementTree::onCmdMoveItemDown(), GNEElementTree::onCmdMoveItemUp(), GNEAttributesCreatorRow::onCmdOpenAllowDialog(), GNEMatchGenericDataAttribute::onCmdProcessString(), GNEMultipleParametersDialog::onCmdReset(), MFXGroupBoxModule::onCmdResetButton(), GNEMatchGenericDataAttribute::onCmdSelectAttribute(), GNEDemandElementSelector::onCmdSelectDemandElement(), GNEElementSet::onCmdSelectElementSet(), GNEMatchGenericDataAttribute::onCmdSelectTag(), GNEMatchGenericDataAttribute::onCmdSetFromTAZ(), GNEMatchGenericDataAttribute::onCmdSetToTAZ(), GNENetworkSelector::onCmdUseSelectedElements(), MFXGroupBoxModule::onUpdResetButton(), GNEPathCreator::onUpdUseLastRoute(), GNEPlanCreator::onUpdUseLastRoute(), GNETLSTable::recalcTableWidth(), GNEPlanCreator::recalculatePath(), GNEDemandElementSelector::refreshDemandElementSelector(), GNEAttributesCreator::refreshRows(), GNESelectorParent::refreshSelectorParentModule(), GNEConsecutiveSelector::removeLastElement(), GNEPathCreator::removeLastElement(), GNETLSTable::Row::Row(), GNEProhibitionFrame::Selection::Selection(), GNETagSelector::setCurrentTagType(), GNEDrawingShape::setDeleteLastCreatedPoint(), GNEPathCreator::setPossibleCandidates(), GNEPathCreator::setSpecialCandidates(), GNETypeFrame::show(), GNEElementTree::showAttributeCarrierParents(), GNEDemandElementSelector::showDemandElementSelector(), GNEElementTree::showHierarchicalElementChildren(), GNEOverlappedInspection::showOverlappedInspection(), GNEAttributesCreator::showWarningMessage(), GNETAZFrame::TAZParameters::TAZParameters(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNENetworkSelector::toggleSelectedElement(), GNEPathCreator::updateEdgeColors(), GNEPathCreator::updateJunctionColors(), GNEConsecutiveSelector::updateLaneColors(), and GNEMatchGenericDataAttribute::updateTAZComboBox().
void GNETLSEditorFrame::handleChange | ( | GNEInternalLane * | lane | ) |
update phase definition for the current traffic light and phase
Definition at line 426 of file GNETLSEditorFrame.cpp.
References GNEViewNet::changeAllPhases(), GNETLSTable::getCurrentSelectedRow(), GNEInternalLane::getLinkState(), NBLoadedSUMOTLDef::getLogic(), NBTrafficLightLogic::getPhases(), GNETLSEditorFrame::TLSPhases::getPhaseTable(), GNEInternalLane::getTLIndex(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), GNETLSEditorFrame::TLSDefinition::markAsModified(), myEditedDef, myTLSDefinition, myTLSPhases, GNEFrame::myViewNet, GNETLSTable::selectRow(), and NBTrafficLightLogic::setPhaseState().
Referenced by GNEInternalLane::onDefault().
void GNETLSEditorFrame::handleMultiChange | ( | GNELane * | lane, |
FXObject * | obj, | ||
FXSelector | sel, | ||
void * | data | ||
) |
update phase definition for the current traffic light and phase
Definition at line 447 of file GNETLSEditorFrame.cpp.
References GNENet::getAttributeCarriers(), NBTrafficLightDefinition::getControlledLinks(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEViewNet::getNet(), GNELane::getParentEdge(), GNENetHelper::AttributeCarriers::getSelectedEdges(), GNENetHelper::AttributeCarriers::getSelectedLanes(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNETLSEditorFrame::TLSDefinition::markAsModified(), myEditedDef, myInternalLanes, myTLSDefinition, and GNEFrame::myViewNet.
Referenced by GNELane::onDefault().
|
virtualinherited |
hide Frame
Reimplemented in GNEDeleteFrame, GNEInspectorFrame, GNEMoveFrame, GNESelectorFrame, GNEGenericDataFrame, GNEMeanDataFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNERouteFrame, GNEVehicleFrame, GNECreateEdgeFrame, GNECrossingFrame, GNEProhibitionFrame, and GNETAZFrame.
Definition at line 124 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.
Referenced by GNEDeleteFrame::hide(), GNEInspectorFrame::hide(), GNEMoveFrame::hide(), GNESelectorFrame::hide(), GNEGenericDataFrame::hide(), GNEMeanDataFrame::hide(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNECreateEdgeFrame::hide(), GNECrossingFrame::hide(), GNEProhibitionFrame::hide(), GNETAZFrame::hide(), GNEAdditionalFrame::E2MultilaneLegendModule::hideE2MultilaneLegend(), GNEShapeFrame::GEOPOICreator::hideGEOPOICreatorModule(), GNEStopFrame::HelpCreation::hideHelpCreation(), GNEAdditionalFrame::HelpCreationModule::hideHelpCreationModule(), GNETLSEditorFrame::TLSAttributes::hideTLSAttributes(), GNETLSEditorFrame::TLSDefinition::hideTLSDefinition(), GNETLSEditorFrame::TLSFile::hideTLSFile(), GNETLSEditorFrame::TLSPhases::hideTLSPhases(), GNETypeFrame::TypeEditor::hideTypeEditorModule(), and GNEAdditionalFrame::HelpCreationModule::showHelpCreationModule().
bool GNETLSEditorFrame::isTLSSaved | ( | ) |
check if modifications in TLS was saved
Definition at line 193 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::TLSDefinition::checkHaveModifications(), myTLSDefinition, GNETLSEditorFrame::TLSDefinition::onCmdSaveChanges(), TL, and WRITE_DEBUG.
|
inherited |
Open help attributes dialog.
Definition at line 184 of file GNEFrame.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GNETagProperties::getNumberOfAttributes(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagProperties::getTagStr(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, MAX2(), MID_TABLE, MODEINSPECT, GNEFrame::myScrollWindowsContents, TL, TLF, toString(), and WRITE_DEBUG.
Referenced by GNEFrameAttributeModules::AttributesEditor::onCmdAttributesEditorHelp(), and GNEAttributesCreator::onCmdHelp().
bool GNETLSEditorFrame::parseTLSPrograms | ( | const std::string & | file | ) |
parse TLS Programs from a file
Definition at line 226 of file GNETLSEditorFrame.cpp.
References GNEUndoList::add(), GNENet::getAttributeCarriers(), NBTrafficLightLogicCont::getDefinitions(), GNENet::getEdgeCont(), NBTrafficLightLogicCont::getLogic(), GNEViewNet::getNet(), GNENet::getTLLogicCont(), GNEViewNet::getUndoList(), NBTrafficLightLogicCont::insert(), GNEFrame::myViewNet, NBTrafficLightLogicCont::removeProgram(), GNENetHelper::AttributeCarriers::retrieveJunction(), XMLSubSys::runParser(), GNEViewNet::setStatusBarText(), TL, toString(), and WRITE_WARNINGF.
Referenced by GNEApplicationWindow::onCmdOpenTLSPrograms(), and GNEApplicationWindow::onCmdReloadTLSPrograms().
|
virtual |
open GNEAttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented from GNEFrame.
Definition at line 283 of file GNETLSEditorFrame.cpp.
References editJunction().
|
inherited |
set width of GNEFrame
Definition at line 133 of file GNEFrame.cpp.
References GNEFrame::frameWidthUpdated(), GUIDesignFrameAreaMargin, GNEFrame::myContentFrame, and GNEFrame::myScrollWindowsContents.
Referenced by GNEInspectorFrame::inspectMultisection().
|
virtualinherited |
build a shaped element using the drawed shape
Reimplemented in GNEShapeFrame, and GNETAZFrame.
Definition at line 279 of file GNEFrame.cpp.
Referenced by GNEDrawingShape::stopDrawing().
|
virtual |
show inspector frame
Reimplemented from GNEFrame.
Definition at line 152 of file GNETLSEditorFrame.cpp.
References GNEOverlappedInspection::hideOverlappedInspection(), myOverlappedInspection, and GNEFrame::show().
Referenced by GNETLSEditorFrame::TLSAttributes::showTLSAttributes(), GNETLSEditorFrame::TLSDefinition::showTLSDefinition(), GNETLSEditorFrame::TLSFile::showTLSFile(), GNETLSEditorFrame::TLSPhases::showTLSPhases(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtualinherited |
Tag selected in GNETagSelector.
Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEStopFrame, GNEVehicleFrame, GNEAdditionalFrame, GNEShapeFrame, and GNEWireFrame.
Definition at line 267 of file GNEFrame.cpp.
Referenced by GNEPlanSelector::onCmdSelectPlan(), GNETagSelector::onCmdSelectTag(), GNEPlanSelector::refreshPlanSelector(), GNETagSelector::refreshTagSelector(), GNETagSelector::setCurrentTag(), and GNETagSelector::setCurrentTagType().
|
virtualinherited |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEInspectorFrame, GNESelectorFrame, GNEGenericDataFrame, and GNEMeanDataFrame.
Definition at line 252 of file GNEFrame.cpp.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
|
staticprivate |
convert duration (potentially undefined) to string
Definition at line 410 of file GNETLSEditorFrame.cpp.
References getSteps2Time(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by GNETLSEditorFrame::TLSPhases::initActuatedPhaseTable(), GNETLSEditorFrame::TLSPhases::initDelayBasePhaseTable(), and GNETLSEditorFrame::TLSPhases::initNEMAPhaseTable().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 120 of file GNEFrame.h.
Referenced by GNESelectorFrame::getContentFrame(), GNEFrame::getContentFrame(), GNEFrame::GNEFrame(), and GNEFrame::setFrameWidth().
|
private |
the traffic light definition being edited
Definition at line 655 of file GNETLSEditorFrame.h.
Referenced by cleanup(), controlsEdge(), getPhase(), handleChange(), and handleMultiChange().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 142 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 145 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().
|
protectedinherited |
fame for header elements
Definition at line 123 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 126 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::GNEInspectorFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 129 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
the internal lanes belonging to the current junction indexed by their tl-index
Definition at line 652 of file GNETLSEditorFrame.h.
Referenced by buildInternalLanes(), and handleMultiChange().
|
private |
Overlapped Inspection.
Definition at line 634 of file GNETLSEditorFrame.h.
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)
Definition at line 148 of file GNEFrame.h.
Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 139 of file GNEFrame.h.
Referenced by GNEFrame::getScrollBarWidth(), GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().
|
private |
module for TLS attributes
Definition at line 643 of file GNETLSEditorFrame.h.
Referenced by cleanup(), editJunction(), editTLS(), and getTLSAttributes().
|
private |
module for TLS Definition
Definition at line 640 of file GNETLSEditorFrame.h.
Referenced by cleanup(), editJunction(), getTLSDefinition(), handleChange(), handleMultiChange(), and isTLSSaved().
|
private |
module for load/Save TLS Programs
Definition at line 649 of file GNETLSEditorFrame.h.
|
private |
module for TLS Junction
Definition at line 637 of file GNETLSEditorFrame.h.
Referenced by buildInternalLanes(), cleanup(), editJunction(), editTLS(), and getTLSJunction().
|
private |
module for TLS Phases
Definition at line 646 of file GNETLSEditorFrame.h.
Referenced by cleanup(), editJunction(), frameWidthUpdated(), handleChange(), and ~GNETLSEditorFrame().
|
protectedinherited |
FOX need this.
View Net
Definition at line 117 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNECreateEdgeFrame::addBikelane(), GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEShapeFrame::addShape(), GNECreateEdgeFrame::addSidewalk(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEWireFrame::addWire(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNEContainerFrame::buildContainer(), buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), cleanup(), GNEInspectorFrame::clearInspectedAC(), GNEAdditionalFrame::createBaseAdditionalObject(), GNEWireFrame::createBaseWireObject(), GNEEdgeRelDataFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNECreateEdgeFrame::disablePedestrians(), GNETAZFrame::dropTAZMembers(), editJunction(), editTLS(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETypeFrame::GNETypeFrame(), handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectMultisection(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::Legend::Legend(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::SubordinatedElements::openWarningDialog(), parseTLSPrograms(), GNEShapeFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEMoveFrame::show(), GNESelectorFrame::show(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEFrame::show(), GNEAdditionalFrame::show(), GNEStopFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().