[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.

Referenced by commonStartDrag().

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
virtual bool KLFLibDefViewCommon::evDragMove ( QDragMoveEvent de,
const QPoint pos 
)
inlinevirtual
virtual bool KLFLibDefViewCommon::evDrop ( QDropEvent de,
const QPoint pos 
)
inlinevirtual
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.

References thisView().

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.

Referenced by curVisibleIndex().

virtual bool KLFLibDefViewCommon::setTheModel ( QAbstractItemModel m)
inlineprotectedvirtual

Definition at line 603 of file klflibview_p.h.

References pModel.

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

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

Implemented in KLFLibDefListView, and KLFLibDefTreeView.

Referenced by curVisibleIndex().

virtual QAbstractItemView* KLFLibDefViewCommon::thisView ( )
protectedpure virtual

Member Data Documentation

QPoint KLFLibDefViewCommon::mousePressedContentsPos
protected

Definition at line 585 of file klflibview_p.h.

Referenced by evDragEnter(), and evDrop().

KLFLibDefaultView* KLFLibDefViewCommon::pDView
protected

Definition at line 583 of file klflibview_p.h.

Referenced by KLFLibDefTreeView::selectAll().

KLFLibModel* KLFLibDefViewCommon::pModel
protected
KLFLibDefaultView::ViewType KLFLibDefViewCommon::pViewType
protected

Definition at line 584 of file klflibview_p.h.

Referenced by commonStartDrag(), evDragEnter(), evDragMove(), and evDrop().


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

Generated by doxygen 1.8.5