Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
47
qt/routing_settings_dialog.hpp
Normal file
47
qt/routing_settings_dialog.hpp
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#pragma once
|
||||
|
||||
#include "geometry/latlon.hpp"
|
||||
|
||||
#include <QtWidgets/QCheckBox>
|
||||
#include <QtWidgets/QComboBox>
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
class Framework;
|
||||
|
||||
namespace qt
|
||||
{
|
||||
class RoutingSettings : public QDialog
|
||||
{
|
||||
public:
|
||||
static void LoadSession(Framework & framework);
|
||||
|
||||
static bool TurnsEnabled();
|
||||
static bool UseDebugGuideTrack();
|
||||
static std::optional<ms::LatLon> GetCoords(bool start);
|
||||
|
||||
RoutingSettings(QWidget * parent, Framework & framework);
|
||||
void ShowModal();
|
||||
|
||||
private:
|
||||
static std::optional<ms::LatLon> GetCoordsFromString(std::string const & input);
|
||||
|
||||
void ShowMessage(std::string const & message);
|
||||
bool ValidateAndSaveCoordsFromInput();
|
||||
bool SaveSettings();
|
||||
void LoadSettings();
|
||||
|
||||
Framework & m_framework;
|
||||
|
||||
QLineEdit * m_startInput;
|
||||
QLineEdit * m_finishInput;
|
||||
|
||||
QComboBox * m_routerType;
|
||||
QCheckBox * m_showTurnsCheckbox;
|
||||
QCheckBox * m_useDebugGuideCheckbox;
|
||||
QCheckBox * m_saveSessionCheckbox;
|
||||
};
|
||||
} // namespace qt
|
||||
Loading…
Add table
Add a link
Reference in a new issue