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

kstars

FocusDialog Class Reference

#include <focusdialog.h>

Inheritance diagram for FocusDialog:

Inheritance graph
[legend]

List of all members.


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.


Public Slots

void checkLineEdits ()
void validatePoint ()

Public Member Functions

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

Constructor & Destructor Documentation

FocusDialog::FocusDialog ( KStars *  _ks  ) 

Constructor.

Definition at line 36 of file focusdialog.cpp.

FocusDialog::~FocusDialog (  ) 

Destructor (empty).

Definition at line 64 of file focusdialog.cpp.


Member Function Documentation

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::activateAzAltPage (  )  const

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

Definition at line 161 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:
epoch the 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:
eName the 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.

void FocusDialog::checkLineEdits (  )  [slot]

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

Definition at line 67 of file focusdialog.cpp.

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

kstars

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal