Files
gcs-nf/Plugins/ToolsUI/tools_Index4/tools_Index4.h
T

71 lines
1.2 KiB
C++
Raw Normal View History

2020-08-19 22:21:48 +08:00
#ifndef TOOLS_INDEX4_H
#define TOOLS_INDEX4_H
#include <QWidget>
#include "QDockWidget"
#include "QFile"
#include "QTextStream"
#include "QDebug"
2020-08-24 22:59:05 +08:00
#include "QCloseEvent"
2020-08-26 22:10:44 +08:00
#include "QFileDialog"
#include "QJsonArray"
#include "QJsonDocument"
#include "QJsonObject"
#include "QJsonParseError"
2020-10-07 19:50:45 +08:00
#include "QMouseEvent"
#include "QDebug"
#include "QAction"
#include "QContextMenuEvent"
#include "QMenu"
#include "QColor"
#include "QLabel"
#include "mavlink.h"
#include "QStyle"
2020-08-19 22:21:48 +08:00
2020-12-30 00:12:15 +08:00
#include "QProgressBar"
#include "QMap"
2021-01-07 10:55:02 +08:00
#include "ToolsUI/ToolsWidget.h"
2021-02-28 17:57:20 +08:00
#include "QGroupBox"
#include "QLabel"
#include "QSpacerItem"
2021-01-07 10:55:02 +08:00
2020-08-19 22:21:48 +08:00
namespace Ui {
class tools_Index4;
}
2021-01-07 10:55:02 +08:00
class tools_Index4 : public ToolsWidget
2020-08-19 22:21:48 +08:00
{
Q_OBJECT
public:
explicit tools_Index4(QWidget *parent = nullptr);
~tools_Index4();
public slots:
2020-12-28 13:04:31 +08:00
void setChannel(int port,QMap<int,uint16_t> value);
2020-08-19 22:21:48 +08:00
2021-02-28 17:57:20 +08:00
2020-08-19 22:21:48 +08:00
protected:
2020-08-24 22:59:05 +08:00
2020-08-26 22:10:44 +08:00
void mouseReleaseEvent(QMouseEvent *event);
2020-08-19 22:21:48 +08:00
void mouseDoubleClickEvent(QMouseEvent *event);
2021-02-28 17:57:20 +08:00
void addGroup(int port);
2020-08-19 22:21:48 +08:00
private:
Ui::tools_Index4 *ui;
2020-09-03 10:10:52 +08:00
bool Floated = false;
2020-08-26 22:10:44 +08:00
QJsonArray Max;
QJsonArray Min;
2020-12-30 00:12:15 +08:00
QMap<int,QProgressBar *> barlist;
2020-08-19 22:21:48 +08:00
};
#endif // TOOLS_INDEX4_H