Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

linklistboxitem.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   linklistboxitem.h                                                             *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   Read the file COPYING for details.                                    *
00011  *                                                                         *
00012  *   copyright: (C) 2003 by Jan Mueller                                    *
00013  *   email: janmueller7@hotmail.com                                        *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef LinkListBoxItem_h
00018 #define LinkListBoxItem_h
00019 #include <qlistview.h>
00020 #include "liturl.h"
00021 #include <qcolor.h>
00022 #include <qpalette.h>
00023 #include <qpixmap.h>
00024 
00025 class LinkListBoxItem : public QListViewItem  {
00026     LitUrl u;
00027     QColor textcolor;
00028     QColor backgrcolor;
00029     QString orderprefix;
00030     
00031 public:
00032   LinkListBoxItem(QListView *listbox, QString title, LitUrl url, QPixmap pm=QPixmap());
00033   LinkListBoxItem(QListView *listbox, LitUrl url, QListViewItem *after,  QPixmap pm=QPixmap());
00034   LinkListBoxItem(QListViewItem *parent, QString title, LitUrl url, QPixmap pm=QPixmap());
00035   LinkListBoxItem(QListViewItem *parent, LitUrl url, QListViewItem *after,  QPixmap pm=QPixmap());
00036   void init();
00037   void  paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment);
00038   LitUrl url();  
00039   void setTextColor(const QColor& c);
00040   void setBackgroundColor(const QColor& c);     
00041   void setOrderPrefix(QString p);
00042   virtual const QString key(int column, bool ascending);    
00043   ~LinkListBoxItem();
00044 };
00045 #endif

Generated on Sat Mar 27 19:20:39 2004 for Literature by doxygen 1.3.6-20040222