17 #ifndef GNEProhibitionFrame_h 18 #define GNEProhibitionFrame_h 70 long onCmdOK(FXObject*, FXSelector,
void*);
void show()
show prohibition frame
FXGroupBox * myGroupBoxDescription
Groupbox for description.
static RGBColor undefinedColor
color for non-conflicting pairs of connections
static RGBColor mutualConflictColor
color for mutual conflicts
static RGBColor unregulatedConflictColor
color for unregulated conflicts
void updateDescription() const
update description
std::set< GNEConnection * > myConcernedConns
the set of connections which
FXLabel * myProhibitingLabel
"prohibiting" label
FXGroupBox * myGroupBoxLegend
group box for legend
static RGBColor prohibitingColor
color for connections with precedence
GNEConnection * myCurrentConn
"OK" button
FXLabel * myConnDescriptionLabel
the label that shows the currently selected connection
GNEProhibitionFrame()
FOX needs this.
FXButton * myCancelButton
"Cancel" button
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any prohibition modifications.
FXLabel * mySelectedLabel
selected connection label
ConnStatus
the prohibition status of a connection
FXLabel * myUndefinedLabel
"undefined" yielding label
long onCmdOK(FXObject *, FXSelector, void *)
~GNEProhibitionFrame()
Destructor.
void handleProhibitionClick(const GNEViewNet::ObjectsUnderCursor &objectsUnderCursor)
handle prohibitions and set the relative colouring
static RGBColor selectedColor
color for selected connection whose prohibition shall be shown
static RGBColor prohibitedColor
color for waiting connections
FXLabel * myProhibitedLabel
"prohibited" label
void hide()
hide prohibition frame
void buildProhibition(GNEConnection *conn, bool mayDefinitelyPass, bool allowConflict, bool toggle)
build prohibition