Kstars

pwizobjectselection.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 PWIZOBJECTSELECTION_H
8#define PWIZOBJECTSELECTION_H
9
10#include "ui_pwizobjectselection.h"
11
12class PrintingWizard;
13class 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 */
20class PWizObjectSelectionUI : public QFrame, public Ui::PWizObjectSelection
21{
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 */
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
User interface for "Select observed object" step of the Printing Wizard.
PWizObjectSelectionUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
static QString objectInfoString(SkyObject *obj)
Static function: get QString with basic information about SkyObject.
void setSkyObject(SkyObject *obj)
Update UI elements for newly selected SkyObject.
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 Fri Dec 13 2024 11:47:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.