#include <klflibview_p.h>
Public Member Functions | |
KLFLibDefViewCommon (KLFLibDefaultView *dview) | |
virtual | ~KLFLibDefViewCommon () |
virtual bool | evDragEnter (QDragEnterEvent *de, const QPoint &pos) |
virtual bool | evDragMove (QDragMoveEvent *de, const QPoint &pos) |
virtual bool | evDrop (QDropEvent *de, const QPoint &pos) |
virtual void | commonStartDrag (Qt::DropActions supportedActions) |
QModelIndex | curVisibleIndex () const |
virtual void | modelInitialized () |
Protected Member Functions | |
virtual QModelIndexList | commonSelectedIndexes () const =0 |
virtual void | commonInternalDrag (Qt::DropActions a)=0 |
virtual QAbstractItemView * | thisView ()=0 |
virtual const QAbstractItemView * | thisConstView () const =0 |
virtual QPoint | scrollOffset () const =0 |
virtual QPoint | eventPos (QObject *object, QDragEnterEvent *event, int horoffset, int veroffset) |
virtual bool | setTheModel (QAbstractItemModel *m) |
Protected Attributes | |
KLFLibModel * | pModel |
KLFLibDefaultView * | pDView |
KLFLibDefaultView::ViewType | pViewType |
QPoint | mousePressedContentsPos |
Definition at line 408 of file klflibview_p.h.
KLFLibDefViewCommon::KLFLibDefViewCommon | ( | KLFLibDefaultView * | dview | ) | [inline] |
Definition at line 411 of file klflibview_p.h.
virtual KLFLibDefViewCommon::~KLFLibDefViewCommon | ( | ) | [inline, virtual] |
Definition at line 415 of file klflibview_p.h.
virtual void KLFLibDefViewCommon::commonInternalDrag | ( | Qt::DropActions | a | ) | [protected, pure virtual] |
Implemented in KLFLibDefTreeView, and KLFLibDefListView.
virtual QModelIndexList KLFLibDefViewCommon::commonSelectedIndexes | ( | ) | const [protected, pure virtual] |
Implemented in KLFLibDefTreeView, and KLFLibDefListView.
Referenced by commonStartDrag().
virtual void KLFLibDefViewCommon::commonStartDrag | ( | Qt::DropActions | supportedActions | ) | [inline, virtual] |
Definition at line 494 of file klflibview_p.h.
References commonSelectedIndexes(), KLFLibModel::dragImage(), QPixmap::fromImage(), KLFLibDefaultView::IconView, klfDbg, KLFLibModel::mimeData(), pModel, pViewType, QDrag::setHotSpot(), QDrag::setMimeData(), QDrag::setPixmap(), and thisView().
Referenced by KLFLibDefListView::startDrag(), and KLFLibDefTreeView::startDrag().
QModelIndex KLFLibDefViewCommon::curVisibleIndex | ( | ) | const [inline] |
Definition at line 534 of file klflibview_p.h.
References klfDbg, pModel, scrollOffset(), thisConstView(), and KLFLibModel::walkNextIndex().
Referenced by KLFLibDefaultView::currentVisibleIndex().
virtual bool KLFLibDefViewCommon::evDragEnter | ( | QDragEnterEvent * | de, |
const QPoint & | pos | ||
) | [inline, virtual] |
Definition at line 420 of file klflibview_p.h.
References KLFLibModel::dropFlags(), KLFLibModel::DropWillAccept, KLFLibModel::DropWillCategorize, KLFLibDefaultView::IconView, klfDbg, mousePressedContentsPos, pModel, pViewType, and thisView().
Referenced by KLFLibDefListView::eventFilter(), and KLFLibDefTreeView::eventFilter().
virtual bool KLFLibDefViewCommon::evDragMove | ( | QDragMoveEvent * | de, |
const QPoint & | pos | ||
) | [inline, virtual] |
Definition at line 445 of file klflibview_p.h.
References QDragMoveEvent::accept(), KLFLibModel::dropFlags(), KLFLibModel::DropWillAccept, KLFLibModel::DropWillMove, KLFLibDefaultView::IconView, QDragMoveEvent::ignore(), klfDbg, pModel, pViewType, and thisView().
Referenced by KLFLibDefListView::eventFilter(), and KLFLibDefTreeView::eventFilter().
virtual bool KLFLibDefViewCommon::evDrop | ( | QDropEvent * | de, |
const QPoint & | pos | ||
) | [inline, virtual] |
Definition at line 470 of file klflibview_p.h.
References KLFLibDefaultView::IconView, klfDbg, QDropEvent::mimeData(), mousePressedContentsPos, QDropEvent::pos(), pViewType, QDropEvent::source(), thisView(), and QAbstractItemView::update().
Referenced by KLFLibDefListView::eventFilter(), and KLFLibDefTreeView::eventFilter().
virtual QPoint KLFLibDefViewCommon::eventPos | ( | QObject * | object, |
QDragEnterEvent * | event, | ||
int | horoffset, | ||
int | veroffset | ||
) | [inline, protected, virtual] |
virtual void KLFLibDefViewCommon::modelInitialized | ( | ) | [inline, virtual] |
Reimplemented in KLFLibDefListView.
Definition at line 565 of file klflibview_p.h.
virtual QPoint KLFLibDefViewCommon::scrollOffset | ( | ) | const [protected, pure virtual] |
Implemented in KLFLibDefTreeView, and KLFLibDefListView.
Referenced by curVisibleIndex().
virtual bool KLFLibDefViewCommon::setTheModel | ( | QAbstractItemModel * | m | ) | [inline, protected, virtual] |
Definition at line 589 of file klflibview_p.h.
References pModel.
Referenced by KLFLibDefListView::setModel(), and KLFLibDefTreeView::setModel().
virtual const QAbstractItemView* KLFLibDefViewCommon::thisConstView | ( | ) | const [protected, pure virtual] |
Implemented in KLFLibDefTreeView, and KLFLibDefListView.
Referenced by curVisibleIndex().
virtual QAbstractItemView* KLFLibDefViewCommon::thisView | ( | ) | [protected, pure virtual] |
Implemented in KLFLibDefTreeView, and KLFLibDefListView.
Referenced by commonStartDrag(), evDragEnter(), evDragMove(), evDrop(), and eventPos().
QPoint KLFLibDefViewCommon::mousePressedContentsPos [protected] |
Definition at line 571 of file klflibview_p.h.
Referenced by evDragEnter(), and evDrop().
KLFLibDefaultView* KLFLibDefViewCommon::pDView [protected] |
Definition at line 569 of file klflibview_p.h.
Referenced by KLFLibDefTreeView::selectAll().
KLFLibModel* KLFLibDefViewCommon::pModel [protected] |
Definition at line 568 of file klflibview_p.h.
Referenced by commonStartDrag(), curVisibleIndex(), evDragEnter(), evDragMove(), and setTheModel().
Definition at line 570 of file klflibview_p.h.
Referenced by commonStartDrag(), evDragEnter(), evDragMove(), and evDrop().