hivemind 1.0.0
Loading...
Searching...
No Matches
map_dialog.h
Go to the documentation of this file.
1#pragma once
2
3#include <QDialog>
4#include <QLabel>
5#include <QLineEdit>
6#include <QPushButton>
7#include <QVBoxLayout>
8
9namespace Gui
10{
11 ///
12 /// \brief The MapDialog class represents a dialog window for inputting map
13 /// data.
14 ///
15 class MapDialog : public QDialog
16 {
17 Q_OBJECT
18 public:
19 ///
20 /// \brief Constructs a new MapDialog object.
21 /// \param parent The parent widget of the dialog.
22 ///
23 MapDialog(QWidget* parent = nullptr);
24
25 signals:
26 ///
27 /// \brief Signal emitted when data is ready to be sent.
28 /// \param data The data to be sent.
29 ///
30 void SendData(const QString& data);
31
32 ///
33 /// \brief Signal emitted when the dialog has finished.
34 ///
35 void Finished();
36
37 ///
38 /// \brief Signal emitted when map data is ready to be processed.
39 /// \param latitude The latitude coordinate of the map data.
40 /// \param longitude The longitude coordinate of the map data.
41 /// \param size The size of the map data.
42 ///
43 void MapDataReady(float latitude, float longitude, float size);
44
45 public slots:
46
47 ///
48 /// \brief Slot called when the user finishes input and submits the
49 /// data.
50 ///
51 void Finish();
52
53 private:
56 QLineEdit* m_SizeInput;
57 };
58} // namespace Gui
The MapDialog class represents a dialog window for inputting map data.
Definition: map_dialog.h:16
void Finish()
Slot called when the user finishes input and submits the data.
Definition: map_dialog.cpp:41
QLineEdit * m_LatitudeCoordInput
Definition: map_dialog.h:54
void Finished()
Signal emitted when the dialog has finished.
QLineEdit * m_SizeInput
Definition: map_dialog.h:56
void MapDataReady(float latitude, float longitude, float size)
Signal emitted when map data is ready to be processed.
QLineEdit * m_LongitudeCoordInput
Definition: map_dialog.h:55
void SendData(const QString &data)
Signal emitted when data is ready to be sent.
Definition: action.h:6