KDevelop API Documentation

filecreate_listitem.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Julian Rockey                                   *
00003  *   linux@jrockey.com                                                     *
00004  *   thanks: Roberto Raggi for QSimpleRichText stuff                       *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  ***************************************************************************/
00011 
00012 #ifndef __FILECREATE_LISTITEM_H__
00013 #define __FILECREATE_LISTITEM_H__
00014 
00015 #include <klistview.h>
00016 #include <qobject.h>
00017 
00018 #include "filecreate_filetype.h"
00019 
00020 class QSimpleRichText;
00021 
00022 namespace FileCreate {
00023 
00024 class ListItem : public KListViewItem {
00025 
00026 public:
00027   ListItem(QListView *listview, const FileType *filetype);
00028   ListItem(ListItem *listitem, const FileType *filetype);
00029   virtual ~ListItem();
00030 
00031   const FileType *filetype() const { return m_filetype; }
00032 
00033   virtual void setup();
00034   virtual void setHeight( int height );
00035   virtual void paintCell( QPainter* p, const QColorGroup& gc, int column, int width, int align );
00036   virtual void prepareResize();
00037 
00038 private:
00039   const FileType *m_filetype;
00040   int m_iconHeight;
00041   void init();
00042   QSimpleRichText *m_filetypeRenderer;
00043 
00044 };
00045 
00046 }
00047 
00048 #endif
00049 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:56 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003