[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Member Functions | Protected Member Functions | Protected Attributes

KLFLibDefViewCommon Class Reference

#include <klflibview_p.h>

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

List of all members.

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 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 ( ) [inline, virtual]

Definition at line 415 of file klflibview_p.h.


Member Function Documentation

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]
QModelIndex KLFLibDefViewCommon::curVisibleIndex ( ) const [inline]
virtual bool KLFLibDefViewCommon::evDragEnter ( QDragEnterEvent de,
const QPoint pos 
) [inline, virtual]
virtual bool KLFLibDefViewCommon::evDragMove ( QDragMoveEvent de,
const QPoint pos 
) [inline, virtual]
virtual bool KLFLibDefViewCommon::evDrop ( QDropEvent de,
const QPoint pos 
) [inline, virtual]
virtual QPoint KLFLibDefViewCommon::eventPos ( QObject object,
QDragEnterEvent event,
int  horoffset,
int  veroffset 
) [inline, protected, virtual]

Returns contents position

Definition at line 580 of file klflibview_p.h.

References thisView().

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]

Member Data Documentation

Definition at line 571 of file klflibview_p.h.

Referenced by evDragEnter(), and evDrop().

Definition at line 569 of file klflibview_p.h.

Referenced by KLFLibDefTreeView::selectAll().

Definition at line 570 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.7.3