CatRadio/guidata.h

70 wiersze
2.5 KiB
C

2024-11-21 17:34:42 +00:00
/**
** This file is part of the CatRadio project.
2025-03-18 21:02:52 +00:00
** Copyright 2022-2025 Gianfranco Sordetti IZ8EWD <iz8ewd@pianetaradio.it>.
2024-11-21 17:34:42 +00:00
**
** 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/>.
**/
2022-03-12 19:30:51 +00:00
#ifndef GUIDATA_H
#define GUIDATA_H
#endif // GUIDATA_H
2024-11-21 17:34:42 +00:00
#include <QString>
2022-03-12 19:30:51 +00:00
typedef struct {
int vfoDisplayMode; //0: use Left/Right mouse button, 1: click digit Up or Down
2025-03-18 21:02:52 +00:00
int vfoDialStep[6][4]; //VFO dial step
// 0 1 2 3
// Single Page Fast Single Page
//0 Current
//1 SSB
//2 CW
//3 DIGI
//4 FM
//5 AM
2022-11-19 20:13:20 +00:00
bool darkTheme; //flag for Dark theme
2022-12-07 19:50:23 +00:00
bool peakHold; //meters peak hold
2024-11-21 17:34:42 +00:00
bool debugMode; //flag for debug log
2025-04-09 21:35:27 +00:00
int cwKeyerMode; //0: Radio, 1: WinKeyer
2024-11-21 17:34:42 +00:00
int voiceKeyerMode; //0: Radio, 1: CatRadio
2022-03-12 19:30:51 +00:00
} guiConfig;
2022-04-08 16:04:54 +00:00
typedef struct {
2025-03-18 21:02:52 +00:00
int bwidthList; //Flag to command the update of the filter bandwidth combo box list
int antList; //Flag to command the update of the antenna combo box list
int rangeList; //Flag to command the update the rig range list
int tabList; //Flag to select the right function tab
int toneList; //Flag to command the update of the tone combo box list
int dialConf; //Flag to command the update of the tuning dial step configuration
2022-04-08 16:04:54 +00:00
} guiCommand;
2024-11-21 17:34:42 +00:00
typedef struct {
QString memoryFile[5]; //Audio files
QString audioOutput; //Audio output device name
int audioOutputVolume; //Audio output volume integer 0..10
2024-11-21 17:34:42 +00:00
} voiceKeyerConfig;
2025-04-09 21:35:27 +00:00
typedef struct {
QString comPort; //COM port name
QByteArray memoryString[5]; //CW strings
int wpm; //WPM
2025-04-11 17:32:36 +00:00
bool autoConnect; //Auto-connect flag
2025-04-09 21:35:27 +00:00
} cwKeyerConfig;