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

69 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
namespace Ui {
class tools_Index4;
}
class tools_Index4 : public QWidget
{
Q_OBJECT
public:
explicit tools_Index4(QWidget *parent = nullptr);
~tools_Index4();
2020-10-07 19:50:45 +08:00
void closeEvent(QCloseEvent *event);
void contextMenuEvent(QContextMenuEvent *event);
2020-08-19 22:21:48 +08:00
public slots:
2020-10-07 19:50:45 +08:00
void setFloat(void);
2020-08-19 22:21:48 +08:00
void setChannel(int port,uint16_t *value);
2020-08-26 22:10:44 +08:00
void loadCommandJson(const QString& jsonFilename);
2020-08-19 22:21:48 +08:00
2020-08-26 22:10:44 +08:00
void setRange(QJsonArray min,QJsonArray max);
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);
private:
Ui::tools_Index4 *ui;
QWidget *m_parent = nullptr;
2020-09-03 10:10:52 +08:00
bool Floated = false;
2020-08-26 22:10:44 +08:00
QJsonArray Max;
QJsonArray Min;
2020-08-19 22:21:48 +08:00
};
#endif // TOOLS_INDEX4_H