mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
37 lines
666 B
C++
37 lines
666 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
class QLineEdit;
|
|
|
|
namespace Ui {
|
|
class TrafficModeInitDlg;
|
|
}
|
|
|
|
namespace traffxml
|
|
{
|
|
class TrafficModeInitDlg : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TrafficModeInitDlg(QWidget * parent = nullptr);
|
|
~TrafficModeInitDlg();
|
|
|
|
std::string GetDataFilePath() const { return m_dataFileName; }
|
|
|
|
private:
|
|
void SetFilePathViaDialog(QLineEdit & dest, QString const & title, const QString & directory,
|
|
QString const & filter = {});
|
|
public slots:
|
|
void accept() override;
|
|
|
|
private:
|
|
Ui::TrafficModeInitDlg * m_ui;
|
|
|
|
std::string m_dataFileName;
|
|
};
|
|
} // namespace traffxml
|