• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • workspace API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • StandardActionTreeModel
Classes | Public Member Functions | Protected Member Functions | List of all members
Lancelot::StandardActionTreeModel Class Referenceabstract

#include <StandardActionTreeModel.h>

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

Classes

class  Item
 

Public Member Functions

 StandardActionTreeModel ()
 
virtual ~StandardActionTreeModel ()
 
void add (Item *item, Item *parent=NULL)
 
void add (const QString &title, const QString &description, QIcon icon, const QVariant &data, Item *parent=NULL)
 
L_Override ActionTreeModel * child (int index)
 
void clear (Item *parent=NULL)
 
QVariant data (int index) const
 
L_Override QString description (int index) const
 
L_Override QIcon icon (int index) const
 
L_Override bool isCategory (int index) const
 
Item * itemAt (int index, Item *parent=NULL)
 
void removeAt (int index, Item *parent=NULL)
 
L_Override QIcon selfIcon () const
 
L_Override QString selfTitle () const
 
void set (int index, Item *item, Item *parent=NULL)
 
void set (int index, const QString &title, const QString &description, QIcon icon, const QVariant &data, Item *parent=NULL)
 
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 void contextActivate (int index, QAction *context)
 
virtual void dataDragFinished (int index, Qt::DropAction action)
 
virtual bool dataDropAvailable (int where, const QMimeData *mimeData)
 
virtual void dataDropped (int where, const QMimeData *mimeData)
 
virtual bool hasContextActions (int index) const
 
virtual QMimeData * mimeData (int index) const
 
virtual QMimeData * selfMimeData () const
 
virtual QString selfShortTitle () const
 
virtual void setContextActions (int index, Lancelot::PopupMenu *menu)
 
virtual void setDropActions (int index, Qt::DropActions &actions, Qt::DropAction &defaultAction)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Protected Member Functions

 StandardActionTreeModel (Item *root)
 
virtual StandardActionTreeModel * createChild (int index)=0
 
Item * root () const
 
- Protected Member Functions inherited from Lancelot::ActionListModel
virtual void activate (int index)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Slots inherited from Lancelot::ActionListModel
void activated (int index)
 
- Signals inherited from Lancelot::ActionListModel
void itemActivated (int index)
 
void itemAltered (int index)
 
void itemDeleted (int index)
 
void itemInserted (int index)
 
void updated ()
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 30 of file StandardActionTreeModel.h.

Constructor & Destructor Documentation

Lancelot::StandardActionTreeModel::StandardActionTreeModel ( Item *  root)
protected

Definition at line 52 of file StandardActionTreeModel.cpp.

Lancelot::StandardActionTreeModel::StandardActionTreeModel ( )

Definition at line 45 of file StandardActionTreeModel.cpp.

Lancelot::StandardActionTreeModel::~StandardActionTreeModel ( )
virtual

Definition at line 63 of file StandardActionTreeModel.cpp.

Member Function Documentation

void Lancelot::StandardActionTreeModel::add ( Item *  item,
Item *  parent = NULL 
)

Adds a new item into the model.

Parameters
itemnew item

Definition at line 165 of file StandardActionTreeModel.cpp.

void Lancelot::StandardActionTreeModel::add ( const QString &  title,
const QString &  description,
QIcon  icon,
const QVariant &  data,
Item *  parent = NULL 
)

Adds a new item into the model.

Parameters
titlethe title for the new item
descriptionthe description of the new item
iconthe icon for the new item
datadata for the new item. Not shown to user

Definition at line 172 of file StandardActionTreeModel.cpp.

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

Implements Lancelot::ActionTreeModel.

Definition at line 77 of file StandardActionTreeModel.cpp.

void Lancelot::StandardActionTreeModel::clear ( Item *  parent = NULL)

Clears all items.

Definition at line 197 of file StandardActionTreeModel.cpp.

virtual StandardActionTreeModel* Lancelot::StandardActionTreeModel::createChild ( int  index)
protectedpure virtual
QVariant Lancelot::StandardActionTreeModel::data ( int  index) const

Definition at line 151 of file StandardActionTreeModel.cpp.

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

Reimplemented from Lancelot::ActionListModel.

Definition at line 133 of file StandardActionTreeModel.cpp.

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

Reimplemented from Lancelot::ActionListModel.

Definition at line 142 of file StandardActionTreeModel.cpp.

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

Reimplemented from Lancelot::ActionListModel.

Definition at line 97 of file StandardActionTreeModel.cpp.

StandardActionTreeModel::Item * Lancelot::StandardActionTreeModel::itemAt ( int  index,
Item *  parent = NULL 
)
Returns
the specified item
Parameters
indexindex of the item to return

Definition at line 203 of file StandardActionTreeModel.cpp.

void Lancelot::StandardActionTreeModel::removeAt ( int  index,
Item *  parent = NULL 
)

Removes an item.

Parameters
indexindex of the item to remove

Definition at line 191 of file StandardActionTreeModel.cpp.

StandardActionTreeModel::Item * Lancelot::StandardActionTreeModel::root ( ) const
protected

Definition at line 72 of file StandardActionTreeModel.cpp.

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

Reimplemented from Lancelot::ActionListModel.

Definition at line 119 of file StandardActionTreeModel.cpp.

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

Reimplemented from Lancelot::ActionListModel.

Definition at line 114 of file StandardActionTreeModel.cpp.

void Lancelot::StandardActionTreeModel::set ( int  index,
Item *  item,
Item *  parent = NULL 
)

Replaces existing item at specified index with a new one.

Parameters
indexindex of the item to be replaced
itemnew item

Definition at line 177 of file StandardActionTreeModel.cpp.

void Lancelot::StandardActionTreeModel::set ( int  index,
const QString &  title,
const QString &  description,
QIcon  icon,
const QVariant &  data,
Item *  parent = NULL 
)

Replaces existing item at specified index with a new one.

Parameters
indexindex of the item to be replaced
titlethe title for the new item
descriptionthe description of the new item
iconthe icon for the new item
datadata for the new item. Not shown to user

Definition at line 186 of file StandardActionTreeModel.cpp.

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

Implements Lancelot::ActionListModel.

Definition at line 160 of file StandardActionTreeModel.cpp.

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

Implements Lancelot::ActionListModel.

Definition at line 124 of file StandardActionTreeModel.cpp.


The documentation for this class was generated from the following files:
  • StandardActionTreeModel.h
  • StandardActionTreeModel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 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

workspace API Reference

Skip menu "workspace API Reference"
  • kdeplasma-addons
  •       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