-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathUwxErrorCode.h
113 lines (104 loc) · 3.22 KB
/
UwxErrorCode.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/******************************************************************************
** Copyright (C) 2016 Ezurio
**
** Project: UwTerminalX
**
** Module: UwxErrorCode.h
**
** Notes:
**
** License: This program is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
** published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see http://www.gnu.org/licenses/
**
** SPDX-License-Identifier: GPL-3.0
**
*******************************************************************************/
#ifndef UWXERRORCODE_H
#define UWXERRORCODE_H
/******************************************************************************/
// Include Files
/******************************************************************************/
#include <QDialog>
#include <QCompleter>
#include <QSettings>
#include <QFontDatabase>
#include <QStatusBar>
#include <QClipboard>
/******************************************************************************/
// Constants
/******************************************************************************/
const qint8 ErrorCodeLookupTab = 0;
const qint8 ErrorCodeListTab = 1;
const qint8 ErrorCodeSearchTab = 2;
/******************************************************************************/
// Forward declaration of Class, Struct & Unions
/******************************************************************************/
namespace Ui
{
class UwxErrorCode;
}
/******************************************************************************/
// Class definitions
/******************************************************************************/
class UwxErrorCode : public QDialog
{
Q_OBJECT
public:
explicit
UwxErrorCode(
QWidget *parent = 0
);
~UwxErrorCode();
void
SetErrorObject(
QSettings *pErrorMessages
);
private slots:
void
on_combo_Code_currentTextChanged(
const QString &strComboText
);
void
on_list_Codes_currentRowChanged(
int iListRow
);
void
on_edit_Search_returnPressed(
);
void
on_btn_Search_clicked(
);
void
on_list_Search_currentRowChanged(
int iSearchRow
);
void
SetObjectStatus(
bool bStatus
);
void
on_selector_Tab_currentChanged(
int iTabIndex
);
void
on_btn_Copy_clicked(
);
private:
Ui::UwxErrorCode *ui;
QCompleter *mcmpErrors; //Handle for error completer object for combo box
QSettings *mpErrorMessages; //Handle for error values object (owned by UwxMainWindow)
QStatusBar *msbStatusBar; //Pointer to error code status bar
};
#endif // UWXERRORCODE_H
/******************************************************************************/
// END OF FILE
/******************************************************************************/