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>
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) |
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.
TaskSelectLinkProperty::TaskSelectLinkProperty | ( | const char * | sFilter, | |
App::Property * | prop, | |||
QWidget * | parent = 0 | |||
) |
Definition at line 46 of file TaskSelectLinkProperty.cpp.
References Gui::TaskView::Ui_TaskSelectLinkProperty::Add, Base::Subject< _MessageType >::Attach(), Gui::BitmapFactory(), Base::Console(), App::PropertyLinkList::getClassTypeId(), App::PropertyLinkSub::getClassTypeId(), App::Property::getTypeId(), iisTaskBox::groupLayout(), Gui::TaskView::Ui_TaskSelectLinkProperty::Help, Gui::TaskView::Ui_TaskSelectLinkProperty::Invert, Base::Type::isDerivedFrom(), Gui::TaskView::Ui_TaskSelectLinkProperty::Remove, Gui::Selection(), setFilter(), and Gui::TaskView::Ui_TaskSelectLinkProperty::setupUi().
TaskSelectLinkProperty::~TaskSelectLinkProperty | ( | ) |
Definition at line 86 of file TaskSelectLinkProperty.cpp.
References Base::Subject< _MessageType >::Detach(), and Gui::Selection().
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] |
Definition at line 92 of file TaskSelectLinkProperty.cpp.
References Gui::TaskView::Ui_TaskSelectLinkProperty::retranslateUi().
void Gui::TaskView::TaskSelectLinkProperty::emitSelectionFit | ( | void | ) | [signal] |
void Gui::TaskView::TaskSelectLinkProperty::emitSelectionMisfit | ( | void | ) | [signal] |
bool Gui::TaskView::TaskSelectLinkProperty::isSelectionValid | ( | void | ) | const [inline] |
checkes if the filter is current met
Definition at line 79 of file TaskSelectLinkProperty.h.
Referenced by RobotGui::TaskDlgTrajectoryCompound::accept(), RobotGui::TaskDlgEdge2Trac::accept(), and RobotGui::TaskDlgEdge2Trac::clicked().
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().