Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNESelectorFrame Class Reference

#include <GNESelectorFrame.h>

Inheritance diagram for GNESelectorFrame:
[legend]
Collaboration diagram for GNESelectorFrame:
[legend]

Data Structures

class  Information
class  ModificationMode
class  SelectionHierarchy
class  SelectionInformation
class  SelectionOperation
class  VisualScaling

Public Member Functions

void clearCurrentSelection () const
 clear current selection with possibility of undo/redo
void focusUpperElement ()
 focus upper element of frame
virtual void frameWidthUpdated ()
 function called after setting new width in current frame (can be reimplemented in frame children)
FXVerticalFrame * getContentFrame () const
 get vertical frame that holds all widgets of frame
FXFont * getFrameHeaderFont () const
 get font of the header's frame
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header
ModificationModegetModificationModeModul () const
 get modification mode modul
int getScrollBarWidth () const
 get scrollBar width (zero if is hidden)
SelectionInformationgetSelectionInformation () const
 get modul for selection information
GNESelectorFrame::SelectionOperationgetSelectionOperationModul () const
 get selection operation modul
GNEViewNetgetViewNet () const
 get view net
 GNESelectorFrame (GNEViewParent *viewParent, GNEViewNet *viewNet)
 Constructor.
void handleIDs (const std::vector< GNEAttributeCarrier * > &ACs, const ModificationMode::Operation setop=ModificationMode::Operation::DEFAULT)
 apply list of ids to the current selection according to Operation,
void hide ()
 hide Frame
void openHelpAttributesDialog (const GNEAttributeCarrier *AC) const
 Open help attributes dialog.
bool selectAttributeCarrier (const GNEViewNetHelper::ViewObjectsSelector &viewObjects)
 select attribute carrier (element)
void setFrameWidth (const int newWidth)
 set width of GNEFrame
void show ()
 show Frame
void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame
 ~GNESelectorFrame ()
 Destructor.
functions called by moduls that can be reimplemented in frame children (note: reimplement as protected, just for safety)
virtual void tagSelected ()
 Tag selected in GNETagSelector.
virtual void demandElementSelected ()
 selected demand element in DemandElementSelector
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape
virtual void attributeUpdated (SumoXMLAttr attribute)
 function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
virtual void selectedOverlappedElement (GNEAttributeCarrier *AC)
 open GNEAttributesCreator extended dialog
virtual bool createPath (const bool useLastRoute)
 create path between two elements

Protected Member Functions

const std::vector< std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML

Static Protected Member Functions

static FXLabel * buildRainbow (FXComposite *parent)
 build rainbow in frame modul

Protected Attributes

FXVerticalFrame * myContentFrame = nullptr
 Vertical frame that holds all widgets of frame.
FXHorizontalFrame * myHeaderFrame = nullptr
 fame for header elements
FXHorizontalFrame * myHeaderLeftFrame = nullptr
 fame for left header elements
FXHorizontalFrame * myHeaderRightFrame = nullptr
 fame for right header elements
GNEViewNetmyViewNet = nullptr
 FOX need this.

Private Member Functions

 GNESelectorFrame (const GNESelectorFrame &)=delete
 Invalidated copy constructor.
GNESelectorFrameoperator= (const GNESelectorFrame &)=delete
 Invalidated assignment operator.

Private Attributes

FXLabel * myFrameHeaderLabel = nullptr
 the label for the frame's header
GNESelectorFrame::InformationmyInformation = nullptr
 information modul
GNEMatchAttributemyMatchAttribute = nullptr
 modul for match attribute
GNESelectorFrame::ModificationModemyModificationMode = nullptr
 modul for change modification mode
std::vector< std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached).
FXScrollWindow * myScrollWindowsContents = nullptr
 scroll windows that holds the content frame
GNESelectorFrame::SelectionHierarchymySelectionHierarchy = nullptr
 modul for selection hierarchy
GNESelectorFrame::SelectionInformationmySelectionInformation = nullptr
 modul for selection information
GNESelectorFrame::SelectionOperationmySelectionOperation = nullptr
 modul for selection operations
GNESelectorFrame::VisualScalingmyVisualScaling = nullptr
 modul for visual scaling

Static Private Attributes

static FXFont * myFrameHeaderFont = nullptr
 static Font for the Header (it's common for all headers, then create only one time)

Detailed Description

Definition at line 41 of file GNESelectorFrame.h.

Constructor & Destructor Documentation

◆ GNESelectorFrame() [1/2]

GNESelectorFrame::GNESelectorFrame ( GNEViewParent * viewParent,
GNEViewNet * viewNet )

◆ ~GNESelectorFrame()

GNESelectorFrame::~GNESelectorFrame ( )

Destructor.

Definition at line 962 of file GNESelectorFrame.cpp.

◆ GNESelectorFrame() [2/2]

GNESelectorFrame::GNESelectorFrame ( const GNESelectorFrame & )
privatedelete

Invalidated copy constructor.

References GNESelectorFrame().

Member Function Documentation

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( SumoXMLAttr attribute)
virtualinherited

function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...

Reimplemented in GNEMeanDataFrame, GNERouteDistributionFrame, GNETypeDistributionFrame, and GNETypeFrame.

Definition at line 220 of file GNEFrame.cpp.

◆ buildRainbow()

FXLabel * GNEFrame::buildRainbow ( FXComposite * parent)
staticprotectedinherited

build rainbow in frame modul

Definition at line 245 of file GNEFrame.cpp.

References MFXUtils::getFXColor(), GNEViewNetHelper::getRainbowScaledColors(), GUIDesignAuxiliarHorizontalFrame, GUIDesignLabel, GUIDesignLabelThick, and TL.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().

Here is the caller graph for this function:

◆ clearCurrentSelection()

void GNESelectorFrame::clearCurrentSelection ( ) const

clear current selection with possibility of undo/redo

Definition at line 990 of file GNESelectorFrame.cpp.

References mySelectionOperation.

◆ createPath()

bool GNEFrame::createPath ( const bool useLastRoute)
virtualinherited

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
virtualinherited

selected demand element in DemandElementSelector

Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEStopFrame, and GNEVehicleFrame.

Definition at line 207 of file GNEFrame.cpp.

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

focus upper element of frame

Definition at line 104 of file GNEFrame.cpp.

References myFrameHeaderLabel.

Referenced by GNEInspectorFrame::inspectClickedElements().

Here is the caller graph for this function:

◆ frameWidthUpdated()

void GNEFrame::frameWidthUpdated ( )
virtualinherited

function called after setting new width in current frame (can be reimplemented in frame children)

Reimplemented in GNETLSEditorFrame.

Definition at line 192 of file GNEFrame.cpp.

Referenced by setFrameWidth().

Here is the caller graph for this function:

◆ getContentFrame()

FXVerticalFrame * GNESelectorFrame::getContentFrame ( ) const

get vertical frame that holds all widgets of frame

Definition at line 1125 of file GNESelectorFrame.cpp.

References GNEFrame::myContentFrame.

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 163 of file GNEFrame.cpp.

References myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 157 of file GNEFrame.cpp.

References myFrameHeaderLabel.

Referenced by GNEInspectorFrame::refreshInspection().

Here is the caller graph for this function:

◆ getModificationModeModul()

GNESelectorFrame::ModificationMode * GNESelectorFrame::getModificationModeModul ( ) const

get modification mode modul

Definition at line 1131 of file GNESelectorFrame.cpp.

References myModificationMode.

◆ getPredefinedTagsMML()

const std::vector< std::string > & GNEFrame::getPredefinedTagsMML ( ) const
protectedinherited

get predefinedTagsMML

Definition at line 239 of file GNEFrame.cpp.

References myPredefinedTagsMML.

Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getScrollBarWidth()

int GNEFrame::getScrollBarWidth ( ) const
inherited

get scrollBar width (zero if is hidden)

Definition at line 169 of file GNEFrame.cpp.

References myScrollWindowsContents.

◆ getSelectionInformation()

GNESelectorFrame::SelectionInformation * GNESelectorFrame::getSelectionInformation ( ) const

get modul for selection information

Definition at line 1143 of file GNESelectorFrame.cpp.

References mySelectionInformation.

◆ getSelectionOperationModul()

GNESelectorFrame::SelectionOperation * GNESelectorFrame::getSelectionOperationModul ( ) const

get selection operation modul

Definition at line 1137 of file GNESelectorFrame.cpp.

References mySelectionOperation.

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 145 of file GNEFrame.cpp.

References myViewNet.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEAttributesEditorType::buildRows(), GNEDeleteFrame::SubordinatedElements::checkElements(), GNETLSTable::Column::Column(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), and GNETLSEditorFrame::TLSPrograms::TLSPrograms().

Here is the caller graph for this function:

◆ handleIDs()

void GNESelectorFrame::handleIDs ( const std::vector< GNEAttributeCarrier * > & ACs,
const ModificationMode::Operation setop = ModificationMode::Operation::DEFAULT )

◆ hide()

void GNESelectorFrame::hide ( )
virtual

hide Frame

Reimplemented from GNEFrame.

Definition at line 976 of file GNESelectorFrame.cpp.

References GNEFrame::hide().

◆ openHelpAttributesDialog()

void GNEFrame::openHelpAttributesDialog ( const GNEAttributeCarrier * AC) const
inherited

Open help attributes dialog.

Definition at line 179 of file GNEFrame.cpp.

References myViewNet.

◆ operator=()

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

Invalidated assignment operator.

References GNESelectorFrame().

◆ selectAttributeCarrier()

bool GNESelectorFrame::selectAttributeCarrier ( const GNEViewNetHelper::ViewObjectsSelector & viewObjects)

◆ selectedOverlappedElement()

void GNEFrame::selectedOverlappedElement ( GNEAttributeCarrier * AC)
virtualinherited

open GNEAttributesCreator extended dialog

Reimplemented in GNEInspectorFrame, and GNETLSEditorFrame.

Definition at line 226 of file GNEFrame.cpp.

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( const int newWidth)
inherited

set width of GNEFrame

Definition at line 128 of file GNEFrame.cpp.

References frameWidthUpdated(), GUIDesignFrameAreaMargin, myContentFrame, and myScrollWindowsContents.

Referenced by GNEInspectorFrame::refreshInspection().

Here is the caller graph for this function:

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
virtualinherited

build a shaped element using the drawed shape

Reimplemented in GNEShapeFrame, and GNETAZFrame.

Definition at line 213 of file GNEFrame.cpp.

◆ show()

void GNESelectorFrame::show ( )
virtual

show Frame

Reimplemented from GNEFrame.

Definition at line 966 of file GNESelectorFrame.cpp.

References myMatchAttribute, mySelectionInformation, and GNEFrame::show().

◆ tagSelected()

void GNEFrame::tagSelected ( )
virtualinherited

◆ updateFrameAfterUndoRedo()

void GNESelectorFrame::updateFrameAfterUndoRedo ( )
virtual

function called after undo/redo in the current frame

Reimplemented from GNEFrame.

Definition at line 983 of file GNESelectorFrame.cpp.

References mySelectionInformation.

Field Documentation

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame = nullptr
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 125 of file GNEFrame.h.

Referenced by getContentFrame(), GNESelectorFrame::getContentFrame(), GNEFrame(), and setFrameWidth().

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivateinherited

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

Definition at line 147 of file GNEFrame.h.

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

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel = nullptr
privateinherited

the label for the frame's header

Definition at line 150 of file GNEFrame.h.

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

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame = nullptr
protectedinherited

fame for header elements

Definition at line 128 of file GNEFrame.h.

Referenced by GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame = nullptr
protectedinherited

fame for left header elements

Definition at line 131 of file GNEFrame.h.

Referenced by GNEFrame(), GNEInspectorFrame::GNEInspectorFrame(), and GNEInspectorFrame::refreshInspection().

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame = nullptr
protectedinherited

fame for right header elements

Definition at line 134 of file GNEFrame.h.

Referenced by GNEFrame().

◆ myInformation

GNESelectorFrame::Information* GNESelectorFrame::myInformation = nullptr
private

information modul

Definition at line 466 of file GNESelectorFrame.h.

Referenced by GNESelectorFrame().

◆ myMatchAttribute

GNEMatchAttribute* GNESelectorFrame::myMatchAttribute = nullptr
private

modul for match attribute

Definition at line 454 of file GNESelectorFrame.h.

Referenced by GNESelectorFrame(), and show().

◆ myModificationMode

GNESelectorFrame::ModificationMode* GNESelectorFrame::myModificationMode = nullptr
private

modul for change modification mode

Definition at line 451 of file GNESelectorFrame.h.

Referenced by getModificationModeModul(), GNESelectorFrame(), and handleIDs().

◆ myPredefinedTagsMML

std::vector<std::string> GNEFrame::myPredefinedTagsMML
privateinherited

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

Definition at line 153 of file GNEFrame.h.

Referenced by getPredefinedTagsMML(), and GNEFrame().

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents = nullptr
privateinherited

scroll windows that holds the content frame

Definition at line 144 of file GNEFrame.h.

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

◆ mySelectionHierarchy

GNESelectorFrame::SelectionHierarchy* GNESelectorFrame::mySelectionHierarchy = nullptr
private

modul for selection hierarchy

Definition at line 463 of file GNESelectorFrame.h.

Referenced by GNESelectorFrame().

◆ mySelectionInformation

GNESelectorFrame::SelectionInformation* GNESelectorFrame::mySelectionInformation = nullptr
private

modul for selection information

Definition at line 448 of file GNESelectorFrame.h.

Referenced by getSelectionInformation(), GNESelectorFrame(), selectAttributeCarrier(), show(), and updateFrameAfterUndoRedo().

◆ mySelectionOperation

GNESelectorFrame::SelectionOperation* GNESelectorFrame::mySelectionOperation = nullptr
private

modul for selection operations

Definition at line 460 of file GNESelectorFrame.h.

Referenced by clearCurrentSelection(), getSelectionOperationModul(), and GNESelectorFrame().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet = nullptr
protectedinherited

FOX need this.

View Net

Definition at line 122 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNECreateEdgeFrame::addBikelane(), GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNECreateEdgeFrame::addSidewalk(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEWireFrame::addWire(), GNEConnectorFrame::buildConnection(), GNEContainerFrame::buildContainer(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNETLSEditorFrame::cleanup(), GNEWireFrame::createBaseWireObject(), GNEAdditionalFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEWireFrame::createPath(), GNECreateEdgeFrame::disablePedestrians(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEStopFrame::getStopParameter(), getViewNet(), GNEFrame(), GNETypeFrame::GNETypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), hide(), GNEGenericDataFrame::hide(), GNEInspectorFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectClickedElements(), GNEInspectorFrame::inspectElement(), GNEInspectorFrame::inspectElements(), GNETLSEditorFrame::isTLSSaved(), GNEProhibitionFrame::Legend::Legend(), openHelpAttributesDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClick(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEInspectorFrame::refreshInspection(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEContainerPlanFrame::show(), show(), GNEMoveFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEWireFrame::show(), and GNEAdditionalFrame::tagSelected().

◆ myVisualScaling

GNESelectorFrame::VisualScaling* GNESelectorFrame::myVisualScaling = nullptr
private

modul for visual scaling

Definition at line 457 of file GNESelectorFrame.h.

Referenced by GNESelectorFrame().


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