-
Notifications
You must be signed in to change notification settings - Fork 2
/
mainwindow.h
237 lines (142 loc) · 6.26 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/**
** This file is part of the CatRadio project.
** Copyright 2022-2024 Gianfranco Sordetti IZ8EWD <iz8ewd@pianetaradio.it>.
**
** 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, either version 3 of the License, or
** (at your option) any later version.
**
** 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/>.
**/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include "rig.h"
#define RELEASE_DATE __DATE__
#define VERSION_MAJ 1
#define VERSION_MIN 4
#define VERSION_MIC 1
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
public slots:
void guiUpdate();
void rigUpdate(); //Slot for QTimer
void on_rigDaemonResultReady(); //Slot for rigDaemon resultReady
void on_vfoDisplayMainValueChanged(int value); //Slot for vfoDisplay Main valueChanged
void on_vfoDisplaySubValueChanged(int value); //Slot for vfoDisplay Sub valueChanged
signals:
private slots:
void on_pushButton_Connect_toggled(bool checked);
void on_pushButton_Power_toggled(bool checked);
void on_pushButton_PTT_toggled(bool checked);
void on_pushButton_Split_toggled(bool checked);
void on_pushButton_AB_clicked();
void on_pushButton_AeqB_clicked();
void on_dial_valueChanged(int value);
void on_comboBox_Mode_activated(int index);
void on_comboBox_ModeSub_activated(int index);
void on_pushButton_Fast_toggled(bool checked);
void on_pushButton_Band160_clicked();
void on_pushButton_Band80_clicked();
void on_pushButton_Band60_clicked();
void on_pushButton_Band40_clicked();
void on_pushButton_Band30_clicked();
void on_pushButton_Band20_clicked();
void on_pushButton_Band17_clicked();
void on_pushButton_Band15_clicked();
void on_pushButton_Band12_clicked();
void on_pushButton_Band10_clicked();
void on_pushButton_Band6_clicked();
void on_pushButton_Tune_clicked();
void on_radioButton_Tuner_toggled(bool checked);
void on_pushButton_BandDown_clicked();
void on_pushButton_BandUp_clicked();
void on_pushButton_QSplit_clicked();
void on_action_Connection_triggered();
void on_comboBox_BW_activated(int index);
void on_checkBox_NAR_toggled(bool checked);
void on_checkBox_BKIN_toggled(bool checked);
void on_comboBox_AGC_activated(int index);
void on_comboBox_Att_activated(int index);
void on_comboBox_Preamp_activated(int index);
void on_comboBox_Ant_activated(int index);
void on_action_AboutCatRadio_triggered();
void on_checkBox_NB_toggled(bool checked);
void on_checkBox_NR_toggled(bool checked);
void on_checkBox_NF_toggled(bool checked);
void on_comboBox_Meter_activated(int index);
void on_spinBox_NR_valueChanged(int arg1);
void on_horizontalSlider_IFshift_valueChanged(int value);
void on_pushButton_Band2_clicked();
void on_pushButton_Band70_clicked();
void on_pushButton_BandGen_clicked();
void on_action_Setup_triggered();
void on_action_CatRadioHomepage_triggered();
void on_action_AboutQT_triggered();
void on_action_AboutHamLib_triggered();
void on_verticalSlider_AFGain_valueChanged(int value);
void on_verticalSlider_Squelch_valueChanged(int value);
void on_verticalSlider_RFpower_valueChanged(int value);
void on_verticalSlider_RFgain_valueChanged(int value);
void on_spinBox_WPM_valueChanged(int arg1);
void on_checkBox_APF_toggled(bool checked);
void on_radioButton_RPTshiftSimplex_toggled(bool checked);
void on_radioButton_RPTshiftMinus_toggled(bool checked);
void on_radioButton_RPTshiftPlus_toggled(bool checked);
void on_comboBox_toneType_activated(int index);
void on_comboBox_toneFreq_activated(int index);
void on_spinBox_RPToffset_valueChanged(int arg1);
void on_pushButton_left_clicked();
void on_pushButton_right_clicked();
void on_checkBox_clar_toggled(bool checked);
void on_pushButton_clarClear_clicked();
void on_horizontalSlider_clar_valueChanged(int value);
void on_radioButton_clarRIT_toggled(bool checked);
void on_radioButton_clarXIT_toggled(bool checked);
void on_verticalSlider_RFpower_sliderReleased();
void on_verticalSlider_RFgain_sliderReleased();
void on_verticalSlider_AFGain_sliderReleased();
void on_verticalSlider_Squelch_sliderReleased();
void on_horizontalSlider_IFshift_sliderReleased();
void on_horizontalSlider_clar_sliderReleased();
void on_checkBox_NB2_toggled(bool checked);
void on_verticalSlider_micGain_valueChanged(int value);
void on_verticalSlider_micGain_sliderReleased();
void on_verticalSlider_micCompressor_valueChanged(int value);
void on_verticalSlider_micCompressor_sliderReleased();
void on_verticalSlider_micMonitor_valueChanged(int value);
void on_verticalSlider_micMonitor_sliderReleased();
void on_checkBox_micCompressor_toggled(bool checked);
void on_checkBox_micMonitor_toggled(bool checked);
void on_action_Command_triggered();
void on_action_RadioInfo_triggered();
void on_action_AboutDarkTheme_triggered();
void on_pushButton_CW1_clicked();
void on_pushButton_CW2_clicked();
void on_pushButton_CW3_clicked();
void on_pushButton_CW4_clicked();
void on_pushButton_CW5_clicked();
private:
Ui::MainWindow *ui;
QTimer *timer;
RIG *my_rig;
void guiInit();
void setSubMeter();
bool checkHamlibVersion(int major, int minor, int revision);
};
#endif // MAINWINDOW_H