Version 2 // Add detailled breaks
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#define KEY_TEMPLATE "template"
|
||||
#define KEY_WEEKS "weeks"
|
||||
#define KEY_YEARS "years"
|
||||
#define SAVE_FILENAME "data.json"
|
||||
#define SAVE_FILE_VERSION 2
|
||||
#define SAVE_FILE_VERSION 3
|
||||
#define KEY_SAVE_FILE_VERSION "version"
|
||||
|
||||
#include <QMouseEvent>
|
||||
@@ -21,9 +21,9 @@
|
||||
#include <QTimer>
|
||||
#include <QProcess>
|
||||
#include <QDir>
|
||||
#include <QtWinExtras/QtWin>
|
||||
|
||||
#include "week.h"
|
||||
#include "year.h"
|
||||
#include "welcome.h"
|
||||
#include "tools.h"
|
||||
#include "aboutbox.h"
|
||||
@@ -63,22 +63,13 @@ private:
|
||||
|
||||
Week week_template;
|
||||
Week current_week;
|
||||
QMap<int, Week> weeks;
|
||||
Year current_year;
|
||||
QMap<int, Year> years;
|
||||
QMap<QString, Identifier> objectId;
|
||||
int todayWeekNumber;
|
||||
int dayOfWeek;
|
||||
bool saveLoaded;
|
||||
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
int m_nMouseClick_X_Coordinate;
|
||||
int m_nMouseClick_Y_Coordinate;
|
||||
int xmax;
|
||||
int xmin;
|
||||
int ymax;
|
||||
int ymin;
|
||||
inline bool isWidgetIsTitleBar();
|
||||
|
||||
public slots:
|
||||
void compute_week_number(const QDateTime &dt);
|
||||
void compute_time();
|
||||
|
||||
Reference in New Issue
Block a user