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.
39 lines
945 B
C++
39 lines
945 B
C++
#include "flysimulateddlg.h"
|
|
#include "ui_flysimulateddlg.h"
|
|
|
|
#include <QFileDialog>
|
|
|
|
FlySimulatedDlg::FlySimulatedDlg(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::FlySimulatedDlg)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
this->setWindowTitle("模拟飞行");
|
|
this->setWindowFlags(Qt::WindowCloseButtonHint);
|
|
|
|
spinBoxInit();
|
|
}
|
|
|
|
FlySimulatedDlg::~FlySimulatedDlg()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void FlySimulatedDlg::spinBoxInit()
|
|
{
|
|
//飞行速度Spin Box设置
|
|
ui->flySpeedSpinBox->setSuffix(" km/h");
|
|
ui->flySpeedSpinBox->setMinimum(1);
|
|
ui->flySpeedSpinBox->setMaximum(300);
|
|
}
|
|
|
|
void FlySimulatedDlg::on_openFlyFileBtn_clicked()
|
|
{
|
|
//获取文件路径
|
|
QString qStrPath = QFileDialog::getOpenFileName(this,"导入航线文件",
|
|
":/supermap-iobjectscpp/MyProject/MapDisplay/SampleData/",
|
|
"Google KML(*.kml *.kmz)");
|
|
}
|
|
|