Kstars

pwizchartcontents.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 PWIZCHARTCONTENTS_H
8 #define PWIZCHARTCONTENTS_H
9 
10 #include "ui_pwizchartcontents.h"
11 
12 class PrintingWizard;
13 
14 /**
15  * \class PWizChartContentsUI
16  * \brief User interface for "Configure chart contents" step of the Printing Wizard.
17  * \author Rafał Kułaga
18  */
19 class PWizChartContentsUI : public QFrame, public Ui::PWizChartContents
20 {
21  Q_OBJECT
22  public:
23  /**
24  * \brief Constructor.
25  */
26  explicit PWizChartContentsUI(PrintingWizard *wizard, QWidget *parent = nullptr);
27 
28  /**
29  * \brief Enable or disable specific fields depending on the type of selected object.
30  */
31  void entered();
32 
33  /**
34  * \brief Check if general details table is enabled.
35  * \return True if general details table is enabled.
36  */
37  bool isGeneralTableChecked();
38 
39  /**
40  * \brief Check if position details table is enabled.
41  * \return True if position details table is enabled.
42  */
44 
45  /**
46  * \brief Check if Rise/Set/Transit details table is enabled.
47  * \return True if Rise/Set/Transit details table is enabled.
48  */
49  bool isRSTTableChecked();
50 
51  /**
52  * \brief Check if Asteroid/Comet details table is enabled.
53  * \return True if Asteroid/Comet details table is enabled.
54  */
55  bool isAstComTableChecked();
56 
57  /**
58  * \brief Check if logging form is enabled.
59  * \return True if logging form is enabled.
60  */
61  bool isLoggingFormChecked();
62 
63  private:
64  PrintingWizard *m_ParentWizard;
65 };
66 
67 #endif // PWIZCHARTCONTENTS_H
Q_OBJECTQ_OBJECT
bool isLoggingFormChecked()
Check if logging form is enabled.
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
void entered()
Enable or disable specific fields depending on the type of selected object.
bool isGeneralTableChecked()
Check if general details table is enabled.
bool isRSTTableChecked()
Check if Rise/Set/Transit details table is enabled.
User interface for "Configure chart contents" step of the Printing Wizard.
bool isAstComTableChecked()
Check if Asteroid/Comet details table is enabled.
bool isPositionTableChecked()
Check if position details table is enabled.
PWizChartContentsUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Aug 13 2022 04:01:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.