Eclipse SUMO - Simulation of Urban MObility
GNEFrame Class Reference

#include <GNEFrame.h>

Inheritance diagram for GNEFrame:
Collaboration diagram for GNEFrame:

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...
 
GNEViewNetgetViewNet () 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 RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
const std::map< int, std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
 GNEFrame ()
 FOX needs this. 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 attributeUpdated ()
 function called after set a valid attribute in AttributeCreator/AttributeEditor/GenericParametersEditor/... More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) 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...
 
GNEViewNetmyViewNet
 View Net. More...
 

Private Member Functions

 GNEFrame (const GNEFrame &)=delete
 Invalidated copy constructor. More...
 
GNEFrameoperator= (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...
 
FXLabel * myFrameHeaderLabel
 the label for the frame's header More...
 
std::map< int, std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More...
 
FXScrollWindow * myScrollWindowsContents
 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...
 

Detailed Description

Abstract class for lateral frames in NetEdit

Definition at line 35 of file GNEFrame.h.

Constructor & Destructor Documentation

◆ GNEFrame() [1/3]

GNEFrame::GNEFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet,
const std::string &  frameLabel 
)

◆ ~GNEFrame()

GNEFrame::~GNEFrame ( )

destructor

Definition at line 92 of file GNEFrame.cpp.

References myFrameHeaderFont.

◆ GNEFrame() [2/3]

◆ GNEFrame() [3/3]

GNEFrame::GNEFrame ( const GNEFrame )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtual

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 191 of file GNEFrame.cpp.

Referenced by GNEFrame(), and GNEFrameAttributesModuls::AttributesEditorExtended::onCmdOpenDialog().

◆ attributeUpdated()

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
protectedvirtual

◆ edgePathCreated()

void GNEFrame::edgePathCreated ( )
protectedvirtual

finish edge path creation

Reimplemented in GNEVehicleFrame, and GNEPersonFrame.

Definition at line 172 of file GNEFrame.cpp.

Referenced by GNEFrame(), and GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation().

◆ focusUpperElement()

◆ getEdgeCandidateColor()

◆ getEdgeCandidateSelectedColor()

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const

get font of the header's frame

Definition at line 145 of file GNEFrame.cpp.

References myFrameHeaderFont.

◆ getFrameHeaderLabel()

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().

◆ getPredefinedTagsMML()

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const

get view net

Definition at line 133 of file GNEFrame.cpp.

References myViewNet.

Referenced by GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrameModuls::EdgePathCreator::addEdge(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNECrossingFrame::EdgesSelector::enableEdgeSelector(), GNEAdditionalFrame::SelectorEdgeChildren::getEdgeIdsSelected(), GNEAdditionalFrame::SelectorLaneChildren::getLaneIdsSelected(), GNEInspectorFrame::OverlappedInspection::inspectOverlappedAttributeCarrier(), GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNERouteFrame::ConsecutiveEdges::onCmdRemoveLastRouteEdge(), GNEPersonTypeFrame::PersonTypeEditor::onCmdResetPersonType(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdResetVehicleType(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEFrameModuls::DemandElementSelector::onCmdSelectDemandElement(), GNEPersonTypeFrame::PersonTypeSelector::onCmdSelectItem(), GNEVehicleTypeFrame::VehicleTypeSelector::onCmdSelectItem(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEFrameModuls::DemandElementSelector::refreshDemandElementSelector(), GNERouteFrame::ConsecutiveEdges::refreshEdgeCandidates(), GNEPersonTypeFrame::PersonTypeSelector::refreshPersonTypeSelector(), GNEFrameModuls::SelectorParent::refreshSelectorParentModul(), GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelector(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::EdgesSelector::restoreEdgeColors(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::SelectorEdgeChildren::showSelectorEdgeChildrenModul(), GNEAdditionalFrame::SelectorLaneChildren::showSelectorLaneChildrenModul(), GNEInspectorFrame::TemplateEditor::showTemplateEditor(), GNEAdditionalFrame::SelectorEdgeChildren::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorLaneChildren::updateUseSelectedLanes().

◆ hide()

◆ openHelpAttributesDialog()

◆ operator=()

GNEFrame& GNEFrame::operator= ( const GNEFrame )
privatedelete

Invalidated assignment operator.

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)

set width of GNEFrame

Definition at line 126 of file GNEFrame.cpp.

References myScrollWindowsContents.

Referenced by GNEViewParent::Frames::setWidth().

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtual

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 178 of file GNEFrame.cpp.

Referenced by GNEFrame(), GNEFrameModuls::DrawingShape::stopDrawing(), and GNEFrameAttributesModuls::DrawingShape::stopDrawing().

◆ show()

void GNEFrame::show ( )
virtual

show Frame

Note
some GNEFrames needs a re-implementation

Reimplemented in GNESelectorFrame, GNEInspectorFrame, GNEAdditionalFrame, GNERouteFrame, GNEPersonPlanFrame, GNEVehicleTypeFrame, GNEPersonTypeFrame, GNEProhibitionFrame, GNEPolygonFrame, GNEDeleteFrame, GNEStopFrame, GNEVehicleFrame, GNEPersonFrame, and GNECreateEdgeFrame.

Definition at line 108 of file GNEFrame.cpp.

References GNEViewNet::getViewParent(), myViewNet, and GNEViewParent::showFramesArea().

Referenced by GNECreateEdgeFrame::show(), GNEPersonFrame::show(), GNEVehicleFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), GNEPolygonFrame::show(), GNEPersonTypeFrame::show(), GNEProhibitionFrame::show(), GNEVehicleTypeFrame::show(), GNEPersonPlanFrame::show(), GNERouteFrame::show(), GNEAdditionalFrame::show(), GNEInspectorFrame::show(), GNESelectorFrame::show(), GNEAdditionalFrame::showSelectorLaneChildrenModul(), 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::updateNetworkModeSpecificControls().

◆ tagSelected()

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
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().

Friends And Related Function Documentation

◆ GNEFrameAttributesModuls

friend class GNEFrameAttributesModuls
friend

Definition at line 39 of file GNEFrame.h.

◆ GNEFrameModuls

friend class GNEFrameModuls
friend

friend class

Definition at line 38 of file GNEFrame.h.

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protected

Vertical frame that holds all widgets of frame.

Definition at line 123 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame(), and GNEInspectorFrame::inspectMultisection().

◆ myEdgeCandidateColor

RGBColor GNEFrame::myEdgeCandidateColor
private

edge candidate color (used by some modulds to mark edges)

Definition at line 145 of file GNEFrame.h.

Referenced by getEdgeCandidateColor().

◆ myEdgeCandidateSelectedColor

RGBColor GNEFrame::myEdgeCandidateSelectedColor
private

selected edge candidate color (used by some modulds to selected mark edges)

Definition at line 148 of file GNEFrame.h.

Referenced by getEdgeCandidateSelectedColor().

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivate

static Font for the Header (it's common for all headers, then create only one time)

Definition at line 139 of file GNEFrame.h.

Referenced by getFrameHeaderFont(), GNEFrame(), and ~GNEFrame().

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel
private

the label for the frame's header

Definition at line 142 of file GNEFrame.h.

Referenced by focusUpperElement(), getFrameHeaderLabel(), and GNEFrame().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protected

fame for header elements

Definition at line 126 of file GNEFrame.h.

Referenced by GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protected

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protected

fame for right header elements

Definition at line 132 of file GNEFrame.h.

Referenced by GNEFrame().

◆ myPredefinedTagsMML

std::map<int, std::string> GNEFrame::myPredefinedTagsMML
private

Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)

Definition at line 151 of file GNEFrame.h.

Referenced by getPredefinedTagsMML(), and GNEFrame().

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents
private

scroll windows that holds the content frame

Definition at line 136 of file GNEFrame.h.

Referenced by GNEFrame(), openHelpAttributesDialog(), and setFrameWidth().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protected

View Net.

Definition at line 120 of file GNEFrame.h.

Referenced by GNEFrameModuls::DrawingShape::abortDrawing(), GNEFrameAttributesModuls::DrawingShape::abortDrawing(), GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEPersonPlanFrame::PersonPlanCreator::addEdge(), GNERouteFrame::ConsecutiveEdges::addEdge(), GNERouteFrame::NonConsecutiveEdges::addEdge(), GNEFrameModuls::EdgePathCreator::addEdge(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNETAZFrame::TAZCurrent::addTAZChild(), 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(), GNEFrameModuls::EdgePathCreator::clearEdges(), GNEInspectorFrame::clearInspectedAC(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues(), getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), hide(), GNEInspectorFrame::hide(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEPersonPlanFrame::PersonPlanCreator::onCmdAbortPersonPlanCreation(), GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCopyPersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCopyVehicleType(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCreatePersonType(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCreateVehicleType(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEPersonTypeFrame::PersonTypeEditor::onCmdDeletePersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdDeleteVehicleType(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdEditGenericParameter(), GNEPersonPlanFrame::PersonPlanCreator::onCmdFinishPersonPlanCreation(), GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation(), GNEInspectorFrame::onCmdGoBack(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp(), GNETLSEditorFrame::onCmdOK(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEFrameModuls::EdgePathCreator::onCmdRemoveLastInsertedElement(), GNERouteFrame::NonConsecutiveEdges::onCmdRemoveLastRouteEdge(), GNEPersonTypeFrame::PersonTypeEditor::onCmdResetPersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdResetVehicleType(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNESelectorFrame::ElementSet::onCmdSelectElementSet(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdSetGenericParameter(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), GNESelectorFrame::ElementSet::refreshElementSet(), GNEFrameAttributesModuls::GenericParametersEditor::refreshGenericParametersEditor(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNETAZFrame::TAZCurrent::setTAZ(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), show(), GNEStopFrame::show(), GNEDeleteFrame::show(), GNEPersonPlanFrame::show(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNESelectorFrame::LockGLObjectTypes::showTypeEntries(), GNEFrameAttributesModuls::AttributesCreator::showWarningMessage(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), GNEFrameModuls::DrawingShape::stopDrawing(), GNEFrameAttributesModuls::DrawingShape::stopDrawing(), and GNETAZFrame::TAZEdgesGraphic::updateEdgeColors().


The documentation for this class was generated from the following files: