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=nullptr) | |
~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 |
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.
TaskView::TaskView | ( | QWidget * | parent = nullptr | ) |
References Base::Subject< _MessageType >::Attach(), draftgeoutils.faces::bind(), connectApplicationActiveDocument, connectApplicationDeleteDocument, connectApplicationRedoDocument, connectApplicationUndoDocument, 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 | ( | ) |
|
protectedslot |
References Gui::TaskView::TaskDialog::accept(), ActiveDialog, Base::Console(), removeDialog(), and Base::ConsoleSingleton::Warning().
Referenced by Gui::ControlSingleton::accept(), femexamples.examplesgui.FemExamples::clicked(), femexamples.examplesgui.FemExamples::double_clicked(), ArchComponent.ComponentTaskPanel::editObject(), showDialog(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
void TaskView::addTaskWatcher | ( | const std::vector< TaskWatcher * > & | Watcher | ) |
References ActiveWatcher, and addTaskWatcher().
Referenced by Gui::TaskView::ControlPy::addTaskWatcher(), and Gui::Workbench::addTaskWatcher().
|
protected |
void TaskView::clearActionStyle | ( | ) |
References clearActionStyle(), QSint::FreeCADPanelScheme::defaultScheme(), QSint::ActionPanel::setScheme(), and taskPanel.
Referenced by clearActionStyle().
void TaskView::clearTaskWatcher | ( | void | ) |
References addTaskWatcher(), and removeTaskWatcher().
Referenced by Gui::TaskView::ControlPy::clearTaskWatcher(), and Gui::Workbench::removeTaskWatcher().
|
protectedslot |
References ActiveCtrl, ActiveDialog, Gui::TaskView::TaskEditControl::buttonBox, and Gui::TaskView::TaskDialog::clicked().
Referenced by showDialog().
References event().
Referenced by addTaskWatcher(), and event().
|
protectedslot |
References ActiveDialog, and Gui::TaskView::TaskDialog::helpRequested().
Referenced by showDialog().
|
protectedvirtual |
References ActiveCtrl, ActiveDialog, draftgeoutils.faces::bind(), Gui::Application::getDocument(), Gui::TaskView::TaskDialog::getDocumentName(), Gui::Application::Instance, Gui::TaskView::TaskDialog::isEscapeButtonEnabled(), Gui::Document::resetEdit(), and Gui::TaskView::TaskEditControl::standardButtons().
|
virtual |
Observer message from the Selection.
|
protectedslot |
References ActiveDialog, Base::Console(), Gui::TaskView::TaskDialog::reject(), removeDialog(), and Base::ConsoleSingleton::Warning().
Referenced by draftguitools.gui_hatch.Draft_Hatch_TaskPanel::accept(), draftguitools.gui_setstyle.Draft_SetStyle_TaskPanel::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelCmd::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelEdit::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanel::action(), femexamples.examplesgui.FemExamples::clicked(), Gui::ControlSingleton::reject(), showDialog(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
|
protected |
References ActiveCtrl, ActiveDialog, addTaskWatcher(), Gui::TaskView::TaskDialog::closed(), 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(), reject(), slotRedoDocument(), and slotUndoDocument().
|
protected |
References ActiveWatcher, QSint::ActionPanel::removeStretch(), QSint::ActionPanel::removeWidget(), and taskPanel.
Referenced by clearTaskWatcher(), and showDialog().
void TaskView::restoreActionStyle | ( | ) |
References QSint::FreeCADPanelScheme::defaultScheme(), restoreActionStyle(), QSint::ActionPanel::setScheme(), and taskPanel.
Referenced by restoreActionStyle().
|
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(), draftgeoutils.intersections::connect(), 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().
|
protected |
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
|
protected |
References ActiveDialog, and updateWatcher().
Referenced by TaskView().
|
protected |
|
protected |
|
protected |
update the visibility of the TaskWatcher accordant to the selection
References ActiveWatcher.
Referenced by addTaskWatcher(), slotActiveDocument(), slotDeletedDocument(), slotRedoDocument(), and slotUndoDocument().
|
friend |
|
friend |
|
protected |
Referenced by clicked(), keyPressEvent(), removeDialog(), and showDialog().
|
protected |
|
protected |
Referenced by addTaskWatcher(), removeTaskWatcher(), and updateWatcher().
|
protected |
Referenced by TaskView(), and ~TaskView().
|
protected |
Referenced by TaskView(), and ~TaskView().
|
protected |
Referenced by TaskView(), and ~TaskView().
|
protected |
Referenced by TaskView(), and ~TaskView().
|
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().