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

#include <GNESelectorFrame.h>

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

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 326 of file GNESelectorFrame.h.

Constructor & Destructor Documentation

◆ SelectionOperation() [1/2]

GNESelectorFrame::SelectionOperation::SelectionOperation ( GNESelectorFrame selectorFrameParent)

FOX-declaration.

constructor

Definition at line 827 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 841 of file GNESelectorFrame.cpp.

◆ SelectionOperation() [2/2]

GNESelectorFrame::SelectionOperation::SelectionOperation ( )
inlineprotected

FOX needs this.

Definition at line 366 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 924 of file GNESelectorFrame.cpp.

References GNESelectorFrame::clearCurrentSelection(), and mySelectorFrameParent.

◆ onCmdInvert()

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

◆ onCmdLoad()

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

◆ 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 896 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 370 of file GNESelectorFrame.h.

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


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