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

knode

Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
KNCollectionView Class Reference

#include <kncollectionview.h>

Inheritance diagram for KNCollectionView:
Inheritance graph
[legend]

Public Slots

void activateFolder (KNFolder::Ptr f)
 
void addAccount (KNNntpAccount::Ptr a)
 
void addFolder (KNFolder::Ptr f)
 
void addGroup (KNGroup::Ptr g)
 
void addPendingFolders ()
 
void decCurrentFolder ()
 
void incCurrentFolder ()
 
void nextGroup ()
 
void prevGroup ()
 
void reload ()
 
void reloadAccounts ()
 
void reloadFolders ()
 
void removeAccount (KNNntpAccount::Ptr a)
 
void removeFolder (KNFolder::Ptr f)
 
void removeGroup (KNGroup::Ptr g)
 
void selectCurrentFolder ()
 
void updateAccount (KNNntpAccount::Ptr a)
 
void updateFolder (KNFolder::Ptr f)
 
void updateGroup (KNGroup::Ptr g)
 

Signals

void contextMenu (QTreeWidgetItem *item, const QPoint &position)
 
- Signals inherited from KPIM::FolderTreeWidget
void renamed (QTreeWidgetItem *item)
 
- Signals inherited from KPIM::TreeWidget
void columnVisibilityChanged (int logicalIndex)
 

Public Member Functions

 KNCollectionView (QWidget *parent)
 
 ~KNCollectionView ()
 
void readConfig ()
 
void setActive (QTreeWidgetItem *item)
 
void writeConfig ()
 
- Public Member Functions inherited from KPIM::FolderTreeWidget
 FolderTreeWidget (QWidget *parent, const char *name=0)
 
int addDataSizeColumn (const QString &headerLabel)
 
int addLabelColumn (const QString &headerLabel)
 
int addTotalColumn (const QString &headerLabel)
 
int addUnreadColumn (const QString &headerLabel)
 
const QColor & closeToQuotaWarningColor () const
 
int dataSizeColumnIndex () const
 
bool dataSizeColumnVisible () const
 
int labelColumnIndex () const
 
bool labelColumnVisible () const
 
void setCloseToQuotaWarningColor (const QColor &clr)
 
void setUnreadCountColor (const QColor &clr)
 
int totalColumnIndex () const
 
bool totalColumnVisible () const
 
int unreadColumnIndex () const
 
bool unreadColumnVisible () const
 
const QColor & unreadCountColor () const
 
void updateColumnForItem (FolderTreeWidgetItem *item, int columnIndex)
 
- Public Member Functions inherited from KPIM::TreeWidget
 TreeWidget (QWidget *parent, const char *name=0)
 
int addColumn (const QString &label, int headerAlignment=Qt::AlignLeft|Qt::AlignVCenter)
 
virtual bool fillHeaderContextMenu (KMenu *menu, const QPoint &clickPoint)
 
QTreeWidgetItem * firstItem () const
 
bool isColumnHidden (int logicalIndex) const
 
QTreeWidgetItem * lastItem () const
 
bool manualColumnHidingEnabled () const
 
bool restoreLayout (KConfigGroup &group, const QString &keyName=QString())
 
bool restoreLayout (KConfig *config, const QString &groupName, const QString &keyName=QString())
 
bool saveLayout (KConfigGroup &group, const QString &keyName=QString()) const
 
bool saveLayout (KConfig *config, const QString &groupName, const QString &keyName=QString()) const
 
void setColumnHidden (int logicalIndex, bool hide)
 
bool setColumnText (int columnIndex, const QString &label)
 
void setManualColumnHidingEnabled (bool enable)
 
void toggleColumn (int logicalIndex)
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
void handleDragNDropEvent (QDropEvent *event, bool enforceDrop)
 
virtual QStringList mimeTypes () const
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void startDrag (Qt::DropActions supportedActions)
 
- Protected Member Functions inherited from KPIM::TreeWidget
virtual void changeEvent (QEvent *e)
 

Detailed Description

The group/folder tree.

Definition at line 30 of file kncollectionview.h.

Constructor & Destructor Documentation

KNCollectionView::KNCollectionView ( QWidget *  parent)
explicit

Definition at line 36 of file kncollectionview.cpp.

KNCollectionView::~KNCollectionView ( )

Definition at line 76 of file kncollectionview.cpp.

Member Function Documentation

void KNCollectionView::activateFolder ( KNFolder::Ptr  f)
slot

Definition at line 257 of file kncollectionview.cpp.

void KNCollectionView::addAccount ( KNNntpAccount::Ptr  a)
slot

Definition at line 109 of file kncollectionview.cpp.

void KNCollectionView::addFolder ( KNFolder::Ptr  f)
slot

Definition at line 188 of file kncollectionview.cpp.

void KNCollectionView::addGroup ( KNGroup::Ptr  g)
slot

Definition at line 158 of file kncollectionview.cpp.

void KNCollectionView::addPendingFolders ( )
slot

Definition at line 242 of file kncollectionview.cpp.

void KNCollectionView::contextMenu ( QTreeWidgetItem *  item,
const QPoint &  position 
)
signal

This signal is emitted when a context menu should be displayed for item as global position position.

void KNCollectionView::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Emits the signal contextMenu() to display a context menu on items of the view.

Reimplemented from QAbstractScrollArea.

Definition at line 333 of file kncollectionview.cpp.

void KNCollectionView::decCurrentFolder ( )
slot

Definition at line 301 of file kncollectionview.cpp.

void KNCollectionView::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Reimplement to only accept MIME types which are accepted in dropEvent.

Definition at line 359 of file kncollectionview.cpp.

void KNCollectionView::dragLeaveEvent ( QDragLeaveEvent *  event)
protectedvirtual

Reimplemented to hide the drop indicator when the drag leave the view.

Definition at line 368 of file kncollectionview.cpp.

void KNCollectionView::dragMoveEvent ( QDragMoveEvent *  event)
protectedvirtual

Reimplemented to accept the event only when the target folder can be dropped articles or folders.

Definition at line 376 of file kncollectionview.cpp.

void KNCollectionView::dropEvent ( QDropEvent *  event)
protectedvirtual

Handles actual droping of articles or folder.

Definition at line 384 of file kncollectionview.cpp.

void KNCollectionView::handleDragNDropEvent ( QDropEvent *  event,
bool  enforceDrop 
)
protected

Called by dragMoveEvent() and dropEvent().

Parameters
eventThe drop/drag-move event.
enforceDropIf true the actual move of folder or move/copy of articles happens.

Definition at line 392 of file kncollectionview.cpp.

void KNCollectionView::incCurrentFolder ( )
slot

Definition at line 313 of file kncollectionview.cpp.

QStringList KNCollectionView::mimeTypes ( ) const
protectedvirtual

Returns the "x-knode-drag/folder" mime-type for drag&droping of folders within this view.

Definition at line 450 of file kncollectionview.cpp.

void KNCollectionView::nextGroup ( )
slot

Definition at line 287 of file kncollectionview.cpp.

void KNCollectionView::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 343 of file kncollectionview.cpp.

void KNCollectionView::prevGroup ( )
slot

Definition at line 294 of file kncollectionview.cpp.

void KNCollectionView::readConfig ( )

Definition at line 95 of file kncollectionview.cpp.

void KNCollectionView::reload ( )
slot

Definition at line 270 of file kncollectionview.cpp.

void KNCollectionView::reloadAccounts ( )
slot

Definition at line 147 of file kncollectionview.cpp.

void KNCollectionView::reloadFolders ( )
slot

Definition at line 232 of file kncollectionview.cpp.

void KNCollectionView::removeAccount ( KNNntpAccount::Ptr  a)
slot

Definition at line 126 of file kncollectionview.cpp.

void KNCollectionView::removeFolder ( KNFolder::Ptr  f)
slot

Definition at line 216 of file kncollectionview.cpp.

void KNCollectionView::removeGroup ( KNGroup::Ptr  g)
slot

Definition at line 170 of file kncollectionview.cpp.

void KNCollectionView::selectCurrentFolder ( )
slot

Definition at line 325 of file kncollectionview.cpp.

void KNCollectionView::setActive ( QTreeWidgetItem *  item)

Selects item and set it the current item.

Definition at line 276 of file kncollectionview.cpp.

void KNCollectionView::startDrag ( Qt::DropActions  supportedActions)
protectedvirtual

Reimplemented to perform the actual drag operations of folders.

This takes care of showing a nice drag icon/cursor instead of the default that consists of the whole item widget (cells of label & counts).

Parameters
supportedActionsunused parameter.

Definition at line 457 of file kncollectionview.cpp.

void KNCollectionView::updateAccount ( KNNntpAccount::Ptr  a)
slot

Definition at line 141 of file kncollectionview.cpp.

void KNCollectionView::updateFolder ( KNFolder::Ptr  f)
slot

Definition at line 264 of file kncollectionview.cpp.

void KNCollectionView::updateGroup ( KNGroup::Ptr  g)
slot

Definition at line 181 of file kncollectionview.cpp.

void KNCollectionView::writeConfig ( )

Definition at line 102 of file kncollectionview.cpp.


The documentation for this class was generated from the following files:
  • kncollectionview.h
  • kncollectionview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal