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.

53 lines
1017 B
C++

#ifndef MAPLOCATIONDIALOG_H
#define MAPLOCATIONDIALOG_H
#include "MapEditor/UGMapEditorWnd.h"
#include "scenecontrol.h"
#include <QDialog>
namespace Ui {
class MapLocationDialog;
}
using namespace UGC;
class MapLocationDialog : public QDialog
{
Q_OBJECT
public:
explicit MapLocationDialog(QWidget *parent = nullptr);
~MapLocationDialog();
void setMap(UGMapEditorWnd* pEditorWnd);
void setScene(SceneControl* pSceneControl);
private slots:
void on_acceptBtn_clicked();
void on_cancelBtn_clicked();
void on_checkBox_stateChanged(int arg1);
void on_longitudeText_editingFinished();
private:
Ui::MapLocationDialog *ui;
UGMapEditorWnd* pEditorWnd;
SceneControl* pSceneControl;
bool is3DMap;
private:
QStringList transformAngle(QString angle);
bool isValidedDeg(QString str,int type);
bool isValidedDms(QString str,int type);
void showAltitudeSetting(bool isShow=false); //设置是否显示高度设置
};
#endif // MAPLOCATIONDIALOG_H