API Documentation
Loading...
Searching...
No Matches
CoordinateProjectionChooser.h
Go to the documentation of this file.
1#pragma once
2#include "Base/Headers/UUID.h"
5#include <QWidget>
6namespace Ui
7{
8 class CoordinateProjectionChooserUI;
9}
10class QTableWidget;
11namespace NDEVR
12{
13 /**--------------------------------------------------------------------------------------------------
14 \brief Allows the user to select a coordinate projection from a list of ones available.
15 **/
16 class CoordinateProjectionChooser : public QWidget
17 {
18 Q_OBJECT
19 public:
20 CoordinateProjectionChooser(QWidget* parent = nullptr);
21 void setProjection(UUID projection_id);
22
23 signals:
24 void acceptedSignal(const UUID id);
26 protected:
27 void init();
28 void updateSearch(bool finished, bool allow_download = true);
29 void saveINI();
30 void readINI();
32 void setupTable(QTableWidget* widget, const Buffer<UUID>& projections);
33
35 virtual void showEvent(QShowEvent* event) override;
36 protected slots:
37 void coordinateProjectionTableSelected(int row, int column);
39 private:
40 String m_recent_projections_string;
41 Buffer<UUID> m_recent_projections;
42 protected:
44 Ui::CoordinateProjectionChooserUI* ui;
46 };
47}
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Allows the user to select a coordinate projection from a list of ones available.
Definition CoordinateProjectionChooser.h:17
void setupTable(QTableWidget *widget, const Buffer< UUID > &projections)
bool m_has_loaded_authorities
Definition CoordinateProjectionChooser.h:45
virtual void showEvent(QShowEvent *event) override
void coordinateProjectionTableSelected(int row, int column)
CoordinateProjectionChooser(QWidget *parent=nullptr)
void setProjection(UUID projection_id)
Ui::CoordinateProjectionChooserUI * ui
Definition CoordinateProjectionChooser.h:44
UUID m_projection
Definition CoordinateProjectionChooser.h:43
void acceptedSignal(const UUID id)
void updateSearch(bool finished, bool allow_download=true)
Contains methods for easily reading and writing to an INI file including efficient casting,...
Definition INIReader.h:68
The core String class for the NDEVR API.
Definition String.h:69
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