2 Commits

Author SHA1 Message Date
Alexis Delhaie
08dcecbee9 New interface theme, new icon 2020-10-02 21:29:14 +02:00
Alexis Delhaie
4308d9e93a Call to save updater, confirm final input of a day 2020-09-24 10:53:33 +02:00
21 changed files with 1242 additions and 332 deletions

View File

@@ -1,5 +1,4 @@
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.12.4, 2020-08-28T14:45:30. -->
<!-- Written by QtCreator 4.12.4, 2020-09-26T16:18:50. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

BIN
icon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 125 KiB

View File

@@ -5,5 +5,6 @@
<file>pictures/calendar.png</file>
<file>pictures/about.png</file>
<file>pictures/banner.png</file>
<file>pictures/validate.png</file>
</qresource>
</RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 50 KiB

BIN
pictures/validate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -6,9 +6,34 @@ AboutBox::AboutBox(QWidget *parent) :
ui(new Ui::AboutBox)
{
ui->setupUi(this);
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
xmax = ui->frame->x() + ui->frame->width();
xmin = ui->frame->x();
ymax = ui->frame->x() + ui->frame->height();
ymin = ui->frame->y();
}
AboutBox::~AboutBox()
{
delete ui;
}
void AboutBox::mousePressEvent(QMouseEvent *event) {
m_nMouseClick_X_Coordinate = event->x();
m_nMouseClick_Y_Coordinate = event->y();
}
void AboutBox::mouseMoveEvent(QMouseEvent *event) {
if (isWidgetIsTitleBar()) {
move(event->globalX() - m_nMouseClick_X_Coordinate ,
event->globalY() - m_nMouseClick_Y_Coordinate);
}
}
bool AboutBox::isWidgetIsTitleBar() {
return (m_nMouseClick_X_Coordinate >= xmin &&
m_nMouseClick_X_Coordinate < xmax &&
m_nMouseClick_Y_Coordinate >= ymin &&
m_nMouseClick_Y_Coordinate < ymax);
}

View File

@@ -2,6 +2,7 @@
#define ABOUTBOX_H
#include <QDialog>
#include <QMouseEvent>
#include <iostream>
namespace Ui {
@@ -18,6 +19,16 @@ public:
private:
Ui::AboutBox *ui;
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();
};
#endif // ABOUTBOX_H

View File

@@ -28,6 +28,10 @@ void Day::set_time_break(double value)
time_break = value;
}
void Day::set_validate(bool value) {
validate = value;
}
QTime Day::get_start()
{
return start;
@@ -48,7 +52,8 @@ QJsonObject Day::to_json()
QJsonObject obj{
{KEY_START, start.toString(Qt::DateFormat::ISODate)},
{KEY_END, end.toString(Qt::DateFormat::ISODate)},
{KEY_BREAK, time_break}
{KEY_BREAK, time_break},
{KEY_VALIDATE, validate}
};
return obj;
@@ -61,6 +66,11 @@ Day Day::from_json(QJsonObject obj)
result.start = QTime::fromString(obj[KEY_START].toString(), Qt::DateFormat::ISODate);
result.end = QTime::fromString(obj[KEY_END].toString(), Qt::DateFormat::ISODate);
result.time_break = obj[KEY_BREAK].toDouble();
result.validate = obj[KEY_VALIDATE].toBool();
return result;
}
bool Day::get_validate() {
return validate;
}

View File

@@ -4,6 +4,7 @@
#define KEY_START "start"
#define KEY_END "end"
#define KEY_BREAK "break"
#define KEY_VALIDATE "validate"
#include <QTime>
#include <QJsonObject>
@@ -16,6 +17,7 @@ private:
QTime start;
QTime end;
double time_break;
bool validate;
public:
Day();
@@ -23,10 +25,12 @@ public:
void set_start(QTime value);
void set_end(QTime value);
void set_time_break(double value);
void set_validate(bool);
QTime get_start();
QTime get_end();
double get_time_break();
bool get_validate();
QJsonObject to_json();
double get_total();

View File

@@ -55,10 +55,10 @@ void MainWindow::init() {
objectId.insert(ui->wed_button->objectName(), Identifier::wed);
objectId.insert(ui->thu_button->objectName(), Identifier::thu);
objectId.insert(ui->fri_button->objectName(), Identifier::fri);
xmax = ui->window_title->x() + ui->window_title->width();
xmin = ui->window_title->x();
ymax = ui->window_title->x() + ui->window_title->height();
ymin = ui->window_title->y();
xmax = ui->titleBar->x() + ui->titleBar->width();
xmin = ui->titleBar->x();
ymax = ui->titleBar->x() + ui->titleBar->height();
ymin = ui->titleBar->y();
connect(ui->aboutButton, &QPushButton::clicked, this, &MainWindow::open_about);
connect(ui->template_settings_button, &QPushButton::clicked, this, &MainWindow::edit_template);
connect(ui->dateEdit, &QDateEdit::dateTimeChanged, this, &MainWindow::compute_week_number);
@@ -67,8 +67,9 @@ void MainWindow::init() {
connect(ui->wed_button, &QPushButton::clicked, this, &MainWindow::edit);
connect(ui->thu_button, &QPushButton::clicked, this, &MainWindow::edit);
connect(ui->fri_button, &QPushButton::clicked, this, &MainWindow::edit);
highlightDayOfWeek();
todayWeekNumber = QDate::currentDate().weekNumber();
dayOfWeek = QDate::currentDate().dayOfWeek();
saveLoaded = false;
if (QFile::exists(get_save_file_path())) {
open_save();
@@ -77,12 +78,19 @@ void MainWindow::init() {
w.exec();
week_template = w.get_result();
}
if (saveLoaded) {
set_date_to_now();
compute_time();
}
}
void MainWindow::highlightDayOfWeek() {
int dayOfWeek = QDate::currentDate().dayOfWeek();
ui->monLabel->setText("Lundi");
ui->tueLabel->setText("Mardi");
ui->wedLabel->setText("Mercredi");
ui->thuLabel->setText("Jeudi");
ui->friLabel->setText("Vendredi");
if (todayWeekNumber == current_week.getWeekNumber()) {
switch (dayOfWeek) {
case 1: {
ui->monLabel->setText(QString("> %1 <").arg(ui->monLabel->text()));
@@ -106,6 +114,7 @@ void MainWindow::highlightDayOfWeek() {
}
default: break;
}
}
}
void MainWindow::set_date_to_now() {
@@ -127,16 +136,28 @@ void MainWindow::open_save() {
for (QJsonValue val : arr) {
weeks[val.toObject()["weekNumber"].toInt()] = Week::from_json(val.toObject());
}
saveLoaded = true;
} else if (obj[KEY_SAVE_FILE_VERSION].toInt() < SAVE_FILE_VERSION) {
QString updater = QCoreApplication::applicationDirPath() + "/save-updater.exe";
if (QFile::exists(updater)) {
QProcess* process = new QProcess(this);
process->execute(updater, QStringList({"update"}));
delete process;
open_save();
} else {
QMessageBox msgBox;
msgBox.setText("Le fichier de sauvegarde n'est pas à jour, "
"des changements ont été apporté a la structure du fichier lors de la dernière mise à jour");
msgBox.setInformativeText("Mettez à jour votre fichier de sauvegarde puis relancez l'application");
msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setDefaultButton(QMessageBox::Ok);
msgBox.exec();
QTimer::singleShot(0, this, &MainWindow::close);
panic_dialog("Cette application n'a pas pu démarrer car save-updater.exe est introuvable.\n"
"La réinstallation de cette application peut corriger ce problème");
}
} else {
panic_dialog("Votre fichier de sauvegarde a été enregistré depuis une version plus récente de Chronos\n"
"Mettez à jour Chronos pour pouvoir utiliser ce fichier");
}
}
void MainWindow::panic_dialog(QString text) {
QMessageBox::critical(this, tr("Chronos"), text,
QMessageBox::Ok, QMessageBox::Ok);
QTimer::singleShot(0, this, &MainWindow::close);
}
void MainWindow::save_to_file() {
@@ -178,6 +199,7 @@ void MainWindow::compute_week_number(const QDateTime &dt) {
save_to_file();
}
compute_time();
highlightDayOfWeek();
}
void MainWindow::compute_time() {
@@ -190,6 +212,7 @@ void MainWindow::compute_time() {
updateStartLabel();
updateBreakLabel();
updateEndLabel();
updateValidIcon();
double late = 0.0;
double overtime = 0.0;
@@ -205,6 +228,14 @@ void MainWindow::compute_time() {
ui->overtime_time_label->setText(Tools::double_to_string_time((overtime > 0.0) ? overtime : 0.0));
}
void MainWindow::updateValidIcon() {
ui->mondayValidate->setVisible(current_week.getMon().get_validate());
ui->tuesdayValidate->setVisible(current_week.getTue().get_validate());
ui->wednesdayValidate->setVisible(current_week.getWed().get_validate());
ui->thurdayValidate->setVisible(current_week.getThu().get_validate());
ui->fridayValidate->setVisible(current_week.getFri().get_validate());
}
void MainWindow::updateStartLabel() {
ui->monStartLabel->setText(current_week.getMon().get_start().toString("HH:mm"));
ui->tueStartLabel->setText(current_week.getTue().get_start().toString("HH:mm"));
@@ -254,7 +285,8 @@ void MainWindow::edit() {
}
Day MainWindow::modify_value(Day d) {
SetDayDialog sdd(d, this);
bool isNotValidable = (current_week.getWeekNumber() > todayWeekNumber);
SetDayDialog sdd(d, isNotValidable, this);
int result = sdd.exec();
if (result == QDialog::Accepted) {
return sdd.get_result();

View File

@@ -4,7 +4,7 @@
#define KEY_TEMPLATE "template"
#define KEY_WEEKS "weeks"
#define SAVE_FILENAME "data.json"
#define SAVE_FILE_VERSION 1
#define SAVE_FILE_VERSION 2
#define KEY_SAVE_FILE_VERSION "version"
#include <QMouseEvent>
@@ -19,6 +19,9 @@
#include <QMapIterator>
#include <QMessageBox>
#include <QTimer>
#include <QProcess>
#include <QDir>
#include <QtWinExtras/QtWin>
#include "week.h"
#include "welcome.h"
@@ -45,12 +48,14 @@ private:
void init();
void open_save();
void save_to_file();
void panic_dialog(QString text);
// UI Update
void updateStartLabel();
void updateBreakLabel();
void updateEndLabel();
void highlightDayOfWeek();
void updateValidIcon();
QString get_save_file_path();
Identifier get_identifier(QString objectName);
@@ -60,6 +65,9 @@ private:
Week current_week;
QMap<int, Week> weeks;
QMap<QString, Identifier> objectId;
int todayWeekNumber;
int dayOfWeek;
bool saveLoaded;
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);

View File

@@ -1,11 +1,14 @@
#include "setdaydialog.h"
#include "ui_setdaydialog.h"
SetDayDialog::SetDayDialog(Day d, QWidget *parent) :
SetDayDialog::SetDayDialog(Day d, bool isNotValidable, QWidget *parent) :
QDialog(parent),
ui(new Ui::SetDayDialog)
{
ui->setupUi(this);
ui->window_title->setText(this->windowTitle());
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
ui->validateButton->setEnabled(!isNotValidable);
this->d = d;
init();
}
@@ -15,12 +18,37 @@ SetDayDialog::~SetDayDialog()
delete ui;
}
void SetDayDialog::mousePressEvent(QMouseEvent *event) {
m_nMouseClick_X_Coordinate = event->x();
m_nMouseClick_Y_Coordinate = event->y();
}
void SetDayDialog::mouseMoveEvent(QMouseEvent *event) {
if (isWidgetIsTitleBar()) {
move(event->globalX() - m_nMouseClick_X_Coordinate ,
event->globalY() - m_nMouseClick_Y_Coordinate);
}
}
bool SetDayDialog::isWidgetIsTitleBar() {
return (m_nMouseClick_X_Coordinate >= xmin &&
m_nMouseClick_X_Coordinate < xmax &&
m_nMouseClick_Y_Coordinate >= ymin &&
m_nMouseClick_Y_Coordinate < ymax);
}
void SetDayDialog::init() {
ui->start_edit->setTime(d.get_start());
ui->end_edit->setTime(d.get_end());
ui->break_edit->setValue(d.get_time_break());
xmax = ui->titleBar->x() + ui->titleBar->width();
xmin = ui->titleBar->x();
ymax = ui->titleBar->x() + ui->titleBar->height();
ymin = ui->titleBar->y();
connect(ui->start_edit, &QTimeEdit::timeChanged, this, &SetDayDialog::compute_time);
connect(ui->end_edit, &QTimeEdit::timeChanged, this, &SetDayDialog::compute_time);
connect(ui->validateButton, &QPushButton::clicked, this, &SetDayDialog::validate);
connect(ui->break_edit, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged), this, &SetDayDialog::compute_time);
ui->total_label->setText(Tools::double_to_string_time(d.get_total()));
}
@@ -35,3 +63,8 @@ void SetDayDialog::compute_time() {
Day SetDayDialog::get_result() {
return d;
}
void SetDayDialog::validate() {
d.set_validate(true);
accept();
}

View File

@@ -2,6 +2,7 @@
#define SETDAYDIALOG_H
#include <QDialog>
#include <QMouseEvent>
#include "day.h"
#include "tools.h"
@@ -15,13 +16,14 @@ class SetDayDialog : public QDialog
Q_OBJECT
public:
explicit SetDayDialog(Day d, QWidget *parent = nullptr);
explicit SetDayDialog(Day d, bool isNotValidable, QWidget *parent = nullptr);
~SetDayDialog();
Day get_result();
public slots:
void compute_time();
void validate();
private:
Ui::SetDayDialog *ui;
@@ -29,6 +31,16 @@ private:
Day d;
void init();
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();
};
#endif // SETDAYDIALOG_H

View File

@@ -6,6 +6,8 @@ Welcome::Welcome(Week wtemplate, QWidget *parent) :
ui(new Ui::Welcome)
{
ui->setupUi(this);
ui->window_title->setText(this->windowTitle());
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
w = wtemplate;
init();
}
@@ -15,6 +17,26 @@ Welcome::~Welcome()
delete ui;
}
void Welcome::mousePressEvent(QMouseEvent *event) {
m_nMouseClick_X_Coordinate = event->x();
m_nMouseClick_Y_Coordinate = event->y();
}
void Welcome::mouseMoveEvent(QMouseEvent *event) {
if (isWidgetIsTitleBar()) {
move(event->globalX() - m_nMouseClick_X_Coordinate ,
event->globalY() - m_nMouseClick_Y_Coordinate);
}
}
bool Welcome::isWidgetIsTitleBar() {
return (m_nMouseClick_X_Coordinate >= xmin &&
m_nMouseClick_X_Coordinate < xmax &&
m_nMouseClick_Y_Coordinate >= ymin &&
m_nMouseClick_Y_Coordinate < ymax);
}
void Welcome::init() {
set_value_to_widget();
objectId.insert(ui->mon_button->objectName(), Identifier::mon);
@@ -22,6 +44,10 @@ void Welcome::init() {
objectId.insert(ui->wed_button->objectName(), Identifier::wed);
objectId.insert(ui->thu_button->objectName(), Identifier::thu);
objectId.insert(ui->fri_button->objectName(), Identifier::fri);
xmax = ui->titleBar->x() + ui->titleBar->width();
xmin = ui->titleBar->x();
ymax = ui->titleBar->x() + ui->titleBar->height();
ymin = ui->titleBar->y();
connect(ui->mon_button, &QPushButton::clicked, this, &Welcome::edit);
connect(ui->tue_button, &QPushButton::clicked, this, &Welcome::edit);
connect(ui->wed_button, &QPushButton::clicked, this, &Welcome::edit);
@@ -65,7 +91,7 @@ void Welcome::edit() {
}
Day Welcome::modify_value(Day d) {
SetDayDialog sdd(d, this);
SetDayDialog sdd(d, true, this);
int result = sdd.exec();
if (result == QDialog::Accepted) {
return sdd.get_result();

View File

@@ -3,6 +3,7 @@
#include <QDialog>
#include <QDoubleSpinBox>
#include <QMouseEvent>
#include <math.h>
#include "week.h"
@@ -43,6 +44,16 @@ private:
Identifier get_identifier(QString objectName);
Day modify_value(Day);
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 edit();
};

View File

@@ -52,18 +52,45 @@ QPushButton::default{
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
border-bottom-color: #04b97f;
border-bottom-color: rgba(204, 22, 0, 255);
border-width: 1px;
color: #a9b7c6;
padding: 2px;
background-color: #1e1d23;
}
QPushButton#closeButton, QPushButton#minimizeButton{
color: white;
padding: 2px;
background-color: transparent;
border: none;
font-size: 11px;
}
QPushButton#closeButton::default, QFrame#titleBar QPushButton#minimizeButton::default{
color: white;
padding: 2px;
background-color: transparent;
border: none;
font-size: 11px;
}
QPushButton#closeButton:hover{
color: white;
padding-bottom: 2px;
background-color: #eb4034;
}
QPushButton#closeButton:pressed{
color: white;
padding-bottom: 1px;
background-color: #b83228;
}
QToolButton {
border-style: solid;
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
border-bottom-color: #04b97f;
border-bottom-color: rgba(204, 22, 0, 255);
border-bottom-width: 1px;
border-style: solid;
color: #a9b7c6;
@@ -75,7 +102,7 @@ QToolButton:hover{
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
border-bottom-color: #37efba;
border-bottom-color: rgba(204, 22, 0, 255);
border-bottom-width: 2px;
border-style: solid;
color: #FFFFFF;
@@ -87,7 +114,7 @@ QPushButton:hover{
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
border-bottom-color: #37efba;
border-bottom-color: rgba(204, 22, 0, 255);
border-bottom-width: 1px;
border-style: solid;
color: #FFFFFF;
@@ -99,10 +126,10 @@ QPushButton:pressed{
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
border-bottom-color: #37efba;
border-bottom-color: rgba(204, 22, 0, 255);
border-bottom-width: 2px;
border-style: solid;
color: #37efba;
color: rgba(204, 22, 0, 255);
padding-bottom: 1px;
background-color: #1e1d23;
}
@@ -144,7 +171,7 @@ QProgressBar {
background-color:#1e1d23;
}
QProgressBar::chunk {
background-color: #04b97f;
background-color: rgba(204, 22, 0, 255);
border-radius: 5px;
}
QMenuBar {
@@ -165,7 +192,7 @@ QMenu::item:selected {
border-style: solid;
border-top-color: transparent;
border-right-color: transparent;
border-left-color: #04b97f;
border-left-color: rgba(204, 22, 0, 255);
border-bottom-color: transparent;
border-left-width: 2px;
color: #FFFFFF;
@@ -222,7 +249,7 @@ QTabBar::tab:selected, QTabBar::tab:last:selected, QTabBar::tab:hover {
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
border-bottom-color: #04b97f;
border-bottom-color: rgba(204, 22, 0, 255);
border-bottom-width: 2px;
border-style: solid;
color: #FFFFFF;
@@ -258,9 +285,9 @@ QCheckBox::indicator:checked {
width: 10px;
border-style:solid;
border-width: 1px;
border-color: #04b97f;
border-color: rgba(204, 22, 0, 255);
color: #a9b7c6;
background-color: #04b97f;
background-color: rgba(204, 22, 0, 255);
}
QCheckBox::indicator:unchecked {
@@ -268,7 +295,7 @@ QCheckBox::indicator:unchecked {
width: 10px;
border-style:solid;
border-width: 1px;
border-color: #04b97f;
border-color: rgba(204, 22, 0, 255);
color: #a9b7c6;
background-color: transparent;
}
@@ -283,9 +310,9 @@ QRadioButton::indicator:checked {
border-style:solid;
border-radius:5px;
border-width: 1px;
border-color: #04b97f;
border-color: rgba(204, 22, 0, 255);
color: #a9b7c6;
background-color: #04b97f;
background-color: rgba(204, 22, 0, 255);
}
QRadioButton::indicator:!checked {
height: 10px;
@@ -293,7 +320,7 @@ QRadioButton::indicator:!checked {
border-style:solid;
border-radius:5px;
border-width: 1px;
border-color: #04b97f;
border-color: rgba(204, 22, 0, 255);
color: #a9b7c6;
background-color: transparent;
}
@@ -361,11 +388,11 @@ QScrollArea {
}
QSlider::groove:horizontal {
height: 5px;
background: #04b97f;
background: rgba(204, 22, 0, 255);
}
QSlider::groove:vertical {
width: 5px;
background: #04b97f;
background: rgba(204, 22, 0, 255);
}
QSlider::handle:horizontal {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
@@ -388,8 +415,8 @@ QSlider::add-page:vertical {
background: white;
}
QSlider::sub-page:horizontal {
background: #04b97f;
background: rgba(204, 22, 0, 255);
}
QSlider::sub-page:vertical {
background: #04b97f;
background: rgba(204, 22, 0, 255);
}

View File

@@ -62,15 +62,106 @@
<enum>QFrame::Raised</enum>
</property>
</widget>
<widget class="QLabel" name="label">
<widget class="QPushButton" name="closeButton">
<property name="geometry">
<rect>
<x>30</x>
<y>150</y>
<width>551</width>
<x>665</x>
<y>0</y>
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe MDL2 Assets</family>
</font>
</property>
<property name="text">
<string></string>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
<widget class="Line" name="window_border_left">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>2</width>
<height>381</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(204, 22, 0, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_right">
<property name="geometry">
<rect>
<x>705</x>
<y>0</y>
<width>2</width>
<height>381</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(217, 0, 112, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_bottom">
<property name="geometry">
<rect>
<x>0</x>
<y>379</y>
<width>707</width>
<height>2</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QTabWidget" name="tabWidget">
<property name="geometry">
<rect>
<x>20</x>
<y>120</y>
<width>671</width>
<height>241</height>
</rect>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Information</string>
</attribute>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>714</width>
<height>211</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
@@ -78,45 +169,71 @@
<string>Author: Alexis Delhaie</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>30</x>
<y>190</y>
<width>551</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>Version: 1.0.0 (Beta 4)</string>
<string>Version: 1.0.0 (Beta 5)</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>30</x>
<y>230</y>
<width>541</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Made with Qt 5.15.0 MSVC2019 64bit (C++17) (&lt;a href=&quot;https://github.com/alexlegarnd/Chronos&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Source Github&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Software: Qt 5.15.0 MSVC2019 64bit (C++17) (&lt;a href=&quot;https://github.com/alexlegarnd/Chronos&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://github.com/alexlegarnd/Chronos&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Save Updater: Rust (&lt;a href=&quot;https://github.com/alexlegarnd/chronos-save-updater&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://github.com/alexlegarnd/chronos-save-updater&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Installer: Delphi 10.3.3 Community (&lt;a href=&quot;https://github.com/alexlegarnd/chronos-installer&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://github.com/alexlegarnd/chronos-installer&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Installer Bootstrap: Python 3.8.5 [MSC v.1924 (AMD64)] (&lt;a href=&quot;https://github.com/alexlegarnd/chronos-installer-bootstrap&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://github.com/alexlegarnd/chronos-installer-bootstrap&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Third party</string>
</attribute>
<widget class="QTextEdit" name="textEdit">
<property name="geometry">
<rect>
<x>390</x>
<y>160</y>
<width>301</width>
<height>181</height>
<x>8</x>
<y>10</y>
<width>651</width>
<height>191</height>
</rect>
</property>
<property name="accessibleDescription">
@@ -147,55 +264,32 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Calendar image: Icons made by &lt;/span&gt;&lt;a href=&quot;https://www.flaticon.com/authors/freepik&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;Freepik&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; from &lt;/span&gt;&lt;a href=&quot;https://www.flaticon.com/&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;www.flaticon.com&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>393</x>
<y>130</y>
<width>211</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>Third party:</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>30</x>
<y>270</y>
<width>541</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Installer made with Delphi 10.3 Community (&lt;a href=&quot;https://github.com/alexlegarnd/chronos-installer&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Source Github&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>30</x>
<y>310</y>
<width>541</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-size: 12px;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Installer Bootstrap made with Python 3 (&lt;a href=&quot;https://github.com/alexlegarnd/chronos-installer-bootstrap&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Source Github&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<zorder>tabWidget</zorder>
<zorder>window_border_left</zorder>
<zorder>window_border_right</zorder>
<zorder>window_border_bottom</zorder>
<zorder>frame</zorder>
<zorder>closeButton</zorder>
</widget>
<resources/>
<connections/>
<connections>
<connection>
<sender>closeButton</sender>
<signal>clicked()</signal>
<receiver>AboutBox</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>685</x>
<y>10</y>
</hint>
<hint type="destinationlabel">
<x>353</x>
<y>190</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@@ -6,20 +6,20 @@
<rect>
<x>0</x>
<y>0</y>
<width>1206</width>
<height>662</height>
<width>946</width>
<height>573</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>1206</width>
<height>662</height>
<width>946</width>
<height>573</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>1206</width>
<height>662</height>
<width>946</width>
<height>573</height>
</size>
</property>
<property name="font">
@@ -41,8 +41,8 @@
<widget class="Line" name="line">
<property name="geometry">
<rect>
<x>192</x>
<y>41</y>
<x>165</x>
<y>29</y>
<width>20</width>
<height>81</height>
</rect>
@@ -54,8 +54,8 @@
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>236</x>
<y>51</y>
<x>209</x>
<y>39</y>
<width>151</width>
<height>61</height>
</rect>
@@ -116,8 +116,8 @@ color: white;</string>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>40</x>
<y>51</y>
<x>13</x>
<y>39</y>
<width>161</width>
<height>61</height>
</rect>
@@ -175,90 +175,11 @@ color: white;</string>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>1022</x>
<y>45</y>
<width>153</width>
<height>61</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label">
<property name="font">
<font/>
</property>
<property name="text">
<string>Date :</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDateEdit" name="dateEdit">
<property name="minimumSize">
<size>
<width>100</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>32</height>
</size>
</property>
<property name="font">
<font/>
</property>
<property name="styleSheet">
<string notr="true">border: 1px solid white</string>
</property>
<property name="wrapping">
<bool>false</bool>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="correctionMode">
<enum>QAbstractSpinBox::CorrectToNearestValue</enum>
</property>
<property name="calendarPopup">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_semaine">
<property name="font">
<font/>
</property>
<property name="text">
<string>Semaine : 0</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget_2">
<property name="geometry">
<rect>
<x>427</x>
<y>52</y>
<x>400</x>
<y>40</y>
<width>161</width>
<height>61</height>
</rect>
@@ -319,8 +240,8 @@ color: white;</string>
<widget class="Line" name="line_2">
<property name="geometry">
<rect>
<x>378</x>
<y>42</y>
<x>351</x>
<y>30</y>
<width>20</width>
<height>81</height>
</rect>
@@ -332,8 +253,8 @@ color: white;</string>
<widget class="QPushButton" name="template_settings_button">
<property name="geometry">
<rect>
<x>930</x>
<y>622</y>
<x>670</x>
<y>530</y>
<width>261</width>
<height>31</height>
</rect>
@@ -345,10 +266,10 @@ color: white;</string>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>140</x>
<y>182</y>
<width>921</width>
<height>391</height>
<x>44</x>
<y>140</y>
<width>861</width>
<height>351</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
@@ -394,6 +315,61 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_21">
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFrame" name="mondayValidate">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/validate.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_8">
<property name="orientation">
@@ -592,6 +568,61 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_22">
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFrame" name="tuesdayValidate">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/validate.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_19">
<property name="orientation">
@@ -790,6 +821,61 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_23">
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFrame" name="wednesdayValidate">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/validate.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_20">
<property name="orientation">
@@ -988,6 +1074,61 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_24">
<item>
<spacer name="horizontalSpacer_9">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFrame" name="thurdayValidate">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/validate.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_21">
<property name="orientation">
@@ -1186,6 +1327,61 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_20">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFrame" name="fridayValidate">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/validate.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_22">
<property name="orientation">
@@ -1341,21 +1537,21 @@ font-size: 22px;</string>
<property name="geometry">
<rect>
<x>20</x>
<y>610</y>
<width>44</width>
<height>44</height>
<y>530</y>
<width>24</width>
<height>24</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>44</width>
<height>44</height>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>44</width>
<height>44</height>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="autoFillBackground">
@@ -1371,38 +1567,108 @@ font-size: 22px;</string>
<bool>true</bool>
</property>
</widget>
<widget class="QFrame" name="titleBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>946</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QLabel" name="window_title">
<property name="geometry">
<rect>
<x>10</x>
<y>-1</y>
<width>1081</width>
<height>41</height>
<width>121</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);
font-size: 11px;
background: none;</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
<widget class="Line" name="window_border_left">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>2</width>
<height>573</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(204, 22, 0, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_right">
<property name="geometry">
<rect>
<x>944</x>
<y>0</y>
<width>2</width>
<height>573</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(217, 0, 112, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_bottom">
<property name="geometry">
<rect>
<x>0</x>
<y>571</y>
<width>946</width>
<height>2</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QPushButton" name="closeButton">
<property name="geometry">
<rect>
<x>1156</x>
<x>904</x>
<y>0</y>
<width>51</width>
<height>31</height>
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe MDL2 Assets</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">border: none;
font-size: 14px;</string>
</property>
<property name="text">
<string></string>
</property>
@@ -1413,21 +1679,19 @@ font-size: 14px;</string>
<widget class="QPushButton" name="minimizeButton">
<property name="geometry">
<rect>
<x>1101</x>
<x>862</x>
<y>0</y>
<width>51</width>
<height>31</height>
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe MDL2 Assets</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">border: none;
font-size: 14px;</string>
<string notr="true"/>
</property>
<property name="text">
<string></string>
@@ -1436,6 +1700,90 @@ font-size: 14px;</string>
<bool>true</bool>
</property>
</widget>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>790</x>
<y>40</y>
<width>111</width>
<height>54</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QDateEdit" name="dateEdit">
<property name="minimumSize">
<size>
<width>100</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>32</height>
</size>
</property>
<property name="font">
<font/>
</property>
<property name="styleSheet">
<string notr="true">border: none;</string>
</property>
<property name="wrapping">
<bool>false</bool>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="correctionMode">
<enum>QAbstractSpinBox::CorrectToNearestValue</enum>
</property>
<property name="calendarPopup">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_semaine">
<property name="font">
<font/>
</property>
<property name="text">
<string>Semaine : 0</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
<zorder>titleBar</zorder>
<zorder>line</zorder>
<zorder>layoutWidget</zorder>
<zorder>layoutWidget</zorder>
<zorder>layoutWidget_2</zorder>
<zorder>line_2</zorder>
<zorder>template_settings_button</zorder>
<zorder>layoutWidget</zorder>
<zorder>aboutButton</zorder>
<zorder>window_border_left</zorder>
<zorder>window_border_right</zorder>
<zorder>window_border_bottom</zorder>
<zorder>closeButton</zorder>
<zorder>minimizeButton</zorder>
<zorder>dateEdit</zorder>
<zorder>label_semaine</zorder>
</widget>
</widget>
<resources/>

View File

@@ -10,19 +10,19 @@
<x>0</x>
<y>0</y>
<width>419</width>
<height>177</height>
<height>192</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>419</width>
<height>177</height>
<height>192</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>419</width>
<height>177</height>
<height>192</height>
</size>
</property>
<property name="windowTitle">
@@ -34,21 +34,24 @@
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>320</x>
<y>140</y>
<width>75</width>
<x>210</x>
<y>130</y>
<width>181</width>
<height>23</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-size: 12px</string>
</property>
<property name="text">
<string>Valider</string>
<string>Enregistrer la modification</string>
</property>
</widget>
<widget class="QTimeEdit" name="start_edit">
<property name="geometry">
<rect>
<x>40</x>
<y>49</y>
<x>36</x>
<y>69</y>
<width>91</width>
<height>31</height>
</rect>
@@ -70,8 +73,8 @@
<widget class="QTimeEdit" name="end_edit">
<property name="geometry">
<rect>
<x>300</x>
<y>49</y>
<x>296</x>
<y>69</y>
<width>91</width>
<height>31</height>
</rect>
@@ -93,8 +96,8 @@
<widget class="QDoubleSpinBox" name="break_edit">
<property name="geometry">
<rect>
<x>170</x>
<y>49</y>
<x>166</x>
<y>69</y>
<width>91</width>
<height>31</height>
</rect>
@@ -112,8 +115,8 @@
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>40</x>
<y>9</y>
<x>36</x>
<y>29</y>
<width>91</width>
<height>31</height>
</rect>
@@ -128,8 +131,8 @@
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>170</x>
<y>9</y>
<x>166</x>
<y>29</y>
<width>91</width>
<height>31</height>
</rect>
@@ -144,8 +147,8 @@
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>300</x>
<y>9</y>
<x>296</x>
<y>29</y>
<width>91</width>
<height>31</height>
</rect>
@@ -160,9 +163,9 @@
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>40</x>
<y>103</y>
<width>141</width>
<x>36</x>
<y>123</y>
<width>143</width>
<height>61</height>
</rect>
</property>
@@ -219,6 +222,131 @@ color: white;</string>
</item>
</layout>
</widget>
<widget class="QPushButton" name="validateButton">
<property name="geometry">
<rect>
<x>210</x>
<y>160</y>
<width>181</width>
<height>23</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font-size: 12px</string>
</property>
<property name="text">
<string>Définir l'horaire comme valide</string>
</property>
</widget>
<widget class="QFrame" name="titleBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>419</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QLabel" name="window_title">
<property name="geometry">
<rect>
<x>10</x>
<y>-1</y>
<width>281</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);
font-size: 11px;
background: none;</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
<widget class="QPushButton" name="closeButton">
<property name="geometry">
<rect>
<x>377</x>
<y>0</y>
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe MDL2 Assets</family>
</font>
</property>
<property name="text">
<string></string>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
<widget class="Line" name="window_border_left">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>2</width>
<height>192</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(204, 22, 0, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_bottom">
<property name="geometry">
<rect>
<x>0</x>
<y>190</y>
<width>419</width>
<height>2</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="Line" name="window_border_right">
<property name="geometry">
<rect>
<x>417</x>
<y>0</y>
<width>2</width>
<height>192</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(217, 0, 112, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</widget>
<resources/>
<connections>
@@ -238,5 +366,21 @@ color: white;</string>
</hint>
</hints>
</connection>
<connection>
<sender>closeButton</sender>
<signal>clicked()</signal>
<receiver>SetDayDialog</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>397</x>
<y>10</y>
</hint>
<hint type="destinationlabel">
<x>209</x>
<y>95</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@@ -42,8 +42,8 @@
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>30</x>
<y>20</y>
<x>25</x>
<y>37</y>
<width>261</width>
<height>201</height>
</rect>
@@ -304,8 +304,8 @@
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>300</x>
<y>60</y>
<x>295</x>
<y>77</y>
<width>201</width>
<height>103</height>
</rect>
@@ -347,6 +347,115 @@ color: white;</string>
</item>
</layout>
</widget>
<widget class="QFrame" name="titleBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>516</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QLabel" name="window_title">
<property name="geometry">
<rect>
<x>10</x>
<y>-1</y>
<width>371</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);
font-size: 11px;
background: none;</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
<widget class="Line" name="window_border_right">
<property name="geometry">
<rect>
<x>514</x>
<y>0</y>
<width>2</width>
<height>276</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(217, 0, 112, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_left">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>2</width>
<height>276</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: rgba(204, 22, 0, 255);</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="window_border_bottom">
<property name="geometry">
<rect>
<x>0</x>
<y>274</y>
<width>516</width>
<height>2</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: none;
background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 rgba(204, 22, 0, 255), stop:1 rgba(217, 0, 112, 255));</string>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QPushButton" name="closeButton">
<property name="geometry">
<rect>
<x>473</x>
<y>0</y>
<width>41</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe MDL2 Assets</family>
</font>
</property>
<property name="text">
<string></string>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</widget>
<resources/>
<connections>
@@ -366,5 +475,21 @@ color: white;</string>
</hint>
</hints>
</connection>
<connection>
<sender>closeButton</sender>
<signal>clicked()</signal>
<receiver>Welcome</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>493</x>
<y>10</y>
</hint>
<hint type="destinationlabel">
<x>257</x>
<y>137</y>
</hint>
</hints>
</connection>
</connections>
</ui>