[companion] Adjust GVAR not possible in global functions (fix #5425)
[opentx.git] / companion / src / generaledit / trainer.h
blob56442dc8be464872ad1c85d75f1b9af7eab81916
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 _TRAINER_H_
22 #define _TRAINER_H_
24 #include "generaledit.h"
25 #include "eeprominterface.h"
27 namespace Ui {
28 class Trainer;
31 class TrainerPanel : public GeneralPanel
33 Q_OBJECT
35 public:
36 TrainerPanel(QWidget *parent, GeneralSettings & generalSettings, Firmware * firmware);
37 virtual ~TrainerPanel();
39 private slots:
40 void on_trnMode_1_currentIndexChanged(int index);
41 void on_trnChn_1_currentIndexChanged(int index);
42 void on_trnWeight_1_editingFinished();
43 void on_trnMode_2_currentIndexChanged(int index);
44 void on_trnChn_2_currentIndexChanged(int index);
45 void on_trnWeight_2_editingFinished();
46 void on_trnMode_3_currentIndexChanged(int index);
47 void on_trnChn_3_currentIndexChanged(int index);
48 void on_trnWeight_3_editingFinished();
49 void on_trnMode_4_currentIndexChanged(int index);
50 void on_trnChn_4_currentIndexChanged(int index);
51 void on_trnWeight_4_editingFinished();
53 private:
54 Ui::Trainer *ui;
56 void setValues();
59 #endif // _TRAINER_H_