The SelectionObserver class simplifies the step to write classes that listen to what happens to the selection. More...
#include <Selection.h>
Public Member Functions | |
void | attachSelection () |
Attaches to the selection. | |
bool | blockConnection (bool block) |
void | detachSelection () |
Detaches from the selection. | |
bool | isConnectionBlocked () const |
SelectionObserver () | |
Constructor. | |
virtual | ~SelectionObserver () |
The SelectionObserver class simplifies the step to write classes that listen to what happens to the selection.
Definition at line 117 of file Selection.h.
SelectionObserver::SelectionObserver | ( | ) |
SelectionObserver::~SelectionObserver | ( | ) | [virtual] |
Definition at line 62 of file Selection.cpp.
References detachSelection().
void SelectionObserver::attachSelection | ( | ) |
Attaches to the selection.
Definition at line 82 of file Selection.cpp.
References draftlibs::fcgeo::bind(), Gui::Selection(), and Gui::SelectionSingleton::signalSelectionChanged.
Referenced by SelectionObserver().
bool SelectionObserver::blockConnection | ( | bool | block | ) |
Definition at line 67 of file Selection.cpp.
Referenced by SketcherGui::TaskSketcherConstrains::on_listWidgetConstraints_itemSelectionChanged(), SketcherGui::ViewProviderSketch::onDelete(), and Gui::TreeWidget::onSelectionChanged().
void SelectionObserver::detachSelection | ( | ) |
Detaches from the selection.
Definition at line 90 of file Selection.cpp.
Referenced by ~SelectionObserver().
bool SelectionObserver::isConnectionBlocked | ( | ) | const |
Definition at line 77 of file Selection.cpp.