-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweeklyschedule.h
More file actions
46 lines (35 loc) · 845 Bytes
/
Copy pathweeklyschedule.h
File metadata and controls
46 lines (35 loc) · 845 Bytes
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
#ifndef WEEKLYSCHEDULE_H
#define WEEKLYSCHEDULE_H
#include <QWidget>
#include <QTableWidget>
#include <QTabWidget>
#include <QVBoxLayout>
#include <QComboBox>
#include <QLineEdit>
#include <QSpinBox>
#include <QPushButton>
#include <QDateTime>
#include "feature.h"
struct activity
{
QString description;
int day;
int hour;
};
class WeeklySchedule : public Feature, public QWidget
{
public:
WeeklySchedule(QWidget * parent);
void v_display(QTabWidget * tabWidget);
private:
QVector<activity> __activities;
QTableWidget * __tableWidget;
const int DAY_START_HOUR = 5;
const int DAY_END_HOUR = 22;
QDateTime * __dateTime;
void updateSchedule();
private slots:
void newActivityPushButton_clicked();
void newActivityTableWidget_changed(int row, int column);
};
#endif // WEEKLYSCHEDULE_H