[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KLFLibDefViewCommon Class Referenceabstract

#include <klflibview_p.h>

Inheritance diagram for KLFLibDefViewCommon:
Inheritance graph
[legend]
Collaboration diagram for KLFLibDefViewCommon:
Collaboration graph
[legend]

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 QAbstractItemViewthisView ()=0
 
virtual const QAbstractItemViewthisConstView () 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

KLFLibModelpModel
 
KLFLibDefaultViewpDView
 
KLFLibDefaultView::ViewType pViewType
 
QPoint mousePressedContentsPos
 

Detailed Description

Definition at line 408 of file klflibview_p.h.

Constructor & Destructor Documentation

KLFLibDefViewCommon::KLFLibDefViewCommon ( KLFLibDefaultView dview)
inline

Definition at line 411 of file klflibview_p.h.

virtual KLFLibDefViewCommon::~KLFLibDefViewCommon ( )
inlinevirtual

Definition at line 415 of file klflibview_p.h.

Member Function Documentation

virtual void KLFLibDefViewCommon::commonInternalDrag ( Qt::DropActions  a)
protectedpure virtual

Implemented in KLFLibDefListView, and KLFLibDefTreeView.

virtual QModelIndexList KLFLibDefViewCommon::commonSelectedIndexes ( ) const
protectedpure virtual

Implemented in KLFLibDefListView, and KLFLibDefTreeView.

virtual void KLFLibDefViewCommon::commonStartDrag ( Qt::DropActions  supportedActions)
inlinevirtual
QModelIndex KLFLibDefViewCommon::curVisibleIndex ( bool  firstOrLast) const
inline
virtual bool KLFLibDefViewCommon::evDragEnter ( QDragEnterEvent de,
const QPoint pos 
)
inlinevirtual
Warning
Caller eventFilter() must ensure not to recurse with fake events !

Definition at line 420 of file klflibview_p.h.

References KLFLibModel::dropFlags(), KLFLibModel::DropWillAccept, KLFLibModel::DropWillCategorize, KLFLibDefaultView::IconView, klfDbg, and KLFLibModelCache::pModel.

virtual bool KLFLibDefViewCommon::evDragMove ( QDragMoveEvent de,
const QPoint pos 
)
inlinevirtual
Warning
Caller eventFilter() must ensure not to recurse with fake events !

Definition at line 445 of file klflibview_p.h.

References QDragMoveEvent::accept(), KLFLibModel::dropFlags(), KLFLibModel::DropWillAccept, KLFLibModel::DropWillMove, KLFLibDefaultView::IconView, QDragMoveEvent::ignore(), klfDbg, and KLFLibModelCache::pModel.

virtual bool KLFLibDefViewCommon::evDrop ( QDropEvent de,
const QPoint pos 
)
inlinevirtual
Warning
Caller eventFilter() must ensure not to recurse with fake events !

Definition at line 470 of file klflibview_p.h.

References KLFLibDefaultView::IconView, klfDbg, QDropEvent::mimeData(), QDropEvent::pos(), and QDropEvent::source().

virtual QPoint KLFLibDefViewCommon::eventPos ( QObject object,
QDragEnterEvent event,
int  horoffset,
int  veroffset 
)
inlineprotectedvirtual

Returns contents position

Definition at line 594 of file klflibview_p.h.

Referenced by KLFLibDefTreeView::eventPos(), and KLFLibDefListView::eventPos().

virtual void KLFLibDefViewCommon::modelInitialized ( )
inlinevirtual

Reimplemented in KLFLibDefListView.

Definition at line 579 of file klflibview_p.h.

virtual QPoint KLFLibDefViewCommon::scrollOffset ( ) const
protectedpure virtual

Implemented in KLFLibDefListView, and KLFLibDefTreeView.

virtual bool KLFLibDefViewCommon::setTheModel ( QAbstractItemModel m)
inlineprotectedvirtual

Definition at line 603 of file klflibview_p.h.

virtual const QAbstractItemView* KLFLibDefViewCommon::thisConstView ( ) const
protectedpure virtual

Implemented in KLFLibDefListView, and KLFLibDefTreeView.

virtual QAbstractItemView* KLFLibDefViewCommon::thisView ( )
protectedpure virtual

Implemented in KLFLibDefListView, and KLFLibDefTreeView.

Member Data Documentation

QPoint KLFLibDefViewCommon::mousePressedContentsPos
protected

Definition at line 585 of file klflibview_p.h.

KLFLibDefaultView* KLFLibDefViewCommon::pDView
protected

Definition at line 583 of file klflibview_p.h.

KLFLibModel* KLFLibDefViewCommon::pModel
protected

Definition at line 582 of file klflibview_p.h.

KLFLibDefaultView::ViewType KLFLibDefViewCommon::pViewType
protected

Definition at line 584 of file klflibview_p.h.


The documentation for this class was generated from the following file:

Generated by doxygen 1.8.11