forked from donaloconnor/automon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboardwidget.h
65 lines (52 loc) · 2.51 KB
/
dashboardwidget.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
#ifndef DASHBOARDWIDGET_H
#define DASHBOARDWIDGET_H
/*
==================================================================================================
| dashboardwidget.h |
| Part of the Automon application. |
| |
| Final Year Project - "An Embedded Automotive Monitoring Device" |
| |
| By Donal O' Connor for completion of B.Sc (Hons) Software Development and Computer Networking |
| Email: [email protected] |
| Website/Blog: http://automon.killarneyonline.eu |
| |
| Cork Institute of Technology, Cork, Ireland - http://www.cit.ie/ |
| |
| Copyright © 2009 Donal O'Connor <[email protected]> |
==================================================================================================
This class, DashBoardWidget is a widget that is used in the Main GUI, as one of the stacked widgets
in the AutomonApp class. It is displayed when the Digital Dashboard menu button is clicked.
It includes two instances of the S5WDial class. This class is third party and is licensed under the GPL.
I've modified it to my liking.
*/
#include <QWidget>
#include "automon.h"
class QLabel;
class QVBoxLayout;
class QHBoxLayout;
class QPushButton;
class S5WDial;
using namespace AutomonKernel;
class DashboardWidget : public QWidget
{
Q_OBJECT
public:
DashboardWidget(Automon * kernel, QWidget * parent = 0);
signals:
void changeStatus(const QString & status);
public slots:
void startStopDashboard();
private:
QLabel * m_header;
QHBoxLayout * m_mainLayout;
QVBoxLayout * m_verticalLayout;
QHBoxLayout * m_dialLayouts;
QPushButton * m_startStopButton;
QHBoxLayout * m_buttonLayout;
S5WDial * m_revDial;
S5WDial * m_speedDial;
Automon * m_kernel;
bool m_started;
};
#endif // DASHBOARDWIDGET_H