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;
51 {
52 Q_OBJECT
53 public:
54 CoordinateConverterDialog(QWidget *parent = 0);
56 void resizeEvent(QResizeEvent* event) override;
57 void showAcceptButton(bool show);
58 void setupAsPrimary();
59 QSize minimumSizeHint() const override;
60 void setShowChooserCallback(std::function<void(bool show)>& show_chooser_callback);
61 QWidget* chooser();
62 void showSearch(bool show_search);
63 protected:
64 virtual void showEvent(QShowEvent *event) override;
65 private:
66 void setEditable(bool is_editable);
67 void setProjection(const UUID& projection);
68 bool event(QEvent* event) override;
69 signals:
72 private:
73 std::function<void(bool show)> m_show_chooser_callback;
74 CoordinateProjectionChooser* m_chooser = nullptr;
75 Ui::CoordinateConverterEditor* ui;
76 UUID m_selected_id = Constant<UUID>::NaN;
77 UUID m_table_selected_id = Constant<UUID>::NaN;
78 bool m_editable;
79 bool m_is_dirty = false;
80 };
81}
#define COORDINATE_PROJECTION_API
Definition DLLInfo.h:79
Definition CoordinateConverterDialog.h:51
Definition CoordinateProjectionChooser.h:14
Definition UUID.h:66
Definition ACIColor.h:37
Definition FontEditor.h:6
Definition BaseValues.hpp:272