Source: whatsup/ModuleListView.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          ModuleListView.h  -  description
                             -------------------
    begin                : Mon Jun 10 2002
    copyright            : (C) 2002 by Andreas Pillath
    email                : pillath@gmx.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef _ModuleListView_h_
#define _ModuleListView_h_

#include 
#include 
#include 

class ModuleListView : public QListView
{
    Q_OBJECT
   public:
     ModuleListView(Config& cfg,QWidget* parent = 0, const char* name = 0);

     void setSorting(int column, bool inc);

     QString key(QString s,int column);

     void update();

     void loadSettings(Config& cfg);
     void saveSettings(Config& cfg);

     virtual void timerEvent(QTimerEvent*)   { 	update(); };

   private:
     ModuleList modules;
     int sortColumn;
     bool sortInc;
     int timerId;
};

class ModuleLVI : public QListViewItem
{
public:
	ModuleLVI(ModuleListView* mlv) : QListViewItem(mlv), _mlv(mlv) {};

  virtual QString key( int p, bool ) const {return _mlv->key(text(p),p);};
private:
  ModuleListView* _mlv;
};


#endif

Generated by: andreas on linux on Sat Jun 15 19:28:49 2002, using kdoc 2.0a53.