-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskcontrolmanager.h
37 lines (33 loc) · 973 Bytes
/
taskcontrolmanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef TASKCONTROLMANAGER_H
#define TASKCONTROLMANAGER_H
#include <QObject>
#include <QList>
#include "widgets/datawidget.h"
#include "itaskcontrolmanager.h"
#include "tasktree/treecolumndata.h"
#include "tasktree/task.h"
class QWidget;
class QItemSelectionModel;
class IPreferences;
class ITaskList;
class TextEditModel;
class TaskControlManager : public QObject, public ITaskControlManager
{
Q_OBJECT
public:
TaskControlManager(QWidget *parentWidget, IPreferences *prefs);
virtual ~TaskControlManager();
public:
virtual void createTaskControls(QTextEdit *commentsControl);
public slots:
void selectionChanged(QItemSelectionModel *selectionModel);
void onCurrentListChanged(ITaskList* newList);
private:
QWidget *m_parentWidget;
QMap<nsTaskData::TaskDataMember, DataWidget*> m_widgets;
IPreferences *m_prefs;
Task::Ptr m_curTask;
ITaskList* m_taskList;
TextEditModel* m_commentsModel;
};
#endif // TASKCONTROLMANAGER_H