90 lines
1.9 KiB
C++
90 lines
1.9 KiB
C++
#ifndef MISSIONUI_H
|
|
#define MISSIONUI_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "Inputter.h"
|
|
#include "Selector.h"
|
|
#include "QComboBox"
|
|
#include "QTableWidget"
|
|
#include "QFileDialog"
|
|
namespace Ui {
|
|
class MissionUI;
|
|
}
|
|
|
|
class MissionUI : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MissionUI(QWidget *parent = nullptr);
|
|
~MissionUI();
|
|
|
|
|
|
public slots:
|
|
void pointCreate(float param1,float param2,float param3,float param4,
|
|
int32_t x,int32_t y,float z,
|
|
uint16_t seq,
|
|
uint16_t group,
|
|
uint16_t command,
|
|
uint8_t target_system,
|
|
uint8_t target_component,
|
|
uint8_t frame,
|
|
uint8_t current,
|
|
uint8_t autocontinue,
|
|
uint8_t mission_type);
|
|
void pointDelete(int idx);
|
|
|
|
protected slots:
|
|
void closeEvent(QCloseEvent *event);
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
|
|
private slots:
|
|
void itemSelectionChanged();
|
|
|
|
void on_tableWidget_3_itemChanged(QTableWidgetItem *item);
|
|
|
|
void on_tabWidget_currentChanged(int index);
|
|
|
|
void on_pushButton_load_clicked();
|
|
void on_pushButton_save_clicked();
|
|
void on_pushButton_upload_clicked();
|
|
void on_pushButton_download_clicked();
|
|
void on_pushButton_insert_clicked();
|
|
void on_pushButton_delete_clicked();
|
|
void on_pushButton_add_clicked();
|
|
|
|
void on_pushButton_clean_clicked();
|
|
|
|
signals:
|
|
|
|
void WPnearPoint(int dir);
|
|
void WPotherPoint(int seq);
|
|
|
|
|
|
void WPSave(QString path);
|
|
void WPLoad(QString path);
|
|
void WPUpload(void);
|
|
void WPDownload(void);
|
|
void WPInsert(void);
|
|
void WPDelete(void);
|
|
void WPDeleteAll(void);
|
|
void WPAdd(void);
|
|
|
|
void groupChanged(int);
|
|
|
|
void waypointSelect(int group,int idx);
|
|
|
|
|
|
private:
|
|
Ui::MissionUI *ui;
|
|
|
|
QMap<int,QTableWidget *> tablelist;
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif // MISSIONUI_H
|