Kstars

pwizchartcontents.cpp
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#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}
PWizChartContentsUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
bool isPositionTableChecked()
Check if position details table is enabled.
bool isAstComTableChecked()
Check if Asteroid/Comet details table is enabled.
bool isRSTTableChecked()
Check if Rise/Set/Transit details table is enabled.
bool isGeneralTableChecked()
Check if general details table is enabled.
void entered()
Enable or disable specific fields depending on the type of selected object.
bool isLoggingFormChecked()
Check if logging form is enabled.
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
SkyObject * getSkyObject()
Get selected SkyObject, for which FinderChart is created.
int type(void) const
Definition skyobject.h:188
void setupUi(QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.