kstars
fovdialog.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 fovdialog.h - description 00003 ------------------- 00004 begin : Fri 05 Sept 2003 00005 copyright : (C) 2003 by Jason Harris 00006 email : kstars@30doradus.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef FOVDIALOG_H 00019 #define FOVDIALOG_H 00020 00021 #include <qptrlist.h> 00022 #include <kdialogbase.h> 00023 #include "fov.h" 00024 00030 class KStars; 00031 class FOVDialogUI; 00032 class NewFOVUI; 00033 00034 class FOVDialog : public KDialogBase 00035 { 00036 Q_OBJECT 00037 public: 00038 FOVDialog( QWidget *parent=0 ); 00039 ~FOVDialog(); 00040 unsigned int currentItem() const; 00041 QPtrList<FOV> FOVList; 00042 00043 protected: 00044 void paintEvent( QPaintEvent * ); 00045 00046 private slots: 00047 void slotNewFOV(); 00048 void slotEditFOV(); 00049 void slotRemoveFOV(); 00050 void slotSelect(QListBoxItem*); 00051 00052 private: 00053 void initList(); 00054 00055 KStars *ks; 00056 FOVDialogUI *fov; 00057 }; 00058 00063 class NewFOV : public KDialogBase 00064 { 00065 Q_OBJECT 00066 public: 00067 NewFOV( QWidget *parent=0 ); 00068 ~NewFOV() {} 00069 NewFOVUI *ui; 00070 00071 public slots: 00072 void slotUpdateFOV(); 00073 void slotComputeFOV(); 00074 00075 protected: 00076 void paintEvent( QPaintEvent * ); 00077 00078 private: 00079 FOV f; 00080 }; 00081 00082 #endif