Kstars

pwizchartcontents.cpp
1 /*
2  SPDX-FileCopyrightText: 2011 Rafał Kułaga <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "pwizchartcontents.h"
8 #include "printingwizard.h"
9 #include "skyobject.h"
10 
12  : QFrame(parent), m_ParentWizard(wizard)
13 {
14  setupUi(this);
15 
16  astComCheckBox->setChecked(false);
17  astComCheckBox->setEnabled(false);
18 }
19 
21 {
22  if (!m_ParentWizard->getSkyObject())
23  {
24  return;
25  }
26 
27  if (m_ParentWizard->getSkyObject()->type() == 9 || m_ParentWizard->getSkyObject()->type() == 10)
28  {
29  astComCheckBox->setChecked(true);
30  astComCheckBox->setEnabled(true);
31  }
32 }
33 
35 {
36  return generalCheckBox->isChecked();
37 }
38 
40 {
41  return posCheckBox->isChecked();
42 }
43 
45 {
46  return rstCheckBox->isChecked();
47 }
48 
50 {
51  return astComCheckBox->isChecked();
52 }
53 
55 {
56  return loggingFormBox->isChecked();
57 }
bool isLoggingFormChecked()
Check if logging form is enabled.
SkyObject * getSkyObject()
Get selected SkyObject, for which FinderChart is created.
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.
int type(void) const
Definition: skyobject.h:188
bool isGeneralTableChecked()
Check if general details table is enabled.
bool isRSTTableChecked()
Check if Rise/Set/Transit details table is enabled.
void setupUi(QWidget *widget)
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.