forked from donaloconnor/automon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagnosticswidget.h
79 lines (65 loc) · 2.88 KB
/
diagnosticswidget.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
#ifndef DIAGNOSTICSWIDGET_H
#define DIAGNOSTICSWIDGET_H
/*
==================================================================================================
| diagnosticswidget.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 is the DiagnosticsWidget class. It is a widget that forms part of the GUI of Automon.
It is responsible for displaying DTC codes, giving the neccessary buttons/widgets for the user
to clear the MIL and re check for DTCs etc.
*/
#include <QWidget>
#include "automon.h"
class QLabel;
class QVBoxLayout;
class QHBoxLayout;
class QTableWidget;
class QPushButton;
class QMessageBox;
using namespace AutomonKernel;
class DiagnosticsWidget : public QWidget
{
Q_OBJECT
public:
DiagnosticsWidget(Automon * kernel, QWidget * parent = 0);
signals:
void changeStatus(const QString & status);
public slots:
void resetMIL(); /* Slot for the reset MIL button */
void checkECU(); /* Slot for the CheckECU button */
private:
void setupDTCTable();
void displayNoDTCs();
void displayMilResetMsg();
void setMilPicOn();
void setMilPicOff();
QLabel * m_header;
QLabel * m_noDTCMsg;
QHBoxLayout * m_mainLayout;
QVBoxLayout * m_verticalLayout;
QHBoxLayout * m_contentArea;
QHBoxLayout * m_buttonsTop;
QVBoxLayout * m_leftSide;
QVBoxLayout * m_rightSide;
Automon * m_kernel;
QTableWidget * m_tableList;
QPushButton * m_resetMilButton;
QPushButton * m_checkButton;
QLabel * m_milResetMsg;
QString engineMilOnPic;
QString engineMilOffPic;
QLabel * engineMilPic;
QMessageBox * m_resetMilPromptBox;
};
#endif // DIAGNOSTICSWIDGET_H