You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1021 B
C++
57 lines
1021 B
C++
#ifndef COMPUTEOFFSETPOSITIONDIALOG_H
|
|
#define COMPUTEOFFSETPOSITIONDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include "geocomputation.h"
|
|
|
|
//MSVC编译器界面显示乱码问题
|
|
#if _MSC_VER >= 1600
|
|
#pragma execution_character_set("utf-8")
|
|
#endif
|
|
|
|
namespace Ui {
|
|
class ComputeOffsetPositionDialog;
|
|
}
|
|
|
|
class ComputeOffsetPositionDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ComputeOffsetPositionDialog(QWidget *parent = nullptr);
|
|
~ComputeOffsetPositionDialog();
|
|
|
|
QString getBearing();
|
|
QString getDistance();
|
|
|
|
QPointF getOffsetPosition();
|
|
|
|
signals:
|
|
void computePoint(bool ifCompute);
|
|
|
|
void sendComputedPoint(QPointF);
|
|
|
|
public slots:
|
|
void acceptPresiousPoint(double lon1, double lat1);
|
|
|
|
private slots:
|
|
void on_cancelBtn_clicked();
|
|
|
|
void on_acceptBtn_clicked();
|
|
|
|
void on_bearingText_editingFinished();
|
|
|
|
private:
|
|
Ui::ComputeOffsetPositionDialog *ui;
|
|
|
|
QPointF offsetPoint;
|
|
|
|
double preLon1;
|
|
double preLat1;
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
#endif // COMPUTEOFFSETPOSITIONDIALOG_H
|