Update CREDITS.txt
[opentx.git] / companion / src / generaledit / calibration.h
blobfd28e492b5d2cd943b01673f3ef1a3a79dbd0589
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 _CALIBRATION_H_
22 #define _CALIBRATION_H_
24 #include <QTableWidget>
25 #include "generaledit.h"
27 namespace Ui {
28 class Calibration;
31 class QLabel;
32 class AutoLineEdit;
33 class AutoComboBox;
35 class CalibrationPanel : public GeneralPanel
37 Q_OBJECT
39 public:
40 CalibrationPanel(QWidget *parent, GeneralSettings & generalSettings, Firmware * firmware);
41 virtual ~CalibrationPanel() {};
43 private slots:
44 void onCellChanged(int value);
46 private:
47 QTableWidget * tableWidget;
49 int getCalibrationValue(int row, int column);
50 void setCalibrationValue(int row, int column, int value);
53 #endif // _CALIBRATION_H_