Kstars

pwizfovsh.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 PWIZFOVSH_H
8 #define PWIZFOVSH_H
9 
10 #include "ui_pwizfovsh.h"
11 
12 class PrintingWizard;
13 class SkyObject;
14 
15 /**
16  * \class PWizFovShUI
17  * \brief User interface for "Star hopper FOV snapshot capture" step of the Printing Wizard.
18  * \author Rafał Kułaga
19  */
20 class PWizFovShUI : public QFrame, public Ui::PWizFovSh
21 {
22  Q_OBJECT
23  public:
24  /**
25  * \brief Constructor.
26  */
27  explicit PWizFovShUI(PrintingWizard *wizard, QWidget *parent = nullptr);
28 
29  /**
30  * \brief Get magnitude limit set by user.
31  * \return Magnitude limit set by user.
32  */
33  double getMaglim() { return maglimSpinBox->value(); }
34 
35  /**
36  * \brief Get FOV name set by user.
37  * \return FOV name set by user.
38  */
39  QString getFovName() { return fovCombo->currentText(); }
40 
41  /**
42  * \brief Set object at which star hopper will begin.
43  * \param obj Beginning object.
44  */
45  void setBeginObject(SkyObject *obj);
46 
47  private slots:
48  /**
49  * \brief Slot: select beginning object from list.
50  */
51  void slotSelectFromList();
52 
53  /**
54  * \brief Slot: point beginning object on SkyMap.
55  */
56  void slotPointObject();
57 
58  /**
59  * \brief Slot: open details window.
60  */
61  void slotDetails();
62 
63  /**
64  * \brief Slot: begin capture.
65  */
66  void slotBeginCapture();
67 
68  private:
69  /**
70  * \brief Setup widgets.
71  */
72  void setupWidgets();
73 
74  /**
75  * \brief Setup signal-slot connections.
76  */
77  void setupConnections();
78 
79  PrintingWizard *m_ParentWizard;
80 };
81 
82 #endif // PWIZFOVSH_H
Q_OBJECTQ_OBJECT
PWizFovShUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
Definition: pwizfovsh.cpp:18
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
QString getFovName()
Get FOV name set by user.
Definition: pwizfovsh.h:39
double getMaglim()
Get magnitude limit set by user.
Definition: pwizfovsh.h:33
void setBeginObject(SkyObject *obj)
Set object at which star hopper will begin.
Definition: pwizfovsh.cpp:26
Information about an object in the sky.
Definition: skyobject.h:41
QObject * parent() const const
User interface for "Star hopper FOV snapshot capture" step of the Printing Wizard.
Definition: pwizfovsh.h:20
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:13:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.