![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPersonTypeFrame.h>
Data Structures | |
class | PersonTypeEditor |
class | PersonTypeSelector |
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... | |
PersonTypeSelector * | getPersonTypeSelector () const |
get person type selector More... | |
GNEViewNet * | getViewNet () const |
get view net More... | |
GNEPersonTypeFrame (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... | |
~GNEPersonTypeFrame () | |
Destructor. More... | |
Protected Member Functions | |
void | attributeUpdated () |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... More... | |
const RGBColor & | getEdgeCandidateColor () const |
get edge candidate color More... | |
const RGBColor & | getEdgeCandidateSelectedColor () const |
get selected color More... | |
const std::map< int, std::string > & | getPredefinedTagsMML () const |
get predefinedTagsMML More... | |
void | openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &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 void | edgePathCreated () |
finish edge path creation More... | |
virtual bool | shapeDrawed () |
build a shaped element using the drawed shape (can be reimplemented in frame children) 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... | |
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 | |
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... | |
FXLabel * | myFrameHeaderLabel = nullptr |
the label for the frame's header More... | |
GNEFrameAttributesModuls::AttributesEditor * | myPersonTypeAttributesEditor |
editorinternal person type attributes More... | |
PersonTypeEditor * | myPersonTypeEditor |
Vehicle Type editor (Create, copy, etc.) More... | |
PersonTypeSelector * | myPersonTypeSelector |
person type selector More... | |
std::map< int, 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... | |
Definition at line 37 of file GNEPersonTypeFrame.h.
GNEPersonTypeFrame::GNEPersonTypeFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet | ||
) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 350 of file GNEPersonTypeFrame.cpp.
References DEFAULT_PEDTYPE_ID, GNEViewNet::getNet(), myPersonTypeAttributesEditor, myPersonTypeEditor, myPersonTypeSelector, GNEFrame::myViewNet, GNENet::retrieveDemandElement(), GNEPersonTypeFrame::PersonTypeSelector::setCurrentPersonType(), and SUMO_TAG_PTYPE.
GNEPersonTypeFrame::~GNEPersonTypeFrame | ( | ) |
Destructor.
Definition at line 367 of file GNEPersonTypeFrame.cpp.
|
protectedvirtualinherited |
open AttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented in GNEVehicleTypeFrame.
Definition at line 190 of file GNEFrame.cpp.
|
protectedvirtual |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented from GNEFrame.
Definition at line 388 of file GNEPersonTypeFrame.cpp.
References myPersonTypeSelector, and GNEPersonTypeFrame::PersonTypeSelector::refreshPersonTypeSelector().
|
protectedvirtualinherited |
selected demand element in DemandElementSelector
Reimplemented in GNEVehicleFrame, GNEStopFrame, GNEPersonPlanFrame, and GNEPersonFrame.
Definition at line 165 of file GNEFrame.cpp.
|
protectedvirtualinherited |
finish edge path creation
Reimplemented in GNEVehicleFrame, and GNEPersonFrame.
Definition at line 171 of file GNEFrame.cpp.
|
inherited |
focus upper element of frame
Definition at line 101 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
protectedinherited |
get edge candidate color
Definition at line 269 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
protectedinherited |
get selected color
Definition at line 275 of file GNEFrame.cpp.
References GNEFrame::myEdgeCandidateSelectedColor.
Referenced by GNECrossingFrame::GNECrossingFrame().
|
inherited |
get font of the header's frame
Definition at line 144 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 138 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().
GNEPersonTypeFrame::PersonTypeSelector * GNEPersonTypeFrame::getPersonTypeSelector | ( | ) | const |
get person type selector
Definition at line 382 of file GNEPersonTypeFrame.cpp.
References myPersonTypeSelector.
|
protectedinherited |
get predefinedTagsMML
Definition at line 281 of file GNEFrame.cpp.
References GNEFrame::myPredefinedTagsMML.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::edgePathCreated(), and GNETAZFrame::shapeDrawed().
|
inherited |
get view net
Definition at line 132 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEInternalLane::drawGL(), GNEInternalLane::getPopUpMenu(), and GNEDeleteFrame::removeAttributeCarrier().
|
virtualinherited |
hide Frame
Reimplemented in GNETAZFrame, GNESelectorFrame, GNERouteFrame, GNEProhibitionFrame, GNEPersonPlanFrame, GNEInspectorFrame, GNEDeleteFrame, GNECrossingFrame, and GNECreateEdgeFrame.
Definition at line 116 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.
Referenced by GNECreateEdgeFrame::hide(), GNECrossingFrame::hide(), GNEDeleteFrame::hide(), GNEInspectorFrame::hide(), GNEPersonPlanFrame::hide(), GNEProhibitionFrame::hide(), GNERouteFrame::hide(), GNESelectorFrame::hide(), GNETAZFrame::hide(), GNEPolygonFrame::GEOPOICreator::hideGEOPOICreatorModul(), GNEPersonFrame::HelpCreation::hideHelpCreation(), GNEStopFrame::HelpCreation::hideHelpCreation(), GNEVehicleFrame::HelpCreation::hideHelpCreation(), GNEPersonTypeFrame::PersonTypeEditor::hidePersonTypeEditorModul(), and GNEVehicleTypeFrame::VehicleTypeEditor::hideVehicleTypeEditorModul().
|
protectedinherited |
Open help attributes dialog.
Definition at line 202 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, 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 196 of file GNEFrame.cpp.
|
inherited |
set width of GNEFrame
Definition at line 125 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 177 of file GNEFrame.cpp.
|
virtual |
show Frame
Reimplemented from GNEFrame.
Definition at line 371 of file GNEPersonTypeFrame.cpp.
References GNEPersonTypeFrame::PersonTypeSelector::getCurrentPersonType(), myPersonTypeAttributesEditor, myPersonTypeSelector, GNEPersonTypeFrame::PersonTypeSelector::refreshPersonTypeSelector(), GNEFrame::show(), and GNEFrameAttributesModuls::AttributesEditor::showAttributeEditorModul().
Referenced by GNEPersonTypeFrame::PersonTypeEditor::showPersonTypeEditorModul(), and GNEViewNet::updateDemandModeSpecificControls().
|
protectedvirtualinherited |
Tag selected in TagSelector.
Reimplemented in GNEVehicleFrame, GNEStopFrame, GNEPolygonFrame, GNEPersonPlanFrame, GNEPersonFrame, and GNEAdditionalFrame.
Definition at line 159 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 150 of file GNEFrame.cpp.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 124 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().
|
privateinherited |
edge candidate color (used by some modulds to mark edges)
Definition at line 146 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateColor().
|
privateinherited |
selected edge candidate color (used by some modulds to selected mark edges)
Definition at line 149 of file GNEFrame.h.
Referenced by GNEFrame::getEdgeCandidateSelectedColor().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 140 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 143 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().
|
protectedinherited |
fame for header elements
Definition at line 127 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 130 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 133 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
editorinternal person type attributes
Definition at line 168 of file GNEPersonTypeFrame.h.
Referenced by GNEPersonTypeFrame(), and show().
|
private |
Vehicle Type editor (Create, copy, etc.)
Definition at line 171 of file GNEPersonTypeFrame.h.
Referenced by GNEPersonTypeFrame().
|
private |
person type selector
Definition at line 165 of file GNEPersonTypeFrame.h.
Referenced by attributeUpdated(), getPersonTypeSelector(), GNEPersonTypeFrame(), and show().
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)
Definition at line 152 of file GNEFrame.h.
Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 137 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().
|
protectedinherited |
View Net.
Definition at line 121 of file GNEFrame.h.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEInspectorFrame::clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEFrame::hide(), GNEInspectorFrame::hide(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNEPolygonFrame::processClick(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEInspectorFrame::selectedOverlappedElement(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEDeleteFrame::show(), GNEFrame::show(), GNEPersonPlanFrame::show(), and GNEStopFrame::show().