-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
90 lines (62 loc) · 1.48 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QComboBox>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QTimer>
#include <QPainter>
#include <QFont>
#include <QTime>
#include <QGeoCoordinate>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickView>
#include <QtQuickWidgets>
#include <QPixmap>
#include "log4qt/logger.h"
#include "log4qt/propertyconfigurator.h"
#include "log4qt/loggerrepository.h"
#include "log4qt/consoleappender.h"
#include "log4qt/logmanager.h"
#include "log4qt/fileappender.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
LOG4QT_DECLARE_QCLASS_LOGGER
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_pbDevice_clicked();
void on_pbClock_clicked();
void on_pbMap_clicked();
void on_pbWeather_clicked();
void on_pbBmi_clicked();
void on_pbCount_clicked();
void on_pbTimestamp_clicked();
void on_pbUuid_clicked();
void on_pbHome_clicked();
void on_pbShare_clicked();
private:
Ui::MainWindow *ui;
QTimer *timer;
Log4Qt::Logger *mylog1;
void showDateTime();
void showClock();
void showWeather();
void showUtm();
void showBmi();
void showCountDown();
void showTimestamp();
void showConvertTimestamp();
void showUuid();
};
#endif // MAINWINDOW_H