-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask.h
More file actions
89 lines (80 loc) · 2.24 KB
/
task.h
File metadata and controls
89 lines (80 loc) · 2.24 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef TASK_H
#define TASK_H
#include <QWidget>
#include <QObject>
#include <QDockWidget>
#include <string.h>
#include <QLabel>
#include <QString>
#include <QStyle>
#include <QWindow>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QMouseEvent>
#include <QMoveEvent>
#include <QPoint>
#include <QApplication>
#include <QDrag>
#include <QMimeData>
#include <QDialog>
#include <QLineEdit>
#include <QCheckBox>
#include <QGroupBox>
#include <QPushButton>
#include <QProgressBar>
#include <QSlider>
#include <QSpinBox>
#include <QDateTime>
#include <QColorDialog>
#include <QDateEdit>
#include "target.h"
#include "database.h"
class task: public QDockWidget
{
Q_OBJECT
public:
task();
explicit task(database *db, QWidget *parent = 0);
~task();
int group = 1;
void set(QDateTime number, database *db, int priority = 0, int duration = 1, int tray = 1, int itemCount = 0, QString color = "#000000", QDateTime deadline = QDateTime::currentDateTime(), QString title = "");
QHBoxLayout *stateBar = new QHBoxLayout;
QVBoxLayout *layout = new QVBoxLayout;
QProgressBar *completion = new QProgressBar;
QLabel *labelColor = new QLabel;
inline QDateTime get(){return this->wdwId;};
int itemCount = 0;
int priority = 0;
int duration = 1;
bool active = 1;
void resizeIt(int s);
void setArchived();
QDateTime wdwId = QDateTime::currentDateTime();
QDateTime deadLine = QDateTime::currentDateTime();
QString title = "New task";
QColor colorTask = Qt::green;
public slots:
void completionVal(int i);
void deleteTarget(bool s);
void color();
void hideShowWid();
void dlTask();
void archi();
private:
database *db;
QProgressBar *projTim = new QProgressBar;
QProgressBar *alloc = new QProgressBar;
QLabel *aloc = new QLabel;
QLabel *time = new QLabel;
QWidget *titleBar = new QWidget;
QWidget *lab = new QWidget;
QString description = "Empty";
void designTitleBar();
void mouseReleaseEvent(QMouseEvent *event) override;
QPoint dragStartPosition;
void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void dropEvent(QDropEvent *event) override;
};
#endif // TASK_H