LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / plugins / config / channelform.h
blob6c62a2f4bd98e55f8c4c9ae050ea7b8698c78d9a
1 #ifndef CHANNELFORM_H
2 #define CHANNELFORM_H
4 #include "configtaskwidget.h"
6 #include <QWidget>
8 namespace Ui {
9 class ChannelForm;
12 class QGridLayout;
14 class ChannelForm : public ConfigTaskWidget {
15 Q_OBJECT
17 public:
18 explicit ChannelForm(const int index, QWidget *parent = 0);
19 ~ChannelForm();
21 int index() const;
23 virtual QString name() = 0;
24 virtual void setName(const QString &name) = 0;
26 void moveTo(QGridLayout &dstLayout);
28 private:
29 // Channel index
30 int m_index;
32 static void moveRow(int row, QGridLayout &srcLayout, QGridLayout &dstLayout);
33 static void removeRow(int row, QGridLayout &layout);
36 #endif // CHANNELFORM_H