![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEFrame.h>
Data Structures | |
class | ACAttributeRow |
class | ACAttributes |
class | ACHierarchy |
class | DrawingShape |
class | GenericParametersEditor |
class | ItemSelector |
class | NeteditAttributes |
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... | |
GNEFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet, const std::string &frameLabel) | |
Constructor. More... | |
virtual void | hide () |
hide Frame More... | |
void | setFrameWidth (int newWidth) |
set width of GNEFrame More... | |
virtual void | show () |
show Frame More... | |
~GNEFrame () | |
destructor More... | |
Protected Member Functions | |
virtual bool | buildShape () |
build a shaped element using the drawed shape (can be reimplemented in frame childs) return true if was sucesfully created More... | |
virtual void | disableModuls () |
disable moduls if element selected in itemSelector isn't valid (can be reimplemented in frame childs) More... | |
virtual void | enableModuls (const GNEAttributeCarrier::TagProperties &tagProperties) |
enable moduls depending of item selected in ItemSelector (can be reimplemented in frame childs) More... | |
const RGBColor & | getEdgeCandidateColor () const |
get edge candidate color More... | |
const RGBColor & | getEdgeCandidateSelectedColor () const |
get selected color More... | |
GNEFrame () | |
FOX needs this. More... | |
void | openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) 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... | |
Private Member Functions | |
GNEFrame (const GNEFrame &)=delete | |
Invalidated copy constructor. More... | |
GNEFrame & | operator= (const GNEFrame &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
RGBColor | myEdgeCandidateColor |
edge candidate color (used by some modulds to mark edges) More... | |
RGBColor | myEdgeCandidateSelectedColor |
selected edge candidate color (used by some modulds to selected mark edges) More... | |
FXFont * | myFrameHeaderFont |
Font for the Header. More... | |
FXLabel * | myFrameHeaderLabel |
the label for the frame's header More... | |
FXScrollWindow * | myScrollWindowsContents |
scroll windows that holds the content frame More... | |
Abstract class for lateral frames in NetEdit
Definition at line 38 of file GNEFrame.h.
GNEFrame::GNEFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet, | ||
const std::string & | frameLabel | ||
) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame frameLabel label of the frame
Definition at line 1643 of file GNEFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignContentsFrame, GUIDesignContentsScrollWindow, GUIDesignHorizontalSeparator, GUIDesignLabelFrameInformation, myContentFrame, myFrameHeaderFont, myFrameHeaderLabel, myHeaderFrame, myHeaderLeftFrame, myHeaderRightFrame, and myScrollWindowsContents.
GNEFrame::~GNEFrame | ( | ) |
|
inlineprotected |
FOX needs this.
Definition at line 588 of file GNEFrame.h.
References buildShape(), disableModuls(), enableModuls(), getEdgeCandidateColor(), getEdgeCandidateSelectedColor(), and openHelpAttributesDialog().
|
privatedelete |
Invalidated copy constructor.
|
protectedvirtual |
build a shaped element using the drawed shape (can be reimplemented in frame childs) return true if was sucesfully created
Reimplemented in GNETAZFrame, and GNEPolygonFrame.
Definition at line 1738 of file GNEFrame.cpp.
Referenced by GNEFrame(), and GNEFrame::DrawingShape::stopDrawing().
|
protectedvirtual |
disable moduls if element selected in itemSelector isn't valid (can be reimplemented in frame childs)
Reimplemented in GNEAdditionalFrame, and GNEPolygonFrame.
Definition at line 1751 of file GNEFrame.cpp.
Referenced by GNEFrame(), GNEFrame::ItemSelector::onCmdSelectItem(), and GNEFrame::ItemSelector::setCurrentTypeTag().
|
protectedvirtual |
enable moduls depending of item selected in ItemSelector (can be reimplemented in frame childs)
Reimplemented in GNEAdditionalFrame, and GNEPolygonFrame.
Definition at line 1745 of file GNEFrame.cpp.
Referenced by GNEFrame(), GNEFrame::ItemSelector::onCmdSelectItem(), and GNEFrame::ItemSelector::setCurrentTypeTag().
void GNEFrame::focusUpperElement | ( | ) |
focus upper element of frame
Definition at line 1689 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processClick(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
|
protected |
get edge candidate color
Definition at line 1824 of file GNEFrame.cpp.
References myEdgeCandidateColor.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame(), and GNECrossingFrame::CrossingParameters::onCmdSetAttribute().
|
protected |
get selected color
Definition at line 1830 of file GNEFrame.cpp.
References myEdgeCandidateSelectedColor.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame(), and GNECrossingFrame::CrossingParameters::onCmdSetAttribute().
FXFont * GNEFrame::getFrameHeaderFont | ( | ) | const |
get font of the header's frame
Definition at line 1732 of file GNEFrame.cpp.
References myFrameHeaderFont.
FXLabel * GNEFrame::getFrameHeaderLabel | ( | ) | const |
get the label for the frame's header
Definition at line 1726 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
GNEViewNet * GNEFrame::getViewNet | ( | ) | const |
get view net
Definition at line 1720 of file GNEFrame.cpp.
References myViewNet.
Referenced by GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrame::DrawingShape::abortDrawing(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::EdgesSelector::enableEdgeSelector(), GNEAdditionalFrame::SelectorEdgeChilds::getEdgeIdsSelected(), GNEAdditionalFrame::SelectorLaneChilds::getLaneIdsSelected(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorAdditionalParent::refreshSelectorAdditionalParentModul(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::EdgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorEdgeChilds::showSelectorEdgeChildsModul(), GNEAdditionalFrame::SelectorLaneChilds::showSelectorLaneChildsModul(), GNEFrame::ACAttributes::showWarningMessage(), GNEFrame::DrawingShape::stopDrawing(), GNEAdditionalFrame::SelectorEdgeChilds::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorLaneChilds::updateUseSelectedLanes().
|
virtual |
hide Frame
Reimplemented in GNETAZFrame, GNEInspectorFrame, GNESelectorFrame, GNECrossingFrame, GNEDeleteFrame, and GNEProhibitionFrame.
Definition at line 1704 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and myViewNet.
Referenced by GNEFrame::ACHierarchy::ACHierarchy(), GNEProhibitionFrame::hide(), GNEDeleteFrame::hide(), GNECrossingFrame::hide(), GNESelectorFrame::hide(), GNEInspectorFrame::hide(), GNETAZFrame::hide(), GNEFrame::ACAttributes::hideACAttributesModul(), GNEFrame::ACHierarchy::hideACHierarchy(), GNEViewParent::Frames::hideFrames(), GNEFrame::GenericParametersEditor::hideGenericParametersEditor(), GNEPolygonFrame::GEOPOICreator::hideGEOPOICreatorModul(), GNEFrame::NeteditAttributes::hideNeteditAttributesModul(), GNEFrame::ACAttributeRow::hideParameter(), GNEAdditionalFrame::SelectorAdditionalParent::hideSelectorAdditionalParentModul(), and GNEFrame::NeteditAttributes::showNeteditAttributesModul().
|
protected |
Open help attributes dialog.
Definition at line 1757 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::TagProperties::getNumberOfAttributes(), GNEAttributeCarrier::TagProperties::getTagStr(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, myScrollWindowsContents, toString(), and WRITE_DEBUG.
Referenced by GNEFrame(), GNEInspectorFrame::AttributesEditor::onCmdAttributeHelp(), GNECrossingFrame::CrossingParameters::onCmdHelp(), GNEFrame::ACAttributes::onCmdHelp(), and GNETAZFrame::TAZParameters::onCmdHelp().
void GNEFrame::setFrameWidth | ( | int | newWidth | ) |
set width of GNEFrame
Definition at line 1713 of file GNEFrame.cpp.
References myScrollWindowsContents.
Referenced by GNEViewParent::Frames::setWidth().
|
virtual |
show Frame
Reimplemented in GNEInspectorFrame, GNESelectorFrame, GNEAdditionalFrame, GNEPolygonFrame, GNEDeleteFrame, and GNEProhibitionFrame.
Definition at line 1695 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEProhibitionFrame::show(), GNEDeleteFrame::show(), GNEPolygonFrame::show(), GNEAdditionalFrame::show(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEFrame::ACAttributes::showACAttributesModul(), GNEFrame::ACHierarchy::showACHierarchy(), GNEFrame::GenericParametersEditor::showGenericParametersEditor(), GNEFrame::NeteditAttributes::showNeteditAttributesModul(), GNEFrame::ACAttributeRow::showParameter(), GNEAdditionalFrame::showSelectorLaneChildsModul(), GNETAZFrame::TAZChildDefaultParameters::showTAZChildDefaultParametersModul(), GNETAZFrame::TAZCommonStatistics::showTAZCommonStatisticsModul(), GNETAZFrame::TAZEdgesGraphic::showTAZEdgesGraphicModul(), GNETAZFrame::TAZSaveChanges::showTAZSaveChangesModul(), GNETAZFrame::TAZSelectionStatistics::showTAZSelectionStatisticsModul(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), and GNEViewNet::updateModeSpecificControls().
|
protected |
Vertical frame that holds all widgets of frame.
Definition at line 615 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame(), GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
edge candidate color (used by some modulds to mark edges)
Definition at line 637 of file GNEFrame.h.
Referenced by getEdgeCandidateColor().
|
private |
selected edge candidate color (used by some modulds to selected mark edges)
Definition at line 640 of file GNEFrame.h.
Referenced by getEdgeCandidateSelectedColor().
|
private |
Font for the Header.
Definition at line 631 of file GNEFrame.h.
Referenced by getFrameHeaderFont(), GNEFrame(), and ~GNEFrame().
|
private |
the label for the frame's header
Definition at line 634 of file GNEFrame.h.
Referenced by focusUpperElement(), getFrameHeaderLabel(), and GNEFrame().
|
protected |
|
protected |
fame for left header elements
Definition at line 621 of file GNEFrame.h.
Referenced by GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protected |
|
private |
scroll windows that holds the content frame
Definition at line 628 of file GNEFrame.h.
Referenced by GNEFrame(), openHelpAttributesDialog(), and setFrameWidth().
|
protected |
View Net for changes.
Definition at line 612 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildShape(), GNETAZFrame::buildShape(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNETAZFrame::TAZCurrent::setTAZ(), GNEDeleteFrame::show(), show(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), and GNETAZFrame::TAZEdgesGraphic::updateEdgeColors().