libkdepim

KFolderTree Class Reference

List of all members.

Detailed Description

Definition at line 222 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 ()
int unreadIndex () const
int totalIndex () const
bool isUnreadActive () const
bool isTotalActive () 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

Member Function Documentation

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 364 of file kfoldertree.cpp.

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

checks if the drag is acceptable

Definition at line 375 of file kfoldertree.cpp.

KPaintInfo KFolderTree::paintInfo (  )  const [inline]

returns the KPaintInfo

Definition at line 239 of file kfoldertree.h.

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

add/remove unread/total-columns

Definition at line 393 of file kfoldertree.cpp.

int KFolderTree::unreadIndex (  )  const [inline]

the current index of the unread/total column

Definition at line 248 of file kfoldertree.h.

bool KFolderTree::isUnreadActive (  )  const [inline]

is the unread/total-column active?

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 431 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 333 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 318 of file kfoldertree.cpp.


Member Data Documentation

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

for mimetypes

Definition at line 274 of file kfoldertree.h.

shared information

Definition at line 278 of file kfoldertree.h.

int KFolderTree::mUnreadIndex [protected]

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

Definition at line 282 of file kfoldertree.h.


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