File indexing completed on 2024-04-21 14:46:31
0001 /* 0002 SPDX-FileCopyrightText: 2011 Rafał Kułaga <rl.kulaga@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PWIZCHARTCONTENTS_H 0008 #define PWIZCHARTCONTENTS_H 0009 0010 #include "ui_pwizchartcontents.h" 0011 0012 class PrintingWizard; 0013 0014 /** 0015 * \class PWizChartContentsUI 0016 * \brief User interface for "Configure chart contents" step of the Printing Wizard. 0017 * \author Rafał Kułaga 0018 */ 0019 class PWizChartContentsUI : public QFrame, public Ui::PWizChartContents 0020 { 0021 Q_OBJECT 0022 public: 0023 /** 0024 * \brief Constructor. 0025 */ 0026 explicit PWizChartContentsUI(PrintingWizard *wizard, QWidget *parent = nullptr); 0027 0028 /** 0029 * \brief Enable or disable specific fields depending on the type of selected object. 0030 */ 0031 void entered(); 0032 0033 /** 0034 * \brief Check if general details table is enabled. 0035 * \return True if general details table is enabled. 0036 */ 0037 bool isGeneralTableChecked(); 0038 0039 /** 0040 * \brief Check if position details table is enabled. 0041 * \return True if position details table is enabled. 0042 */ 0043 bool isPositionTableChecked(); 0044 0045 /** 0046 * \brief Check if Rise/Set/Transit details table is enabled. 0047 * \return True if Rise/Set/Transit details table is enabled. 0048 */ 0049 bool isRSTTableChecked(); 0050 0051 /** 0052 * \brief Check if Asteroid/Comet details table is enabled. 0053 * \return True if Asteroid/Comet details table is enabled. 0054 */ 0055 bool isAstComTableChecked(); 0056 0057 /** 0058 * \brief Check if logging form is enabled. 0059 * \return True if logging form is enabled. 0060 */ 0061 bool isLoggingFormChecked(); 0062 0063 private: 0064 PrintingWizard *m_ParentWizard; 0065 }; 0066 0067 #endif // PWIZCHARTCONTENTS_H