mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user