diff options
Diffstat (limited to 'umbrello/umbrello/dialogs/umlentityattributedialog.cpp')
-rw-r--r-- | umbrello/umbrello/dialogs/umlentityattributedialog.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/umbrello/umbrello/dialogs/umlentityattributedialog.cpp b/umbrello/umbrello/dialogs/umlentityattributedialog.cpp index ef6a5791..55a47857 100644 --- a/umbrello/umbrello/dialogs/umlentityattributedialog.cpp +++ b/umbrello/umbrello/dialogs/umlentityattributedialog.cpp @@ -13,13 +13,13 @@ #include "umlentityattributedialog.h" // qt includes -#include <qlayout.h> -#include <qlineedit.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqlabel.h> // kde includes #include <kcombobox.h> @@ -39,7 +39,7 @@ #include "../object_factory.h" #include "../umlclassifierlist.h" -UMLEntityAttributeDialog::UMLEntityAttributeDialog( QWidget * pParent, UMLEntityAttribute * pEntityAttribute ) +UMLEntityAttributeDialog::UMLEntityAttributeDialog( TQWidget * pParent, UMLEntityAttribute * pEntityAttribute ) : KDialogBase( Plain, i18n("Entity Attribute Properties"), Help | Ok | Cancel , Ok, pParent, "_UMLENTITYATTRIBUTEDLG_", true, true) { m_pEntityAttribute = pEntityAttribute; setupDialog(); @@ -51,14 +51,14 @@ void UMLEntityAttributeDialog::setupDialog() { UMLDoc * pDoc = UMLApp::app()->getDocument(); int margin = fontMetrics().height(); - QVBoxLayout * mainLayout = new QVBoxLayout( plainPage() ); + TQVBoxLayout * mainLayout = new TQVBoxLayout( plainPage() ); - m_pValuesGB = new QGroupBox(i18n("General Properties"), plainPage() ); - QGridLayout * valuesLayout = new QGridLayout(m_pValuesGB, 5, 2); + m_pValuesGB = new TQGroupBox(i18n("General Properties"), plainPage() ); + TQGridLayout * valuesLayout = new TQGridLayout(m_pValuesGB, 5, 2); valuesLayout -> setMargin(margin); valuesLayout -> setSpacing(10); - m_pTypeL = new QLabel(i18n("&Type:"), m_pValuesGB); + m_pTypeL = new TQLabel(i18n("&Type:"), m_pValuesGB); valuesLayout -> addWidget(m_pTypeL, 0, 0); m_pTypeCB = new KComboBox(true, m_pValuesGB); @@ -81,15 +81,15 @@ void UMLEntityAttributeDialog::setupDialog() { m_pValuesL, i18n("Length/Values:"), m_pValuesLE, m_pEntityAttribute->getValues() ); - m_pAutoIncrementCB = new QCheckBox( i18n("&Auto increment"), m_pValuesGB ); + m_pAutoIncrementCB = new TQCheckBox( i18n("&Auto increment"), m_pValuesGB ); m_pAutoIncrementCB->setChecked( m_pEntityAttribute->getAutoIncrement() ); valuesLayout->addWidget(m_pAutoIncrementCB, 5, 0); - m_pNullCB = new QCheckBox( i18n("Allow &null"), m_pValuesGB ); + m_pNullCB = new TQCheckBox( i18n("Allow &null"), m_pValuesGB ); m_pNullCB->setChecked( m_pEntityAttribute->getNull() ); valuesLayout->addWidget(m_pNullCB, 6, 0); - m_pAttributesL = new QLabel(i18n("Attributes:"), m_pValuesGB); + m_pAttributesL = new TQLabel(i18n("Attributes:"), m_pValuesGB); valuesLayout->addWidget(m_pAttributesL, 7, 0); m_pAttributesCB = new KComboBox(true, m_pValuesGB); @@ -105,20 +105,20 @@ void UMLEntityAttributeDialog::setupDialog() { mainLayout -> addWidget(m_pValuesGB); - m_pScopeBG = new QButtonGroup(i18n("Indexing"), plainPage() ); - QHBoxLayout* scopeLayout = new QHBoxLayout(m_pScopeBG); + m_pScopeBG = new TQButtonGroup(i18n("Indexing"), plainPage() ); + TQHBoxLayout* scopeLayout = new TQHBoxLayout(m_pScopeBG); scopeLayout->setMargin(margin); - m_pNoneRB = new QRadioButton(i18n("&None"), m_pScopeBG); + m_pNoneRB = new TQRadioButton(i18n("&None"), m_pScopeBG); scopeLayout->addWidget(m_pNoneRB); - m_pPublicRB = new QRadioButton(i18n("&Primary"), m_pScopeBG); + m_pPublicRB = new TQRadioButton(i18n("&Primary"), m_pScopeBG); scopeLayout->addWidget(m_pPublicRB); - m_pPrivateRB = new QRadioButton(i18n("&Index"), m_pScopeBG); + m_pPrivateRB = new TQRadioButton(i18n("&Index"), m_pScopeBG); scopeLayout->addWidget(m_pPrivateRB); - m_pProtectedRB = new QRadioButton(i18n("&Unique"), m_pScopeBG); + m_pProtectedRB = new TQRadioButton(i18n("&Unique"), m_pScopeBG); scopeLayout->addWidget(m_pProtectedRB); mainLayout->addWidget(m_pScopeBG); @@ -154,7 +154,7 @@ void UMLEntityAttributeDialog::setupDialog() { int typeBoxCount = 0; bool foundType = false; while (typeBoxCount < m_pTypeCB->count() && foundType == false) { - QString typeBoxString = m_pTypeCB->text(typeBoxCount); + TQString typeBoxString = m_pTypeCB->text(typeBoxCount); if ( typeBoxString == m_pEntityAttribute->getTypeName() ) { foundType = true; m_pTypeCB->setCurrentItem(typeBoxCount); @@ -169,17 +169,17 @@ void UMLEntityAttributeDialog::setupDialog() { } m_pNameLE->setFocus(); - connect( m_pNameLE, SIGNAL( textChanged ( const QString & ) ), SLOT( slotNameChanged( const QString & ) ) ); + connect( m_pNameLE, TQT_SIGNAL( textChanged ( const TQString & ) ), TQT_SLOT( slotNameChanged( const TQString & ) ) ); slotNameChanged(m_pNameLE->text() ); } -void UMLEntityAttributeDialog::slotNameChanged( const QString &_text ) +void UMLEntityAttributeDialog::slotNameChanged( const TQString &_text ) { enableButtonOK( !_text.isEmpty() ); } bool UMLEntityAttributeDialog::apply() { - QString name = m_pNameLE->text(); + TQString name = m_pNameLE->text(); if (name.isEmpty()) { KMessageBox::error(this, i18n("You have entered an invalid entity attribute name."), i18n("Entity Attribute Name Invalid"), false); @@ -212,7 +212,7 @@ bool UMLEntityAttributeDialog::apply() { m_pEntityAttribute->setIndexType(Uml::None); } - QString typeName = m_pTypeCB->currentText(); + TQString typeName = m_pTypeCB->currentText(); UMLDoc *pDoc = UMLApp::app()->getDocument(); UMLClassifierList dataTypes = pDoc->getDatatypes(); UMLClassifier *dat; @@ -248,12 +248,12 @@ void UMLEntityAttributeDialog::slotOk() { } } -void UMLEntityAttributeDialog::insertType( const QString& type, int index ) { +void UMLEntityAttributeDialog::insertType( const TQString& type, int index ) { m_pTypeCB->insertItem( type, index ); m_pTypeCB->completionObject()->addItem( type ); } -void UMLEntityAttributeDialog::insertAttribute( const QString& type, int index ) { +void UMLEntityAttributeDialog::insertAttribute( const TQString& type, int index ) { m_pAttributesCB->insertItem( type, index ); m_pAttributesCB->completionObject()->addItem( type ); } |