• 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
  • tools
obslistwizard.h
Go to the documentation of this file.
1 /***************************************************************************
2  obslistwizard.h - Display overhead view of the solar system
3  -------------------
4  begin : Thu 23 Jun 2005
5  copyright : (C) 2005 by Jason Harris
6  email : jharris@30doradus.org
7  ***************************************************************************/
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef OBSLISTWIZARD_H_
18 #define OBSLISTWIZARD_H_
19 
20 #include <kdialog.h>
21 
22 #include "ui_obslistwizard.h"
23 #include "skyobjects/skypoint.h"
24 
25 class SkyObject;
26 class GeoLocation;
27 
28 class ObsListWizardUI : public QFrame, public Ui::ObsListWizard {
29  Q_OBJECT
30 public:
31  ObsListWizardUI( QWidget *p );
32 };
33 
38 class ObsListWizard : public KDialog
39 {
40  Q_OBJECT
41 public:
43  ObsListWizard( QWidget *parent );
45  ~ObsListWizard();
46 
48  QList<SkyObject*>& obsList() { return ObsList; }
49 
50 private slots:
51  void slotNextPage();
52  void slotPrevPage();
53  void slotAllButton();
54  void slotNoneButton();
55  void slotDeepSkyButton();
56  void slotSolarSystemButton();
57  void slotChangeLocation();
58  void slotToggleDateWidgets();
59  void slotToggleMagWidgets();
60 
61  void slotParseRegion();
62 
65  void slotObjectCountDirty();
66  void slotUpdateObjectCount();
67  void slotApplyFilters() { applyFilters( true ); }
68 
69 private:
70  void initialize();
71  void applyFilters( bool doBuildList );
73  bool applyRegionFilter( SkyObject *o, bool doBuildList, bool doAdjustCount=true );
74  bool applyObservableFilter( SkyObject *o, bool doBuildList, bool doAdjustCount=true);
75 
84  bool isItemSelected( const QString &name, QListWidget *listWidget, bool *ok=0 );
93  void setItemSelected( const QString &name, QListWidget *listWidget, bool value, bool *ok=0 );
94 
95  QList<SkyObject*> ObsList;
96  ObsListWizardUI *olw;
97  uint ObjectCount, StarCount, PlanetCount, CometCount, AsteroidCount;
98  uint GalaxyCount, OpenClusterCount, GlobClusterCount, GasNebCount, PlanNebCount;
99  double xRect1, xRect2, yRect1, yRect2, rCirc;
100  SkyPoint pCirc;
101  GeoLocation *geo;
102 };
103 
104 #endif
ObsListWizardUI
Definition: obslistwizard.h:28
QWidget
KDialog
ObsListWizard::obsList
QList< SkyObject * > & obsList()
Definition: obslistwizard.h:48
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
ObsListWizard::~ObsListWizard
~ObsListWizard()
Destructor.
Definition: obslistwizard.cpp:95
ObsListWizardUI::ObsListWizardUI
ObsListWizardUI(QWidget *p)
Definition: obslistwizard.cpp:36
ObsListWizard
Wizard for constructing observing lists.
Definition: obslistwizard.h:38
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
skypoint.h
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
QFrame
QList
ObsListWizard::ObsListWizard
ObsListWizard(QWidget *parent)
Constructor.
Definition: obslistwizard.cpp:40
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