• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeplasma-addons API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • ActionTreeModelProxy
Signals | Public Member Functions | Protected Member Functions | List of all members
Lancelot::ActionTreeModelProxy Class Reference

#include <ActionTreeModelProxy.h>

Inheritance diagram for Lancelot::ActionTreeModelProxy:
Inheritance graph
[legend]

Signals

void itemActivated (int index)
 
void itemAltered (int index)
 
void itemDeleted (int index)
 
void itemInserted (int index)
 
void updated ()
 
- Signals inherited from Lancelot::ActionListModel
void itemActivated (int index)
 
void itemAltered (int index)
 
void itemDeleted (int index)
 
void itemInserted (int index)
 
void updated ()
 

Public Member Functions

 ActionTreeModelProxy (ActionListModel *model, QString title=QString(), QIcon icon=QIcon())
 
 ~ActionTreeModelProxy ()
 
L_Override ActionTreeModel * child (int index)
 
L_Override void contextActivate (int index, QAction *context)
 
L_Override void dataDragFinished (int index, Qt::DropAction action)
 
L_Override bool dataDropAvailable (int where, const QMimeData *mimeData)
 
L_Override void dataDropped (int where, const QMimeData *mimeData)
 
L_Override QString description (int index) const
 
L_Override bool hasContextActions (int index) const
 
L_Override QIcon icon (int index) const
 
L_Override bool isCategory (int index) const
 
L_Override QMimeData * mimeData (int index) const
 
ActionListModel * model () const
 
L_Override QIcon selfIcon () const
 
L_Override QString selfTitle () const
 
L_Override void setContextActions (int index, Lancelot::PopupMenu *menu)
 
L_Override void setDropActions (int index, Qt::DropActions &actions, Qt::DropAction &defaultAction)
 
L_Override int size () const
 
L_Override QString title (int index) const
 
- Public Member Functions inherited from Lancelot::ActionTreeModel
 ActionTreeModel ()
 
virtual ~ActionTreeModel ()
 
- Public Member Functions inherited from Lancelot::ActionListModel
 ActionListModel ()
 
virtual ~ActionListModel ()
 
virtual QMimeData * selfMimeData () const
 
virtual QString selfShortTitle () const
 

Protected Member Functions

L_Override void activate (int index)
 

Additional Inherited Members

- Public Slots inherited from Lancelot::ActionListModel
void activated (int index)
 

Detailed Description

Definition at line 30 of file ActionTreeModelProxy.h.

Constructor & Destructor Documentation

Lancelot::ActionTreeModelProxy::ActionTreeModelProxy ( ActionListModel *  model,
QString  title = QString(),
QIcon  icon = QIcon() 
)
explicit

Definition at line 32 of file ActionTreeModelProxy.cpp.

Lancelot::ActionTreeModelProxy::~ActionTreeModelProxy ( )

Definition at line 51 of file ActionTreeModelProxy.cpp.

Member Function Documentation

void Lancelot::ActionTreeModelProxy::activate ( int  index)
protectedvirtual

Models should reimplement this function.

It is invoked when an item is activated, before the itemActivated signal is emitted

Parameters
indexof the item that is activated

Reimplemented from Lancelot::ActionListModel.

Definition at line 119 of file ActionTreeModelProxy.cpp.

ActionTreeModel * Lancelot::ActionTreeModelProxy::child ( int  index)
virtual

Implements Lancelot::ActionTreeModel.

Definition at line 62 of file ActionTreeModelProxy.cpp.

void Lancelot::ActionTreeModelProxy::contextActivate ( int  index,
QAction *  context 
)
virtual

Method for handling context menu actions.

Parameters
indexof the activated item
contextindex of the context action

Reimplemented from Lancelot::ActionListModel.

Definition at line 94 of file ActionTreeModelProxy.cpp.

void Lancelot::ActionTreeModelProxy::dataDragFinished ( int  index,
Qt::DropAction  action 
)
virtual

This function is invoked when a data is dropped.

Parameters
indexindex of the dragged item
actioninvoked drop action

Reimplemented from Lancelot::ActionListModel.

Definition at line 145 of file ActionTreeModelProxy.cpp.

bool Lancelot::ActionTreeModelProxy::dataDropAvailable ( int  where,
const QMimeData *  mimeData 
)
virtual
Returns
whether the data can be dropped at the specified position
Parameters
whereposition
mimeDatadragged data

Reimplemented from Lancelot::ActionListModel.

Definition at line 135 of file ActionTreeModelProxy.cpp.

void Lancelot::ActionTreeModelProxy::dataDropped ( int  where,
const QMimeData *  mimeData 
)
virtual

Invoked when the data is dropped into the model.

Parameters
whereposition
mimeDatadropped data

Reimplemented from Lancelot::ActionListModel.

Definition at line 140 of file ActionTreeModelProxy.cpp.

QString Lancelot::ActionTreeModelProxy::description ( int  index) const
virtual
Parameters
indexindex of the item
Returns
description of the specified item

Reimplemented from Lancelot::ActionListModel.

Definition at line 99 of file ActionTreeModelProxy.cpp.

bool Lancelot::ActionTreeModelProxy::hasContextActions ( int  index) const
virtual
Returns
whether the specified item has context actions
Parameters
indexindex of the item

Reimplemented from Lancelot::ActionListModel.

Definition at line 84 of file ActionTreeModelProxy.cpp.

QIcon Lancelot::ActionTreeModelProxy::icon ( int  index) const
virtual
Parameters
indexindex of the item
Returns
icon for the specified item

Reimplemented from Lancelot::ActionListModel.

Definition at line 104 of file ActionTreeModelProxy.cpp.

bool Lancelot::ActionTreeModelProxy::isCategory ( int  index) const
virtual
Parameters
indexindex of the item
Returns
whether the item represents a category

Reimplemented from Lancelot::ActionListModel.

Definition at line 109 of file ActionTreeModelProxy.cpp.

void Lancelot::ActionTreeModelProxy::itemActivated ( int  index)
signal
void Lancelot::ActionTreeModelProxy::itemAltered ( int  index)
signal
void Lancelot::ActionTreeModelProxy::itemDeleted ( int  index)
signal
void Lancelot::ActionTreeModelProxy::itemInserted ( int  index)
signal
QMimeData * Lancelot::ActionTreeModelProxy::mimeData ( int  index) const
virtual
Parameters
indexindex of the item
Returns
mime data for the specified item

Reimplemented from Lancelot::ActionListModel.

Definition at line 124 of file ActionTreeModelProxy.cpp.

ActionListModel * Lancelot::ActionTreeModelProxy::model ( ) const

Definition at line 56 of file ActionTreeModelProxy.cpp.

QIcon Lancelot::ActionTreeModelProxy::selfIcon ( ) const
virtual

Reimplemented from Lancelot::ActionListModel.

Definition at line 73 of file ActionTreeModelProxy.cpp.

QString Lancelot::ActionTreeModelProxy::selfTitle ( ) const
virtual

Reimplemented from Lancelot::ActionListModel.

Definition at line 68 of file ActionTreeModelProxy.cpp.

void Lancelot::ActionTreeModelProxy::setContextActions ( int  index,
Lancelot::PopupMenu *  menu 
)
virtual

Adds actions ofr the specifies item to menu.

Parameters
indexindex of the item
menumenu to add the actions to

Reimplemented from Lancelot::ActionListModel.

Definition at line 89 of file ActionTreeModelProxy.cpp.

void Lancelot::ActionTreeModelProxy::setDropActions ( int  index,
Qt::DropActions &  actions,
Qt::DropAction &  defaultAction 
)
virtual
Parameters
indexindex of the item to be dragged
actionssupported drop actions
defaultActiondefault drop action

Reimplemented from Lancelot::ActionListModel.

Definition at line 129 of file ActionTreeModelProxy.cpp.

int Lancelot::ActionTreeModelProxy::size ( ) const
virtual
Returns
the number of items in model

Implements Lancelot::ActionListModel.

Definition at line 114 of file ActionTreeModelProxy.cpp.

QString Lancelot::ActionTreeModelProxy::title ( int  index) const
virtual
Parameters
indexindex of the item
Returns
title for the specified item

Implements Lancelot::ActionListModel.

Definition at line 79 of file ActionTreeModelProxy.cpp.

void Lancelot::ActionTreeModelProxy::updated ( )
signal

The documentation for this class was generated from the following files:
  • ActionTreeModelProxy.h
  • ActionTreeModelProxy.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

Skip menu "liblancelot"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeplasma-addons API Reference

Skip menu "kdeplasma-addons API Reference"
  •     GroupingDesktop
  •   liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal