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

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 <QList>
00022 #include <QAbstractTableModel>
00023 #include <kdialog.h>
00024 
00025 #include "skyobject.h"
00026 #include "ui_observinglist.h"
00027 
00028 class QSortFilterProxyModel;
00029 class QStandardItemModel;
00030 class KStars;
00031 
00032 class ObservingListUI : public QFrame, public Ui::ObservingList {
00033     Q_OBJECT
00034 
00035 public:
00038     ObservingListUI( QWidget *parent );
00039 };
00040 
00071 class ObservingList : public KDialog
00072 {
00073     Q_OBJECT
00074 
00075 public:
00078     ObservingList( KStars *_ks );
00081     ~ObservingList() {}
00082 
00086     bool contains( const SkyObject *o );
00087 
00090     bool isLarge() const { return bIsLarge; }
00091 
00094     QList<SkyObject*>& obsList() { return m_ObservingList; }
00095 
00099     SkyObject *currentObject() const { return m_CurrentObject; }
00100 
00104     void saveCurrentList();
00105 
00106 public slots:
00110     void slotAddObject( SkyObject *o=NULL );
00111 
00115     void slotRemoveSelectedObjects();
00116 
00121     void slotRemoveObject( SkyObject *o=NULL );
00122 
00125     void slotCenterObject();
00126 
00129     void slotSlewToObject();
00130 
00133     void slotDetails();
00134 
00137     void slotAVT();
00138 
00144     void slotNewSelection();
00145 
00146     //  void slotNewCurrent();
00147 
00150     void slotOpenList();
00151 
00154     void slotSaveList();
00155 
00158     void slotSaveListAs();
00159 
00162     void slotWizard();
00163 
00166     void slotToggleSize();
00167 
00171     void saveCurrentUserLog();
00172 
00173 protected slots:
00174     void slotClose();
00175 
00176 private:
00177     KStars *ks;
00178     ObservingListUI *ui;
00179     QList<SkyObject*> m_ObservingList;
00180 //    QList<SkyObject*> m_SelectedObjects;
00181     SkyObject *LogObject, *m_CurrentObject;
00182     uint noNameStars;
00183 
00184     bool isModified, bIsLarge;
00185     QString ListName, FileName;
00186 
00187     QStandardItemModel *m_Model;
00188     QSortFilterProxyModel *m_SortModel;
00189 };
00190 
00191 #endif // OBSERVINGLIST_H_

kstars

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.7
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