kmail
SnippetItem Class Reference
This class represents one CodeSnippet-Item in the listview. More...
#include <snippetitem.h>
Inheritance diagram for SnippetItem:
Public Slots | |
void | slotExecute () |
Signals | |
void | execute (QListViewItem *) |
Public Member Functions | |
KAction * | getAction () |
QString | getName () |
int | getParent () |
QString | getText () |
void | resetParent () |
void | setAction (KAction *) |
void | setName (QString name) |
void | setText (QString text) |
SnippetItem (QListViewItem *parent, QString name, QString text) | |
~SnippetItem () | |
Static Public Member Functions | |
static SnippetGroup * | findGroupById (int id, QPtrList< SnippetItem > &list) |
static SnippetItem * | findItemByName (QString name, QPtrList< SnippetItem > &list) |
Detailed Description
This class represents one CodeSnippet-Item in the listview.It also holds the needed data for one snippet.
Definition at line 32 of file snippetitem.h.
Constructor & Destructor Documentation
SnippetItem::SnippetItem | ( | QListViewItem * | parent, | |
QString | name, | |||
QString | text | |||
) |
Definition at line 28 of file snippetitem.cpp.
SnippetItem::~SnippetItem | ( | ) |
Definition at line 36 of file snippetitem.cpp.
Member Function Documentation
void SnippetItem::execute | ( | QListViewItem * | ) | [signal] |
SnippetGroup * SnippetItem::findGroupById | ( | int | id, | |
QPtrList< SnippetItem > & | list | |||
) | [static] |
Definition at line 113 of file snippetitem.cpp.
SnippetItem * SnippetItem::findItemByName | ( | QString | name, | |
QPtrList< SnippetItem > & | list | |||
) | [static] |
Definition at line 104 of file snippetitem.cpp.
KAction * SnippetItem::getAction | ( | ) |
Definition at line 88 of file snippetitem.cpp.
QString SnippetItem::getName | ( | ) |
Definition at line 48 of file snippetitem.cpp.
int SnippetItem::getParent | ( | ) | [inline] |
Definition at line 43 of file snippetitem.h.
QString SnippetItem::getText | ( | ) |
Definition at line 57 of file snippetitem.cpp.
void SnippetItem::resetParent | ( | ) |
Definition at line 80 of file snippetitem.cpp.
void SnippetItem::setAction | ( | KAction * | anAction | ) |
Definition at line 93 of file snippetitem.cpp.
void SnippetItem::setName | ( | QString | name | ) |
Definition at line 75 of file snippetitem.cpp.
void SnippetItem::setText | ( | QString | text | ) |
Definition at line 66 of file snippetitem.cpp.
void SnippetItem::slotExecute | ( | ) | [slot] |
Definition at line 98 of file snippetitem.cpp.
The documentation for this class was generated from the following files: