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

kstars

Public Slots | Public Member Functions | List of all members
FocusDialog Class Reference

#include <focusdialog.h>

Inheritance diagram for FocusDialog:
Inheritance graph
[legend]

Public Slots

void checkLineEdits ()
 
void validatePoint ()
 

Public Member Functions

 FocusDialog (KStars *_ks)
 
 ~FocusDialog ()
 
void activateAzAltPage () const
 
long double epochToJd (double epoch)
 
double getEpoch (const QString &eName)
 
SkyPoint & point ()
 
QSize sizeHint () const
 
bool usedAltAz () const
 

Detailed Description

A small dialog for setting the focus coordinates manually.

Author
Jason Harris
Version
1.0

Definition at line 40 of file focusdialog.h.

Constructor & Destructor Documentation

FocusDialog::FocusDialog ( KStars *  _ks)
explicit

Constructor.

Definition at line 36 of file focusdialog.cpp.

FocusDialog::~FocusDialog ( )

Destructor (empty).

Definition at line 64 of file focusdialog.cpp.

Member Function Documentation

void FocusDialog::activateAzAltPage ( ) const

Show the Az/Alt page instead of the RA/Dec page.

Definition at line 161 of file focusdialog.cpp.

void FocusDialog::checkLineEdits ( )
slot

If text has been entered in both KLineEdits, enable the Ok button.

Definition at line 67 of file focusdialog.cpp.

long double FocusDialog::epochToJd ( double  epoch)

Convenience function to convert an epoch number (e.g., 2000.0) to the corresponding Julian Day number (e.g., 2451545.0).

Parameters
epochthe epoch value to be converted. FIXME: This should probably move to KStarsDateTime

Definition at line 141 of file focusdialog.cpp.

double FocusDialog::getEpoch ( const QString &  eName)

Convert a string to an epoch number; essentially just converts the string to a double.

Parameters
eNamethe tring representation of the epoch number.
Returns
the epoch number described by the string argument. FIXME: This should probably move to KStarsDateTime

Definition at line 131 of file focusdialog.cpp.

SkyPoint& FocusDialog::point ( )
inline
Returns
pointer to the SkyPoint described by the entered RA, Dec

Definition at line 50 of file focusdialog.h.

QSize FocusDialog::sizeHint ( ) const
Returns
suggested size of focus window.

Definition at line 156 of file focusdialog.cpp.

bool FocusDialog::usedAltAz ( ) const
inline
Returns
whether user set the AltAz coords

Definition at line 56 of file focusdialog.h.

void FocusDialog::validatePoint ( )
slot

Attempt to interpret the text in the KLineEdits as Ra and Dec values.

If the point is validated, close the window.

Definition at line 79 of file focusdialog.cpp.


The documentation for this class was generated from the following files:
  • focusdialog.h
  • focusdialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 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