00001 #ifndef CELESTIALBROWSER_H 00002 #define CELESTIALBROWSER_H 00003 #include "celengine/starbrowser.h" 00004 #include "celengine/selection.h" 00005 00006 #include "celestialbrowserbase.uic.h" 00007 #include <vector> 00008 #include <qlistview.h> 00009 #include "kdeapp.h" 00010 00011 class Simulation; 00012 class CelestiaCore; 00013 class Star; 00014 00015 class CelestialBrowser : public CelestialBrowserBase 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 CelestialBrowser( QWidget* parent, CelestiaCore *appCore); 00021 ~CelestialBrowser(); 00022 00023 public slots: 00024 void slotNearest(bool); 00025 void slotBrightest(bool); 00026 void slotBrighter(bool); 00027 void slotWithPlanets(bool); 00028 void slotRefresh(); 00029 void slotRightClickOnStar(QListViewItem*, const QPoint&,int ); 00030 00031 private: 00032 KdeApp *parent; 00033 CelestiaCore *appCore; 00034 Simulation *appSim; 00035 StarBrowser sbrowser; 00036 Selection browserSel; 00037 00038 QString getClassification(int c) const; 00039 00040 }; 00041 00042 00043 00044 00045 #endif // CELESTIALBROWSER_H
1.4.1