Compare commits
3 Commits
v1.0.0-bet
...
v1.0.0-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08dcecbee9 | ||
|
|
4308d9e93a | ||
|
|
257bc67f61 |
@@ -1,5 +1,4 @@
|
|||||||
QT += core gui
|
QT += core gui
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
@@ -7,10 +6,10 @@ CONFIG += c++17
|
|||||||
# remove possible other optimization flags
|
# remove possible other optimization flags
|
||||||
QMAKE_CXXFLAGS_RELEASE -= -O
|
QMAKE_CXXFLAGS_RELEASE -= -O
|
||||||
QMAKE_CXXFLAGS_RELEASE -= -O1
|
QMAKE_CXXFLAGS_RELEASE -= -O1
|
||||||
QMAKE_CXXFLAGS_RELEASE -= -O2
|
QMAKE_CXXFLAGS_RELEASE *= -O2
|
||||||
|
|
||||||
# add the desired -O3 if not present
|
# add the desired -O3 if not present, MinGW only
|
||||||
QMAKE_CXXFLAGS_RELEASE *= -O3
|
# QMAKE_CXXFLAGS_RELEASE *= -O3
|
||||||
|
|
||||||
RC_ICONS = icon.ico
|
RC_ICONS = icon.ico
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 4.12.4, 2020-08-10T22:47:23. -->
|
<!-- Written by QtCreator 4.12.4, 2020-09-26T16:18:50. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
@@ -74,17 +74,17 @@
|
|||||||
<data>
|
<data>
|
||||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||||
<valuemap type="QVariantMap">
|
<valuemap type="QVariantMap">
|
||||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.0 MinGW 64-bit</value>
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.0 MSVC2019 64bit</value>
|
||||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.0 MinGW 64-bit</value>
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.0 MSVC2019 64bit</value>
|
||||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5150.win64_mingw81_kit</value>
|
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5150.win64_msvc2019_64_kit</value>
|
||||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
|
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
|
||||||
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||||
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||||
<value type="bool">true</value>
|
<value type="bool">true</value>
|
||||||
<value type="int" key="EnableQmlDebugging">0</value>
|
<value type="int" key="EnableQmlDebugging">0</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\robof\OneDrive\Documents\build-Chronos-Desktop_Qt_5_15_0_MinGW_64_bit-Debug</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\robof\OneDrive\Documents\build-Chronos-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MinGW_64_bit-Debug</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug</value>
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
@@ -134,8 +134,8 @@
|
|||||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||||
<value type="bool">true</value>
|
<value type="bool">true</value>
|
||||||
<value type="int" key="EnableQmlDebugging">2</value>
|
<value type="int" key="EnableQmlDebugging">2</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\robof\OneDrive\Documents\build-Chronos-Desktop_Qt_5_15_0_MinGW_64_bit-Release</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\robof\OneDrive\Documents\build-Chronos-Desktop_Qt_5_15_0_MSVC2019_64bit-Release</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MinGW_64_bit-Release</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MSVC2019_64bit-Release</value>
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
@@ -185,8 +185,8 @@
|
|||||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||||
<value type="bool">true</value>
|
<value type="bool">true</value>
|
||||||
<value type="int" key="EnableQmlDebugging">0</value>
|
<value type="int" key="EnableQmlDebugging">0</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\robof\OneDrive\Documents\build-Chronos-Desktop_Qt_5_15_0_MinGW_64_bit-Profile</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\robof\OneDrive\Documents\build-Chronos-Desktop_Qt_5_15_0_MSVC2019_64bit-Profile</value>
|
||||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MinGW_64_bit-Profile</value>
|
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MSVC2019_64bit-Profile</value>
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||||
<value type="QString" key="RunConfiguration.WorkingDirectory"></value>
|
<value type="QString" key="RunConfiguration.WorkingDirectory"></value>
|
||||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MinGW_64_bit-Release</value>
|
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/robof/OneDrive/Documents/build-Chronos-Desktop_Qt_5_15_0_MSVC2019_64bit-Release</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
|
|||||||
BIN
icon.ico
BIN
icon.ico
Binary file not shown.
|
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 125 KiB |
@@ -5,5 +5,6 @@
|
|||||||
<file>pictures/calendar.png</file>
|
<file>pictures/calendar.png</file>
|
||||||
<file>pictures/about.png</file>
|
<file>pictures/about.png</file>
|
||||||
<file>pictures/banner.png</file>
|
<file>pictures/banner.png</file>
|
||||||
|
<file>pictures/validate.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 50 KiB |
BIN
pictures/validate.png
Normal file
BIN
pictures/validate.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -6,9 +6,34 @@ AboutBox::AboutBox(QWidget *parent) :
|
|||||||
ui(new Ui::AboutBox)
|
ui(new Ui::AboutBox)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
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()
|
AboutBox::~AboutBox()
|
||||||
{
|
{
|
||||||
delete ui;
|
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);
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#define ABOUTBOX_H
|
#define ABOUTBOX_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
#include <QMouseEvent>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
@@ -18,6 +19,16 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::AboutBox *ui;
|
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
|
#endif // ABOUTBOX_H
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ void Day::set_time_break(double value)
|
|||||||
time_break = value;
|
time_break = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Day::set_validate(bool value) {
|
||||||
|
validate = value;
|
||||||
|
}
|
||||||
|
|
||||||
QTime Day::get_start()
|
QTime Day::get_start()
|
||||||
{
|
{
|
||||||
return start;
|
return start;
|
||||||
@@ -48,7 +52,8 @@ QJsonObject Day::to_json()
|
|||||||
QJsonObject obj{
|
QJsonObject obj{
|
||||||
{KEY_START, start.toString(Qt::DateFormat::ISODate)},
|
{KEY_START, start.toString(Qt::DateFormat::ISODate)},
|
||||||
{KEY_END, end.toString(Qt::DateFormat::ISODate)},
|
{KEY_END, end.toString(Qt::DateFormat::ISODate)},
|
||||||
{KEY_BREAK, time_break}
|
{KEY_BREAK, time_break},
|
||||||
|
{KEY_VALIDATE, validate}
|
||||||
};
|
};
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
@@ -61,6 +66,11 @@ Day Day::from_json(QJsonObject obj)
|
|||||||
result.start = QTime::fromString(obj[KEY_START].toString(), Qt::DateFormat::ISODate);
|
result.start = QTime::fromString(obj[KEY_START].toString(), Qt::DateFormat::ISODate);
|
||||||
result.end = QTime::fromString(obj[KEY_END].toString(), Qt::DateFormat::ISODate);
|
result.end = QTime::fromString(obj[KEY_END].toString(), Qt::DateFormat::ISODate);
|
||||||
result.time_break = obj[KEY_BREAK].toDouble();
|
result.time_break = obj[KEY_BREAK].toDouble();
|
||||||
|
result.validate = obj[KEY_VALIDATE].toBool();
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Day::get_validate() {
|
||||||
|
return validate;
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#define KEY_START "start"
|
#define KEY_START "start"
|
||||||
#define KEY_END "end"
|
#define KEY_END "end"
|
||||||
#define KEY_BREAK "break"
|
#define KEY_BREAK "break"
|
||||||
|
#define KEY_VALIDATE "validate"
|
||||||
|
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
@@ -16,6 +17,7 @@ private:
|
|||||||
QTime start;
|
QTime start;
|
||||||
QTime end;
|
QTime end;
|
||||||
double time_break;
|
double time_break;
|
||||||
|
bool validate;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Day();
|
Day();
|
||||||
@@ -23,10 +25,12 @@ public:
|
|||||||
void set_start(QTime value);
|
void set_start(QTime value);
|
||||||
void set_end(QTime value);
|
void set_end(QTime value);
|
||||||
void set_time_break(double value);
|
void set_time_break(double value);
|
||||||
|
void set_validate(bool);
|
||||||
|
|
||||||
QTime get_start();
|
QTime get_start();
|
||||||
QTime get_end();
|
QTime get_end();
|
||||||
double get_time_break();
|
double get_time_break();
|
||||||
|
bool get_validate();
|
||||||
QJsonObject to_json();
|
QJsonObject to_json();
|
||||||
|
|
||||||
double get_total();
|
double get_total();
|
||||||
|
|||||||
@@ -6,9 +6,31 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
, ui(new Ui::MainWindow)
|
, ui(new Ui::MainWindow)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->window_title->setText(this->windowTitle());
|
||||||
|
this->setWindowFlags(Qt::FramelessWindowHint);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::mousePressEvent(QMouseEvent *event) {
|
||||||
|
m_nMouseClick_X_Coordinate = event->x();
|
||||||
|
m_nMouseClick_Y_Coordinate = event->y();
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::mouseMoveEvent(QMouseEvent *event) {
|
||||||
|
if (isWidgetIsTitleBar()) {
|
||||||
|
move(event->globalX() - m_nMouseClick_X_Coordinate ,
|
||||||
|
event->globalY() - m_nMouseClick_Y_Coordinate);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MainWindow::isWidgetIsTitleBar() {
|
||||||
|
return (m_nMouseClick_X_Coordinate >= xmin &&
|
||||||
|
m_nMouseClick_X_Coordinate < xmax &&
|
||||||
|
m_nMouseClick_Y_Coordinate >= ymin &&
|
||||||
|
m_nMouseClick_Y_Coordinate < ymax);
|
||||||
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
@@ -33,6 +55,10 @@ void MainWindow::init() {
|
|||||||
objectId.insert(ui->wed_button->objectName(), Identifier::wed);
|
objectId.insert(ui->wed_button->objectName(), Identifier::wed);
|
||||||
objectId.insert(ui->thu_button->objectName(), Identifier::thu);
|
objectId.insert(ui->thu_button->objectName(), Identifier::thu);
|
||||||
objectId.insert(ui->fri_button->objectName(), Identifier::fri);
|
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->aboutButton, &QPushButton::clicked, this, &MainWindow::open_about);
|
connect(ui->aboutButton, &QPushButton::clicked, this, &MainWindow::open_about);
|
||||||
connect(ui->template_settings_button, &QPushButton::clicked, this, &MainWindow::edit_template);
|
connect(ui->template_settings_button, &QPushButton::clicked, this, &MainWindow::edit_template);
|
||||||
connect(ui->dateEdit, &QDateEdit::dateTimeChanged, this, &MainWindow::compute_week_number);
|
connect(ui->dateEdit, &QDateEdit::dateTimeChanged, this, &MainWindow::compute_week_number);
|
||||||
@@ -41,8 +67,9 @@ void MainWindow::init() {
|
|||||||
connect(ui->wed_button, &QPushButton::clicked, this, &MainWindow::edit);
|
connect(ui->wed_button, &QPushButton::clicked, this, &MainWindow::edit);
|
||||||
connect(ui->thu_button, &QPushButton::clicked, this, &MainWindow::edit);
|
connect(ui->thu_button, &QPushButton::clicked, this, &MainWindow::edit);
|
||||||
connect(ui->fri_button, &QPushButton::clicked, this, &MainWindow::edit);
|
connect(ui->fri_button, &QPushButton::clicked, this, &MainWindow::edit);
|
||||||
|
todayWeekNumber = QDate::currentDate().weekNumber();
|
||||||
highlightDayOfWeek();
|
dayOfWeek = QDate::currentDate().dayOfWeek();
|
||||||
|
saveLoaded = false;
|
||||||
|
|
||||||
if (QFile::exists(get_save_file_path())) {
|
if (QFile::exists(get_save_file_path())) {
|
||||||
open_save();
|
open_save();
|
||||||
@@ -51,12 +78,19 @@ void MainWindow::init() {
|
|||||||
w.exec();
|
w.exec();
|
||||||
week_template = w.get_result();
|
week_template = w.get_result();
|
||||||
}
|
}
|
||||||
|
if (saveLoaded) {
|
||||||
set_date_to_now();
|
set_date_to_now();
|
||||||
compute_time();
|
compute_time();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::highlightDayOfWeek() {
|
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) {
|
switch (dayOfWeek) {
|
||||||
case 1: {
|
case 1: {
|
||||||
ui->monLabel->setText(QString("> %1 <").arg(ui->monLabel->text()));
|
ui->monLabel->setText(QString("> %1 <").arg(ui->monLabel->text()));
|
||||||
@@ -81,6 +115,7 @@ void MainWindow::highlightDayOfWeek() {
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::set_date_to_now() {
|
void MainWindow::set_date_to_now() {
|
||||||
auto date = QDate::currentDate();
|
auto date = QDate::currentDate();
|
||||||
@@ -101,16 +136,28 @@ void MainWindow::open_save() {
|
|||||||
for (QJsonValue val : arr) {
|
for (QJsonValue val : arr) {
|
||||||
weeks[val.toObject()["weekNumber"].toInt()] = Week::from_json(val.toObject());
|
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 {
|
} else {
|
||||||
QMessageBox msgBox;
|
panic_dialog("Cette application n'a pas pu démarrer car save-updater.exe est introuvable.\n"
|
||||||
msgBox.setText("Le fichier de sauvegarde n'est pas à jour, "
|
"La réinstallation de cette application peut corriger ce problème");
|
||||||
"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);
|
|
||||||
}
|
}
|
||||||
|
} 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() {
|
void MainWindow::save_to_file() {
|
||||||
@@ -152,6 +199,7 @@ void MainWindow::compute_week_number(const QDateTime &dt) {
|
|||||||
save_to_file();
|
save_to_file();
|
||||||
}
|
}
|
||||||
compute_time();
|
compute_time();
|
||||||
|
highlightDayOfWeek();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::compute_time() {
|
void MainWindow::compute_time() {
|
||||||
@@ -164,6 +212,7 @@ void MainWindow::compute_time() {
|
|||||||
updateStartLabel();
|
updateStartLabel();
|
||||||
updateBreakLabel();
|
updateBreakLabel();
|
||||||
updateEndLabel();
|
updateEndLabel();
|
||||||
|
updateValidIcon();
|
||||||
|
|
||||||
double late = 0.0;
|
double late = 0.0;
|
||||||
double overtime = 0.0;
|
double overtime = 0.0;
|
||||||
@@ -179,6 +228,14 @@ void MainWindow::compute_time() {
|
|||||||
ui->overtime_time_label->setText(Tools::double_to_string_time((overtime > 0.0) ? overtime : 0.0));
|
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() {
|
void MainWindow::updateStartLabel() {
|
||||||
ui->monStartLabel->setText(current_week.getMon().get_start().toString("HH:mm"));
|
ui->monStartLabel->setText(current_week.getMon().get_start().toString("HH:mm"));
|
||||||
ui->tueStartLabel->setText(current_week.getTue().get_start().toString("HH:mm"));
|
ui->tueStartLabel->setText(current_week.getTue().get_start().toString("HH:mm"));
|
||||||
@@ -228,7 +285,8 @@ void MainWindow::edit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Day MainWindow::modify_value(Day d) {
|
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();
|
int result = sdd.exec();
|
||||||
if (result == QDialog::Accepted) {
|
if (result == QDialog::Accepted) {
|
||||||
return sdd.get_result();
|
return sdd.get_result();
|
||||||
|
|||||||
@@ -4,9 +4,11 @@
|
|||||||
#define KEY_TEMPLATE "template"
|
#define KEY_TEMPLATE "template"
|
||||||
#define KEY_WEEKS "weeks"
|
#define KEY_WEEKS "weeks"
|
||||||
#define SAVE_FILENAME "data.json"
|
#define SAVE_FILENAME "data.json"
|
||||||
#define SAVE_FILE_VERSION 1
|
#define SAVE_FILE_VERSION 2
|
||||||
#define KEY_SAVE_FILE_VERSION "version"
|
#define KEY_SAVE_FILE_VERSION "version"
|
||||||
|
|
||||||
|
#include <QMouseEvent>
|
||||||
|
#include <QGraphicsView>
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
@@ -17,6 +19,9 @@
|
|||||||
#include <QMapIterator>
|
#include <QMapIterator>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include <QProcess>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QtWinExtras/QtWin>
|
||||||
|
|
||||||
#include "week.h"
|
#include "week.h"
|
||||||
#include "welcome.h"
|
#include "welcome.h"
|
||||||
@@ -43,12 +48,14 @@ private:
|
|||||||
void init();
|
void init();
|
||||||
void open_save();
|
void open_save();
|
||||||
void save_to_file();
|
void save_to_file();
|
||||||
|
void panic_dialog(QString text);
|
||||||
|
|
||||||
// UI Update
|
// UI Update
|
||||||
void updateStartLabel();
|
void updateStartLabel();
|
||||||
void updateBreakLabel();
|
void updateBreakLabel();
|
||||||
void updateEndLabel();
|
void updateEndLabel();
|
||||||
void highlightDayOfWeek();
|
void highlightDayOfWeek();
|
||||||
|
void updateValidIcon();
|
||||||
|
|
||||||
QString get_save_file_path();
|
QString get_save_file_path();
|
||||||
Identifier get_identifier(QString objectName);
|
Identifier get_identifier(QString objectName);
|
||||||
@@ -58,6 +65,19 @@ private:
|
|||||||
Week current_week;
|
Week current_week;
|
||||||
QMap<int, Week> weeks;
|
QMap<int, Week> weeks;
|
||||||
QMap<QString, Identifier> objectId;
|
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:
|
public slots:
|
||||||
void compute_week_number(const QDateTime &dt);
|
void compute_week_number(const QDateTime &dt);
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
#include "setdaydialog.h"
|
#include "setdaydialog.h"
|
||||||
#include "ui_setdaydialog.h"
|
#include "ui_setdaydialog.h"
|
||||||
|
|
||||||
SetDayDialog::SetDayDialog(Day d, QWidget *parent) :
|
SetDayDialog::SetDayDialog(Day d, bool isNotValidable, QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
ui(new Ui::SetDayDialog)
|
ui(new Ui::SetDayDialog)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->window_title->setText(this->windowTitle());
|
||||||
|
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
||||||
|
ui->validateButton->setEnabled(!isNotValidable);
|
||||||
this->d = d;
|
this->d = d;
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
@@ -15,12 +18,37 @@ SetDayDialog::~SetDayDialog()
|
|||||||
delete ui;
|
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() {
|
void SetDayDialog::init() {
|
||||||
ui->start_edit->setTime(d.get_start());
|
ui->start_edit->setTime(d.get_start());
|
||||||
ui->end_edit->setTime(d.get_end());
|
ui->end_edit->setTime(d.get_end());
|
||||||
ui->break_edit->setValue(d.get_time_break());
|
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->start_edit, &QTimeEdit::timeChanged, this, &SetDayDialog::compute_time);
|
||||||
connect(ui->end_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);
|
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()));
|
ui->total_label->setText(Tools::double_to_string_time(d.get_total()));
|
||||||
}
|
}
|
||||||
@@ -35,3 +63,8 @@ void SetDayDialog::compute_time() {
|
|||||||
Day SetDayDialog::get_result() {
|
Day SetDayDialog::get_result() {
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetDayDialog::validate() {
|
||||||
|
d.set_validate(true);
|
||||||
|
accept();
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#define SETDAYDIALOG_H
|
#define SETDAYDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
#include <QMouseEvent>
|
||||||
|
|
||||||
#include "day.h"
|
#include "day.h"
|
||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
@@ -15,13 +16,14 @@ class SetDayDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SetDayDialog(Day d, QWidget *parent = nullptr);
|
explicit SetDayDialog(Day d, bool isNotValidable, QWidget *parent = nullptr);
|
||||||
~SetDayDialog();
|
~SetDayDialog();
|
||||||
|
|
||||||
Day get_result();
|
Day get_result();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void compute_time();
|
void compute_time();
|
||||||
|
void validate();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::SetDayDialog *ui;
|
Ui::SetDayDialog *ui;
|
||||||
@@ -29,6 +31,16 @@ private:
|
|||||||
Day d;
|
Day d;
|
||||||
|
|
||||||
void init();
|
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
|
#endif // SETDAYDIALOG_H
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ Welcome::Welcome(Week wtemplate, QWidget *parent) :
|
|||||||
ui(new Ui::Welcome)
|
ui(new Ui::Welcome)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->window_title->setText(this->windowTitle());
|
||||||
|
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
||||||
w = wtemplate;
|
w = wtemplate;
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
@@ -15,6 +17,26 @@ Welcome::~Welcome()
|
|||||||
delete ui;
|
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() {
|
void Welcome::init() {
|
||||||
set_value_to_widget();
|
set_value_to_widget();
|
||||||
objectId.insert(ui->mon_button->objectName(), Identifier::mon);
|
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->wed_button->objectName(), Identifier::wed);
|
||||||
objectId.insert(ui->thu_button->objectName(), Identifier::thu);
|
objectId.insert(ui->thu_button->objectName(), Identifier::thu);
|
||||||
objectId.insert(ui->fri_button->objectName(), Identifier::fri);
|
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->mon_button, &QPushButton::clicked, this, &Welcome::edit);
|
||||||
connect(ui->tue_button, &QPushButton::clicked, this, &Welcome::edit);
|
connect(ui->tue_button, &QPushButton::clicked, this, &Welcome::edit);
|
||||||
connect(ui->wed_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) {
|
Day Welcome::modify_value(Day d) {
|
||||||
SetDayDialog sdd(d, this);
|
SetDayDialog sdd(d, true, this);
|
||||||
int result = sdd.exec();
|
int result = sdd.exec();
|
||||||
if (result == QDialog::Accepted) {
|
if (result == QDialog::Accepted) {
|
||||||
return sdd.get_result();
|
return sdd.get_result();
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QDoubleSpinBox>
|
#include <QDoubleSpinBox>
|
||||||
|
#include <QMouseEvent>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "week.h"
|
#include "week.h"
|
||||||
@@ -43,6 +44,16 @@ private:
|
|||||||
Identifier get_identifier(QString objectName);
|
Identifier get_identifier(QString objectName);
|
||||||
Day modify_value(Day);
|
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:
|
public slots:
|
||||||
void edit();
|
void edit();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -52,18 +52,45 @@ QPushButton::default{
|
|||||||
border-top-color: transparent;
|
border-top-color: transparent;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-left-color: transparent;
|
border-left-color: transparent;
|
||||||
border-bottom-color: #04b97f;
|
border-bottom-color: rgba(204, 22, 0, 255);
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
color: #a9b7c6;
|
color: #a9b7c6;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
background-color: #1e1d23;
|
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 {
|
QToolButton {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-top-color: transparent;
|
border-top-color: transparent;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-left-color: transparent;
|
border-left-color: transparent;
|
||||||
border-bottom-color: #04b97f;
|
border-bottom-color: rgba(204, 22, 0, 255);
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
color: #a9b7c6;
|
color: #a9b7c6;
|
||||||
@@ -75,7 +102,7 @@ QToolButton:hover{
|
|||||||
border-top-color: transparent;
|
border-top-color: transparent;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-left-color: transparent;
|
border-left-color: transparent;
|
||||||
border-bottom-color: #37efba;
|
border-bottom-color: rgba(204, 22, 0, 255);
|
||||||
border-bottom-width: 2px;
|
border-bottom-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@@ -87,7 +114,7 @@ QPushButton:hover{
|
|||||||
border-top-color: transparent;
|
border-top-color: transparent;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-left-color: transparent;
|
border-left-color: transparent;
|
||||||
border-bottom-color: #37efba;
|
border-bottom-color: rgba(204, 22, 0, 255);
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@@ -99,10 +126,10 @@ QPushButton:pressed{
|
|||||||
border-top-color: transparent;
|
border-top-color: transparent;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-left-color: transparent;
|
border-left-color: transparent;
|
||||||
border-bottom-color: #37efba;
|
border-bottom-color: rgba(204, 22, 0, 255);
|
||||||
border-bottom-width: 2px;
|
border-bottom-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
color: #37efba;
|
color: rgba(204, 22, 0, 255);
|
||||||
padding-bottom: 1px;
|
padding-bottom: 1px;
|
||||||
background-color: #1e1d23;
|
background-color: #1e1d23;
|
||||||
}
|
}
|
||||||
@@ -144,7 +171,7 @@ QProgressBar {
|
|||||||
background-color:#1e1d23;
|
background-color:#1e1d23;
|
||||||
}
|
}
|
||||||
QProgressBar::chunk {
|
QProgressBar::chunk {
|
||||||
background-color: #04b97f;
|
background-color: rgba(204, 22, 0, 255);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
QMenuBar {
|
QMenuBar {
|
||||||
@@ -165,7 +192,7 @@ QMenu::item:selected {
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-top-color: transparent;
|
border-top-color: transparent;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-left-color: #04b97f;
|
border-left-color: rgba(204, 22, 0, 255);
|
||||||
border-bottom-color: transparent;
|
border-bottom-color: transparent;
|
||||||
border-left-width: 2px;
|
border-left-width: 2px;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@@ -222,7 +249,7 @@ QTabBar::tab:selected, QTabBar::tab:last:selected, QTabBar::tab:hover {
|
|||||||
border-top-color: transparent;
|
border-top-color: transparent;
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
border-left-color: transparent;
|
border-left-color: transparent;
|
||||||
border-bottom-color: #04b97f;
|
border-bottom-color: rgba(204, 22, 0, 255);
|
||||||
border-bottom-width: 2px;
|
border-bottom-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@@ -258,9 +285,9 @@ QCheckBox::indicator:checked {
|
|||||||
width: 10px;
|
width: 10px;
|
||||||
border-style:solid;
|
border-style:solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-color: #04b97f;
|
border-color: rgba(204, 22, 0, 255);
|
||||||
color: #a9b7c6;
|
color: #a9b7c6;
|
||||||
background-color: #04b97f;
|
background-color: rgba(204, 22, 0, 255);
|
||||||
}
|
}
|
||||||
QCheckBox::indicator:unchecked {
|
QCheckBox::indicator:unchecked {
|
||||||
|
|
||||||
@@ -268,7 +295,7 @@ QCheckBox::indicator:unchecked {
|
|||||||
width: 10px;
|
width: 10px;
|
||||||
border-style:solid;
|
border-style:solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-color: #04b97f;
|
border-color: rgba(204, 22, 0, 255);
|
||||||
color: #a9b7c6;
|
color: #a9b7c6;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
@@ -283,9 +310,9 @@ QRadioButton::indicator:checked {
|
|||||||
border-style:solid;
|
border-style:solid;
|
||||||
border-radius:5px;
|
border-radius:5px;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-color: #04b97f;
|
border-color: rgba(204, 22, 0, 255);
|
||||||
color: #a9b7c6;
|
color: #a9b7c6;
|
||||||
background-color: #04b97f;
|
background-color: rgba(204, 22, 0, 255);
|
||||||
}
|
}
|
||||||
QRadioButton::indicator:!checked {
|
QRadioButton::indicator:!checked {
|
||||||
height: 10px;
|
height: 10px;
|
||||||
@@ -293,7 +320,7 @@ QRadioButton::indicator:!checked {
|
|||||||
border-style:solid;
|
border-style:solid;
|
||||||
border-radius:5px;
|
border-radius:5px;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-color: #04b97f;
|
border-color: rgba(204, 22, 0, 255);
|
||||||
color: #a9b7c6;
|
color: #a9b7c6;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
@@ -361,11 +388,11 @@ QScrollArea {
|
|||||||
}
|
}
|
||||||
QSlider::groove:horizontal {
|
QSlider::groove:horizontal {
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: #04b97f;
|
background: rgba(204, 22, 0, 255);
|
||||||
}
|
}
|
||||||
QSlider::groove:vertical {
|
QSlider::groove:vertical {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
background: #04b97f;
|
background: rgba(204, 22, 0, 255);
|
||||||
}
|
}
|
||||||
QSlider::handle:horizontal {
|
QSlider::handle:horizontal {
|
||||||
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
|
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;
|
background: white;
|
||||||
}
|
}
|
||||||
QSlider::sub-page:horizontal {
|
QSlider::sub-page:horizontal {
|
||||||
background: #04b97f;
|
background: rgba(204, 22, 0, 255);
|
||||||
}
|
}
|
||||||
QSlider::sub-page:vertical {
|
QSlider::sub-page:vertical {
|
||||||
background: #04b97f;
|
background: rgba(204, 22, 0, 255);
|
||||||
}
|
}
|
||||||
245
ui/aboutbox.ui
245
ui/aboutbox.ui
@@ -62,15 +62,106 @@
|
|||||||
<enum>QFrame::Raised</enum>
|
<enum>QFrame::Raised</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QPushButton" name="closeButton">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>30</x>
|
<x>665</x>
|
||||||
<y>150</y>
|
<y>0</y>
|
||||||
<width>551</width>
|
<width>41</width>
|
||||||
<height>21</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</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">
|
<property name="styleSheet">
|
||||||
<string notr="true">font-size: 12px;</string>
|
<string notr="true">font-size: 12px;</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -78,50 +169,79 @@
|
|||||||
<string>Author: Alexis Delhaie</string>
|
<string>Author: Alexis Delhaie</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<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">
|
<property name="styleSheet">
|
||||||
<string notr="true">font-size: 12px;</string>
|
<string notr="true">font-size: 12px;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Version: 1.0.0 (Beta 3)</string>
|
<string>Version: 1.0.0 (Beta 5)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
<widget class="QLabel" name="label_3">
|
<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">
|
<property name="styleSheet">
|
||||||
<string notr="true">font-size: 12px;</string>
|
<string notr="true">font-size: 12px;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p>Made with Qt 5.15.0 MinGW 64bit (C++17) (<a href="https://github.com/alexlegarnd/Chronos"><span style=" text-decoration: underline; color:#0000ff;">Source Github</span></a>)</p></body></html></string>
|
<string><html><head/><body><p>Software: Qt 5.15.0 MSVC2019 64bit (C++17) (<a href="https://github.com/alexlegarnd/Chronos"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/alexlegarnd/Chronos</span></a>)</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_7">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-size: 12px;</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><html><head/><body><p>Save Updater: Rust (<a href="https://github.com/alexlegarnd/chronos-save-updater"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/alexlegarnd/chronos-save-updater</span></a>)</p></body></html></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><html><head/><body><p>Installer: Delphi 10.3.3 Community (<a href="https://github.com/alexlegarnd/chronos-installer"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/alexlegarnd/chronos-installer</span></a>)</p></body></html></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><html><head/><body><p>Installer Bootstrap: Python 3.8.5 [MSC v.1924 (AMD64)] (<a href="https://github.com/alexlegarnd/chronos-installer-bootstrap"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/alexlegarnd/chronos-installer-bootstrap</span></a>)</p></body></html></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">
|
<widget class="QTextEdit" name="textEdit">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>390</x>
|
<x>8</x>
|
||||||
<y>160</y>
|
<y>10</y>
|
||||||
<width>301</width>
|
<width>651</width>
|
||||||
<height>181</height>
|
<height>191</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="accessibleDescription">
|
<property name="accessibleDescription">
|
||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-size: 12px;</string>
|
||||||
|
</property>
|
||||||
<property name="undoRedoEnabled">
|
<property name="undoRedoEnabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -132,7 +252,7 @@
|
|||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.5pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:12px; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Application icon: Alexis Delhaie (me)</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Application icon: Alexis Delhaie (me)</span></p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">About box banner: Alexis Delhaie (me)</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">About box banner: Alexis Delhaie (me)</span></p>
|
||||||
@@ -144,55 +264,32 @@ p, li { white-space: pre-wrap; }
|
|||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Calendar image: Icons made by </span><a href="https://www.flaticon.com/authors/freepik"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">Freepik</span></a><span style=" font-size:10pt;"> from </span><a href="https://www.flaticon.com/"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">www.flaticon.com</span></a></p></body></html></string>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Calendar image: Icons made by </span><a href="https://www.flaticon.com/authors/freepik"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">Freepik</span></a><span style=" font-size:10pt;"> from </span><a href="https://www.flaticon.com/"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">www.flaticon.com</span></a></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</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>
|
||||||
<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><html><head/><body><p>Installer made with Delphi 10.3 Community (<a href="https://github.com/alexlegarnd/chronos-installer"><span style=" text-decoration: underline; color:#0000ff;">Source Github</span></a>)</p></body></html></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><html><head/><body><p>Installer Bootstrap made with Python 3 (<a href="https://github.com/alexlegarnd/chronos-installer-bootstrap"><span style=" text-decoration: underline; color:#0000ff;">Source Github</span></a>)</p></body></html></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</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>
|
</widget>
|
||||||
<resources/>
|
<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>
|
</ui>
|
||||||
|
|||||||
664
ui/mainwindow.ui
664
ui/mainwindow.ui
@@ -6,20 +6,20 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1206</width>
|
<width>946</width>
|
||||||
<height>649</height>
|
<height>573</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>1206</width>
|
<width>946</width>
|
||||||
<height>649</height>
|
<height>573</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>1206</width>
|
<width>946</width>
|
||||||
<height>649</height>
|
<height>573</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
@@ -41,8 +41,8 @@
|
|||||||
<widget class="Line" name="line">
|
<widget class="Line" name="line">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>192</x>
|
<x>165</x>
|
||||||
<y>19</y>
|
<y>29</y>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>81</height>
|
<height>81</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -54,8 +54,8 @@
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>236</x>
|
<x>209</x>
|
||||||
<y>29</y>
|
<y>39</y>
|
||||||
<width>151</width>
|
<width>151</width>
|
||||||
<height>61</height>
|
<height>61</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -116,8 +116,8 @@ color: white;</string>
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>40</x>
|
<x>13</x>
|
||||||
<y>29</y>
|
<y>39</y>
|
||||||
<width>161</width>
|
<width>161</width>
|
||||||
<height>61</height>
|
<height>61</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -175,90 +175,11 @@ color: white;</string>
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="layoutWidget">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>1022</x>
|
|
||||||
<y>23</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">
|
<widget class="QWidget" name="layoutWidget_2">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>427</x>
|
<x>400</x>
|
||||||
<y>30</y>
|
<y>40</y>
|
||||||
<width>161</width>
|
<width>161</width>
|
||||||
<height>61</height>
|
<height>61</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -319,8 +240,8 @@ color: white;</string>
|
|||||||
<widget class="Line" name="line_2">
|
<widget class="Line" name="line_2">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>378</x>
|
<x>351</x>
|
||||||
<y>20</y>
|
<y>30</y>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>81</height>
|
<height>81</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -332,8 +253,8 @@ color: white;</string>
|
|||||||
<widget class="QPushButton" name="template_settings_button">
|
<widget class="QPushButton" name="template_settings_button">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>930</x>
|
<x>670</x>
|
||||||
<y>600</y>
|
<y>530</y>
|
||||||
<width>261</width>
|
<width>261</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -345,10 +266,10 @@ color: white;</string>
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>140</x>
|
<x>44</x>
|
||||||
<y>160</y>
|
<y>140</y>
|
||||||
<width>921</width>
|
<width>861</width>
|
||||||
<height>391</height>
|
<height>351</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
@@ -394,6 +315,61 @@ color: white;</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="Line" name="line_8">
|
<widget class="Line" name="line_8">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -592,6 +568,61 @@ color: white;</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="Line" name="line_19">
|
<widget class="Line" name="line_19">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -790,6 +821,61 @@ color: white;</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="Line" name="line_20">
|
<widget class="Line" name="line_20">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -988,6 +1074,61 @@ color: white;</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="Line" name="line_21">
|
<widget class="Line" name="line_21">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -1186,6 +1327,61 @@ color: white;</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="Line" name="line_22">
|
<widget class="Line" name="line_22">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -1341,21 +1537,21 @@ font-size: 22px;</string>
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>588</y>
|
<y>530</y>
|
||||||
<width>44</width>
|
<width>24</width>
|
||||||
<height>44</height>
|
<height>24</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>44</width>
|
<width>24</width>
|
||||||
<height>44</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>44</width>
|
<width>24</width>
|
||||||
<height>44</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="autoFillBackground">
|
<property name="autoFillBackground">
|
||||||
@@ -1371,8 +1567,258 @@ font-size: 22px;</string>
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</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>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>904</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="QPushButton" name="minimizeButton">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>862</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="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string></string>
|
||||||
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<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>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>closeButton</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>MainWindow</receiver>
|
||||||
|
<slot>close()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>1186</x>
|
||||||
|
<y>10</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>602</x>
|
||||||
|
<y>330</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>minimizeButton</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>MainWindow</receiver>
|
||||||
|
<slot>showMinimized()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>1126</x>
|
||||||
|
<y>15</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>602</x>
|
||||||
|
<y>330</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
@@ -10,19 +10,19 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>419</width>
|
<width>419</width>
|
||||||
<height>177</height>
|
<height>192</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>419</width>
|
<width>419</width>
|
||||||
<height>177</height>
|
<height>192</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>419</width>
|
<width>419</width>
|
||||||
<height>177</height>
|
<height>192</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -34,21 +34,24 @@
|
|||||||
<widget class="QPushButton" name="pushButton">
|
<widget class="QPushButton" name="pushButton">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>320</x>
|
<x>210</x>
|
||||||
<y>140</y>
|
<y>130</y>
|
||||||
<width>75</width>
|
<width>181</width>
|
||||||
<height>23</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">font-size: 12px</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Valider</string>
|
<string>Enregistrer la modification</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QTimeEdit" name="start_edit">
|
<widget class="QTimeEdit" name="start_edit">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>40</x>
|
<x>36</x>
|
||||||
<y>49</y>
|
<y>69</y>
|
||||||
<width>91</width>
|
<width>91</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -70,8 +73,8 @@
|
|||||||
<widget class="QTimeEdit" name="end_edit">
|
<widget class="QTimeEdit" name="end_edit">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>300</x>
|
<x>296</x>
|
||||||
<y>49</y>
|
<y>69</y>
|
||||||
<width>91</width>
|
<width>91</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -93,8 +96,8 @@
|
|||||||
<widget class="QDoubleSpinBox" name="break_edit">
|
<widget class="QDoubleSpinBox" name="break_edit">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>170</x>
|
<x>166</x>
|
||||||
<y>49</y>
|
<y>69</y>
|
||||||
<width>91</width>
|
<width>91</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -112,8 +115,8 @@
|
|||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>40</x>
|
<x>36</x>
|
||||||
<y>9</y>
|
<y>29</y>
|
||||||
<width>91</width>
|
<width>91</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -128,8 +131,8 @@
|
|||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>170</x>
|
<x>166</x>
|
||||||
<y>9</y>
|
<y>29</y>
|
||||||
<width>91</width>
|
<width>91</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -144,8 +147,8 @@
|
|||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>300</x>
|
<x>296</x>
|
||||||
<y>9</y>
|
<y>29</y>
|
||||||
<width>91</width>
|
<width>91</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -160,9 +163,9 @@
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>40</x>
|
<x>36</x>
|
||||||
<y>103</y>
|
<y>123</y>
|
||||||
<width>141</width>
|
<width>143</width>
|
||||||
<height>61</height>
|
<height>61</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -219,6 +222,131 @@ color: white;</string>
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</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>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
@@ -238,5 +366,21 @@ color: white;</string>
|
|||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</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>
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
133
ui/welcome.ui
133
ui/welcome.ui
@@ -42,8 +42,8 @@
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>30</x>
|
<x>25</x>
|
||||||
<y>20</y>
|
<y>37</y>
|
||||||
<width>261</width>
|
<width>261</width>
|
||||||
<height>201</height>
|
<height>201</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -304,8 +304,8 @@
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>300</x>
|
<x>295</x>
|
||||||
<y>60</y>
|
<y>77</y>
|
||||||
<width>201</width>
|
<width>201</width>
|
||||||
<height>103</height>
|
<height>103</height>
|
||||||
</rect>
|
</rect>
|
||||||
@@ -347,6 +347,115 @@ color: white;</string>
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</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>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
@@ -366,5 +475,21 @@ color: white;</string>
|
|||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</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>
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user