Kstars

foveditordialog.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#pragma once
8
9#include "ui_foveditordialog.h"
10
11#include <QDialog>
12#include <QFrame>
13
14class PrintingWizard;
15
16/**
17 * \class FovEditorDialogUI
18 * \brief User interface for FOV Editor Dialog.
19 * \author Rafał Kułaga
20 */
21class FovEditorDialogUI : public QFrame, public Ui::FovEditorDialog
22{
24 public:
25 /**
26 * \brief Constructor.
27 */
28 explicit FovEditorDialogUI(QWidget *parent = nullptr);
29};
30
31/**
32 * \class FovEditorDialog
33 * \brief Class representing FOV Editor Dialog which enables user to edit FOV snapshots.
34 * \author Rafał Kułaga
35 */
37{
39 public:
40 /**
41 * \brief Constructor.
42 */
43 explicit FovEditorDialog(PrintingWizard *wizard, QWidget *parent = nullptr);
44
45 private slots:
46 /**
47 * \brief Slot: switch to next FOV snapshot.
48 */
49 void slotNextFov();
50
51 /**
52 * \brief Slot: switch to previous FOV snapshot.
53 */
54 void slotPreviousFov();
55
56 /**
57 * \brief Slot: recapture current FOV snapshot.
58 */
59 void slotCaptureAgain();
60
61 /**
62 * \brief Slot: delete current FOV snapshot.
63 */
64 void slotDelete();
65
66 /**
67 * \brief Slot: save description of the current FOV snapshot.
68 */
69 void slotSaveDescription();
70
71 /**
72 * \brief Slot: open "Save file" dialog to choose file name and format to save image.
73 */
74 void slotSaveImage();
75
76 private:
77 /**
78 * \brief Setup widget properties.
79 */
80 void setupWidgets();
81
82 /**
83 * \brief Setup signal-slot connections.
84 */
85 void setupConnections();
86
87 /**
88 * \brief Update buttons.
89 */
90 void updateButtons();
91
92 /**
93 * \brief Update image description.
94 */
95 void updateDescriptions();
96
97 /**
98 * \brief Update FOV image.
99 */
100 void updateFovImage();
101
102 PrintingWizard *m_ParentWizard { nullptr };
103 FovEditorDialogUI *m_EditorUi { nullptr };
104
105 int m_CurrentIndex { 0 };
106};
User interface for FOV Editor Dialog.
FovEditorDialogUI(QWidget *parent=nullptr)
Constructor.
Class representing FOV Editor Dialog which enables user to edit FOV snapshots.
FovEditorDialog(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:45:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.