Logo Search packages:      
Sourcecode: qgo version File versions  Download package

playertable.h

/*
 *   playertable.h
 */

#ifndef PLAYERTABLE_H
#define PLAYERTABLE_H

#include <qvariant.h>
#include <qlistview.h>


class PlayerTable : public QListView
{ 
      Q_OBJECT

public:
      PlayerTable(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
      ~PlayerTable() {};
//    virtual void setSorting ( int column, bool ascending = TRUE );
      
public slots:
      virtual void slot_mouse_players(int, QListViewItem*, const QPoint&, int) {};
      
      
};


class PlayerTableItem : public QListViewItem
{ 
public:

      PlayerTableItem(PlayerTable *parent, const char *name = 0);
      PlayerTableItem(PlayerTableItem *parent, const char *name = 0);
      PlayerTableItem(PlayerTable *parent, QString label1, QString label2 = QString::null,
            QString label3 = QString::null, QString label4 = QString::null,
            QString label5 = QString::null, QString label6 = QString::null,
            QString label7 = QString::null, QString label8 = QString::null,
            QString label9 = QString::null, QString label10 = QString::null,
            QString label11 = QString::null, QString label12 = QString::null,
            QString label13 = QString::null);
      ~PlayerTableItem();

      void ownRepaint();
      void replace() ;
      
protected:
//    virtual QString key(int, bool) const;
      virtual int compare( QListViewItem *p, int col, bool ascending ) const;
      virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment);

      bool open;
      bool watched;
      bool exclude;
      bool its_me;
      bool seeking;
};

#endif // PLAYERTABLE_H

Generated by  Doxygen 1.6.0   Back to index