Files
gcs-nf/opmap/mapwidget/waypointparamdialog.h
T
2022-08-26 08:25:32 +08:00

40 lines
894 B
C++

#ifndef WAYPOINTPARAMDIALOG_H
#define WAYPOINTPARAMDIALOG_H
#include <QDialog>
namespace Ui {
class WayPointParamDialog;
}
struct WayPointParamDialog : public QDialog
{
Q_OBJECT
public:
explicit WayPointParamDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
~WayPointParamDialog();
bool isOk = false;
double height; //高度
double outsideRadius;//外圈半径
double direction; //方向,-1左盘旋,1右盘旋
double longitude; //经度
double latitude; //纬度
void setlngLat(double lng, double lat); //设置经纬度,并且把对话框上面的值进行修改
signals:
void ok();
void cancel();
void remove();
private slots:
void acceptedSlot();
void setButtonString(); //把取消按钮设置成删除
private:
Ui::WayPointParamDialog *ui;
};
#endif // WAYPOINTPARAMDIALOG_H