Gui::SelectionObserver Class Reference

The SelectionObserver class simplifies the step to write classes that listen to what happens to the selection. More...

#include <Selection.h>

Inheritance diagram for Gui::SelectionObserver:
Gui::Dialog::DefaultTransformStrategy Gui::PropertyView Gui::SelectionObserverPython Gui::TreeWidget PartDesignGui::ChamferWidget PartGui::DlgFilletEdges PartGui::FaceColors SketcherGui::TaskSketcherConstrains SketcherGui::ViewProviderSketch

List of all members.

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 ()

Detailed Description

The SelectionObserver class simplifies the step to write classes that listen to what happens to the selection.

Author:
Werner Mayer

Definition at line 117 of file Selection.h.


Constructor & Destructor Documentation

SelectionObserver::SelectionObserver (  ) 

Constructor.

Definition at line 57 of file Selection.cpp.

References attachSelection().

SelectionObserver::~SelectionObserver (  )  [virtual]

Definition at line 62 of file Selection.cpp.

References detachSelection().


Member Function Documentation

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


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

Generated on Wed Nov 23 19:02:02 2011 for FreeCAD by  doxygen 1.6.1