-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
73 lines (63 loc) · 1.63 KB
/
mainwindow.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
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "./qcustomplot/qcustomplot.h"
#include "filemanager.h"
#include "startdialog.h"
#include "categorydialog.h"
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void selectionChanged();
void on_actionQUIT_triggered();
void on_actionEXPORT_AS_PDF_triggered();
void on_actionEXPORT_AS_PNG_triggered();
//void on_actionEDIT_CATEGORY_COLORS_triggered();
void on_actionEDIT_CATEGORIES_triggered();
void on_actionABOUT_QtTT_triggered();
void on_spinBox_valueChanged(int arg1);
void on_pushButton_clicked();
void updater();
void dayChangeSlot();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_comboBox_activated(const QString &arg1);
void on_spinBox_2_valueChanged(int arg1);
public slots:
void nproject();
void lproject();
private:
QString returnMonth();
Ui::MainWindow *ui;
QDate date;
QDate today;
QTimer *timer;
QPen pen;
QList <QCPBars*>list;
QCPBars *bar;
QVector<double> ticks;
QVector<double> ticksY;
QVector<QString> labels;
void setupPlot(int year, int month, int day, bool firstLaunch, QString filename);
void readData(QString filename);
int tCounter;
int sCounter;
int mCounter;
int hCounter;
FileManager *f;
int randInt(int low, int high);
int tempDay;
int tempMonth;
int tempYear;
QString loadedFile;
QString activeCategory;
};
#endif // MAINWINDOW_H