summaryrefslogtreecommitdiffstats
path: root/kate/cppsymbolviewer/cpp_parser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/cppsymbolviewer/cpp_parser.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/cppsymbolviewer/cpp_parser.cpp')
-rw-r--r--kate/cppsymbolviewer/cpp_parser.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/kate/cppsymbolviewer/cpp_parser.cpp b/kate/cppsymbolviewer/cpp_parser.cpp
index 01ee919..b666983 100644
--- a/kate/cppsymbolviewer/cpp_parser.cpp
+++ b/kate/cppsymbolviewer/cpp_parser.cpp
@@ -20,32 +20,32 @@ void KatePluginSymbolViewerView::parseCppSymbols(void)
if (!win->viewManager()->activeView())
return;
- QString cl; // Current Line
- QString stripped;
+ TQString cl; // Current Line
+ TQString stripped;
uint i, j, tmpPos = 0;
int par = 0, graph = 0, retry = 0;
char mclass = 0, block = 0, comment = 0; // comment: 0-no comment 1-inline comment 2-multiline comment 3-string
char macro = 0, macro_pos = 0, func_close = 0;
bool structure = false;
- QPixmap cls( ( const char** ) class_xpm );
- QPixmap sct( ( const char** ) struct_xpm );
- QPixmap mcr( ( const char** ) macro_xpm );
- QPixmap mtd( ( const char** ) method_xpm );
- QListViewItem *node = NULL;
- QListViewItem *mcrNode = NULL, *sctNode = NULL, *clsNode = NULL, *mtdNode = NULL;
- QListViewItem *lastMcrNode = NULL, *lastSctNode = NULL, *lastClsNode = NULL, *lastMtdNode = NULL;
+ TQPixmap cls( ( const char** ) class_xpm );
+ TQPixmap sct( ( const char** ) struct_xpm );
+ TQPixmap mcr( ( const char** ) macro_xpm );
+ TQPixmap mtd( ( const char** ) method_xpm );
+ TQListViewItem *node = NULL;
+ TQListViewItem *mcrNode = NULL, *sctNode = NULL, *clsNode = NULL, *mtdNode = NULL;
+ TQListViewItem *lastMcrNode = NULL, *lastSctNode = NULL, *lastClsNode = NULL, *lastMtdNode = NULL;
Kate::Document *kv = win->viewManager()->activeView()->getDoc();
//kdDebug(13000)<<"Lines counted :"<<kv->numLines()<<endl;
if(treeMode)
{
- mcrNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Macros"));
- sctNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Structures"));
- clsNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Functions"));
- mcrNode->setPixmap(0, (const QPixmap &)mcr);
- sctNode->setPixmap(0, (const QPixmap &)sct);
- clsNode->setPixmap(0, (const QPixmap &)cls);
+ mcrNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Macros"));
+ sctNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Structures"));
+ clsNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Functions"));
+ mcrNode->setPixmap(0, (const TQPixmap &)mcr);
+ sctNode->setPixmap(0, (const TQPixmap &)sct);
+ clsNode->setPixmap(0, (const TQPixmap &)cls);
if (expanded_on)
{
mcrNode->setOpen(TRUE);
@@ -105,12 +105,12 @@ void KatePluginSymbolViewerView::parseCppSymbols(void)
{
if (treeMode)
{
- node = new QListViewItem(mcrNode, lastMcrNode, stripped);
+ node = new TQListViewItem(mcrNode, lastMcrNode, stripped);
lastMcrNode = node;
}
- else node = new QListViewItem(symbols, symbols->lastItem(), stripped);
- node->setPixmap(0, (const QPixmap &)mcr);
- node->setText(1, QString::number( i, 10));
+ else node = new TQListViewItem(symbols, symbols->lastItem(), stripped);
+ node->setPixmap(0, (const TQPixmap &)mcr);
+ node->setText(1, TQString::number( i, 10));
}
macro = 0;
macro_pos = 0;
@@ -142,15 +142,15 @@ void KatePluginSymbolViewerView::parseCppSymbols(void)
{
if (treeMode)
{
- node = new QListViewItem(clsNode, lastClsNode, stripped);
+ node = new TQListViewItem(clsNode, lastClsNode, stripped);
if (expanded_on) node->setOpen(TRUE);
lastClsNode = node;
mtdNode = lastClsNode;
lastMtdNode = lastClsNode;
}
- else node = new QListViewItem(symbols, symbols->lastItem(), stripped);
- node->setPixmap(0, (const QPixmap &)cls);
- node->setText(1, QString::number( i, 10));
+ else node = new TQListViewItem(symbols, symbols->lastItem(), stripped);
+ node->setPixmap(0, (const TQPixmap &)cls);
+ node->setText(1, TQString::number( i, 10));
stripped = "";
if (mclass == 1) mclass = 3;
}
@@ -237,20 +237,20 @@ void KatePluginSymbolViewerView::parseCppSymbols(void)
{
if (mclass == 4)
{
- node = new QListViewItem(mtdNode, lastMtdNode, stripped);
+ node = new TQListViewItem(mtdNode, lastMtdNode, stripped);
lastMtdNode = node;
}
else
{
- node = new QListViewItem(clsNode, lastClsNode, stripped);
+ node = new TQListViewItem(clsNode, lastClsNode, stripped);
lastClsNode = node;
}
}
else
- node = new QListViewItem(symbols, symbols->lastItem(), stripped);
- if (mclass == 4) node->setPixmap(0, (const QPixmap &)mtd);
- else node->setPixmap(0, (const QPixmap &)cls);
- node->setText(1, QString::number( tmpPos, 10));
+ node = new TQListViewItem(symbols, symbols->lastItem(), stripped);
+ if (mclass == 4) node->setPixmap(0, (const TQPixmap &)mtd);
+ else node->setPixmap(0, (const TQPixmap &)cls);
+ node->setText(1, TQString::number( tmpPos, 10));
}
stripped = "";
retry = 0;
@@ -297,12 +297,12 @@ void KatePluginSymbolViewerView::parseCppSymbols(void)
{
if (treeMode)
{
- node = new QListViewItem(sctNode, lastSctNode, stripped);
+ node = new TQListViewItem(sctNode, lastSctNode, stripped);
lastSctNode = node;
}
- else node = new QListViewItem(symbols, symbols->lastItem(), stripped);
- node->setPixmap(0, (const QPixmap &)sct);
- node->setText(1, QString::number( tmpPos, 10));
+ else node = new TQListViewItem(symbols, symbols->lastItem(), stripped);
+ node->setPixmap(0, (const TQPixmap &)sct);
+ node->setText(1, TQString::number( tmpPos, 10));
}
//kdDebug(13000)<<"Structure -- Inserted : "<<stripped<<" at row : "<<i<<endl;
stripped = "";