KPlato::NodeTreeView Class Reference

#include <kpttaskeditor.h>

List of all members.

Signals

void currentChanged (const QModelIndex &)
void currentColumnChanged (QModelIndex, QModelIndex)
void selectionChanged (const QModelIndexList)

Public Member Functions

 NodeTreeView (Part *part, QWidget *parent)
NodeItemModelitemModel () const
void setArrowKeyNavigation (bool on)
bool arrowKeyNavigation () const
Projectproject () const
void setProject (Project *project)

Protected Slots

void headerContextMenuRequested (const QPoint &pos)
void slotActivated (const QModelIndex index)
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
QItemSelectionModel::SelectionFlags selectionCommand (const QModelIndex &index, const QEvent *event) const

Private Attributes

bool m_arrowKeyNavigation


Detailed Description

Definition at line 139 of file kpttaskeditor.h.


Constructor & Destructor Documentation

KPlato::NodeTreeView::NodeTreeView ( Part part,
QWidget *  parent 
)

Definition at line 613 of file kpttaskeditor.cc.

References headerContextMenuRequested(), and slotActivated().


Member Function Documentation

NodeItemModel* KPlato::NodeTreeView::itemModel (  )  const [inline]

Definition at line 147 of file kpttaskeditor.h.

Referenced by KPlato::TaskEditor::currentNode(), project(), KPlato::TaskEditor::selectedNode(), KPlato::TaskEditor::selectedNodes(), and setProject().

void KPlato::NodeTreeView::setArrowKeyNavigation ( bool  on  )  [inline]

Definition at line 149 of file kpttaskeditor.h.

References m_arrowKeyNavigation.

bool KPlato::NodeTreeView::arrowKeyNavigation (  )  const [inline]

Definition at line 150 of file kpttaskeditor.h.

References m_arrowKeyNavigation.

Project* KPlato::NodeTreeView::project (  )  const [inline]

Definition at line 152 of file kpttaskeditor.h.

References itemModel(), and KPlato::ItemModelBase::project().

Referenced by setProject(), and KPlato::TaskEditor::updateActionsEnabled().

void KPlato::NodeTreeView::setProject ( Project project  )  [inline]

Definition at line 153 of file kpttaskeditor.h.

References itemModel(), project(), and KPlato::NodeItemModel::setProject().

Referenced by KPlato::TaskEditor::draw().

void KPlato::NodeTreeView::currentChanged ( const QModelIndex &   )  [signal]

Referenced by currentChanged().

void KPlato::NodeTreeView::currentColumnChanged ( QModelIndex  ,
QModelIndex   
) [signal]

void KPlato::NodeTreeView::selectionChanged ( const   QModelIndexList  )  [signal]

Referenced by selectionChanged().

void KPlato::NodeTreeView::headerContextMenuRequested ( const QPoint &  pos  )  [protected, slot]

Definition at line 636 of file kpttaskeditor.cc.

Referenced by NodeTreeView().

void KPlato::NodeTreeView::slotActivated ( const QModelIndex  index  )  [protected, slot]

Definition at line 631 of file kpttaskeditor.cc.

Referenced by NodeTreeView().

void KPlato::NodeTreeView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
) [protected, virtual, slot]

Definition at line 641 of file kpttaskeditor.cc.

References selectionChanged().

void KPlato::NodeTreeView::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
) [protected, virtual, slot]

Definition at line 651 of file kpttaskeditor.cc.

References currentChanged().

void KPlato::NodeTreeView::keyPressEvent ( QKeyEvent *  event  )  [protected]

Definition at line 661 of file kpttaskeditor.cc.

References m_arrowKeyNavigation.

QItemSelectionModel::SelectionFlags KPlato::NodeTreeView::selectionCommand ( const QModelIndex &  index,
const QEvent *  event 
) const [protected]

Definition at line 736 of file kpttaskeditor.cc.


Member Data Documentation

bool KPlato::NodeTreeView::m_arrowKeyNavigation [private]

Definition at line 171 of file kpttaskeditor.h.

Referenced by arrowKeyNavigation(), keyPressEvent(), and setArrowKeyNavigation().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:52 2006 for KPlato by  doxygen 1.5.1-p1