20 #ifndef GNETLSEditor_h 21 #define GNETLSEditor_h 86 long onCmdOK(FXObject*, FXSelector,
void*);
158 typedef std::map<int, std::vector<GNEInternalLane*> >
TLIndexMap;
202 const std::vector<NBTrafficLightLogic::PhaseDefinition>&
getPhases();
bool controlsEdge(GNEEdge &edge) const
whether the given edge is controlled by the currently edited tlDef
long onCmdDefOffset(FXObject *, FXSelector, void *)
const std::vector< NBTrafficLightLogic::PhaseDefinition > & getPhases()
the phase of the current traffic light
GNEJunction * myCurrentJunction
the junction of the tls is being modified
GNEViewNet * myUpdateTarget
FXLabel * myCycleDuration
A loaded (complete) traffic light logic.
void handleMultiChange(GNELane *lane, FXObject *obj, FXSelector sel, void *data)
update phase definition for the current traffic light and phase
long onCmdDefDelete(FXObject *, FXSelector, void *)
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
long onCmdDefCreate(FXObject *, FXSelector, void *)
TLIndexMap myInternalLanes
The base class for traffic light logic definitions.
long onCmdDefSwitch(FXObject *, FXSelector, void *)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void updateDescription() const
long onUpdModified(FXObject *, FXSelector, void *)
void initPhaseTable(unsigned int index=0)
FXTextField * myOffset
the control for modifying offset
long onUpdDefCreate(FXObject *, FXSelector, void *)
long onCmdToggle(FXObject *, FXSelector, void *)
Called when the user presses the Corresponding-button.
~GNETLSEditor()
Destructor.
void cleanup()
cleans up previous lanes
long onCmdPhaseCreate(FXObject *, FXSelector, void *)
void updateCycleDuration()
recomputes cycle duration and updates label
long onCmdDefSubRename(FXObject *, FXSelector, void *)
NBLoadedSUMOTLDef * myEditedDef
the traffic light definition being edited
long onUpdNeedsDefAndPhase(FXObject *, FXSelector, void *)
FXListBox * myDefBox
the listbox for selecting the tl-definition to edit
long onCmdMakeRILSAConforming(FXObject *, FXSelector, void *)
long onCmdPhaseSwitch(FXObject *, FXSelector, void *)
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any modifications.
void handleChange(GNEInternalLane *lane)
update phase definition for the current traffic light and phase
static SUMOTime getSUMOTime(const FXString &string)
converts to SUMOTime
FXVerticalFrame * myContentFrame
the panel to hold all member widgets
GNEUndoList * myUndoList
the undolist with wich to register changes
FXTable * myPhaseTable
table for selecting and rearranging phases and for changing duration
long onCmdPhaseEdit(FXObject *, FXSelector, void *)
FXFont * myTableFont
font for the phase table
A road/street connecting two junctions (netedit-version)
unsigned int myPhaseIndex
index of the phase being shown
void editJunction(GNEJunction *junction)
edits the traffic light for the given junction
GNETLSEditor()
FOX needs this.
long onUpdNeedsDef(FXObject *, FXSelector, void *)
std::map< int, std::vector< GNEInternalLane * > > TLIndexMap
the internal lanes belonging the the current junction indexed by their tl-index
FXLabel * myDescription
the label that shows the current editing state
long onCmdDefAddOff(FXObject *, FXSelector, void *)
bool myHaveModifications
whether the current tls was modified
std::vector< NBTrafficLightDefinition * > myDefinitions
the list of Definitions for the current junction
void buildIinternalLanes(NBTrafficLightDefinition *tlDef)
long onCmdDefRename(FXObject *, FXSelector, void *)
long onCmdGuess(FXObject *, FXSelector, void *)
long onUpdDefSwitch(FXObject *, FXSelector, void *)
long onCmdPhaseDelete(FXObject *, FXSelector, void *)
long onCmdOK(FXObject *, FXSelector, void *)
Called when the user presses the OK-Button saves any modifications.
FXFont * myHeaderFont
Font for the widget.
static const int WIDTH
the width of the widget