![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEProhibitionFrame.h>


Public Member Functions | |
| void | focusUpperElement () |
| focus upper element of frame More... | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame More... | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header More... | |
| GNEViewNet * | getViewNet () const |
| get view net More... | |
| GNEProhibitionFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
| FOX-declaration. More... | |
| void | handleConnectionClick (GNEConnection *conn, bool mayDefinitelyPass, bool allowConflict, bool toggle) |
| handle prohibitions and set teh relative colouring More... | |
| void | hide () |
| hide prohibition frame More... | |
| void | setFrameWidth (int newWidth) |
| set width of GNEFrame More... | |
| void | show () |
| show prohibition frame More... | |
| ~GNEProhibitionFrame () | |
| Destructor. More... | |
Protected Member Functions | |
| void | openHelpAttributesDialog (SumoXMLTag tag) const |
| Open help attributes dialog. More... | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame |
| Vertical frame that holds all widgets of frame. More... | |
| FXHorizontalFrame * | myHeaderFrame |
| fame for header elements More... | |
| FXHorizontalFrame * | myHeaderLeftFrame |
| fame for left header elements More... | |
| FXHorizontalFrame * | myHeaderRightFrame |
| fame for right header elements More... | |
| GNEViewNet * | myViewNet |
| View Net for changes. More... | |
FOX-callbacks | |
Called when the user presses the OK-Button saves any prohibition modifications | |
| enum | ConnStatus { UNDEFINED, PROHIBITED, PROHIBITING } |
| the prohibition status of a connection More... | |
| FXGroupBox * | myGroupBoxDescription |
| Groupbox for description. More... | |
| FXLabel * | myConnDescriptionLabel |
| the label that shows the currently selected connection More... | |
| FXGroupBox * | myGroupBoxLegend |
| group box for legend More... | |
| FXLabel * | mySelectedLabel |
| selected connection label More... | |
| FXLabel * | myUndefinedLabel |
| "undefined" yielding label More... | |
| FXLabel * | myProhibitedLabel |
| "prohibited" label More... | |
| FXLabel * | myProhibitingLabel |
| "prohibiting" label More... | |
| FXButton * | myCancelButton |
| "Cancel" button More... | |
| GNEConnection * | myCurrentConn |
| "OK" button More... | |
| std::set< GNEConnection * > | myConcernedConns |
| the set of connections which More... | |
| static RGBColor | selectedColor |
| color for selected connection whose prohibition shall be shown More... | |
| static RGBColor | undefinedColor |
| color for non-conflicting pairs of connections More... | |
| static RGBColor | prohibitedColor |
| color for waiting connections More... | |
| static RGBColor | prohibitingColor |
| color for connections with precedence More... | |
| static RGBColor | unregulatedConflictColor |
| color for unregulated conflicts More... | |
| static RGBColor | mutualConflictColor |
| color for mutual conflicts More... | |
| long | onCmdOK (FXObject *, FXSelector, void *) |
| long | onCmdCancel (FXObject *, FXSelector, void *) |
| Called when the user presses the Cancel-button discards any prohibition modifications. More... | |
| GNEProhibitionFrame () | |
| FOX needs this. More... | |
| void | updateDescription () const |
| update description More... | |
The Widget for editing connection foes
Definition at line 40 of file GNEProhibitionFrame.h.
|
private |
the prohibition status of a connection
| Enumerator | |
|---|---|
| UNDEFINED | |
| PROHIBITED | |
| PROHIBITING | |
Definition at line 80 of file GNEProhibitionFrame.h.
| GNEProhibitionFrame::GNEProhibitionFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
| GNEViewNet * | viewNet | ||
| ) |
FOX-declaration.
Constructor parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 76 of file GNEProhibitionFrame.cpp.
References RGBColor::CYAN, GNEFrame::getFrameHeaderLabel(), MFXUtils::getFXColor(), GUIIconSubSys::getIcon(), RGBColor::GREY, GUIDesignButton, GUIDesignGroupBoxFrame, GUIDesignLabelFrameInformation, ICON_CANCEL, MID_CANCEL, mutualConflictColor, myCancelButton, myConnDescriptionLabel, GNEFrame::myContentFrame, myGroupBoxDescription, myGroupBoxLegend, myProhibitedLabel, myProhibitingLabel, mySelectedLabel, myUndefinedLabel, RGBColor::ORANGE, prohibitedColor, prohibitingColor, RGBColor::RED, selectedColor, GNENet::selectedConnectionColor, undefinedColor, unregulatedConflictColor, updateDescription(), and RGBColor::WHITE.
| GNEProhibitionFrame::~GNEProhibitionFrame | ( | ) |
Destructor.
Definition at line 121 of file GNEProhibitionFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 75 of file GNEProhibitionFrame.h.
|
inherited |
focus upper element of frame
Definition at line 735 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEViewNet::onLeftBtnPress(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
|
inherited |
get font of the header's frame
Definition at line 778 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 772 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
inherited |
get view net
Definition at line 766 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEPolygonFrame::DrawingMode::abortDrawing(), GNETLSEditorFrame::TLSFile::checkTLSValids(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNETLSEditorFrame::TLSFile::myStartElement(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorParentAdditional::refreshListOfAdditionalParents(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::edgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorParentEdges::showList(), GNEAdditionalFrame::SelectorParentLanes::showList(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::AdditionalAttributes::showWarningMessage(), GNEPolygonFrame::ShapeAttributes::showWarningMessage(), GNEPolygonFrame::DrawingMode::stopDrawing(), GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes(), GNEAdditionalFrame::SelectorParentEdges::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorParentLanes::updateUseSelectedLanes().
| void GNEProhibitionFrame::handleConnectionClick | ( | GNEConnection * | conn, |
| bool | mayDefinitelyPass, | ||
| bool | allowConflict, | ||
| bool | toggle | ||
| ) |
handle prohibitions and set teh relative colouring
Definition at line 124 of file GNEProhibitionFrame.cpp.
References NBNode::foes(), NBNode::forbids(), GNEConnection::getEdgeFrom(), GNEConnection::getEdgeTo(), GNEJunction::getGNEConnections(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getNBEdge(), GNEJunction::getNBNode(), mutualConflictColor, myConcernedConns, myCurrentConn, prohibitedColor, prohibitingColor, selectedColor, GNEConnection::setSpecialColor(), undefinedColor, unregulatedConflictColor, and updateDescription().
Referenced by GNEViewNet::onLeftBtnPress().
|
virtual |
hide prohibition frame
Reimplemented from GNEFrame.
Definition at line 175 of file GNEProhibitionFrame.cpp.
References GNEFrame::hide().
| long GNEProhibitionFrame::onCmdCancel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user presses the Cancel-button discards any prohibition modifications.
Definition at line 189 of file GNEProhibitionFrame.cpp.
References myConcernedConns, myCurrentConn, GNEFrame::myViewNet, GNEConnection::setSpecialColor(), and updateDescription().
Referenced by GNEViewNet::abortOperation().
| long GNEProhibitionFrame::onCmdOK | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 204 of file GNEProhibitionFrame.cpp.
|
protectedinherited |
Open help attributes dialog.
Definition at line 784 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::getTagProperties(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::AttributesEditor::onCmdAttributeHelp(), GNECrossingFrame::crossingParameters::onCmdHelp(), GNEAdditionalFrame::AdditionalAttributes::onCmdHelp(), and GNEPolygonFrame::ShapeAttributes::onCmdHelp().
|
inherited |
set width of GNEFrame
Definition at line 759 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtual |
show prohibition frame
Reimplemented from GNEFrame.
Definition at line 170 of file GNEProhibitionFrame.cpp.
References GNEFrame::show().
Referenced by GNEViewNet::updateModeSpecificControls().
|
private |
update description
Definition at line 180 of file GNEProhibitionFrame.cpp.
References GNEConnection::getLaneFrom(), GNEConnection::getLaneTo(), GUIGlObject::getMicrosimID(), myConnDescriptionLabel, and myCurrentConn.
Referenced by GNEProhibitionFrame(), handleConnectionClick(), and onCmdCancel().
|
staticprivate |
color for mutual conflicts
Definition at line 135 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame(), and handleConnectionClick().
|
private |
"Cancel" button
Definition at line 108 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
private |
the set of connections which
Definition at line 117 of file GNEProhibitionFrame.h.
Referenced by handleConnectionClick(), and onCmdCancel().
|
private |
the label that shows the currently selected connection
Definition at line 90 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame(), and updateDescription().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 235 of file GNEFrame.h.
Referenced by GNEConnectorFrame::GNEConnectorFrame(), GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
"OK" button
the connection which prohibits
Definition at line 114 of file GNEProhibitionFrame.h.
Referenced by handleConnectionClick(), onCmdCancel(), and updateDescription().
|
private |
Groupbox for description.
Definition at line 87 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
private |
group box for legend
Definition at line 93 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
protectedinherited |
fame for header elements
Definition at line 238 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 241 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 244 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
"prohibited" label
Definition at line 102 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
private |
"prohibiting" label
Definition at line 105 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
private |
selected connection label
Definition at line 96 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
private |
"undefined" yielding label
Definition at line 99 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame().
|
protectedinherited |
View Net for changes.
Definition at line 232 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildPoly(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectElement(), GNEConnectorFrame::onCmdCancel(), onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::show(), and GNEFrame::show().
|
staticprivate |
color for waiting connections
Definition at line 126 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame(), and handleConnectionClick().
|
staticprivate |
color for connections with precedence
Definition at line 129 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame(), and handleConnectionClick().
|
staticprivate |
color for selected connection whose prohibition shall be shown
Definition at line 120 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame(), and handleConnectionClick().
|
staticprivate |
color for non-conflicting pairs of connections
Definition at line 123 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame(), and handleConnectionClick().
|
staticprivate |
color for unregulated conflicts
Definition at line 132 of file GNEProhibitionFrame.h.
Referenced by GNEProhibitionFrame(), and handleConnectionClick().