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

Private Attributes

GNESelectorFramemySelectorFrameParent
 pointer to Selector Frame Parent More...
 

Detailed Description

Definition at line 332 of file GNESelectorFrame.h.

Constructor & Destructor Documentation

◆ SelectionOperation()

GNESelectorFrame::SelectionOperation::SelectionOperation ( GNESelectorFrame selectorFrameParent)

FOX-declaration.

constructor

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

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 1257 of file GNESelectorFrame.cpp.

Referenced by FXDEFMAP().

◆ onCmdInvert()

◆ onCmdLoad()

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

Called when the user presses the Load-button.

Note
Opens a file dialog and forces the parent to load the list of selected objects when a file was chosen. Rebuilds the list, then, and redraws itself.

Definition at line 1175 of file GNESelectorFrame.cpp.

References gCurrentFolder, GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObjectStorage::getObjectBlocking(), GNEAttributeCarrier::getTagProperty(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, ICON_EMPTY, GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::TagProperties::isSelectable(), and WRITE_ERROR.

Referenced by FXDEFMAP().

◆ 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 1229 of file GNESelectorFrame.cpp.

References OutputDevice::close(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), StringBijection< T >::getString(), GUIGlObject::getType(), ICON_EMPTY, GUIGlObject::TypeNames, and WRITE_DEBUG.

Referenced by FXDEFMAP().

Field Documentation

◆ mySelectorFrameParent

GNESelectorFrame* GNESelectorFrame::SelectionOperation::mySelectorFrameParent
private

pointer to Selector Frame Parent

Definition at line 375 of file GNESelectorFrame.h.


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