swift
coordinatedialog.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_COORDINATEDIALOG_H
7 #define SWIFT_GUI_COMPONENTS_COORDINATEDIALOG_H
8 
9 #include <QDialog>
10 #include <QScopedPointer>
11 
13 #include "gui/swiftguiexport.h"
14 
15 namespace Ui
16 {
17  class CCoordinateDialog;
18 }
19 namespace swift::gui::components
20 {
23  class SWIFT_GUI_EXPORT CCoordinateDialog : public QDialog
24  {
25  Q_OBJECT
26 
27  public:
29  explicit CCoordinateDialog(QWidget *parent = nullptr);
30 
32  virtual ~CCoordinateDialog();
33 
35  swift::misc::geo::CCoordinateGeodetic getCoordinate() const;
36 
38  void setCoordinate(const swift::misc::geo::ICoordinateGeodetic &coordinate);
39 
41  void setReadOnly(bool readonly);
42 
44  void setSelectOnly();
45 
47  void showElevation(bool show);
48 
50  swift::misc::CStatusMessageList validate(bool nested = false) const;
51 
52  signals:
55 
56  private:
57  QScopedPointer<Ui::CCoordinateDialog> ui;
58 
60  void noDefaultButtons();
61  };
62 } // namespace swift::gui::components
63 
64 #endif // SWIFT_GUI_COMPONENTS_COORDINATEDIALOG_H
void changedCoordinate()
Change coordinate.
Status messages, e.g. from Core -> GUI.
Geodetic coordinate, a position in 3D space relative to the reference geoid.
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.