14#include "snippetitem.h"
20SnippetItem::SnippetItem(TQListView * parent, TQString name, TQString text )
21 : TQListViewItem( parent, name ), action(0)
29SnippetItem::SnippetItem(TQListViewItem * parent, TQString name, TQString text)
30 : TQListViewItem( parent, name ), action(0)
38SnippetItem::~SnippetItem()
50TQString SnippetItem::getName()
59TQString SnippetItem::getText()
68void SnippetItem::setText(TQString text)
77void SnippetItem::setName(TQString name)
82void SnippetItem::resetParent()
86 iParent = group->getId();
90TDEAction* SnippetItem::getAction()
95void SnippetItem::setAction(TDEAction * anAction)
100void SnippetItem::slotExecute()
102 emit execute(
this );
106SnippetItem * SnippetItem::findItemByName(TQString name, TQPtrList<SnippetItem> &list)
108 for (
SnippetItem * item = list.first(); item; item = list.next() ) {
109 if (item->getName() == name)
115SnippetGroup * SnippetItem::findGroupById(
int id, TQPtrList<SnippetItem> &list)
117 for (
SnippetItem * item = list.first(); item; item = list.next() ) {
119 if (group && group->getId() == id)
130int SnippetGroup::iMaxId = 1;
132SnippetGroup::SnippetGroup(TQListView * parent, TQString name,
int id)
145SnippetGroup::~SnippetGroup()
149void SnippetGroup::setId(
int id)
156#include "snippetitem.moc"
This class represents one group in the listview.
This class represents one CodeSnippet-Item in the listview.