API Documentation
Loading...
Searching...
No Matches
CoordinateConverterDialog.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: NDEVR
28File: CoordinateConverterDialog
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
35#include "Base/Headers/UUID.h"
37#include <QWidget>
38namespace Ui
39{
40 class CoordinateConverterEditor;
41}
42class QComboBox;
43class QTableWidget;
44namespace NDEVR
45{
46 class BasicThread;
47 class INIReader;
48 class QCustomTableWidget;
49 class CoordinateProjectionChooser;
50 /**--------------------------------------------------------------------------------------------------
51 \brief A dialog that allows the user to set a Coordinate projection for the current project.
52 **/
54 {
55 Q_OBJECT
56 public:
57 CoordinateConverterDialog(QWidget *parent = 0);
59 void resizeEvent(QResizeEvent* event) override;
60 void showAcceptButton(bool show);
62 QSize minimumSizeHint() const override;
63 void setShowChooserCallback(std::function<void(bool show)>& show_chooser_callback);
64 QWidget* chooser();
65 void showSearch(bool show_search);
66 protected:
67 virtual void showEvent(QShowEvent *event) override;
68 private:
69 void setEditable(bool is_editable);
70 void setProjection(const UUID& projection);
71 bool event(QEvent* event) override;
72 signals:
75 private:
76 std::function<void(bool show)> m_show_chooser_callback;
77 CoordinateProjectionChooser* m_chooser = nullptr;
78 Ui::CoordinateConverterEditor* ui;
79 UUID m_selected_id = Constant<UUID>::Invalid;
80 UUID m_table_selected_id = Constant<UUID>::Invalid;
81 bool m_editable;
82 bool m_is_dirty = false;
83 };
84}
#define COORDINATE_PROJECTION_API
Definition DLLInfo.h:58
A dialog that allows the user to set a Coordinate projection for the current project.
Definition CoordinateConverterDialog.h:54
QSize minimumSizeHint() const override
void setShowChooserCallback(std::function< void(bool show)> &show_chooser_callback)
virtual void showEvent(QShowEvent *event) override
void showSearch(bool show_search)
void resizeEvent(QResizeEvent *event) override
CoordinateConverterDialog(QWidget *parent=0)
Allows the user to select a coordinate projection from a list of ones available.
Definition CoordinateProjectionChooser.h:17
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Definition ACIColor.h:37
Definition FontEditor.h:6
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233