1 /***************************************************************************
2 focusdialog.h - description
4 begin : Sat Mar 23 2002
5 copyright : (C) 2002 by Jason Harris
6 email : kstars@30doradus.org
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
21 #include <kdialogbase.h>
22 #include "focusdialogdlg.h"
31 *@short A small dialog for setting the focus coordinates manually.
36 class FocusDialog
: public KDialogBase
{
40 FocusDialog( QWidget
*parent
=0 );
42 /**Destructor (empty). */
45 /**@return pointer to the SkyPoint described by the entered RA, Dec */
46 SkyPoint
* point() const { return Point
; }
48 /**@return suggested size of focus window. */
49 QSize
sizeHint() const;
51 /**@return whether user set the AltAz coords */
52 bool usedAltAz() const { return UsedAltAz
; }
54 void activateAzAltPage();
55 long double epochToJd (double epoch
);
57 double getEpoch (QString eName
);
60 /**If text has been entered in both KLineEdits, enable the Ok button. */
61 void checkLineEdits();
63 /**Attempt to interpret the text in the KLineEdits as Ra and Dec values.
64 *If the point is validated, close the window.
71 QHBoxLayout
*hlayRA
, *hlayDec
;
72 KLineEdit
*editRA
, *editDec
;