Kstars

pwizfovsh.h
1/*
2 SPDX-FileCopyrightText: 2011 Rafał Kułaga <rl.kulaga@gmail.com>
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
12class PrintingWizard;
13class 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 */
20class PWizFovShUI : public QFrame, public Ui::PWizFovSh
21{
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
User interface for "Star hopper FOV snapshot capture" step of the Printing Wizard.
Definition pwizfovsh.h:21
QString getFovName()
Get FOV name set by user.
Definition pwizfovsh.h:39
void setBeginObject(SkyObject *obj)
Set object at which star hopper will begin.
Definition pwizfovsh.cpp:26
PWizFovShUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
Definition pwizfovsh.cpp:18
double getMaglim()
Get magnitude limit set by user.
Definition pwizfovsh.h:33
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.