• 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
  • dialogs
focusdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  focusdialog.h - description
3  -------------------
4  begin : Sat Mar 23 2002
5  copyright : (C) 2002 by Jason Harris
6  email : kstars@30doradus.org
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 FOCUSDIALOG_H_
19 #define FOCUSDIALOG_H_
20 
21 #include <kdialog.h>
22 
23 #include "ui_focusdialog.h"
24 
25 #include "skyobjects/skypoint.h"
26 class KStars;
27 
28 class FocusDialogUI : public QFrame, public Ui::FocusDialog {
29  Q_OBJECT
30 public:
31  explicit FocusDialogUI( QWidget *parent=0 );
32 };
33 
34 
40 class FocusDialog : public KDialog {
41  Q_OBJECT
42 public:
44  explicit FocusDialog( KStars *_ks );
45 
47  ~FocusDialog();
48 
50  inline SkyPoint& point() { return Point; }
51 
53  QSize sizeHint() const;
54 
56  inline bool usedAltAz() const { return UsedAltAz; }
57 
61  void activateAzAltPage() const;
62 
69  long double epochToJd (double epoch);
70 
78  double getEpoch (const QString &eName);
79 
80 public slots:
82  void checkLineEdits();
83 
87  void validatePoint();
88 
89 private:
90  KStars *ks;
91  SkyPoint Point;
92  FocusDialogUI *fd;
93  bool UsedAltAz;
94 };
95 
96 #endif
FocusDialog::sizeHint
QSize sizeHint() const
Definition: focusdialog.cpp:156
FocusDialog
A small dialog for setting the focus coordinates manually.
Definition: focusdialog.h:40
FocusDialog::point
SkyPoint & point()
Definition: focusdialog.h:50
FocusDialog::getEpoch
double getEpoch(const QString &eName)
Convert a string to an epoch number; essentially just converts the string to a double.
Definition: focusdialog.cpp:131
QWidget
FocusDialog::epochToJd
long double epochToJd(double epoch)
Convenience function to convert an epoch number (e.g., 2000.0) to the corresponding Julian Day number...
Definition: focusdialog.cpp:141
KDialog
KStars
This is the main window for KStars.
Definition: kstars.h:94
FocusDialogUI
Definition: focusdialog.h:28
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
FocusDialog::validatePoint
void validatePoint()
Attempt to interpret the text in the KLineEdits as Ra and Dec values.
Definition: focusdialog.cpp:79
FocusDialog::~FocusDialog
~FocusDialog()
Destructor (empty).
Definition: focusdialog.cpp:64
skypoint.h
FocusDialog::checkLineEdits
void checkLineEdits()
If text has been entered in both KLineEdits, enable the Ok button.
Definition: focusdialog.cpp:67
FocusDialog::usedAltAz
bool usedAltAz() const
Definition: focusdialog.h:56
QFrame
FocusDialogUI::FocusDialogUI
FocusDialogUI(QWidget *parent=0)
Definition: focusdialog.cpp:32
FocusDialog::FocusDialog
FocusDialog(KStars *_ks)
Constructor.
Definition: focusdialog.cpp:36
FocusDialog::activateAzAltPage
void activateAzAltPage() const
Show the Az/Alt page instead of the RA/Dec page.
Definition: focusdialog.cpp:161
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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