[companion] Adjust GVAR not possible in global functions (fix #5425)
[opentx.git] / companion / src / generaledit / generalsetup.h
blob80a63d0275eac995724c2de52a561719d0103eae
1 /*
2 * Copyright (C) OpenTX
4 * Based on code named
5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef _GENERALSETUP_H_
22 #define _GENERALSETUP_H_
24 #include "generaledit.h"
25 #include "eeprominterface.h"
27 namespace Ui {
28 class GeneralSetup;
31 class GeneralSetupPanel : public GeneralPanel
33 Q_OBJECT
35 public:
36 GeneralSetupPanel(QWidget *parent, GeneralSettings & generalSettings, Firmware * firmware);
37 virtual ~GeneralSetupPanel();
39 private slots:
40 void on_splashScreenChkB_stateChanged(int);
41 void on_splashScreenDuration_currentIndexChanged(int index);
42 void on_alarmwarnChkB_stateChanged(int);
43 void on_rssiPowerOffWarnChkB_stateChanged(int);
44 void on_gpsFormatCB_currentIndexChanged(int index);
45 void on_displayTypeCB_currentIndexChanged(int index);
46 void on_BLBright_SB_editingFinished();
47 void on_OFFBright_SB_editingFinished();
48 void on_re_CB_currentIndexChanged(int index);
49 void on_countrycode_CB_currentIndexChanged(int index);
50 void on_units_CB_currentIndexChanged(int index);
51 void on_faimode_CB_stateChanged(int );
52 void on_speakerPitchSB_editingFinished();
53 void on_timezoneSB_editingFinished();
54 void on_adjustRTC_stateChanged(int);
55 void on_hapticStrength_valueChanged();
56 void on_soundModeCB_currentIndexChanged(int index);
57 void on_beeperlenCB_currentIndexChanged(int index);
58 void on_volume_SB_editingFinished();
59 void on_hapticmodeCB_currentIndexChanged(int index);
60 void on_hapticLengthCB_currentIndexChanged(int index);
61 void on_backlightswCB_currentIndexChanged(int index);
62 void on_usbModeCB_currentIndexChanged(int index);
63 void on_backlightColor_SL_valueChanged();
64 void on_mavbaud_CB_currentIndexChanged(int index);
65 void on_voiceLang_CB_currentIndexChanged(int index);
66 void stickReverseEdited();
67 void on_switchesDelay_valueChanged();
68 void on_blAlarm_ChkB_stateChanged();
69 void unlockSwitchEdited();
70 void on_beepVolume_SL_valueChanged();
71 void on_bgVolume_SL_valueChanged();
72 void on_varioVolume_SL_valueChanged();
73 void on_wavVolume_SL_valueChanged();
75 void on_varioP0_SB_editingFinished();
76 void on_varioPMax_SB_editingFinished();
77 void on_varioR0_SB_editingFinished();
78 void on_stickmodeCB_currentIndexChanged(int index);
79 void on_channelorderCB_currentIndexChanged(int index);
80 void on_beeperCB_currentIndexChanged(int index);
81 void on_memwarnChkB_stateChanged(int );
82 void on_inactimerSB_editingFinished();
83 void on_backlightautoSB_editingFinished();
85 void on_battwarningDSB_editingFinished();
86 void on_vBatMinDSB_editingFinished();
87 void on_vBatMaxDSB_editingFinished();
88 void on_contrastSB_editingFinished();
91 private:
92 Ui::GeneralSetup *ui;
94 void setValues();
95 void populateBacklightCB();
96 void populateVoiceLangCB();
97 void populateRotEncCB(int reCount);
98 void updateVarioPitchRange();
101 #endif // _GENERALSETUP_H_