1 #ifndef CELESTIALBROWSER_H 2 #define CELESTIALBROWSER_H 3 #include "celengine/starbrowser.h" 4 #include "celengine/selection.h" 5 6 #include "celestialbrowserbase.uic.h" 7 #include <vector> 8 #include <qlistview.h> 9 #include "kdeapp.h" 10 11 class Simulation; 12 class CelestiaCore; 13 class Star; 14 class CelListViewItem; 15 16 class CelestialBrowser : public CelestialBrowserBase 17 { 18 Q_OBJECT 19 20 public: 21 CelestialBrowser( QWidget* parent, CelestiaCore *appCore); 22 ~CelestialBrowser(); 23 24 public slots: 25 void slotNearest(bool); 26 void slotBrightest(bool); 27 void slotBrighter(bool); 28 void slotWithPlanets(bool); 29 void slotRefresh(); 30 void slotRightClickOnStar(QListViewItem*, const QPoint&,int ); 31 32 private: 33 KdeApp *parent; 34 CelestiaCore *appCore; 35 Simulation *appSim; 36 StarBrowser sbrowser; 37 Selection browserSel; 38 void addPlanetarySystem(CelListViewItem* parentItem, const PlanetarySystem* system, const Point3d* parentBodyPos = NULL); 39 40 QString getClassification(int c) const; 41 42 }; 43 44 45 46 47 #endif // CELESTIALBROWSER_H 48