diff options
Diffstat (limited to 'umbrello/umbrello/refactoring/refactoringassistant.cpp')
-rw-r--r-- | umbrello/umbrello/refactoring/refactoringassistant.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/umbrello/umbrello/refactoring/refactoringassistant.cpp b/umbrello/umbrello/refactoring/refactoringassistant.cpp index bd55cf5d..dbaf73e5 100644 --- a/umbrello/umbrello/refactoring/refactoringassistant.cpp +++ b/umbrello/umbrello/refactoring/refactoringassistant.cpp @@ -56,9 +56,9 @@ RefactoringAssistant::RefactoringAssistant( UMLDoc *doc, UMLClassifier *obj, TQW m_menu = new TQPopupMenu(this); - connect(this,TQT_SIGNAL(doubleClicked(TQListViewItem*)),this,TQT_SLOT(itemExecuted(TQListViewItem*))); - connect(this,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), - this,TQT_SLOT(showContextMenu(TDEListView*,TQListViewItem*,const TQPoint&))); + connect(this,TQ_SIGNAL(doubleClicked(TQListViewItem*)),this,TQ_SLOT(itemExecuted(TQListViewItem*))); + connect(this,TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this,TQ_SLOT(showContextMenu(TDEListView*,TQListViewItem*,const TQPoint&))); resize(300,400); @@ -177,7 +177,7 @@ void RefactoringAssistant::operationAdded( UMLClassifierListItem *o ) { item = new TDEListViewItem( folder, op->getName() ); m_umlObjectMap[item] = op; - connect( op, TQT_SIGNAL( modified() ), this, TQT_SLOT( umlObjectModified() ) ); + connect( op, TQ_SIGNAL( modified() ), this, TQ_SLOT( umlObjectModified() ) ); setVisibilityIcon( item, op ); break; } @@ -192,7 +192,7 @@ void RefactoringAssistant::operationRemoved( UMLClassifierListItem *o ) { return; } - disconnect( op, TQT_SIGNAL( modified() ), this, TQT_SLOT( umlObjectModified() ) ); + disconnect( op, TQ_SIGNAL( modified() ), this, TQ_SLOT( umlObjectModified() ) ); m_umlObjectMap.erase(item); delete item; } @@ -219,7 +219,7 @@ void RefactoringAssistant::attributeAdded( UMLClassifierListItem *a ) { item = new TDEListViewItem( folder, att->getName() ); m_umlObjectMap[item] = att; - connect( att, TQT_SIGNAL( modified() ), this, TQT_SLOT( umlObjectModified() ) ); + connect( att, TQ_SIGNAL( modified() ), this, TQ_SLOT( umlObjectModified() ) ); setVisibilityIcon( item, att ); break; } @@ -234,7 +234,7 @@ void RefactoringAssistant::attributeRemoved( UMLClassifierListItem *a ) { return; } - disconnect( att, TQT_SIGNAL( modified() ), this, TQT_SLOT( umlObjectModified() ) ); + disconnect( att, TQ_SIGNAL( modified() ), this, TQ_SLOT( umlObjectModified() ) ); m_umlObjectMap.erase(item); delete item; } @@ -286,17 +286,17 @@ void RefactoringAssistant::showContextMenu(TDEListView* ,TQListViewItem *item, c Uml::Object_Type t = obj->getBaseType(); if (t == Uml::ot_Class) { - m_menu->insertItem(i18n("Add Base Class"),this,TQT_SLOT(addBaseClassifier())); - m_menu->insertItem(i18n("Add Derived Class"),this,TQT_SLOT(addDerivedClassifier())); - // m_menu->insertItem(i18n("Add Interface Implementation"),this,TQT_SLOT(addInterfaceImplementation())); - m_menu->insertItem(i18n("Add Operation"),this,TQT_SLOT(createOperation())); - m_menu->insertItem(i18n("Add Attribute"),this,TQT_SLOT(createAttribute())); + m_menu->insertItem(i18n("Add Base Class"),this,TQ_SLOT(addBaseClassifier())); + m_menu->insertItem(i18n("Add Derived Class"),this,TQ_SLOT(addDerivedClassifier())); + // m_menu->insertItem(i18n("Add Interface Implementation"),this,TQ_SLOT(addInterfaceImplementation())); + m_menu->insertItem(i18n("Add Operation"),this,TQ_SLOT(createOperation())); + m_menu->insertItem(i18n("Add Attribute"),this,TQ_SLOT(createAttribute())); } else if (t == Uml::ot_Interface) { - m_menu->insertItem(i18n("Add Base Interface"),this,TQT_SLOT(addSuperClassifier())); - m_menu->insertItem(i18n("Add Derived Interface"),this,TQT_SLOT(addDerivedClassifier())); - m_menu->insertItem(i18n("Add Operation"),this,TQT_SLOT(createOperation())); + m_menu->insertItem(i18n("Add Base Interface"),this,TQ_SLOT(addSuperClassifier())); + m_menu->insertItem(i18n("Add Derived Interface"),this,TQ_SLOT(addDerivedClassifier())); + m_menu->insertItem(i18n("Add Operation"),this,TQ_SLOT(createOperation())); } // else // { @@ -304,17 +304,17 @@ void RefactoringAssistant::showContextMenu(TDEListView* ,TQListViewItem *item, c // return; // } m_menu->insertSeparator(); - m_menu->insertItem(i18n("Properties"),this,TQT_SLOT(editProperties())); + m_menu->insertItem(i18n("Properties"),this,TQ_SLOT(editProperties())); } else {//menu for other ViewItems if( item->text(1) == "operations" ) { - m_menu->insertItem(i18n("Add Operation"),this,TQT_SLOT(createOperation())); + m_menu->insertItem(i18n("Add Operation"),this,TQ_SLOT(createOperation())); } else if( item->text(1) == "attributes" ) { - m_menu->insertItem(i18n("Add Attribute"),this,TQT_SLOT(createAttribute())); + m_menu->insertItem(i18n("Add Attribute"),this,TQ_SLOT(createAttribute())); } else { @@ -469,15 +469,15 @@ void RefactoringAssistant::addClassifier( UMLClassifier *classifier, TQListViewI m_umlObjectMap[classifierItem] = classifier; } - connect( classifier, TQT_SIGNAL( modified() ), this, TQT_SLOT( umlObjectModified() ) ); + connect( classifier, TQ_SIGNAL( modified() ), this, TQ_SLOT( umlObjectModified() ) ); UMLClassifier *klass = dynamic_cast<UMLClassifier*>(classifier); if( klass ) {// only Classes have attributes... - connect( classifier, TQT_SIGNAL(attributeAdded(UMLClassifierListItem*)), - this, TQT_SLOT(attributeAdded(UMLClassifierListItem*))); - connect( classifier, TQT_SIGNAL(attributeRemoved(UMLClassifierListItem*)), - this, TQT_SLOT(attributeRemoved(UMLClassifierListItem*))); + connect( classifier, TQ_SIGNAL(attributeAdded(UMLClassifierListItem*)), + this, TQ_SLOT(attributeAdded(UMLClassifierListItem*))); + connect( classifier, TQ_SIGNAL(attributeRemoved(UMLClassifierListItem*)), + this, TQ_SLOT(attributeRemoved(UMLClassifierListItem*))); TQListViewItem *attsFolder = new TDEListViewItem( classifierItem, i18n("Attributes"), "attributes" ); attsFolder->setPixmap(0,SmallIcon("folder_green_open")); @@ -491,10 +491,10 @@ void RefactoringAssistant::addClassifier( UMLClassifier *classifier, TQListViewI } // add operations - connect( classifier, TQT_SIGNAL(operationAdded(UMLClassifierListItem*)), - this, TQT_SLOT(operationAdded(UMLClassifierListItem*))); - connect( classifier, TQT_SIGNAL(operationRemoved(UMLClassifierListItem*)), - this, TQT_SLOT(operationRemoved(UMLClassifierListItem*))); + connect( classifier, TQ_SIGNAL(operationAdded(UMLClassifierListItem*)), + this, TQ_SLOT(operationAdded(UMLClassifierListItem*))); + connect( classifier, TQ_SIGNAL(operationRemoved(UMLClassifierListItem*)), + this, TQ_SLOT(operationRemoved(UMLClassifierListItem*))); TQListViewItem *opsFolder = new TDEListViewItem( classifierItem, i18n("Operations"), "operations" ); opsFolder->setPixmap(0,SmallIcon("folder_blue_open")); |