25 #include <tqbitarray.h> 26 #include <tqdragobject.h> 28 #include <tdelistview.h> 29 #include <kdemacros.h> 57 showAttachment( false), 58 showInvitation( false), 62 showWatchedIgnored( false), 81 watchedIgnoredCol(-1), 86 orderOfArrival( false), 88 showCryptoIcons( false), 89 showAttachmentIcon( false), 90 showInvitationIcon( false) 101 TQColor colCloseToQuota; 109 bool showWatchedIgnored; 128 int watchedIgnoredCol; 135 bool showCryptoIcons; 136 bool showAttachmentIcon; 137 bool showInvitationIcon; 142 class KDE_EXPORT KFolderTreeItem : public TDEListViewItem 173 KFolderTreeItem( KFolderTree *parent, const TQString & label=TQString(), 174 Protocol protocol=NONE, Type type=Root ); 177 KFolderTreeItem( KFolderTreeItem *parent, const TQString & label=TQString(), 178 Protocol protocol=NONE, Type type=Other, int unread=0, int total=0 ); 181 virtual int compare( TQListViewItem * i, int col, 182 bool ascending ) const; 185 int unreadCount() { return mUnread; } 186 virtual void setUnreadCount( int aUnread ); 189 int totalCount() { return mTotal; } 190 virtual void setTotalCount( int aTotal ); 193 TQ_INT64 folderSize() { return mSize; } 194 virtual void setFolderSize( TQ_INT64 aSize ); 197 Protocol protocol() const { return mProtocol; } 198 virtual void setProtocol( Protocol aProtocol ) { mProtocol = aProtocol; } 201 Type type() const { return mType; } 202 virtual void setType( Type aType ) { mType = aType; } 205 virtual int countUnreadRecursive(); 207 virtual TQ_INT64 recursiveFolderSize() const; 210 virtual void paintCell( TQPainter * p, const TQColorGroup & cg, 211 int column, int width, int align ); 214 virtual bool acceptDrag(TQDropEvent* ) const { return true; } 216 void setFolderIsCloseToQuota( bool ); 217 bool folderIsCloseToQuota() const; 221 int protocolSortingKey() const; 223 int typeSortingKey() const; 227 virtual TQString squeezeFolderName( const TQString &text, 228 const TQFontMetrics &fm, 236 bool mFolderIsCloseToQuota; 241 class KDE_EXPORT KFolderTree : public TDEListView 247 KFolderTree( TQWidget *parent, const char *name=0 ); 253 virtual void addAcceptableDropMimetype( const char *mimeType, bool outsideOk ); 256 virtual bool acceptDrag( TQDropEvent* event ) const; 259 KPaintInfo paintInfo() const { return mPaintInfo; } 262 virtual void addUnreadColumn( const TQString & name, int width=70 ); 263 virtual void removeUnreadColumn(); 264 virtual void addTotalColumn( const TQString & name, int width=70 ); 265 virtual void removeTotalColumn(); 266 virtual void addSizeColumn( const TQString & name, int width=70 ); 267 virtual void removeSizeColumn(); 271 int unreadIndex() const { return mUnreadIndex; } 272 int totalIndex() const { return mTotalIndex; } 273 int sizeIndex() const { return mSizeIndex; } 276 bool isUnreadActive() const { return mUnreadIndex >= 0; } 277 bool isTotalActive() const { return mTotalIndex >= 0; } 278 bool isSizeActive() const { return mSizeIndex >= 0; } 281 virtual void setFullWidth( bool fullWidth ); 286 void styleChange( TQStyle& oldStyle ); 290 void setStyleDependantFrameWidth(); 292 virtual void drawContentsOffset( TQPainter * p, int ox, int oy, 293 int cx, int cy, int cw, int ch ); 295 virtual void contentsMousePressEvent( TQMouseEvent *e ); 296 virtual void contentsMouseReleaseEvent( TQMouseEvent *e ); 299 TQMemArray<const char*> mAcceptableDropMimetypes; 300 TQBitArray mAcceptOutside; 314 void slotSizeChanged( int section, int oldSize, int newSize ); Information shared by all items in a list view.
|