-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
89 lines (68 loc) · 1.8 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "dbmanager.h"
#include <QMainWindow>
#include <QSettings>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
/**
* @brief invalidMessage
*/
void invalidMessage();
/**
* @brief getLastRecordAndSetUi
*/
void getLastRecordAndSetUi(bool newDatabase);
/**
* @brief MainWindow::on_writeButton_clicked
* writes record to database
*/
void on_writeButton_clicked();
/**
* @brief on_dateEdit_dateChanged
* @param date
* Changes textEdit display to match date selected in the dateSelector
*/
void on_dateEdit_dateChanged(const QDate &date);
/**
* @brief on_similarDatesButton_clicked
* Selects all journal entries from the same period of the calendar year to
* see what you were doing in the past
*/
void on_similarDatesButton_clicked();
/**
* @brief on_searchButton_clicked
* Queries data base for all journal entries containing something like the search term
*/
void on_searchButton_clicked();
/**
* @brief on_weightHistoryButton_clicked
* If you record your weight in your journal, this will try and retrieve all date/weight pairs
*/
void on_weightHistoryButton_clicked();
/**
* @brief on_exportHtmlButton_clicked
* Exports journal to html
*/
void on_exportHtmlButton_clicked();
/**
* @brief on_todayButton_clicked
* Sets date and entry based on today's date
*/
void on_todayButton_clicked();
private:
Ui::MainWindow *ui;
DbManager * db;
QSettings MySettings;
QString PATH;
QString SelectedFile;
};
#endif // MAINWINDOW_H