summaryrefslogtreecommitdiffstats
path: root/parts/classview/classtooldlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/classview/classtooldlg.cpp')
-rw-r--r--parts/classview/classtooldlg.cpp100
1 files changed, 50 insertions, 50 deletions
diff --git a/parts/classview/classtooldlg.cpp b/parts/classview/classtooldlg.cpp
index 91ed28fc..df51f6f4 100644
--- a/parts/classview/classtooldlg.cpp
+++ b/parts/classview/classtooldlg.cpp
@@ -13,9 +13,9 @@
#include "classtooldlg.h"
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
#include <kdialog.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -27,54 +27,54 @@
ClassToolDialog::ClassToolDialog( ClassViewPart *part )
- : QWidget(0, "class tool dialog")
+ : TQWidget(0, "class tool dialog")
{
currentOperation = ViewNone;
comboAccess = (PIAccess)-1;
currentClass = 0;
m_part = part;
- class_combo = new QComboBox(false, this);
+ class_combo = new TQComboBox(false, this);
- QPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
+ TQPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
- parents_button = new QToolButton(this);
+ parents_button = new TQToolButton(this);
parents_button->setPixmap( UserIcon("CTparents", KIcon::DefaultState, ClassViewFactory::instance()) );
parents_button->setToggleButton(true);
parents_button->setFixedSize(parents_button->sizeHint());
- QToolTip::add(parents_button, i18n("Show parents"));
+ TQToolTip::add(parents_button, i18n("Show parents"));
- children_button = new QToolButton(this);
+ children_button = new TQToolButton(this);
children_button->setPixmap( UserIcon("CTchildren", KIcon::DefaultState, ClassViewFactory::instance()) );
children_button->setToggleButton(true);
children_button->setFixedSize(children_button->sizeHint());
- QToolTip::add(children_button, i18n("Show children"));
+ TQToolTip::add(children_button, i18n("Show children"));
- clients_button = new QToolButton(this);
+ clients_button = new TQToolButton(this);
clients_button->setPixmap( UserIcon("CTclients", KIcon::DefaultState, ClassViewFactory::instance()) );
clients_button->setToggleButton(true);
clients_button->setFixedSize(clients_button->sizeHint());
- QToolTip::add(clients_button, i18n("Show clients"));
+ TQToolTip::add(clients_button, i18n("Show clients"));
- suppliers_button = new QToolButton(this);
+ suppliers_button = new TQToolButton(this);
suppliers_button->setPixmap( UserIcon("CTsuppliers", KIcon::DefaultState, ClassViewFactory::instance()) );
suppliers_button->setToggleButton(true);
suppliers_button->setFixedSize(suppliers_button->sizeHint());
- QToolTip::add(suppliers_button, i18n("Show suppliers"));
+ TQToolTip::add(suppliers_button, i18n("Show suppliers"));
- methods_button = new QToolButton(this);
+ methods_button = new TQToolButton(this);
methods_button->setPixmap( UserIcon("CVpublic_meth", KIcon::DefaultState, ClassViewFactory::instance()) );
methods_button->setToggleButton(true);
methods_button->setFixedSize(methods_button->sizeHint());
- QToolTip::add(methods_button, i18n("Show methods"));
+ TQToolTip::add(methods_button, i18n("Show methods"));
- attributes_button = new QToolButton(this);
+ attributes_button = new TQToolButton(this);
attributes_button->setPixmap( UserIcon("CVpublic_var", KIcon::DefaultState, ClassViewFactory::instance()) );
attributes_button->setToggleButton(true);
attributes_button->setFixedSize(attributes_button->sizeHint());
- QToolTip::add(attributes_button, i18n("Show attributes"));
+ TQToolTip::add(attributes_button, i18n("Show attributes"));
- access_combo = new QComboBox(false, this, "access combo");
+ access_combo = new TQComboBox(false, this, "access combo");
access_combo->setMinimumWidth(100);
access_combo->setSizeLimit(10);
access_combo->insertItem(i18n("member access","All"));
@@ -86,9 +86,9 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part )
class_tree = new ClassToolWidget(part, this);
// classTree->setMinimumSize( 500, 400 );
- QVBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- QHBoxLayout *firstrowLayout = new QHBoxLayout();
- QHBoxLayout *secondrowLayout = new QHBoxLayout();
+ TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQHBoxLayout *firstrowLayout = new TQHBoxLayout();
+ TQHBoxLayout *secondrowLayout = new TQHBoxLayout();
layout->addLayout(firstrowLayout);
layout->addLayout(secondrowLayout);
@@ -106,21 +106,21 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part )
layout->addWidget(class_tree, 10);
- connect( class_combo, SIGNAL(activated(const QString&)),
- this, SLOT(slotClassComboChoice(const QString&)) );
- connect( close_button, SIGNAL(clicked()),
- this, SLOT(slotClose()) );
- connect( access_combo, SIGNAL(activated(const QString&)),
- this, SLOT(slotAccessComboChoice(const QString&)) );
- connect( parents_button, SIGNAL(clicked()), SLOT(viewParents()));
- connect( children_button, SIGNAL(clicked()), SLOT(viewChildren()));
- connect( clients_button, SIGNAL(clicked()), SLOT(viewClients()));
- connect( suppliers_button, SIGNAL(clicked()), SLOT(viewSuppliers()));
- connect( methods_button, SIGNAL(clicked()), SLOT(viewMethods()));
- connect( attributes_button, SIGNAL(clicked()), SLOT(viewAttributes()));
-
- connect( part, SIGNAL(setLanguageSupport(KDevLanguageSupport*)),
- this, SLOT(setLanguageSupport(KDevLanguageSupport*)) );
+ connect( class_combo, TQT_SIGNAL(activated(const TQString&)),
+ this, TQT_SLOT(slotClassComboChoice(const TQString&)) );
+ connect( close_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotClose()) );
+ connect( access_combo, TQT_SIGNAL(activated(const TQString&)),
+ this, TQT_SLOT(slotAccessComboChoice(const TQString&)) );
+ connect( parents_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewParents()));
+ connect( children_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewChildren()));
+ connect( clients_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewClients()));
+ connect( suppliers_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewSuppliers()));
+ connect( methods_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewMethods()));
+ connect( attributes_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewAttributes()));
+
+ connect( part, TQT_SIGNAL(setLanguageSupport(KDevLanguageSupport*)),
+ this, TQT_SLOT(setLanguageSupport(KDevLanguageSupport*)) );
m_part->registerClassToolDialog(this);
}
@@ -136,7 +136,7 @@ void ClassToolDialog::setLanguageSupport(KDevLanguageSupport *ls)
{
if (ls) {
disconnect(ls, 0, this, 0);
- connect(ls, SIGNAL(updatedSourceInfo()), this, SLOT(refresh()));
+ connect(ls, TQT_SIGNAL(updatedSourceInfo()), this, TQT_SLOT(refresh()));
} else
refresh();
@@ -144,11 +144,11 @@ void ClassToolDialog::setLanguageSupport(KDevLanguageSupport *ls)
}
-void ClassToolDialog::setClassName(const QString &name)
+void ClassToolDialog::setClassName(const TQString &name)
{
if ( class_combo->count() == 0 ) refresh();
- QListBox *lb = class_combo->listBox();
+ TQListBox *lb = class_combo->listBox();
for (int i=0; i < (int)lb->count(); ++i)
if (lb->text(i) == name) {
@@ -218,7 +218,7 @@ void ClassToolDialog::viewAttributes()
}
-void ClassToolDialog::slotAccessComboChoice(const QString &str)
+void ClassToolDialog::slotAccessComboChoice(const TQString &str)
{
if( str == i18n("member access","All") )
comboAccess = (PIAccess)-1;
@@ -240,7 +240,7 @@ void ClassToolDialog::slotAccessComboChoice(const QString &str)
void ClassToolDialog::slotClose()
{
delete this;
- // QTimer::singleShot(0, this, SLOT(delayedClose()));
+ // TQTimer::singleShot(0, this, TQT_SLOT(delayedClose()));
}
@@ -250,7 +250,7 @@ void ClassToolDialog::delayedClose()
}
-void ClassToolDialog::slotClassComboChoice(const QString &str)
+void ClassToolDialog::slotClassComboChoice(const TQString &str)
{
setClassName(str);
refresh();
@@ -262,10 +262,10 @@ void ClassToolDialog::refresh()
// Clear the combo box and fill it with the new items.
// Try to select the previously selected class
- QString oldName = class_combo->currentText();
+ TQString oldName = class_combo->currentText();
class_combo->clear();
- QStringList list = m_part->classStore()->getSortedClassNameList();
+ TQStringList list = m_part->classStore()->getSortedClassNameList();
class_combo->insertStringList(list);
setClassName(oldName);
@@ -277,8 +277,8 @@ void ClassToolDialog::refresh()
/** Change the caption depending on the current operation. */
void ClassToolDialog::updateCaptionAndButtons()
{
- QString caption;
- QToolButton *button;
+ TQString caption;
+ TQToolButton *button;
switch (currentOperation)
{
@@ -343,19 +343,19 @@ void ClassToolDialog::buildTree()
break;
case ViewChildren:
{
- QValueList<ParsedClass*> list = m_part->classStore()->getClassesByParent(currentClass->name());
+ TQValueList<ParsedClass*> list = m_part->classStore()->getClassesByParent(currentClass->name());
class_tree->insertClassAndClasses(currentClass, list);
}
break;
case ViewClients:
{
- QValueList<ParsedClass*> list = m_part->classStore()->getClassClients(currentClass->name());
+ TQValueList<ParsedClass*> list = m_part->classStore()->getClassClients(currentClass->name());
class_tree->insertClassAndClasses(currentClass, list);
}
break;
case ViewSuppliers:
{
- QValueList<ParsedClass*> list = m_part->classStore()->getClassSuppliers(currentClass->name());
+ TQValueList<ParsedClass*> list = m_part->classStore()->getClassSuppliers(currentClass->name());
class_tree->insertClassAndClasses(currentClass, list);
}
break;