Eclipse SUMO - Simulation of Urban MObility
GNESelectorFrame::SelectionOperation Class Reference

#include <GNESelectorFrame.h>

Inheritance diagram for GNESelectorFrame::SelectionOperation:
Collaboration diagram for GNESelectorFrame::SelectionOperation:

Public Member Functions

 SelectionOperation (GNESelectorFrame *selectorFrameParent)
 FOX-declaration. More...
 
 ~SelectionOperation ()
 destructor More...
 
FOX-callbacks
long onCmdLoad (FXObject *, FXSelector, void *)
 Called when the user presses the Load-button. More...
 
long onCmdSave (FXObject *, FXSelector, void *)
 Called when the user presses the Save-button. More...
 
long onCmdClear (FXObject *, FXSelector, void *)
 Called when the user presses the Clear-button. More...
 
long onCmdInvert (FXObject *, FXSelector, void *)
 Called when the user presses the Invert-button. More...
 

Protected Member Functions

 SelectionOperation ()
 FOX needs this. More...
 

Private Attributes

GNESelectorFramemySelectorFrameParent
 pointer to Selector Frame Parent More...
 

Detailed Description

Definition at line 338 of file GNESelectorFrame.h.

Constructor & Destructor Documentation

◆ SelectionOperation() [1/2]

GNESelectorFrame::SelectionOperation::SelectionOperation ( GNESelectorFrame selectorFrameParent)

FOX-declaration.

constructor

Definition at line 1153 of file GNESelectorFrame.cpp.

References GUIDesignButton, MID_CHOOSEN_CLEAR, MID_CHOOSEN_INVERT, MID_CHOOSEN_LOAD, and MID_CHOOSEN_SAVE.

◆ ~SelectionOperation()

GNESelectorFrame::SelectionOperation::~SelectionOperation ( )

destructor

Definition at line 1167 of file GNESelectorFrame.cpp.

◆ SelectionOperation() [2/2]

GNESelectorFrame::SelectionOperation::SelectionOperation ( )
inlineprotected

FOX needs this.

Definition at line 378 of file GNESelectorFrame.h.

Member Function Documentation

◆ onCmdClear()

long GNESelectorFrame::SelectionOperation::onCmdClear ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user presses the Clear-button.

Note
Clear the internal list and calls GUISelectedStorage::clear and repaints itself

Definition at line 1253 of file GNESelectorFrame.cpp.

References GNESelectorFrame::clearCurrentSelection(), and mySelectorFrameParent.

◆ onCmdInvert()

long GNESelectorFrame::SelectionOperation::onCmdInvert ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user presses the Invert-button.

Note
invert the selection and repaints itself

Definition at line 1261 of file GNESelectorFrame.cpp.

References GNESelectorFrame::ACsToSelected(), GNENet::AttributeCarriers::additionals, GNEViewNetHelper::EditModes::currentSupermode, GNENet::AttributeCarriers::demandElements, GNENet::getAttributeCarriers(), GNEViewNet::getEditModes(), GNESelectorFrame::getLockGLObjectTypes(), GNEViewNet::getNet(), GNEViewNet::getNetworkViewOptions(), ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), GNEAttributeCarrier::getTagProperties(), GNEViewNet::getUndoList(), GLO_ADDITIONAL, GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_EMBEDDEDROUTE, GLO_FLOW, GLO_JUNCTION, GLO_LANE, GLO_PERSON, GLO_PERSONFLOW, GLO_PERSONSTOP, GLO_PERSONTRIP, GLO_POI, GLO_POLYGON, GLO_RIDE, GLO_ROUTE, GLO_ROUTEFLOW, GLO_STOP, GLO_TRIP, GLO_VEHICLE, GLO_WALK, GNE_ATTR_SELECTED, GNE_SUPERMODE_NETWORK, GNEShape::isAttributeCarrierSelected(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNEAttributeCarrier::TagProperties::isSelectable(), GNENet::AttributeCarriers::junctions, mySelectorFrameParent, GNEFrame::myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEViewNetHelper::NetworkViewOptions::selectEdges(), GNEShape::setAttribute(), SUMO_TAG_EMBEDDEDROUTE, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_PERSONSTOP_BUSSTOP, SUMO_TAG_PERSONSTOP_LANE, SUMO_TAG_PERSONTRIP_BUSSTOP, SUMO_TAG_PERSONTRIP_FROMTO, SUMO_TAG_RIDE_BUSSTOP, SUMO_TAG_RIDE_FROMTO, SUMO_TAG_ROUTE, SUMO_TAG_ROUTEFLOW, SUMO_TAG_STOP_BUSSTOP, SUMO_TAG_STOP_CHARGINGSTATION, SUMO_TAG_STOP_CONTAINERSTOP, SUMO_TAG_STOP_LANE, SUMO_TAG_STOP_PARKINGAREA, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, SUMO_TAG_WALK_BUSSTOP, SUMO_TAG_WALK_FROMTO, SUMO_TAG_WALK_ROUTE, and GNEViewNet::update().

◆ onCmdLoad()

◆ onCmdSave()

long GNESelectorFrame::SelectionOperation::onCmdSave ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user presses the Save-button.

Note
Opens a file dialog and forces the selection container to save the list of selected objects when a file was chosen. If the saveing failed, a message window is shown.

Definition at line 1225 of file GNESelectorFrame.cpp.

References OutputDevice::close(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GNENet::getSelectedAttributeCarriers(), StringBijection< T >::getString(), GUIGlObject::getType(), ICON_EMPTY, mySelectorFrameParent, GNEFrame::myViewNet, GUIGlObject::TypeNames, and WRITE_DEBUG.

Field Documentation

◆ mySelectorFrameParent

GNESelectorFrame* GNESelectorFrame::SelectionOperation::mySelectorFrameParent
private

pointer to Selector Frame Parent

Definition at line 382 of file GNESelectorFrame.h.

Referenced by onCmdClear(), onCmdInvert(), onCmdLoad(), and onCmdSave().


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