Fix X7 R9M power line not enabled (#5973)
[opentx.git] / companion / src / modeledit / expodialog.h
blobe1355e1478387721e219c843f1e142b1c255b420
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 _EXPODIALOG_H_
22 #define _EXPODIALOG_H_
24 #include <QtWidgets>
25 #include "eeprominterface.h"
26 #include "modelprinter.h"
28 class GVarGroup;
29 class CurveGroup;
31 namespace Ui {
32 class ExpoDialog;
35 class ExpoDialog : public QDialog {
36 Q_OBJECT
37 public:
38 ExpoDialog(QWidget *parent, ModelData & model, ExpoData *expodata, GeneralSettings & generalSettings,
39 Firmware * firmware, QString & inputName);
40 ~ExpoDialog();
42 protected:
43 void updateScale();
45 private slots:
46 void valuesChanged();
47 void shrink();
48 void label_phases_customContextMenuRequested(const QPoint & pos);
49 void fmClearAll();
50 void fmSetAll();
51 void fmInvertAll();
53 private:
54 Ui::ExpoDialog * ui;
55 ModelData & model;
56 GeneralSettings & generalSettings;
57 Firmware * firmware;
58 ExpoData * ed;
59 QString & inputName;
60 GVarGroup * gvWeightGroup;
61 GVarGroup * gvOffsetGroup;
62 CurveGroup * curveGroup;
63 ModelPrinter modelPrinter;
64 bool lock;
65 QCheckBox * cb_fp[CPN_MAX_FLIGHT_MODES];
68 #endif // _EXPODIALOG_H_