moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / fovdialog.h
blobaea38cf05cd0f18a14dfe556dfc79b76293404ae
1 /***************************************************************************
2 fovdialog.h - description
3 -------------------
4 begin : Fri 05 Sept 2003
5 copyright : (C) 2003 by Jason Harris
6 email : kstars@30doradus.org
7 ***************************************************************************/
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 ***************************************************************************/
18 #ifndef FOVDIALOG_H
19 #define FOVDIALOG_H
21 #include <qptrlist.h>
22 #include <kdialogbase.h>
23 #include "fov.h"
25 /**@class FOVDialog Dialog to select a Field-of-View indicator (or create a new one)
26 *@author Jason Harris
27 *@version 1.0
30 class KStars;
31 class FOVDialogUI;
32 class NewFOVUI;
34 class FOVDialog : public KDialogBase
36 Q_OBJECT
37 public:
38 FOVDialog( QWidget *parent=0 );
39 ~FOVDialog();
40 unsigned int currentItem() const;
41 QPtrList<FOV> FOVList;
43 protected:
44 void paintEvent( QPaintEvent * );
46 private slots:
47 void slotNewFOV();
48 void slotEditFOV();
49 void slotRemoveFOV();
50 void slotSelect(QListBoxItem*);
52 private:
53 void initList();
55 KStars *ks;
56 FOVDialogUI *fov;
59 /**@class NewFOV Dialog for defining a new FOV symbol
60 *@author Jason Harris
61 *@version 1.0
63 class NewFOV : public KDialogBase
65 Q_OBJECT
66 public:
67 NewFOV( QWidget *parent=0 );
68 ~NewFOV() {}
69 NewFOVUI *ui;
71 public slots:
72 void slotUpdateFOV();
73 void slotComputeFOV();
75 protected:
76 void paintEvent( QPaintEvent * );
78 private:
79 FOV f;
82 #endif