• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • printing
pwizchartcontents.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  pwizchartcontents.cpp - K Desktop Planetarium
3  -------------------
4  begin : Sun Aug 7 2011
5  copyright : (C) 2011 by Rafał Kułaga
6  email : rl.kulaga@gmail.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "pwizchartcontents.h"
19 #include "printingwizard.h"
20 #include "skyobject.h"
21 
22 PWizChartContentsUI::PWizChartContentsUI(PrintingWizard *wizard, QWidget *parent) : QFrame(parent),
23  m_ParentWizard(wizard)
24 {
25  setupUi(this);
26 
27  astComCheckBox->setChecked(false);
28  astComCheckBox->setEnabled(false);
29 }
30 
31 void PWizChartContentsUI::entered()
32 {
33  if(!m_ParentWizard->getSkyObject())
34  {
35  return;
36  }
37 
38  if(m_ParentWizard->getSkyObject()->type() == 9 ||
39  m_ParentWizard->getSkyObject()->type() == 10)
40  {
41  astComCheckBox->setChecked(true);
42  astComCheckBox->setEnabled(true);
43  }
44 }
45 
46 bool PWizChartContentsUI::isGeneralTableChecked()
47 {
48  return generalCheckBox->isChecked();
49 }
50 
51 bool PWizChartContentsUI::isPositionTableChecked()
52 {
53  return posCheckBox->isChecked();
54 }
55 
56 bool PWizChartContentsUI::isRSTTableChecked()
57 {
58  return rstCheckBox->isChecked();
59 }
60 
61 bool PWizChartContentsUI::isAstComTableChecked()
62 {
63  return astComCheckBox->isChecked();
64 }
65 
66 bool PWizChartContentsUI::isLoggingFormChecked()
67 {
68  return loggingFormBox->isChecked();
69 }
skyobject.h
PWizChartContentsUI::isPositionTableChecked
bool isPositionTableChecked()
Check if position details table is enabled.
Definition: pwizchartcontents.cpp:51
PWizChartContentsUI::isAstComTableChecked
bool isAstComTableChecked()
Check if Asteroid/Comet details table is enabled.
Definition: pwizchartcontents.cpp:61
QWidget
PWizChartContentsUI::isRSTTableChecked
bool isRSTTableChecked()
Check if Rise/Set/Transit details table is enabled.
Definition: pwizchartcontents.cpp:56
PWizChartContentsUI::isLoggingFormChecked
bool isLoggingFormChecked()
Check if logging form is enabled.
Definition: pwizchartcontents.cpp:66
PWizChartContentsUI::entered
void entered()
Enable or disable specific fields depending on the type of selected object.
Definition: pwizchartcontents.cpp:31
PWizChartContentsUI::PWizChartContentsUI
PWizChartContentsUI(PrintingWizard *wizard, QWidget *parent=0)
Constructor.
Definition: pwizchartcontents.cpp:22
PrintingWizard
Class representing Printing Wizard for KStars printed documents (currently only finder charts)...
Definition: printingwizard.h:66
printingwizard.h
SkyObject::type
int type(void) const
Definition: skyobject.h:164
PrintingWizard::getSkyObject
SkyObject * getSkyObject()
Get selected SkyObject, for which FinderChart is created.
Definition: printingwizard.h:129
PWizChartContentsUI::isGeneralTableChecked
bool isGeneralTableChecked()
Check if general details table is enabled.
Definition: pwizchartcontents.cpp:46
QFrame
pwizchartcontents.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal