diff options
Diffstat (limited to 'buildtools/autotools/addexistingfilesdlg.cpp')
-rw-r--r-- | buildtools/autotools/addexistingfilesdlg.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/buildtools/autotools/addexistingfilesdlg.cpp b/buildtools/autotools/addexistingfilesdlg.cpp index 00f3e61b..6d3224df 100644 --- a/buildtools/autotools/addexistingfilesdlg.cpp +++ b/buildtools/autotools/addexistingfilesdlg.cpp @@ -16,15 +16,15 @@ /** Here resides the Import-existing-files-dialog of the Automake Manager (a KDevelop build tool part) **/ -#include <qapplication.h> -#include <qgroupbox.h> -#include <qlabel.h> -//#include <qlistbox.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qpixmap.h> +#include <tqapplication.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +//#include <tqlistbox.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqpixmap.h> #include <kdebug.h> #include <kfileview.h> @@ -56,7 +56,7 @@ * TRUE to construct a modal dialog. */ -AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProjectWidget *widget, SubprojectItem* spitem, TargetItem* titem, QWidget* parent, const char* name, bool modal, WFlags fl ) +AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProjectWidget *widget, SubprojectItem* spitem, TargetItem* titem, TQWidget* parent, const char* name, bool modal, WFlags fl ) : AddExistingDlgBase ( parent, name, modal, fl ) { m_spitem = spitem; @@ -72,7 +72,7 @@ AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProj if ( titem->name.isEmpty() ) { - QString target = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix ); + TQString target = i18n ( "%1 in %2" ).arg ( titem->primary ).arg ( titem->prefix ); targetLabel->setText ( target ); } else @@ -89,13 +89,13 @@ AddExistingFilesDialog::AddExistingFilesDialog ( AutoProjectPart* part, AutoProj destGroupBoxLayout->addWidget ( importView ); //destGroupBoxLayout->setStretchFactor(dir, 2); - QWidget::setTabOrder(sourceSelector, addAllButton); - QWidget::setTabOrder(addAllButton, addSelectedButton); - QWidget::setTabOrder(addSelectedButton, importView); - QWidget::setTabOrder(importView, removeAllButton); - QWidget::setTabOrder(removeAllButton, removeSelectedButton); - QWidget::setTabOrder(removeSelectedButton, okButton); - QWidget::setTabOrder(okButton, cancelButton); + TQWidget::setTabOrder(sourceSelector, addAllButton); + TQWidget::setTabOrder(addAllButton, addSelectedButton); + TQWidget::setTabOrder(addSelectedButton, importView); + TQWidget::setTabOrder(importView, removeAllButton); + TQWidget::setTabOrder(removeAllButton, removeSelectedButton); + TQWidget::setTabOrder(removeSelectedButton, okButton); + TQWidget::setTabOrder(okButton, cancelButton); sourceSelector->setFocus(); @@ -114,7 +114,7 @@ AddExistingFilesDialog::~AddExistingFilesDialog() } -// void AddExistingFilesDialog::resizeEvent ( QResizeEvent* ev ) +// void AddExistingFilesDialog::resizeEvent ( TQResizeEvent* ev ) // { // AddExistingDlgBase::resizeEvent ( ev ); // //importView->update(); @@ -128,14 +128,14 @@ void AddExistingFilesDialog::init() importView->setMode ( KIconView::Select ); importView->setItemsMovable ( false ); - connect ( okButton, SIGNAL ( clicked () ), this, SLOT ( slotOk () ) ); + connect ( okButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotOk () ) ); - connect ( addSelectedButton, SIGNAL ( clicked () ), this, SLOT ( slotAddSelected() ) ); - connect ( addAllButton, SIGNAL ( clicked () ), this, SLOT ( slotAddAll() ) ); - connect ( removeSelectedButton, SIGNAL ( clicked () ), this, SLOT ( slotRemoveSelected() ) ); - connect ( removeAllButton, SIGNAL ( clicked () ), this, SLOT ( slotRemoveAll() ) ); + connect ( addSelectedButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddSelected() ) ); + connect ( addAllButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddAll() ) ); + connect ( removeSelectedButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRemoveSelected() ) ); + connect ( removeAllButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRemoveAll() ) ); - connect ( importView, SIGNAL ( dropped( QDropEvent* ) ), this, SLOT ( slotDropped ( QDropEvent* ) ) ); + connect ( importView, TQT_SIGNAL ( dropped( TQDropEvent* ) ), this, TQT_SLOT ( slotDropped ( TQDropEvent* ) ) ); importView->setSelectionMode ( KFile::Multi ); @@ -154,9 +154,9 @@ void AddExistingFilesDialog::importItems() // items already added to the importView KFileItemListIterator importedList ( *importView->items() ); - QListViewItem* child = m_titem->firstChild(); + TQListViewItem* child = m_titem->firstChild(); - QStringList duplicateList; + TQStringList duplicateList; while ( child ) { @@ -229,7 +229,7 @@ void AddExistingFilesDialog::importItems() void AddExistingFilesDialog::slotOk() { - if ( importView->items()->count() == 0 ) QDialog::reject(); + if ( importView->items()->count() == 0 ) TQDialog::reject(); progressBar->show(); progressBar->setFormat ( i18n ( "Importing... %p%" ) ); @@ -241,7 +241,7 @@ void AddExistingFilesDialog::slotOk() // contains at the end only the imported files outside the subproject directory KFileItemList outsideList; - QStringList stringList; + TQStringList stringList; for ( ; items.current(); ++items ) { @@ -300,16 +300,16 @@ void AddExistingFilesDialog::slotOk() items.toFirst(); - QString canontargetname = AutoProjectTool::canonicalize ( m_titem->name ); - QString varname; + TQString canontargetname = AutoProjectTool::canonicalize ( m_titem->name ); + TQString varname; if( m_titem->primary == "PROGRAMS" || m_titem->primary == "LIBRARIES" || m_titem->primary == "LTLIBRARIES" ) varname = canontargetname + "_SOURCES"; else varname = m_titem->prefix + "_" + m_titem->primary; - QMap<QString,QString> replaceMap; + TQMap<TQString,TQString> replaceMap; FileItem* fitem = 0L; - QStringList fileList; + TQStringList fileList; for ( ; items.current(); ++items ) { @@ -329,7 +329,7 @@ void AddExistingFilesDialog::slotOk() AutoProjectTool::addToMakefileam ( m_spitem->path + "/Makefile.am", replaceMap ); - QDialog::accept(); + TQDialog::accept(); } @@ -413,7 +413,7 @@ void AddExistingFilesDialog::slotRemoveSelected() } -void AddExistingFilesDialog::slotDropped ( QDropEvent* ev ) +void AddExistingFilesDialog::slotDropped ( TQDropEvent* ev ) { kdDebug ( 9020 ) << "AddExistingFilesDialog::dropped()" << endl; |