TaskView class handles the FreeCAD task view panel. More...
#include <TaskView.h>
Public Member Functions | |
void | addTaskWatcher (const std::vector< TaskWatcher * > &Watcher) |
void | clearTaskWatcher (void) |
virtual void | OnChange (Gui::SelectionSingleton::SubjectType &rCaller, Gui::SelectionSingleton::MessageType Reason) |
Observer message from the Selection. | |
TaskView (QWidget *parent=0) | |
~TaskView () | |
Protected Slots | |
void | accept () |
void | clicked (QAbstractButton *button) |
void | helpRequested () |
void | reject () |
Protected Member Functions | |
void | addTaskWatcher (void) |
void | keyPressEvent (QKeyEvent *) |
void | removeDialog (void) |
void | removeTaskWatcher (void) |
void | showDialog (TaskDialog *dlg) |
used by Gui::Contol to register Dialogs | |
void | slotActiveDocument (const App::Document &) |
void | slotDeletedDocument () |
void | updateWatcher (void) |
update the visibility of the TaskWatcher accordant to the selection | |
Protected Attributes | |
TaskEditControl * | ActiveCtrl |
TaskDialog * | ActiveDialog |
std::vector< TaskWatcher * > | ActiveWatcher |
Connection | connectApplicationActiveDocument |
Connection | connectApplicationDeleteDocument |
iisTaskPanel * | taskPanel |
Friends | |
class | Gui::ControlSingleton |
class | Gui::DockWnd::CombiView |
TaskView class handles the FreeCAD task view panel.
Keeps track of the inserted content elements. This elements get injected mostly by the ViewProvider classes of the selected DocumentObjects.
Definition at line 93 of file TaskView.h.
TaskView::TaskView | ( | QWidget * | parent = 0 |
) |
Definition at line 183 of file TaskView.cpp.
References Base::Subject< _MessageType >::Attach(), draftlibs::fcgeo::bind(), connectApplicationActiveDocument, connectApplicationDeleteDocument, iisFreeCADTaskPanelScheme::defaultScheme(), App::GetApplication(), Gui::Selection(), iisTaskPanel::setScheme(), App::Application::signalActiveDocument, App::Application::signalDeletedDocument, slotActiveDocument(), slotDeletedDocument(), and taskPanel.
TaskView::~TaskView | ( | ) |
Definition at line 206 of file TaskView.cpp.
References connectApplicationActiveDocument, connectApplicationDeleteDocument, Base::Subject< _MessageType >::Detach(), and Gui::Selection().
void TaskView::accept | ( | void | ) | [protected, slot] |
Definition at line 416 of file TaskView.cpp.
References Gui::TaskView::TaskDialog::accept(), ActiveDialog, and removeDialog().
Referenced by showDialog().
void TaskView::addTaskWatcher | ( | void | ) | [protected] |
Definition at line 386 of file TaskView.cpp.
References ActiveWatcher, iisTaskPanel::addStretch(), iisTaskPanel::addWidget(), taskPanel, and updateWatcher().
Referenced by addTaskWatcher(), clearTaskWatcher(), and removeDialog().
void TaskView::addTaskWatcher | ( | const std::vector< TaskWatcher * > & | Watcher | ) |
Definition at line 368 of file TaskView.cpp.
References ActiveWatcher, and addTaskWatcher().
Referenced by Gui::Workbench::addTaskWatcher(), and Gui::TaskView::ControlPy::addTaskWatcher().
void TaskView::clearTaskWatcher | ( | void | ) |
Definition at line 378 of file TaskView.cpp.
References addTaskWatcher(), and removeTaskWatcher().
Referenced by Gui::TaskView::ControlPy::clearTaskWatcher(), and Gui::Workbench::removeTaskWatcher().
void TaskView::clicked | ( | QAbstractButton * | button | ) | [protected, slot] |
Definition at line 433 of file TaskView.cpp.
References ActiveCtrl, ActiveDialog, Gui::TaskView::TaskEditControl::buttonBox, and Gui::TaskView::TaskDialog::clicked().
Referenced by showDialog().
void TaskView::helpRequested | ( | ) | [protected, slot] |
Definition at line 428 of file TaskView.cpp.
References ActiveDialog, and Gui::TaskView::TaskDialog::helpRequested().
Referenced by showDialog().
void TaskView::keyPressEvent | ( | QKeyEvent * | ke | ) | [protected] |
Definition at line 213 of file TaskView.cpp.
References ActiveCtrl, ActiveDialog, and Gui::TaskView::TaskEditControl::standardButtons().
virtual void Gui::TaskView::TaskView::OnChange | ( | Gui::SelectionSingleton::SubjectType & | rCaller, | |
Gui::SelectionSingleton::MessageType | Reason | |||
) | [virtual] |
Observer message from the Selection.
void TaskView::reject | ( | void | ) | [protected, slot] |
Definition at line 422 of file TaskView.cpp.
References ActiveDialog, Gui::TaskView::TaskDialog::reject(), and removeDialog().
Referenced by showDialog().
void TaskView::removeDialog | ( | void | ) | [protected] |
Definition at line 330 of file TaskView.cpp.
References ActiveCtrl, ActiveDialog, addTaskWatcher(), Gui::TaskView::TaskDialog::getDialogContent(), iisTaskPanel::removeStretch(), iisTaskPanel::removeWidget(), and taskPanel.
Referenced by accept(), Gui::DockWnd::CombiView::closeDialog(), and reject().
void TaskView::removeTaskWatcher | ( | void | ) | [protected] |
Definition at line 402 of file TaskView.cpp.
References ActiveWatcher, iisTaskPanel::removeStretch(), iisTaskPanel::removeWidget(), and taskPanel.
Referenced by clearTaskWatcher(), and showDialog().
void TaskView::showDialog | ( | TaskDialog * | dlg | ) | [protected] |
used by Gui::Contol to register Dialogs
Definition at line 278 of file TaskView.cpp.
References accept(), ActiveCtrl, ActiveDialog, iisTaskPanel::addStretch(), iisTaskPanel::addWidget(), Gui::TaskView::TaskEditControl::buttonBox, Gui::TaskView::TaskDialog::buttonPosition(), clicked(), draftlibs::fcgeo::connect(), Gui::TaskView::TaskDialog::getDialogContent(), Gui::TaskView::TaskDialog::getStandardButtons(), helpRequested(), Gui::TaskView::TaskDialog::modifyStandardButtons(), Gui::TaskView::TaskDialog::needsFullSpace(), Gui::TaskView::TaskDialog::North, Gui::TaskView::TaskDialog::open(), reject(), removeTaskWatcher(), and taskPanel.
Referenced by Gui::DockWnd::CombiView::showDialog().
void TaskView::slotActiveDocument | ( | const App::Document & | doc | ) | [protected] |
Definition at line 247 of file TaskView.cpp.
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
void TaskView::slotDeletedDocument | ( | ) | [protected] |
Definition at line 253 of file TaskView.cpp.
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
void TaskView::updateWatcher | ( | void | ) | [protected] |
update the visibility of the TaskWatcher accordant to the selection
Definition at line 353 of file TaskView.cpp.
References ActiveWatcher.
Referenced by addTaskWatcher(), slotActiveDocument(), and slotDeletedDocument().
friend class Gui::ControlSingleton [friend] |
Definition at line 106 of file TaskView.h.
friend class Gui::DockWnd::CombiView [friend] |
Definition at line 105 of file TaskView.h.
TaskEditControl* Gui::TaskView::TaskView::ActiveCtrl [protected] |
Definition at line 135 of file TaskView.h.
Referenced by clicked(), keyPressEvent(), removeDialog(), and showDialog().
TaskDialog* Gui::TaskView::TaskView::ActiveDialog [protected] |
Definition at line 134 of file TaskView.h.
Referenced by accept(), clicked(), helpRequested(), keyPressEvent(), reject(), removeDialog(), showDialog(), slotActiveDocument(), and slotDeletedDocument().
std::vector<TaskWatcher*> Gui::TaskView::TaskView::ActiveWatcher [protected] |
Definition at line 131 of file TaskView.h.
Referenced by addTaskWatcher(), removeTaskWatcher(), and updateWatcher().
Definition at line 137 of file TaskView.h.
Referenced by TaskView(), and ~TaskView().
Definition at line 138 of file TaskView.h.
Referenced by TaskView(), and ~TaskView().
iisTaskPanel* Gui::TaskView::TaskView::taskPanel [protected] |
Definition at line 133 of file TaskView.h.
Referenced by addTaskWatcher(), removeDialog(), removeTaskWatcher(), showDialog(), and TaskView().