kstars
observinglist.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 observinglist.h - K Desktop Planetarium 00003 ------------------- 00004 begin : 29 Nov 2004 00005 copyright : (C) 2004 by Jeff Woods, Jason Harris 00006 email : jcwoods@bellsouth.net, jharris@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 OBSERVINGLIST_H 00019 #define OBSERVINGLIST_H 00020 00021 #include <kdialogbase.h> 00022 #include "skyobject.h" 00023 00024 class KStars; 00025 class ObservingListUI; 00026 class QStringList; 00027 00058 class ObservingList : public KDialogBase 00059 { 00060 Q_OBJECT 00061 00062 public: 00065 ObservingList( KStars *_ks, QWidget* parent = 0 ); 00068 ~ObservingList() {} 00069 00073 bool contains( const SkyObject *o ); 00074 00075 SkyObject* first() { return obsList.first(); } 00076 SkyObject* next() { return obsList.next(); } 00077 uint count() const { return obsList.count(); } 00078 00081 bool isLarge() const { return bIsLarge; } 00082 00086 void saveCurrentList(); 00087 00088 public slots: 00092 void slotPrepTable( QWidget *tab ); 00093 00097 void slotAddObject( SkyObject *o=NULL ); 00098 00102 void slotRemoveObjects(); 00103 00108 void slotRemoveObject( SkyObject *o=NULL ); 00109 00112 void slotCenterObject(); 00113 00116 void slotSlewToObject(); 00117 00120 void slotDetails(); 00121 00124 void slotAVT(); 00125 00131 void slotNewSelection(); 00132 00135 void slotOpenList(); 00136 00139 void slotSaveList(); 00140 00143 void slotSaveListAs(); 00144 00147 void slotWizard(); 00148 00151 void slotToggleSize(); 00152 00156 void saveCurrentUserLog(); 00157 00158 protected slots: 00159 void slotClose(); 00160 00161 private: 00162 void syncTableSelection( bool syncFullTable=true ); 00163 00164 KStars *ks; 00165 ObservingListUI *ui; 00166 QPtrList<SkyObject> obsList; 00167 QPtrList<SkyObject> SelectedObjects; 00168 SkyObject *LogObject, *oCurrent; 00169 uint noNameStars; 00170 00171 bool isModified, bIsLarge; 00172 QString ListName, FileName; 00173 }; 00174 00175 #endif // OBSERVINGLIST_H