Kstars

pwizobjectselection.h
1 /*
2  SPDX-FileCopyrightText: 2011 Rafał Kułaga <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef PWIZOBJECTSELECTION_H
8 #define PWIZOBJECTSELECTION_H
9 
10 #include "ui_pwizobjectselection.h"
11 
12 class PrintingWizard;
13 class SkyObject;
14 
15 /**
16  * \class PWizObjectSelectionUI
17  * \brief User interface for "Select observed object" step of the Printing Wizard.
18  * \author Rafał Kułaga
19  */
20 class PWizObjectSelectionUI : public QFrame, public Ui::PWizObjectSelection
21 {
22  Q_OBJECT
23  public:
24  /**
25  * \brief Constructor.
26  */
27  explicit PWizObjectSelectionUI(PrintingWizard *wizard, QWidget *parent = nullptr);
28 
29  /**
30  * \brief Update UI elements for newly selected SkyObject.
31  * \param obj Selected SkyObject.
32  */
33  void setSkyObject(SkyObject *obj);
34 
35  /**
36  * \brief Static function: get QString with basic information about SkyObject.
37  * \param obj Selected SkyObject.
38  */
39  static QString objectInfoString(SkyObject *obj);
40 
41  private slots:
42  /**
43  * \brief Slot: open "Find Object" dialog to select SkyObject.
44  */
45  void slotSelectFromList();
46 
47  /**
48  * \brief Slot: enter object pointing mode to select SkyObject.
49  */
50  void slotPointObject();
51 
52  /**
53  * \brief Slot: show "Details" window for selected object.
54  */
55  void slotShowDetails();
56 
57  private:
58  PrintingWizard *m_ParentWizard;
59 };
60 
61 #endif // PWIZOBJECTSELECTION_H
Q_OBJECTQ_OBJECT
static QString objectInfoString(SkyObject *obj)
Static function: get QString with basic information about SkyObject.
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
User interface for "Select observed object" step of the Printing Wizard.
void setSkyObject(SkyObject *obj)
Update UI elements for newly selected SkyObject.
PWizObjectSelectionUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
Information about an object in the sky.
Definition: skyobject.h:41
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.