Gui::TaskView::TaskView Class Reference

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...
 

Protected Attributes

TaskEditControlActiveCtrl
 
TaskDialogActiveDialog
 
std::vector< TaskWatcher * > ActiveWatcher
 
Connection connectApplicationActiveDocument
 
Connection connectApplicationDeleteDocument
 
Connection connectApplicationRedoDocument
 
Connection connectApplicationUndoDocument
 
QSint::ActionPaneltaskPanel
 

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()

Member Function Documentation

◆ accept

◆ addTaskWatcher() [1/2]

void TaskView::addTaskWatcher ( const std::vector< TaskWatcher * > &  Watcher)

◆ addTaskWatcher() [2/2]

◆ clearActionStyle()

◆ clearTaskWatcher()

void TaskView::clearTaskWatcher ( void  )

◆ clicked

void TaskView::clicked ( QAbstractButton *  button)
protectedslot

◆ event()

bool TaskView::event ( QEvent event)
protectedvirtual

References event().

Referenced by addTaskWatcher(), and event().

◆ helpRequested

void TaskView::helpRequested ( )
protectedslot

◆ keyPressEvent()

◆ OnChange()

virtual void Gui::TaskView::TaskView::OnChange ( Gui::SelectionSingleton::SubjectType rCaller,
Gui::SelectionSingleton::MessageType  Reason 
)
virtual

Observer message from the Selection.

◆ reject

◆ removeDialog()

◆ removeTaskWatcher()

void TaskView::removeTaskWatcher ( void  )
protected

◆ restoreActionStyle()

◆ showDialog()

◆ slotActiveDocument()

void TaskView::slotActiveDocument ( const App::Document doc)
protected

References ActiveDialog, and updateWatcher().

Referenced by TaskView().

◆ slotDeletedDocument()

void TaskView::slotDeletedDocument ( )
protected

References ActiveDialog, and updateWatcher().

Referenced by TaskView().

◆ slotRedoDocument()

◆ slotUndoDocument()

◆ updateWatcher()

void TaskView::updateWatcher ( void  )
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

◆ Gui::DockWnd::ComboView

Member Data Documentation

◆ ActiveCtrl

TaskEditControl* Gui::TaskView::TaskView::ActiveCtrl
protected

◆ ActiveDialog

◆ ActiveWatcher

std::vector<TaskWatcher*> Gui::TaskView::TaskView::ActiveWatcher
protected

◆ connectApplicationActiveDocument

Connection Gui::TaskView::TaskView::connectApplicationActiveDocument
protected

Referenced by TaskView(), and ~TaskView().

◆ connectApplicationDeleteDocument

Connection Gui::TaskView::TaskView::connectApplicationDeleteDocument
protected

Referenced by TaskView(), and ~TaskView().

◆ connectApplicationRedoDocument

Connection Gui::TaskView::TaskView::connectApplicationRedoDocument
protected

Referenced by TaskView(), and ~TaskView().

◆ connectApplicationUndoDocument

Connection Gui::TaskView::TaskView::connectApplicationUndoDocument
protected

Referenced by TaskView(), and ~TaskView().

◆ taskPanel


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