Changeset View
Changeset View
Standalone View
Standalone View
kstars/tools/adddeepskyobject.h
Context not available. | |||||
15 | * * | 15 | * * | ||
---|---|---|---|---|---|
16 | ***************************************************************************/ | 16 | ***************************************************************************/ | ||
17 | 17 | | |||
18 | #ifndef ADDDEEPSKYOBJECT_H | 18 | #pragma once | ||
19 | #define ADDDEEPSKYOBJECT_H | | |||
20 | 19 | | |||
21 | #include "ui_adddeepskyobject.h" | 20 | #include "ui_adddeepskyobject.h" | ||
22 | #include "syncedcatalogcomponent.h" | 21 | | ||
23 | #include <QString> | 22 | class QString; | ||
24 | #include <QRegularExpression> | 23 | | ||
24 | class SyncedCatalogComponent; | ||||
25 | 25 | | |||
26 | /** | 26 | /** | ||
27 | * @class AddDeepSkyObject | 27 | * @class AddDeepSkyObject | ||
28 | * @short Allows the user to add an object to a @sa SyncedCatalogComponent | 28 | * @short Allows the user to add an object to a @sa SyncedCatalogComponent | ||
29 | * | ||||
29 | * @author Akarsh Simha <akarsh@kde.org> | 30 | * @author Akarsh Simha <akarsh@kde.org> | ||
30 | */ | 31 | */ | ||
31 | | ||||
32 | class AddDeepSkyObject : public QDialog, public Ui::AddDeepSkyObject | 32 | class AddDeepSkyObject : public QDialog, public Ui::AddDeepSkyObject | ||
33 | { | 33 | { | ||
34 | Q_OBJECT; | 34 | Q_OBJECT; | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | /** | 37 | /** @short Constructor */ | ||
38 | * @short Constructor | | |||
39 | */ | | |||
40 | AddDeepSkyObject(QWidget *parent, SyncedCatalogComponent *catalog); | 38 | AddDeepSkyObject(QWidget *parent, SyncedCatalogComponent *catalog); | ||
41 | 39 | | |||
42 | /** | 40 | /** @short Destructor */ | ||
43 | * @short Destructor | | |||
44 | */ | | |||
45 | ~AddDeepSkyObject(); | 41 | ~AddDeepSkyObject(); | ||
46 | 42 | | |||
47 | /** | 43 | /** @short Fills the dialog from a text by trying to guess fields */ | ||
48 | * @short Fills the dialog from a text by trying to guess fields | | |||
49 | */ | | |||
50 | void fillFromText(const QString &text); | 44 | void fillFromText(const QString &text); | ||
51 | 45 | | |||
52 | public slots: | 46 | public slots: | ||
53 | 47 | | |||
54 | /** | 48 | /** @short Accept the dialog and add the entry to the catalog */ | ||
55 | * @short Accept the dialog and add the entry to the catalog | | |||
56 | */ | | |||
57 | bool slotOk(); | 49 | bool slotOk(); | ||
58 | 50 | | |||
59 | /** | 51 | /** @short Resets the entries in the dialog */ | ||
60 | * @short Resets the entries in the dialog | | |||
61 | */ | | |||
62 | void resetView(); | 52 | void resetView(); | ||
63 | 53 | | |||
64 | /** | 54 | /** @short Gathers the text and calls fillFromText() to parse the text */ | ||
65 | * @short Gathers the text and calls fillFromText() to parse the text | | |||
66 | */ | | |||
67 | void slotFillFromText(); | 55 | void slotFillFromText(); | ||
68 | 56 | | |||
69 | private: | 57 | private: | ||
70 | SyncedCatalogComponent *m_catalog; | 58 | SyncedCatalogComponent *m_catalog { nullptr }; | ||
71 | Ui::AddDeepSkyObject *ui; | 59 | Ui::AddDeepSkyObject *ui { nullptr }; | ||
72 | }; | 60 | }; | ||
73 | | ||||
74 | #endif | | |||
Context not available. |