• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkdepim

KPIM::KFolderTree

KPIM::KFolderTree Class Reference

#include <kfoldertree.h>

Inheritance diagram for KPIM::KFolderTree:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 237 of file kfoldertree.h.


Public Member Functions

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

Protected Member Functions

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

Protected Attributes

QVector< QString > mAcceptableDropMimetypes
QVector< bool > mAcceptOutside
KPaintInfo mPaintInfo
int mSizeIndex
int mTotalIndex
int mUnreadIndex

Constructor & Destructor Documentation

KFolderTree::KFolderTree ( QWidget *  parent,
const char *  name = 0 
) [explicit]

Definition at line 391 of file kfoldertree.cpp.


Member Function Documentation

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

checks if the drag is acceptable

Definition at line 474 of file kfoldertree.cpp.

void KFolderTree::addAcceptableDropMimetype ( const QString &  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 467 of file kfoldertree.cpp.

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

Definition at line 543 of file kfoldertree.cpp.

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

Definition at line 500 of file kfoldertree.cpp.

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

add/remove unread/total-columns

Definition at line 492 of file kfoldertree.cpp.

void KFolderTree::contentsMousePressEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 453 of file kfoldertree.cpp.

void KFolderTree::contentsMouseReleaseEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 460 of file kfoldertree.cpp.

void KFolderTree::drawContentsOffset ( QPainter *  p,
int  ox,
int  oy,
int  cx,
int  cy,
int  cw,
int  ch 
) [protected, virtual]

Definition at line 442 of file kfoldertree.cpp.

bool KPIM::KFolderTree::isSizeActive (  )  const [inline]

Definition at line 272 of file kfoldertree.h.

bool KPIM::KFolderTree::isTotalActive (  )  const [inline]

Definition at line 271 of file kfoldertree.h.

bool KPIM::KFolderTree::isUnreadActive (  )  const [inline]

is the unread/total-column active?

Definition at line 270 of file kfoldertree.h.

KPaintInfo KPIM::KFolderTree::paintInfo (  )  const [inline]

returns the KPaintInfo

Definition at line 254 of file kfoldertree.h.

void KFolderTree::removeSizeColumn (  )  [virtual]

Definition at line 553 of file kfoldertree.cpp.

void KFolderTree::removeTotalColumn (  )  [virtual]

Definition at line 526 of file kfoldertree.cpp.

void KFolderTree::removeUnreadColumn (  )  [virtual]

Definition at line 508 of file kfoldertree.cpp.

void KFolderTree::setFullWidth ( bool  fullWidth  )  [virtual]

reimp to set full width of the _first_ column

Definition at line 570 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 417 of file kfoldertree.cpp.

int KPIM::KFolderTree::sizeIndex (  )  const [inline]

Definition at line 267 of file kfoldertree.h.

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

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

Definition at line 435 of file kfoldertree.cpp.

int KPIM::KFolderTree::totalIndex (  )  const [inline]

Definition at line 266 of file kfoldertree.h.

int KPIM::KFolderTree::unreadIndex (  )  const [inline]

the current index of the unread/total column

Definition at line 265 of file kfoldertree.h.


Member Data Documentation

QVector<QString> KPIM::KFolderTree::mAcceptableDropMimetypes [protected]

for mimetypes

Definition at line 293 of file kfoldertree.h.

QVector<bool> KPIM::KFolderTree::mAcceptOutside [protected]

Definition at line 294 of file kfoldertree.h.

KPaintInfo KPIM::KFolderTree::mPaintInfo [protected]

shared information

Definition at line 297 of file kfoldertree.h.

int KPIM::KFolderTree::mSizeIndex [protected]

Definition at line 303 of file kfoldertree.h.

int KPIM::KFolderTree::mTotalIndex [protected]

Definition at line 302 of file kfoldertree.h.

int KPIM::KFolderTree::mUnreadIndex [protected]

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

Definition at line 301 of file kfoldertree.h.


The documentation for this class was generated from the following files:
  • kfoldertree.h
  • kfoldertree.cpp

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal