00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __konq_textviewitem_h__
00021 #define __konq_textviewitem_h__
00022
00023 #include <tqlistview.h>
00024 #include <tqstring.h>
00025 #include <kio/global.h>
00026 #include <klocale.h>
00027 #include "konq_listviewitems.h"
00028 #include "konq_textviewwidget.h"
00029
00030 class KFileItem;
00031 class TQPainter;
00032
00033 #define KTVI_REGULAR 0
00034 #define KTVI_REGULARLINK 1
00035 #define KTVI_EXEC 2
00036 #define KTVI_DIR 3
00037 #define KTVI_DIRLINK 4
00038 #define KTVI_BADLINK 5
00039 #define KTVI_SOCKET 6
00040 #define KTVI_CHARDEV 7
00041 #define KTVI_BLOCKDEV 8
00042 #define KTVI_FIFO 9
00043 #define KTVI_UNKNOWN 10
00044
00045
00046 class KonqTextViewItem : public KonqBaseListViewItem
00047 {
00048 public:
00054 KonqTextViewItem( KonqTextViewWidget *_parent, KFileItem* _fileitem );
00055 virtual ~KonqTextViewItem() { };
00056 virtual int compare( TQListViewItem* i, int col, bool ascending ) const;
00057
00060 virtual void paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _alignment );
00061
00062 virtual void updateContents();
00063
00064 protected:
00065 virtual void setup();
00066 int type;
00067 };
00068
00069 inline KonqTextViewItem::KonqTextViewItem( KonqTextViewWidget *_parent, KFileItem* _fileitem )
00070 :KonqBaseListViewItem( _parent,_fileitem )
00071 {
00072 updateContents();
00073 }
00074
00075 #endif