diff options
Diffstat (limited to 'parts/classview')
-rw-r--r-- | parts/classview/classtooldlg.cpp | 26 | ||||
-rw-r--r-- | parts/classview/classtooldlg.h | 8 | ||||
-rw-r--r-- | parts/classview/classtoolwidget.cpp | 32 | ||||
-rw-r--r-- | parts/classview/classtoolwidget.h | 2 | ||||
-rw-r--r-- | parts/classview/classtreebase.cpp | 4 |
5 files changed, 36 insertions, 36 deletions
diff --git a/parts/classview/classtooldlg.cpp b/parts/classview/classtooldlg.cpp index 70e26439..7cce890a 100644 --- a/parts/classview/classtooldlg.cpp +++ b/parts/classview/classtooldlg.cpp @@ -38,11 +38,11 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part ) TQPushButton *close_button = new KPushButton(KStdGuiItem::close(), this); - tqparents_button = new TQToolButton(this); - tqparents_button->setPixmap( UserIcon("CTtqparents", KIcon::DefaultState, ClassViewFactory::instance()) ); - tqparents_button->setToggleButton(true); - tqparents_button->setFixedSize(tqparents_button->tqsizeHint()); - TQToolTip::add(tqparents_button, i18n("Show tqparents")); + parents_button = new TQToolButton(this); + parents_button->setPixmap( UserIcon("CTparents", KIcon::DefaultState, ClassViewFactory::instance()) ); + parents_button->setToggleButton(true); + parents_button->setFixedSize(parents_button->tqsizeHint()); + TQToolTip::add(parents_button, i18n("Show parents")); tqchildren_button = new TQToolButton(this); tqchildren_button->setPixmap( UserIcon("CTtqchildren", KIcon::DefaultState, ClassViewFactory::instance()) ); @@ -95,7 +95,7 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part ) firstrowLayout->addWidget(class_combo, 1); firstrowLayout->addWidget(close_button, 0); - secondrowLayout->addWidget(tqparents_button); + secondrowLayout->addWidget(parents_button); secondrowLayout->addWidget(tqchildren_button); secondrowLayout->addWidget(clients_button); secondrowLayout->addWidget(suppliers_button); @@ -112,7 +112,7 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part ) this, TQT_SLOT(slotClose()) ); connect( access_combo, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(slotAccessComboChoice(const TQString&)) ); - connect( tqparents_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewParents())); + connect( parents_button, TQT_SIGNAL(clicked()), TQT_SLOT(viewParents())); connect( tqchildren_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())); @@ -170,7 +170,7 @@ void ClassToolDialog::viewNone() } -/** View the tqparents of the current class. */ +/** View the parents of the current class. */ void ClassToolDialog::viewParents() { currentOperation = ViewParents; @@ -202,7 +202,7 @@ void ClassToolDialog::viewSuppliers() } -/** View methods in this class and tqparents. */ +/** View methods in this class and parents. */ void ClassToolDialog::viewMethods() { currentOperation = ViewMethods; @@ -210,7 +210,7 @@ void ClassToolDialog::viewMethods() } -/** View attributes in this class and tqparents. */ +/** View attributes in this class and parents. */ void ClassToolDialog::viewAttributes() { currentOperation = ViewAttributes; @@ -283,7 +283,7 @@ void ClassToolDialog::updateCaptionAndButtons() switch (currentOperation) { case ViewParents: - button = tqparents_button; + button = parents_button; caption = i18n("Parents"); break; case ViewChildren: @@ -312,7 +312,7 @@ void ClassToolDialog::updateCaptionAndButtons() break; } - tqparents_button->setOn(false); + parents_button->setOn(false); tqchildren_button->setOn(false); clients_button->setOn(false); suppliers_button->setOn(false); @@ -339,7 +339,7 @@ void ClassToolDialog::buildTree() switch (currentOperation) { case ViewParents: - class_tree->insertClassAndClasses(currentClass, currentClass->tqparents); + class_tree->insertClassAndClasses(currentClass, currentClass->parents); break; case ViewChildren: { diff --git a/parts/classview/classtooldlg.h b/parts/classview/classtooldlg.h index a33c7f2b..c8d88e71 100644 --- a/parts/classview/classtooldlg.h +++ b/parts/classview/classtooldlg.h @@ -45,7 +45,7 @@ public slots: /** View nothing. */ void viewNone(); - /** View the tqparents of the current class. */ + /** View the parents of the current class. */ void viewParents(); /** View the tqchildren of the current class. */ void viewChildren(); @@ -53,9 +53,9 @@ public slots: void viewClients(); /** View all classes that this class has as attributes. */ void viewSuppliers(); - /** View methods in this class and tqparents. */ + /** View methods in this class and parents. */ void viewMethods(); - /** View attributes in this class and tqparents. */ + /** View attributes in this class and parents. */ void viewAttributes(); private slots: @@ -75,7 +75,7 @@ private: ClassToolWidget *class_tree; TQComboBox *class_combo; - TQToolButton *tqparents_button; + TQToolButton *parents_button; TQToolButton *tqchildren_button; TQToolButton *clients_button; TQToolButton *suppliers_button; diff --git a/parts/classview/classtoolwidget.cpp b/parts/classview/classtoolwidget.cpp index 59e744f1..2817db82 100644 --- a/parts/classview/classtoolwidget.cpp +++ b/parts/classview/classtoolwidget.cpp @@ -60,16 +60,16 @@ void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, TQValueLis } -void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, const TQPtrList<ParsedParent> &tqparentList) +void ClassToolWidget::insertClassAndClasses(ParsedClass *parsedClass, const TQPtrList<ParsedParent> &parentList) { ClassTreeItem *root = new ClassTreeClassItem(this, 0, parsedClass); ClassTreeItem *lastItem = 0; - TQPtrListIterator<ParsedParent> it(tqparentList); + TQPtrListIterator<ParsedParent> it(parentList); for (; it.current(); ++it) { - ParsedClass *tqparentClass = m_part->classStore()->getClassByName((*it)->name()); - lastItem = new ClassTreeClassItem(root, lastItem, tqparentClass); + ParsedClass *parentClass = m_part->classStore()->getClassByName((*it)->name()); + lastItem = new ClassTreeClassItem(root, lastItem, parentClass); lastItem->setExpandable(false); } @@ -124,14 +124,14 @@ void ClassToolWidget::insertAllClassMethods(ParsedClass *parsedClass, PIAccess f { ClassTreeItem *lastItem = 0; - // First treat all tqparents. - for ( ParsedParent *pParent = parsedClass->tqparents.first(); + // First treat all parents. + for ( ParsedParent *pParent = parsedClass->parents.first(); pParent != 0; - pParent = parsedClass->tqparents.next() ) + pParent = parsedClass->parents.next() ) { - ParsedClass *tqparentClass = m_part->classStore()->getClassByName(pParent->name()); - if (tqparentClass) - addClassAndMethods(tqparentClass, filter, &lastItem); + ParsedClass *parentClass = m_part->classStore()->getClassByName(pParent->name()); + if (parentClass) + addClassAndMethods(parentClass, filter, &lastItem); } // Add the current class @@ -142,14 +142,14 @@ void ClassToolWidget::insertAllClassMethods(ParsedClass *parsedClass, PIAccess f void ClassToolWidget::insertAllClassAttributes(ParsedClass *parsedClass, PIAccess filter) { ClassTreeItem *lastItem = 0; - // First treat all tqparents. - for ( ParsedParent *pParent = parsedClass->tqparents.first(); + // First treat all parents. + for ( ParsedParent *pParent = parsedClass->parents.first(); pParent != 0; - pParent = parsedClass->tqparents.next() ) + pParent = parsedClass->parents.next() ) { - ParsedClass *tqparentClass = m_part->classStore()->getClassByName(pParent->name()); - if (tqparentClass) - addClassAndAttributes(tqparentClass, filter, &lastItem); + ParsedClass *parentClass = m_part->classStore()->getClassByName(pParent->name()); + if (parentClass) + addClassAndAttributes(parentClass, filter, &lastItem); } // Add the current class diff --git a/parts/classview/classtoolwidget.h b/parts/classview/classtoolwidget.h index 740d5545..9ad4ef4a 100644 --- a/parts/classview/classtoolwidget.h +++ b/parts/classview/classtoolwidget.h @@ -27,7 +27,7 @@ public: ~ClassToolWidget(); void insertClassAndClasses(ParsedClass *parsedClass, TQValueList<ParsedClass*> classList); - void insertClassAndClasses(ParsedClass *parsedClass, const TQPtrList<ParsedParent> &tqparentList); + void insertClassAndClasses(ParsedClass *parsedClass, const TQPtrList<ParsedParent> &parentList); void insertAllClassMethods(ParsedClass *parsedClass, PIAccess filter); void insertAllClassAttributes(ParsedClass *parsedClass, PIAccess filter); diff --git a/parts/classview/classtreebase.cpp b/parts/classview/classtreebase.cpp index 00a5a87a..f4e21f2a 100644 --- a/parts/classview/classtreebase.cpp +++ b/parts/classview/classtreebase.cpp @@ -433,7 +433,7 @@ protected: void ClassToolTip::maybeTip(const TQPoint &p) { - ClassTreeBase *ctw = static_cast<ClassTreeBase*>(tqparentWidget()); + ClassTreeBase *ctw = static_cast<ClassTreeBase*>(parentWidget()); TQListViewItem *item = ctw->itemAt(p); TQRect r = ctw->tqitemRect(item); @@ -525,7 +525,7 @@ void ClassTreeBase::slotItemExecuted( TQListViewItem* item ) if (!item) return; - // toggle open state for tqparents + // toggle open state for parents if (item->childCount() > 0) setOpen(item, !isOpen(item)); |