26 #include <tqbitarray.h> 27 #include <tqdragobject.h> 29 #include <tdelistview.h> 30 #include <tdepimmacros.h> 58 showAttachment( false), 59 showInvitation( false), 63 showWatchedIgnored( false), 82 watchedIgnoredCol(-1), 87 orderOfArrival( false), 89 showCryptoIcons( false), 90 showAttachmentIcon( false), 91 showInvitationIcon( false) 102 TQColor colCloseToQuota; 110 bool showWatchedIgnored; 129 int watchedIgnoredCol; 136 bool showCryptoIcons; 137 bool showAttachmentIcon; 138 bool showInvitationIcon; 143 class KDE_EXPORT KFolderTreeItem : public TDEListViewItem 174 KFolderTreeItem( KFolderTree *parent, const TQString & label=TQString(), 175 Protocol protocol=NONE, Type type=Root ); 178 KFolderTreeItem( KFolderTreeItem *parent, const TQString & label=TQString(), 179 Protocol protocol=NONE, Type type=Other, int unread=0, int total=0 ); 182 virtual int compare( TQListViewItem * i, int col, 183 bool ascending ) const; 186 int unreadCount() { return mUnread; } 187 virtual void setUnreadCount( int aUnread ); 190 int totalCount() { return mTotal; } 191 virtual void setTotalCount( int aTotal ); 194 TQ_INT64 folderSize() { return mSize; } 195 virtual void setFolderSize( TQ_INT64 aSize ); 198 Protocol protocol() const { return mProtocol; } 199 virtual void setProtocol( Protocol aProtocol ) { mProtocol = aProtocol; } 202 Type type() const { return mType; } 203 virtual void setType( Type aType ) { mType = aType; } 206 virtual int countUnreadRecursive(); 208 virtual TQ_INT64 recursiveFolderSize() const; 211 virtual void paintCell( TQPainter * p, const TQColorGroup & cg, 212 int column, int width, int align ); 215 virtual bool acceptDrag(TQDropEvent* ) const { return true; } 217 void setFolderIsCloseToQuota( bool ); 218 bool folderIsCloseToQuota() const; 222 int protocolSortingKey() const; 224 int typeSortingKey() const; 228 virtual TQString squeezeFolderName( const TQString &text, 229 const TQFontMetrics &fm, 237 bool mFolderIsCloseToQuota; 242 class KDE_EXPORT KFolderTree : public TDEListView 248 KFolderTree( TQWidget *parent, const char *name=0 ); 254 virtual void addAcceptableDropMimetype( const char *mimeType, bool outsideOk ); 257 virtual bool acceptDrag( TQDropEvent* event ) const; 260 KPaintInfo paintInfo() const { return mPaintInfo; } 263 virtual void addUnreadColumn( const TQString & name, int width=70 ); 264 virtual void removeUnreadColumn(); 265 virtual void addTotalColumn( const TQString & name, int width=70 ); 266 virtual void removeTotalColumn(); 267 virtual void addSizeColumn( const TQString & name, int width=70 ); 268 virtual void removeSizeColumn(); 272 int unreadIndex() const { return mUnreadIndex; } 273 int totalIndex() const { return mTotalIndex; } 274 int sizeIndex() const { return mSizeIndex; } 277 bool isUnreadActive() const { return mUnreadIndex >= 0; } 278 bool isTotalActive() const { return mTotalIndex >= 0; } 279 bool isSizeActive() const { return mSizeIndex >= 0; } 282 virtual void setFullWidth( bool fullWidth ); 287 void styleChange( TQStyle& oldStyle ); 291 void setStyleDependantFrameWidth(); 293 virtual void drawContentsOffset( TQPainter * p, int ox, int oy, 294 int cx, int cy, int cw, int ch ); 296 virtual void contentsMousePressEvent( TQMouseEvent *e ); 297 virtual void contentsMouseReleaseEvent( TQMouseEvent *e ); 300 TQMemArray<const char*> mAcceptableDropMimetypes; 301 TQBitArray mAcceptOutside; 315 void slotSizeChanged( int section, int oldSize, int newSize ); Information shared by all items in a list view.
|