KDevelop API Documentation

filelist_item.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Jens Dagerbo                                    *
00003  *   jens.dagerbo@swipnet.se                                               *
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  ***************************************************************************/
00011 
00012 #ifndef __FILELIST_ITEM_H__
00013 #define __FILELIST_ITEM_H__
00014 
00015 
00016 #include <qlistview.h>
00017 
00018 #include <kurl.h>
00019          
00020 #include <kdevpartcontroller.h>
00021          
00022 class FileListItem : public QListViewItem
00023 {
00024 public:
00025     FileListItem( QListView * parent, KURL const & url, DocumentState = Clean );
00026     
00027     KURL url();
00028     
00029     DocumentState state();
00030     void setState( DocumentState );
00031     
00032     bool isActive();
00033     static void setActive( FileListItem * item );
00034     
00035 private:
00036     virtual void setHeight( int );  // override of QListViewItem::setHeight()
00037     virtual void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int align );   // override of QListViewItem::paintCell()
00038     
00039     KURL _url;
00040     DocumentState _state;
00041     
00042     static FileListItem * s_activeItem;
00043     
00044 };
00045 
00046 
00047 
00048 #endif
00049 
00050 // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
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:57 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003