Gui::TaskView::TaskSelectLinkProperty Class Reference

General Link/Selction editor for the Task view This can be used as part of a TaskDialog to alter the content of a LinkProperty by user input/selection. More...

#include <TaskSelectLinkProperty.h>

Inheritance diagram for Gui::TaskView::TaskSelectLinkProperty:
Gui::TaskView::TaskBox iisTaskBox Gui::TaskView::TaskContent

List of all members.

Signals

void emitSelectionFit (void)
void emitSelectionMisfit (void)

Public Member Functions

bool accept (void)
 call this to accept the changes the user have made and put back to the Propterty (Ok)
void activate (void)
 set the TaskSelectLinkProperty active, means seting the selection and controls it
bool isSelectionValid (void) const
 checkes if the filter is current met
void OnChange (Gui::SelectionSingleton::SubjectType &rCaller, Gui::SelectionSingleton::MessageType Reason)
 Observer message from the Selection.
bool reject (void)
 This discard the changes of the user and leaf the Property untouched (Cancel).
void sendSelection2Property (void)
 send the selection to the Property for e.g. forced recomputation of a feature
bool setFilter (const char *)
 set the filter criterion (same as in constructor)
 TaskSelectLinkProperty (const char *, App::Property *, QWidget *parent=0)
 ~TaskSelectLinkProperty ()

Protected Member Functions

void changeEvent (QEvent *e)

Detailed Description

General Link/Selction editor for the Task view This can be used as part of a TaskDialog to alter the content of a LinkProperty by user input/selection.

If set active it reflects the selection to the Property given and acts due the selection filter given to the constructor. It will allow only allowed elements to be selected (SelectionFilter) and shows by the background color if the selection criterion is met. With the call of accept() or reject() the result gets permanent or discarded in the given Property.

Definition at line 55 of file TaskSelectLinkProperty.h.


Constructor & Destructor Documentation

TaskSelectLinkProperty::TaskSelectLinkProperty ( const char *  sFilter,
App::Property prop,
QWidget *  parent = 0 
)
TaskSelectLinkProperty::~TaskSelectLinkProperty (  ) 

Member Function Documentation

bool Gui::TaskView::TaskSelectLinkProperty::accept ( void   ) 

call this to accept the changes the user have made and put back to the Propterty (Ok)

Referenced by RobotGui::TaskDlgTrajectoryCompound::accept(), and RobotGui::TaskDlgEdge2Trac::accept().

void Gui::TaskView::TaskSelectLinkProperty::activate ( void   ) 

set the TaskSelectLinkProperty active, means seting the selection and controls it

Referenced by RobotGui::TaskDlgTrajectoryCompound::open(), and RobotGui::TaskDlgEdge2Trac::open().

void TaskSelectLinkProperty::changeEvent ( QEvent *  e  )  [protected]
void Gui::TaskView::TaskSelectLinkProperty::emitSelectionFit ( void   )  [signal]
void Gui::TaskView::TaskSelectLinkProperty::emitSelectionMisfit ( void   )  [signal]
bool Gui::TaskView::TaskSelectLinkProperty::isSelectionValid ( void   )  const [inline]
void Gui::TaskView::TaskSelectLinkProperty::OnChange ( Gui::SelectionSingleton::SubjectType rCaller,
Gui::SelectionSingleton::MessageType  Reason 
)

Observer message from the Selection.

bool Gui::TaskView::TaskSelectLinkProperty::reject ( void   ) 

This discard the changes of the user and leaf the Property untouched (Cancel).

Referenced by RobotGui::TaskDlgTrajectoryCompound::reject(), and RobotGui::TaskDlgEdge2Trac::reject().

void Gui::TaskView::TaskSelectLinkProperty::sendSelection2Property ( void   ) 

send the selection to the Property for e.g. forced recomputation of a feature

Referenced by RobotGui::TaskDlgEdge2Trac::clicked().

bool Gui::TaskView::TaskSelectLinkProperty::setFilter ( const char *   ) 

set the filter criterion (same as in constructor)

Referenced by TaskSelectLinkProperty().


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

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