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 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           */
43     bool isPositionTableChecked();
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
68