• 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
  • whatsinteresting
wiequipsettings.h
Go to the documentation of this file.
1 /***************************************************************************
2  wiequipsettings.h - K Desktop Planetarium
3  -------------------
4  begin : 2013/09/01
5  copyright : (C) 2013 by Samikshan Bairagya
6  email : samikshan@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 #ifndef WI_EQUIP_SETTINGS_H
19 #define WI_EQUIP_SETTINGS_H
20 
21 #define INVALID_APERTURE -1
22 
23 #include "ui_wiequipsettings.h"
24 #include "obsconditions.h"
25 #include "oal/scope.h"
26 
27 class KStars;
28 
34 class WIEquipSettings : public QFrame, public Ui::WIEquipSettings
35 {
36  Q_OBJECT
37 public:
41  enum ScopeItemRoles { Vendor = Qt::UserRole + 4, Model, Aperture, FocalLength, Type };
42 
46  WIEquipSettings(KStars *ks);
47 
51  inline double getAperture() { return m_Aperture; }
52 
56  void setAperture();
57 
61  inline ObsConditions::TelescopeType getTelType() { return m_TelType; }
62 
66  void populateScopeListWidget();
67 
68 private:
69  KStars *m_Ks;
70  QList<OAL::Scope *> m_ScopeList;
71  double m_Aperture;
72  ObsConditions::TelescopeType m_TelType;
73 
74 private slots:
78  void slotTelescopeCheck(bool on);
79 
83  void slotBinocularsCheck(bool on);
84 
88  void slotNoEquipCheck(bool on);
89 
93  void slotScopeSelected(QListWidgetItem *scopeItem);
94 
98  void slotSaveNewScope();
99 };
100 
101 #endif
WIEquipSettings::Aperture
Definition: wiequipsettings.h:41
KStars
This is the main window for KStars.
Definition: kstars.h:94
WIEquipSettings::ScopeItemRoles
ScopeItemRoles
Definition: wiequipsettings.h:41
WIEquipSettings::Model
Definition: wiequipsettings.h:41
scope.h
WIEquipSettings::getAperture
double getAperture()
Inline method to return aperture.
Definition: wiequipsettings.h:51
WIEquipSettings::setAperture
void setAperture()
Set aperture to use.
Definition: wiequipsettings.cpp:126
WIEquipSettings::getTelType
ObsConditions::TelescopeType getTelType()
Inline method to return telescope type.
Definition: wiequipsettings.h:61
WIEquipSettings::populateScopeListWidget
void populateScopeListWidget()
Populates scope list widget in UI with list of telescopes from KStars userdb.
Definition: wiequipsettings.cpp:43
WIEquipSettings::Vendor
Definition: wiequipsettings.h:41
QFrame
WIEquipSettings::FocalLength
Definition: wiequipsettings.h:41
obsconditions.h
ObsConditions::TelescopeType
TelescopeType
Telescope Type (Reflector/Refractor)
Definition: obsconditions.h:44
WIEquipSettings::WIEquipSettings
WIEquipSettings(KStars *ks)
Constructor.
Definition: wiequipsettings.cpp:27
WIEquipSettings::Type
Definition: wiequipsettings.h:41
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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