![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEVehicleTypeFrame.h>
Data Structures | |
class | VehicleTypeEditor |
class | VehicleTypeSelector |
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... | |
VehicleTypeSelector * | getVehicleTypeSelector () const |
get vehicle type selector More... | |
GNEViewNet * | getViewNet () const |
get view net More... | |
GNEVehicleTypeFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
Constructor. More... | |
virtual void | hide () |
hide Frame More... | |
void | setFrameWidth (int newWidth) |
set width of GNEFrame More... | |
void | show () |
show Frame More... | |
virtual void | updateFrameAfterUndoRedo () |
function called after undo/redo in the current frame (can be reimplemented in frame children) More... | |
~GNEVehicleTypeFrame () | |
Destructor. More... | |
Protected Member Functions | |
void | attributesEditorExtendedDialogOpened () |
open AttributesCreator extended dialog (used for editing advance attributes of Vehicle Types) More... | |
void | attributeUpdated () |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... More... | |
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 | 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 Attributes | |
GNEFrameAttributesModuls::AttributesEditorExtended * | myAttributesEditorExtended |
modul for open extended attributes dialog More... | |
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... | |
GNEFrameAttributesModuls::AttributesEditor * | myVehicleTypeAttributesEditor |
editorinternal vehicle type attributes More... | |
VehicleTypeEditor * | myVehicleTypeEditor |
Vehicle Type editor (Create, copy, etc.) More... | |
VehicleTypeSelector * | myVehicleTypeSelector |
vehicle type selector 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... | |
Definition at line 36 of file GNEVehicleTypeFrame.h.
GNEVehicleTypeFrame::GNEVehicleTypeFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet | ||
) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 376 of file GNEVehicleTypeFrame.cpp.
References DEFAULT_VTYPE_ID, GNEViewNet::getNet(), myAttributesEditorExtended, myVehicleTypeAttributesEditor, myVehicleTypeEditor, myVehicleTypeSelector, GNEFrame::myViewNet, GNENet::retrieveDemandElement(), GNEVehicleTypeFrame::VehicleTypeSelector::setCurrentVehicleType(), and SUMO_TAG_VTYPE.
GNEVehicleTypeFrame::~GNEVehicleTypeFrame | ( | ) |
Destructor.
Definition at line 396 of file GNEVehicleTypeFrame.cpp.
|
protectedvirtual |
open AttributesCreator extended dialog (used for editing advance attributes of Vehicle Types)
Reimplemented from GNEFrame.
Definition at line 426 of file GNEVehicleTypeFrame.cpp.
References GNEVehicleTypeFrame::VehicleTypeSelector::getCurrentVehicleType(), GNEFrameAttributesModuls::AttributesEditor::getFrameParent(), GNEFrame::getViewNet(), myVehicleTypeAttributesEditor, myVehicleTypeSelector, GNEViewNet::setInspectedAttributeCarriers(), and GNEFrameAttributesModuls::AttributesEditor::showAttributeEditorModul().
|
protectedvirtual |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented from GNEFrame.
Definition at line 419 of file GNEVehicleTypeFrame.cpp.
References myVehicleTypeSelector, and GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelectorIDs().
|
protectedvirtualinherited |
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().
|
protectedvirtualinherited |
selected demand element in DemandElementSelector
Reimplemented in GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.
Definition at line 166 of file GNEFrame.cpp.
|
inherited |
focus upper element of frame
Definition at line 102 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
inherited |
get font of the header's frame
Definition at line 145 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 139 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
get predefinedTagsMML
Definition at line 269 of file GNEFrame.cpp.
References GNEFrame::myPredefinedTagsMML.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::createPath(), and GNETAZFrame::shapeDrawed().
GNEVehicleTypeFrame::VehicleTypeSelector * GNEVehicleTypeFrame::getVehicleTypeSelector | ( | ) | const |
get vehicle type selector
Definition at line 413 of file GNEVehicleTypeFrame.cpp.
References myVehicleTypeSelector.
Referenced by GNEChange_DemandElement::redo(), and GNEChange_DemandElement::undo().
|
inherited |
get view net
Definition at line 133 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by attributesEditorExtendedDialogOpened(), GNEInspectorFrame::clearInspectedAC(), GNEConnectorFrame::ConnectionLegend::ConnectionLegend(), GNEInternalLane::drawGL(), GNEInternalLane::getPopUpMenu(), GNESingleParametersDialog::GNESingleParametersDialog(), GNEMultipleParametersDialog::onCmdAccept(), GNESingleParametersDialog::onCmdAccept(), GNEMultipleParametersDialog::onCmdReset(), GNESingleParametersDialog::onCmdReset(), GNEFrameModuls::PathLegend::PathLegend(), and show().
|
virtualinherited |
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 GNEFrame::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().
|
protectedinherited |
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, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
|
protectedvirtualinherited |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNETLSEditorFrame, and GNEInspectorFrame.
Definition at line 191 of file GNEFrame.cpp.
|
inherited |
set width of GNEFrame
Definition at line 126 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
protectedvirtualinherited |
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 from GNEFrame.
Definition at line 400 of file GNEVehicleTypeFrame.cpp.
References GNEVehicleTypeFrame::VehicleTypeSelector::getCurrentVehicleType(), GNEFrameAttributesModuls::AttributesEditor::getFrameParent(), GNEFrame::getViewNet(), myVehicleTypeAttributesEditor, myVehicleTypeSelector, GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelector(), GNEViewNet::setInspectedAttributeCarriers(), GNEFrame::show(), and GNEFrameAttributesModuls::AttributesEditor::showAttributeEditorModul().
Referenced by GNEVehicleTypeFrame::VehicleTypeEditor::showVehicleTypeEditorModul(), and GNEViewNet::updateDemandModeSpecificControls().
|
protectedvirtualinherited |
Tag selected in TagSelector.
Reimplemented in GNEPolygonFrame, GNEAdditionalFrame, GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.
Definition at line 160 of file GNEFrame.cpp.
|
virtualinherited |
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().
|
private |
modul for open extended attributes dialog
Definition at line 176 of file GNEVehicleTypeFrame.h.
Referenced by GNEVehicleTypeFrame().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 116 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNESelectorFrame::GNESelectorFrame(), and GNEInspectorFrame::inspectMultisection().
|
staticprivateinherited |
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 GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 135 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().
|
protectedinherited |
fame for header elements
Definition at line 119 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 122 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 125 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)
Definition at line 138 of file GNEFrame.h.
Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 129 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().
|
private |
editorinternal vehicle type attributes
Definition at line 173 of file GNEVehicleTypeFrame.h.
Referenced by attributesEditorExtendedDialogOpened(), GNEVehicleTypeFrame(), and show().
|
private |
Vehicle Type editor (Create, copy, etc.)
Definition at line 179 of file GNEVehicleTypeFrame.h.
Referenced by GNEVehicleTypeFrame().
|
private |
vehicle type selector
Definition at line 170 of file GNEVehicleTypeFrame.h.
Referenced by attributesEditorExtendedDialogOpened(), attributeUpdated(), getVehicleTypeSelector(), GNEVehicleTypeFrame(), and show().
|
protectedinherited |
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(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEInspectorFrame::hide(), GNEGenericDataFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEFrame::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 GNEFrame::show().