TaskView class handles the FreeCAD task view panel. More...
#include <TaskView.h>
Public Member Functions | |
void | addTaskWatcher (const std::vector< TaskWatcher * > &Watcher) |
void | clearActionStyle () |
void | clearTaskWatcher (void) |
virtual void | OnChange (Gui::SelectionSingleton::SubjectType &rCaller, Gui::SelectionSingleton::MessageType Reason) |
Observer message from the Selection. More... | |
void | restoreActionStyle () |
TaskView (QWidget *parent=0) | |
~TaskView () | |
Protected Slots | |
void | accept () |
void | clicked (QAbstractButton *button) |
void | helpRequested () |
void | reject () |
Protected Member Functions | |
void | addTaskWatcher (void) |
virtual bool | event (QEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
void | removeDialog (void) |
void | removeTaskWatcher (void) |
void | showDialog (TaskDialog *dlg) |
used by Gui::Control to register Dialogs More... | |
void | slotActiveDocument (const App::Document &) |
void | slotDeletedDocument () |
void | slotRedoDocument (const App::Document &) |
void | slotUndoDocument (const App::Document &) |
void | updateWatcher (void) |
update the visibility of the TaskWatcher accordant to the selection More... | |
Friends | |
class | Gui::ControlSingleton |
class | Gui::DockWnd::ComboView |
Detailed Description
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.
Constructor & Destructor Documentation
◆ TaskView()
TaskView::TaskView | ( | QWidget * | parent = 0 | ) |
References Base::Subject< _MessageType >::Attach(), connectApplicationActiveDocument, connectApplicationDeleteDocument, connectApplicationRedoDocument, connectApplicationUndoDocument, iisFreeCADTaskPanelScheme::defaultScheme(), QSint::FreeCADPanelScheme::defaultScheme(), App::GetApplication(), Gui::Selection(), QSint::ActionPanel::setScheme(), App::Application::signalActiveDocument, App::Application::signalDeletedDocument, App::Application::signalRedoDocument, App::Application::signalUndoDocument, slotActiveDocument(), slotDeletedDocument(), slotRedoDocument(), slotUndoDocument(), and taskPanel.
◆ ~TaskView()
TaskView::~TaskView | ( | ) |
Member Function Documentation
◆ accept
|
protectedslot |
References Gui::TaskView::TaskDialog::accept(), ActiveDialog, and removeDialog().
Referenced by Gui::ControlSingleton::accept(), ArchComponent.ComponentTaskPanel::editObject(), and showDialog().
◆ addTaskWatcher() [1/2]
void TaskView::addTaskWatcher | ( | const std::vector< TaskWatcher * > & | Watcher | ) |
References ActiveWatcher, and addTaskWatcher().
Referenced by Gui::Workbench::addTaskWatcher(), and Gui::TaskView::ControlPy::addTaskWatcher().
◆ addTaskWatcher() [2/2]
|
protected |
◆ clearActionStyle()
void TaskView::clearActionStyle | ( | ) |
◆ clearTaskWatcher()
void TaskView::clearTaskWatcher | ( | void | ) |
References addTaskWatcher(), and removeTaskWatcher().
Referenced by Gui::TaskView::ControlPy::clearTaskWatcher(), and Gui::Workbench::removeTaskWatcher().
◆ clicked
|
protectedslot |
References ActiveCtrl, ActiveDialog, Gui::TaskView::TaskEditControl::buttonBox, and Gui::TaskView::TaskDialog::clicked().
Referenced by showDialog().
◆ event()
Referenced by addTaskWatcher().
◆ helpRequested
|
protectedslot |
References ActiveDialog, and Gui::TaskView::TaskDialog::helpRequested().
Referenced by showDialog().
◆ keyPressEvent()
|
protectedvirtual |
◆ OnChange()
|
virtual |
Observer message from the Selection.
◆ reject
|
protectedslot |
References ActiveDialog, Gui::TaskView::TaskDialog::reject(), and removeDialog().
Referenced by drafttaskpanels.task_shapestring.ShapeStringTaskPanel::action(), Gui::ControlSingleton::reject(), and showDialog().
◆ removeDialog()
|
protected |
References ActiveCtrl, ActiveDialog, addTaskWatcher(), Gui::TaskView::TaskDialog::emitDestructionSignal(), Gui::TaskView::TaskDialog::getDialogContent(), Gui::getMainWindow(), QSint::ActionPanel::removeStretch(), QSint::ActionPanel::removeWidget(), taskPanel, and Gui::MainWindow::updateActions().
Referenced by accept(), Gui::DockWnd::ComboView::closeDialog(), and reject().
◆ removeTaskWatcher()
|
protected |
References ActiveWatcher, QSint::ActionPanel::removeStretch(), QSint::ActionPanel::removeWidget(), and taskPanel.
Referenced by clearTaskWatcher(), and showDialog().
◆ restoreActionStyle()
void TaskView::restoreActionStyle | ( | ) |
◆ showDialog()
|
protected |
used by Gui::Control to register Dialogs
References accept(), ActiveCtrl, ActiveDialog, QSint::ActionPanel::addStretch(), QSint::ActionPanel::addWidget(), Gui::TaskView::TaskEditControl::buttonBox, Gui::TaskView::TaskDialog::buttonPosition(), clicked(), QSint::FreeCADPanelScheme::defaultScheme(), Gui::TaskView::TaskDialog::getDialogContent(), Gui::getMainWindow(), Gui::TaskView::TaskDialog::getStandardButtons(), helpRequested(), Gui::TaskView::TaskDialog::modifyStandardButtons(), Gui::TaskView::TaskDialog::needsFullSpace(), Gui::TaskView::TaskDialog::North, Gui::TaskView::TaskDialog::open(), reject(), removeTaskWatcher(), QSint::ActionPanel::setScheme(), taskPanel, and Gui::MainWindow::updateActions().
Referenced by Gui::DockWnd::ComboView::showDialog().
◆ slotActiveDocument()
|
protected |
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
◆ slotDeletedDocument()
|
protected |
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
◆ slotRedoDocument()
|
protected |
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
◆ slotUndoDocument()
|
protected |
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
◆ updateWatcher()
|
protected |
update the visibility of the TaskWatcher accordant to the selection
References ActiveWatcher.
Referenced by addTaskWatcher(), slotActiveDocument(), slotDeletedDocument(), slotRedoDocument(), and slotUndoDocument().
Friends And Related Function Documentation
◆ Gui::ControlSingleton
|
friend |
◆ Gui::DockWnd::ComboView
|
friend |
Member Data Documentation
◆ ActiveCtrl
|
protected |
Referenced by clicked(), keyPressEvent(), removeDialog(), and showDialog().
◆ ActiveDialog
|
protected |
◆ ActiveWatcher
|
protected |
Referenced by addTaskWatcher(), removeTaskWatcher(), and updateWatcher().
◆ connectApplicationActiveDocument
|
protected |
Referenced by TaskView(), and ~TaskView().
◆ connectApplicationDeleteDocument
|
protected |
Referenced by TaskView(), and ~TaskView().
◆ connectApplicationRedoDocument
|
protected |
Referenced by TaskView(), and ~TaskView().
◆ connectApplicationUndoDocument
|
protected |
Referenced by TaskView(), and ~TaskView().
◆ taskPanel
|
protected |
Referenced by addTaskWatcher(), PathScripts.PathJobGui.ViewProvider::attach(), clearActionStyle(), PathScripts.PathJobGui.ViewProvider::openTaskPanel(), removeDialog(), removeTaskWatcher(), PathScripts.PathJobGui.ViewProvider::resetTaskPanel(), restoreActionStyle(), showDialog(), TaskView(), and PathScripts.PathJobGui.ViewProvider::unsetEdit().
The documentation for this class was generated from the following files:
- src/Gui/TaskView/TaskView.h
- src/Gui/TaskView/TaskView.cpp