#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 (bool firstOrLast) 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.
|
inline |
Definition at line 411 of file klflibview_p.h.
|
inlinevirtual |
Definition at line 415 of file klflibview_p.h.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
Referenced by commonStartDrag().
|
inlinevirtual |
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 KLFLibDefTreeView::startDrag(), and KLFLibDefListView::startDrag().
|
inline |
Definition at line 534 of file klflibview_p.h.
References klfDbg, pModel, scrollOffset(), thisConstView(), and KLFLibModel::walkNextIndex().
Referenced by KLFLibDefaultView::currentVisibleIndex().
|
inlinevirtual |
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 KLFLibDefTreeView::eventFilter(), and KLFLibDefListView::eventFilter().
|
inlinevirtual |
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 KLFLibDefTreeView::eventFilter(), and KLFLibDefListView::eventFilter().
|
inlinevirtual |
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 KLFLibDefTreeView::eventFilter(), and KLFLibDefListView::eventFilter().
|
inlineprotectedvirtual |
Returns contents position
Definition at line 594 of file klflibview_p.h.
References thisView().
Referenced by KLFLibDefTreeView::eventPos(), and KLFLibDefListView::eventPos().
|
inlinevirtual |
Reimplemented in KLFLibDefListView.
Definition at line 579 of file klflibview_p.h.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
Referenced by curVisibleIndex().
|
inlineprotectedvirtual |
Definition at line 603 of file klflibview_p.h.
References pModel.
Referenced by KLFLibDefTreeView::setModel(), and KLFLibDefListView::setModel().
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
Referenced by curVisibleIndex().
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
Referenced by commonStartDrag(), evDragEnter(), evDragMove(), evDrop(), and eventPos().
|
protected |
Definition at line 585 of file klflibview_p.h.
Referenced by evDragEnter(), and evDrop().
|
protected |
Definition at line 583 of file klflibview_p.h.
Referenced by KLFLibDefTreeView::selectAll().
|
protected |
Definition at line 582 of file klflibview_p.h.
Referenced by commonStartDrag(), curVisibleIndex(), evDragEnter(), evDragMove(), and setTheModel().
|
protected |
Definition at line 584 of file klflibview_p.h.
Referenced by commonStartDrag(), evDragEnter(), evDragMove(), and evDrop().