diff options
Diffstat (limited to 'kbarcode/batchwizard.cpp')
-rw-r--r-- | kbarcode/batchwizard.cpp | 83 |
1 files changed, 41 insertions, 42 deletions
diff --git a/kbarcode/batchwizard.cpp b/kbarcode/batchwizard.cpp index 09c2fe4..13c41fc 100644 --- a/kbarcode/batchwizard.cpp +++ b/kbarcode/batchwizard.cpp @@ -134,7 +134,7 @@ void BatchWizard::setupPage1() addPage( page1, i18n("File Selection") ); - connect( m_url, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( enableControls() ) ); + connect( m_url, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( enableControls() ) ); } void BatchWizard::setupPage2() @@ -154,10 +154,10 @@ void BatchWizard::setupPage2() pageLayout->addWidget( group ); pageLayout->addItem( spacer ); - connect( radioSimple, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioSqlArticles, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioVarImport, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioAddressBook, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); + connect( radioSimple, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioSqlArticles, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioVarImport, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioAddressBook, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); addPage( page2, i18n("Data Source") ); } @@ -193,13 +193,13 @@ void BatchWizard::setupPage4() addPage( page4, i18n("Import Variables") ); - connect( buttonTableInsert, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotTableInsert() ) ); - connect( buttonTableRemove, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotTableRemove() ) ); + connect( buttonTableInsert, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotTableInsert() ) ); + connect( buttonTableRemove, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotTableRemove() ) ); } void BatchWizard::setupPage5() { - TokenProvider serial( TQT_TQPAINTDEVICE(this) ); + TokenProvider serial( this ); page5 = new TQVBox( this, "page5" ); @@ -274,15 +274,15 @@ void BatchWizard::setupPage10() pageLayout->addWidget( labelInfo ); pageLayout->addWidget( checkKeepOpen ); - connect( radioPrinter, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioImage, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioBarcode, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); + connect( radioPrinter, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioImage, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioBarcode, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); - connect( radioImageFilenameArticle, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioImageFilenameBarcode, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioImageFilenameCustom, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); + connect( radioImageFilenameArticle, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioImageFilenameBarcode, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioImageFilenameCustom, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); - connect( imageDirPath, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( enableControls() ) ); + connect( imageDirPath, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( enableControls() ) ); addPage( page10, i18n("Output Device") ); } @@ -309,9 +309,9 @@ void BatchWizard::setupStackPage1() buttonRemoveAll = new KPushButton( i18n("R&emove All"), hButtonBox ); TDEPopupMenu* mnuImport = new TDEPopupMenu( this ); - mnuImport->insertItem( i18n("Import from File ..."), this, TQT_SLOT( loadFromFile() ) ); - mnuImport->insertItem( i18n("Import from Clipboard ..."), this, TQT_SLOT( loadFromClipboard() ) ); - mnuImport->insertItem( i18n("Import barcode_basic"), this, TQT_SLOT( addAllItems() ) ); + mnuImport->insertItem( i18n("Import from File ..."), this, TQ_SLOT( loadFromFile() ) ); + mnuImport->insertItem( i18n("Import from Clipboard ..."), this, TQ_SLOT( loadFromClipboard() ) ); + mnuImport->insertItem( i18n("Import barcode_basic"), this, TQ_SLOT( addAllItems() ) ); buttonImport->setPopup( mnuImport ); sqlList = new TDEListView( stack1 ); @@ -320,16 +320,16 @@ void BatchWizard::setupStackPage1() sqlList->addColumn( i18n("Article Number") ); sqlList->addColumn( i18n("Group") ); sqlList->setAllColumnsShowFocus( true ); - connect( sqlList, TQT_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint &,int)), - this, TQT_SLOT(changeItem(TQListViewItem*,const TQPoint &,int))); + connect( sqlList, TQ_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint &,int)), + this, TQ_SLOT(changeItem(TQListViewItem*,const TQPoint &,int))); - connect( customerName, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( customerNameChanged(int) ) ); - connect( customerId, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( customerIdChanged(int) ) ); - connect( buttonAdd, TQT_SIGNAL( clicked() ), this, TQT_SLOT( addItem() ) ); - connect( buttonEdit, TQT_SIGNAL( clicked() ), this, TQT_SLOT( editItem() ) ); - connect( buttonRemove, TQT_SIGNAL( clicked() ), this, TQT_SLOT( removeItem() ) ); - connect( buttonRemoveAll, TQT_SIGNAL( clicked() ), sqlList, TQT_SLOT( clear() ) ); - connect( buttonRemoveAll, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); + connect( customerName, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( customerNameChanged(int) ) ); + connect( customerId, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( customerIdChanged(int) ) ); + connect( buttonAdd, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addItem() ) ); + connect( buttonEdit, TQ_SIGNAL( clicked() ), this, TQ_SLOT( editItem() ) ); + connect( buttonRemove, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeItem() ) ); + connect( buttonRemoveAll, TQ_SIGNAL( clicked() ), sqlList, TQ_SLOT( clear() ) ); + connect( buttonRemoveAll, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); page3->addWidget( stack1 ); } @@ -362,11 +362,11 @@ void BatchWizard::setupStackPage2() new TQLabel( i18n("Available Variables:"), box ); m_varList = new TDEListBox( box ); - connect( radioImportManual, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioImportSql, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( radioImportCSV, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); - connect( importSqlQuery, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( enableControls() ) ); - connect( importCsvFile, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( enableControls() ) ); + connect( radioImportManual, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioImportSql, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( radioImportCSV, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableControls() ) ); + connect( importSqlQuery, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( enableControls() ) ); + connect( importCsvFile, TQ_SIGNAL( textChanged( const TQString & ) ), this, TQ_SLOT( enableControls() ) ); page3->addWidget( stack2 ); } @@ -452,10 +452,10 @@ void BatchWizard::setupStackPage4() listSelectedAddress->setColumnWidthMode( 1, TQListView::Maximum ); listSelectedAddress->setColumnWidthMode( 2, TQListView::Maximum ); - connect( buttonAddAddress, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddAddress() ) ); - connect( buttonRemoveAddress, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveAddress() ) ); - connect( buttonAddAllAddress, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddAllAddress() ) ); - connect( buttonRemoveAllAddress, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveAllAddress() ) ); + connect( buttonAddAddress, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddAddress() ) ); + connect( buttonRemoveAddress, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRemoveAddress() ) ); + connect( buttonAddAllAddress, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddAllAddress() ) ); + connect( buttonRemoveAllAddress, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRemoveAllAddress() ) ); page3->addWidget( stack4 ); } @@ -725,8 +725,8 @@ void BatchWizard::addItem() { DSSmallDialogs::AddItemsDialog aid( this, "aid" ); aid.setGroupCompletion( compGroup ); - connect( &aid, TQT_SIGNAL( add( const TQString &, const TQString &, int) ), - this, TQT_SLOT( slotAddItem( const TQString &, const TQString &, int) ) ); + connect( &aid, TQ_SIGNAL( add( const TQString &, const TQString &, int) ), + this, TQ_SLOT( slotAddItem( const TQString &, const TQString &, int) ) ); aid.exec(); } @@ -999,9 +999,8 @@ void BatchWizard::fillVarList() XMLUtils util; DocumentItemList list; - list.setAutoDelete( true ); - TokenProvider token( TQT_TQPAINTDEVICE(this) ); + TokenProvider token( this ); Definition* def = NULL; TQString description; @@ -1017,8 +1016,8 @@ void BatchWizard::fillVarList() m_varTable->setNumCols( vars.count() ); for( unsigned int i = 0; i < vars.count(); i++ ) { - vars[i] = vars[i].right( vars[i].length() - 1 ); - m_varTable->horizontalHeader()->setLabel( i, vars[i] ); + vars[i] = vars[i].right( vars[i].length() - 1 ); + m_varTable->horizontalHeader()->setLabel( i, vars[i] ); } delete def; |