libkdepim

KFolderTree Class Reference

List of all members.

Detailed Description

Definition at line 235 of file kfoldertree.h.


Public Member Functions

 KFolderTree (QWidget *parent, const char *name=0)
virtual void addAcceptableDropMimetype (const char *mimeType, bool outsideOk)
virtual bool acceptDrag (QDropEvent *event) const
KPaintInfo paintInfo () const
virtual void addUnreadColumn (const QString &name, int width=70)
virtual void removeUnreadColumn ()
virtual void addTotalColumn (const QString &name, int width=70)
virtual void removeTotalColumn ()
virtual void addSizeColumn (const QString &name, int width=70)
virtual void removeSizeColumn ()
int unreadIndex () const
int totalIndex () const
int sizeIndex () const
bool isUnreadActive () const
bool isTotalActive () const
bool isSizeActive () const
virtual void setFullWidth (bool fullWidth)

Protected Member Functions

void styleChange (QStyle &oldStyle)
void setStyleDependantFrameWidth ()
virtual void drawContentsOffset (QPainter *p, int ox, int oy, int cx, int cy, int cw, int ch)
virtual void contentsMousePressEvent (QMouseEvent *e)
virtual void contentsMouseReleaseEvent (QMouseEvent *e)

Protected Attributes

QMemArray< const char * > mAcceptableDropMimetypes
QBitArray mAcceptOutside
KPaintInfo mPaintInfo
int mUnreadIndex
int mTotalIndex
int mSizeIndex

Member Function Documentation

bool KFolderTree::acceptDrag QDropEvent *  event  )  const [virtual]
 

checks if the drag is acceptable

Definition at line 446 of file kfoldertree.cpp.

void KFolderTree::addAcceptableDropMimetype const char *  mimeType,
bool  outsideOk
[virtual]
 

registers MIMETypes that are handled

Parameters:
mimeType the name of the MIMEType
outsideOk accept drops of this type even if the mouse cursor is not on top of an item

Definition at line 435 of file kfoldertree.cpp.

void KFolderTree::addUnreadColumn const QString &  name,
int  width = 70
[virtual]
 

add/remove unread/total-columns

Definition at line 464 of file kfoldertree.cpp.

bool KFolderTree::isUnreadActive  )  const [inline]
 

is the unread/total-column active?

Definition at line 269 of file kfoldertree.h.

KPaintInfo KFolderTree::paintInfo  )  const [inline]
 

returns the KPaintInfo

Definition at line 252 of file kfoldertree.h.

void KFolderTree::setFullWidth bool  fullWidth  )  [virtual]
 

reimp to set full width of the _first_ column

Definition at line 529 of file kfoldertree.cpp.

void KFolderTree::setStyleDependantFrameWidth  )  [protected]
 

Set the width of the frame to a reasonable value for the current GUI style.

Definition at line 389 of file kfoldertree.cpp.

void KFolderTree::styleChange QStyle &  oldStyle  )  [protected]
 

reimplemented in order to update the frame width in case of a changed GUI style

Definition at line 404 of file kfoldertree.cpp.

int KFolderTree::unreadIndex  )  const [inline]
 

the current index of the unread/total column

Definition at line 264 of file kfoldertree.h.


Member Data Documentation

QMemArray<const char*> KFolderTree::mAcceptableDropMimetypes [protected]
 

for mimetypes

Definition at line 292 of file kfoldertree.h.

KPaintInfo KFolderTree::mPaintInfo [protected]
 

shared information

Definition at line 296 of file kfoldertree.h.

int KFolderTree::mUnreadIndex [protected]
 

current index of unread/total-column -1 is deactivated

Definition at line 300 of file kfoldertree.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys