![]() |
SUMO - Simulation of Urban MObility
|
#include <GNESelectorFrame.h>
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 | |
GNESelectorFrame * | mySelectorFrameParent |
pointer to Selector Frame Parent More... | |
Definition at line 326 of file GNESelectorFrame.h.
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.
GNESelectorFrame::SelectionOperation::~SelectionOperation | ( | ) |
destructor
Definition at line 841 of file GNESelectorFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 366 of file GNESelectorFrame.h.
long GNESelectorFrame::SelectionOperation::onCmdClear | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Clear-button.
Definition at line 924 of file GNESelectorFrame.cpp.
References GNESelectorFrame::clearCurrentSelection(), and mySelectorFrameParent.
long GNESelectorFrame::SelectionOperation::onCmdInvert | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Invert-button.
Definition at line 932 of file GNESelectorFrame.cpp.
References GNEViewNet::getNet(), ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), GNENet::getSelectedAttributeCarriers(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNE_ATTR_SELECTED, mySelectorFrameParent, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditionals(), GNENet::retrieveJunctions(), GNEViewNet::selectEdges(), and GNEPOI::setAttribute().
long GNESelectorFrame::SelectionOperation::onCmdLoad | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Load-button.
Definition at line 845 of file GNESelectorFrame.cpp.
References gCurrentFolder, GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObject::getType(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GUIGlObjectStorage::gIDStorage, GNESelectorFrame::handleIDs(), ICON_EMPTY, GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNESelectorFrame::myLockGLObjectTypes, mySelectorFrameParent, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAttributeCarrier(), and WRITE_ERROR.
long GNESelectorFrame::SelectionOperation::onCmdSave | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Save-button.
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.
|
private |
pointer to Selector Frame Parent
Definition at line 370 of file GNESelectorFrame.h.
Referenced by onCmdClear(), onCmdInvert(), onCmdLoad(), and onCmdSave().