![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrame.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... | |
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... | |
virtual void | updateFrameAfterUndoRedo () |
function called after undo/redo in the current frame (can be reimplemented in frame children) More... | |
~GNEFrame () | |
destructor More... | |
Protected Member Functions | |
const std::vector< std::string > & | getPredefinedTagsMML () const |
get predefinedTagsMML More... | |
void | openHelpAttributesDialog (const GNETagProperties &tagProperties) const |
Open help attributes dialog. More... | |
functions called by moduls that can be reimplemented in frame children | |
virtual void | tagSelected () |
Tag selected in TagSelector. More... | |
virtual void | demandElementSelected () |
selected demand element in DemandElementSelector More... | |
virtual bool | shapeDrawed () |
build a shaped element using the drawed shape (can be reimplemented in frame children) More... | |
virtual void | attributeUpdated () |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... More... | |
virtual void | attributesEditorExtendedDialogOpened () |
open AttributesCreator extended dialog (can be reimplemented in frame children) More... | |
virtual void | selectedOverlappedElement (GNEAttributeCarrier *AC) |
open AttributesCreator extended dialog (can be reimplemented in frame children) More... | |
virtual void | createPath () |
create path (can be reimplemented in frame children) More... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame = nullptr |
Vertical frame that holds all widgets of frame. More... | |
FXHorizontalFrame * | myHeaderFrame = nullptr |
fame for header elements More... | |
FXHorizontalFrame * | myHeaderLeftFrame = nullptr |
fame for left header elements More... | |
FXHorizontalFrame * | myHeaderRightFrame = nullptr |
fame for right header elements More... | |
GNEViewNet * | myViewNet = nullptr |
View Net. More... | |
Private Member Functions | |
GNEFrame (const GNEFrame &)=delete | |
Invalidated copy constructor. More... | |
GNEFrame & | operator= (const GNEFrame &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
FXLabel * | myFrameHeaderLabel = nullptr |
the label for the frame's header More... | |
std::vector< std::string > | myPredefinedTagsMML |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More... | |
FXScrollWindow * | myScrollWindowsContents = nullptr |
scroll windows that holds the content frame More... | |
Static Private Attributes | |
static FXFont * | myFrameHeaderFont = nullptr |
static Font for the Header (it's common for all headers, then create only one time) More... | |
Friends | |
class | GNEFrameAttributesModuls |
class | GNEFrameModuls |
friend class More... | |
Abstract class for lateral frames in NetEdit
Definition at line 32 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 40 of file GNEFrame.cpp.
References SUMOXMLDefinitions::attrs, GUIDesignAuxiliarHorizontalFrame, GUIDesignContentsFrame, GUIDesignContentsScrollWindow, GUIDesignHorizontalSeparator, GUIDesignLabelFrameInformation, myContentFrame, myFrameHeaderFont, myFrameHeaderLabel, myHeaderFrame, myHeaderLeftFrame, myHeaderRightFrame, myPredefinedTagsMML, myScrollWindowsContents, and SUMO_ATTR_NOTHING.
GNEFrame::~GNEFrame | ( | ) |
|
privatedelete |
Invalidated copy constructor.
|
protectedvirtual |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNEVehicleTypeFrame.
Definition at line 185 of file GNEFrame.cpp.
|
protectedvirtual |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented in GNEVehicleTypeFrame, GNEPersonTypeFrame, and GNEInspectorFrame.
Definition at line 179 of file GNEFrame.cpp.
|
protectedvirtual |
create path (can be reimplemented in frame children)
Reimplemented in GNEVehicleFrame, GNERouteFrame, GNEPersonPlanFrame, GNEPersonFrame, GNEGenericDataFrame, and GNEEdgeRelDataFrame.
Definition at line 197 of file GNEFrame.cpp.
Referenced by GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdCreatePath().
|
protectedvirtual |
selected demand element in DemandElementSelector
Reimplemented in GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.
Definition at line 166 of file GNEFrame.cpp.
void GNEFrame::focusUpperElement | ( | ) |
focus upper element of frame
Definition at line 102 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
FXFont * GNEFrame::getFrameHeaderFont | ( | ) | const |
get font of the header's frame
Definition at line 145 of file GNEFrame.cpp.
References myFrameHeaderFont.
FXLabel * GNEFrame::getFrameHeaderLabel | ( | ) | const |
get the label for the frame's header
Definition at line 139 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
protected |
get predefinedTagsMML
Definition at line 269 of file GNEFrame.cpp.
References myPredefinedTagsMML.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::createPath(), and GNETAZFrame::shapeDrawed().
GNEViewNet * GNEFrame::getViewNet | ( | ) | const |
get view net
Definition at line 133 of file GNEFrame.cpp.
References myViewNet.
Referenced by GNEVehicleTypeFrame::attributesEditorExtendedDialogOpened(), GNEInspectorFrame::clearInspectedAC(), GNEConnectorFrame::ConnectionLegend::ConnectionLegend(), GNEInternalLane::drawGL(), GNEInternalLane::getPopUpMenu(), GNESingleParametersDialog::GNESingleParametersDialog(), GNEMultipleParametersDialog::onCmdAccept(), GNESingleParametersDialog::onCmdAccept(), GNEMultipleParametersDialog::onCmdReset(), GNESingleParametersDialog::onCmdReset(), GNEFrameModuls::PathLegend::PathLegend(), and GNEVehicleTypeFrame::show().
|
virtual |
hide Frame
Reimplemented in GNETAZFrame, GNEProhibitionFrame, GNECrossingFrame, GNECreateEdgeFrame, GNEVehicleFrame, GNERouteFrame, GNEPersonPlanFrame, GNEPersonFrame, GNEGenericDataFrame, GNESelectorFrame, GNEMoveFrame, GNEInspectorFrame, and GNEDeleteFrame.
Definition at line 117 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and myViewNet.
Referenced by GNEDeleteFrame::hide(), GNEInspectorFrame::hide(), GNEMoveFrame::hide(), GNESelectorFrame::hide(), GNEGenericDataFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNECreateEdgeFrame::hide(), GNECrossingFrame::hide(), GNEProhibitionFrame::hide(), GNETAZFrame::hide(), GNEAdditionalFrame::E2MultilaneLaneSelector::hideE2MultilaneLaneSelectorModul(), GNEPolygonFrame::GEOPOICreator::hideGEOPOICreatorModul(), GNEStopFrame::HelpCreation::hideHelpCreation(), GNEPersonTypeFrame::PersonTypeEditor::hidePersonTypeEditorModul(), and GNEVehicleTypeFrame::VehicleTypeEditor::hideVehicleTypeEditorModul().
|
protected |
Open help attributes dialog.
Definition at line 202 of file GNEFrame.cpp.
References ACCEPT, GUIIconSubSys::getIcon(), GNETagProperties::getNumberOfAttributes(), GNETagProperties::getTagStr(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, MAX2(), MID_TABLE, MODEINSPECT, myScrollWindowsContents, toString(), and WRITE_DEBUG.
|
protectedvirtual |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNETLSEditorFrame, and GNEInspectorFrame.
Definition at line 191 of file GNEFrame.cpp.
void GNEFrame::setFrameWidth | ( | int | newWidth | ) |
set width of GNEFrame
Definition at line 126 of file GNEFrame.cpp.
References myScrollWindowsContents.
|
protectedvirtual |
build a shaped element using the drawed shape (can be reimplemented in frame children)
Reimplemented in GNETAZFrame, and GNEPolygonFrame.
Definition at line 172 of file GNEFrame.cpp.
|
virtual |
show Frame
Reimplemented in GNETLSEditorFrame, GNEProhibitionFrame, GNEPolygonFrame, GNECreateEdgeFrame, GNEAdditionalFrame, GNEVehicleTypeFrame, GNEVehicleFrame, GNEStopFrame, GNERouteFrame, GNEPersonTypeFrame, GNEPersonPlanFrame, GNEPersonFrame, GNEGenericDataFrame, GNESelectorFrame, GNEMoveFrame, GNEInspectorFrame, and GNEDeleteFrame.
Definition at line 108 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEDeleteFrame::show(), GNEInspectorFrame::show(), GNEMoveFrame::show(), GNESelectorFrame::show(), GNEGenericDataFrame::show(), GNEPersonFrame::show(), GNEPersonPlanFrame::show(), GNEPersonTypeFrame::show(), GNERouteFrame::show(), GNEStopFrame::show(), GNEVehicleFrame::show(), GNEVehicleTypeFrame::show(), GNEAdditionalFrame::show(), GNECreateEdgeFrame::show(), GNEPolygonFrame::show(), GNEProhibitionFrame::show(), GNETLSEditorFrame::show(), GNEAdditionalFrame::showSelectorChildLanesModul(), GNETAZFrame::TAZChildDefaultParameters::showTAZChildDefaultParametersModul(), GNETAZFrame::TAZCommonStatistics::showTAZCommonStatisticsModul(), GNETAZFrame::TAZEdgesGraphic::showTAZEdgesGraphicModul(), GNETAZFrame::TAZSaveChanges::showTAZSaveChangesModul(), GNETAZFrame::TAZSelectionStatistics::showTAZSelectionStatisticsModul(), and GNEViewNet::updateNetworkModeSpecificControls().
|
protectedvirtual |
Tag selected in TagSelector.
Reimplemented in GNEPolygonFrame, GNEAdditionalFrame, GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.
Definition at line 160 of file GNEFrame.cpp.
|
virtual |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEInspectorFrame.
Definition at line 151 of file GNEFrame.cpp.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
|
friend |
Definition at line 36 of file GNEFrame.h.
|
friend |
friend class
Definition at line 35 of file GNEFrame.h.
|
protected |
Vertical frame that holds all widgets of frame.
Definition at line 116 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame(), GNESelectorFrame::GNESelectorFrame(), and GNEInspectorFrame::inspectMultisection().
|
staticprivate |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 132 of file GNEFrame.h.
Referenced by getFrameHeaderFont(), GNEFrame(), and ~GNEFrame().
|
private |
the label for the frame's header
Definition at line 135 of file GNEFrame.h.
Referenced by focusUpperElement(), getFrameHeaderLabel(), and GNEFrame().
|
protected |
|
protected |
fame for left header elements
Definition at line 122 of file GNEFrame.h.
Referenced by GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protected |
|
private |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)
Definition at line 138 of file GNEFrame.h.
Referenced by getPredefinedTagsMML(), and GNEFrame().
|
private |
scroll windows that holds the content frame
Definition at line 129 of file GNEFrame.h.
Referenced by GNEFrame(), openHelpAttributesDialog(), and setFrameWidth().
|
protected |
View Net.
Definition at line 113 of file GNEFrame.h.
Referenced by GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNETAZRelDataFrame::addTAZRelationData(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), hide(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectMultisection(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEDeleteFrame::SubordinatedElements::openWarningDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), and show().