00001 #ifndef CELLISTVIEWITEM_H
00002 #define CELLISTVIEWITEM_H
00003
00004 class CelListViewItem : public QListViewItem
00005 {
00006
00007 public:
00008 CelListViewItem( QListView * parent, std::string name, double dist, const char* dist_unit, double app_mag, double abs_mag, QString type);
00009 CelListViewItem( QListViewItem * parent, std::string name, double dist, const char* dist_unit, double app_mag, double abs_mag, QString type);
00010 ~CelListViewItem();
00011
00012 std::string getName() const { return name; }
00013
00014 double getDist() const { return dist; }
00015 double getAppMag() const { return app_mag; }
00016 double getAbsMag() const { return abs_mag; }
00017
00018 public slots:
00019 int compare ( QListViewItem * i, int col, bool ascending ) const;
00020
00021 private:
00022 std::string name;
00023 double dist;
00024 const char* dist_unit;
00025 double app_mag;
00026 double abs_mag;
00027 QString type;
00028 };
00029
00030 #endif // CELESTIALBROWSER_H
00031