summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-17 20:55:10 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-17 20:55:10 +0900
commit95d1e67dc4ccd69b814a2e1a0437c75017b92450 (patch)
treee0e2792ea0c88b09411ddc923a0459e9cf832a0c
parentd9f688ddbd88ddbac7dec1ab360d43b74edd022c (diff)
downloadkbarcode-95d1e67d.tar.gz
kbarcode-95d1e67d.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--kbarcode/barcodecombo.cpp2
-rw-r--r--kbarcode/databasebrowser.cpp14
-rw-r--r--kbarcode/dsmainwindow.cpp14
-rw-r--r--kbarcode/kbarcode.cpp18
-rw-r--r--kbarcode/labeleditor.cpp110
-rw-r--r--kbarcode/multilineeditdlg.cpp32
-rw-r--r--kbarcode/textlineedit.cpp18
7 files changed, 104 insertions, 104 deletions
diff --git a/kbarcode/barcodecombo.cpp b/kbarcode/barcodecombo.cpp
index 21208a6..5393a8f 100644
--- a/kbarcode/barcodecombo.cpp
+++ b/kbarcode/barcodecombo.cpp
@@ -112,7 +112,7 @@ void BarcodeCombo::setEncodingType( const TQString & type )
}
BarcodeWidget::BarcodeWidget(TQWidget *parent, const char *name )
- : TQWidget( parent, name ), m_validator( TQT_TQOBJECT(this) )
+ : TQWidget( parent, name ), m_validator( this )
{
m_token = NULL;
diff --git a/kbarcode/databasebrowser.cpp b/kbarcode/databasebrowser.cpp
index e3956ac..17aba81 100644
--- a/kbarcode/databasebrowser.cpp
+++ b/kbarcode/databasebrowser.cpp
@@ -52,7 +52,7 @@ DatabaseBrowser::DatabaseBrowser( TQString _database, TQWidget *parent, const ch
connect( table, TQT_SIGNAL( cursorChanged( TQSql::Op ) ),
SqlTables::getInstance(), TQT_SIGNAL( tablesChanged() ) );
- connect( TQT_TQOBJECT(this), TQT_SIGNAL( connectedSQL() ), this, TQT_SLOT( setupSql() ) );
+ connect( this, TQT_SIGNAL( connectedSQL() ), this, TQT_SLOT( setupSql() ) );
findDlg = 0;
@@ -81,10 +81,10 @@ void DatabaseBrowser::setupActions()
DSMainWindow::setupActions();
TDEPopupMenu* editMenu = new TDEPopupMenu( this );
- TDEAction* acut = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT( cut() ), actionCollection() );
- TDEAction* acopy = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( copy() ), actionCollection() );
- TDEAction* apaste = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( paste() ), actionCollection() );
- TDEAction* afind = KStdAction::find( TQT_TQOBJECT(this), TQT_SLOT( find() ), actionCollection() );
+ TDEAction* acut = KStdAction::cut( this, TQT_SLOT( cut() ), actionCollection() );
+ TDEAction* acopy = KStdAction::copy( this, TQT_SLOT( copy() ), actionCollection() );
+ TDEAction* apaste = KStdAction::paste( this, TQT_SLOT( paste() ), actionCollection() );
+ TDEAction* afind = KStdAction::find( this, TQT_SLOT( find() ), actionCollection() );
menuBar()->insertItem( i18n("&Edit"), editMenu, -1, 1 );
acut->plug( editMenu );
@@ -93,10 +93,10 @@ void DatabaseBrowser::setupActions()
editMenu->insertSeparator();
afind->plug( editMenu );
- KStdAction::findNext( TQT_TQOBJECT(this), TQT_SLOT( findNext() ), actionCollection() )->plug( editMenu );
+ KStdAction::findNext( this, TQT_SLOT( findNext() ), actionCollection() )->plug( editMenu );
editMenu->insertSeparator();
TDEAction* aimport = new TDEAction( i18n("&Import CSV File..."), "",
- 0, TQT_TQOBJECT(this), TQT_SLOT(import()), actionCollection(), "import" );
+ 0, this, TQT_SLOT(import()), actionCollection(), "import" );
aimport->plug( editMenu );
acut->plug( toolBar() );
diff --git a/kbarcode/dsmainwindow.cpp b/kbarcode/dsmainwindow.cpp
index 0510f3d..abba796 100644
--- a/kbarcode/dsmainwindow.cpp
+++ b/kbarcode/dsmainwindow.cpp
@@ -50,7 +50,7 @@ DSMainWindow::DSMainWindow(TQWidget *parent, const char *name, WFlags f)
loadConfig();
setAutoSaveSettings( TQString("Window") + name, true );
- connect( kapp, TQT_SIGNAL( aboutToQuit() ), TQT_TQOBJECT(this), TQT_SLOT( saveConfig() ) );
+ connect( kapp, TQT_SIGNAL( aboutToQuit() ), this, TQT_SLOT( saveConfig() ) );
if( first && startwizard ) {
wizard();
@@ -65,17 +65,17 @@ DSMainWindow::~DSMainWindow()
void DSMainWindow::setupActions()
{
- TDEAction* quitAct = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
- TDEAction* closeAct = KStdAction::close( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection(), "close" );
+ TDEAction* quitAct = KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
+ TDEAction* closeAct = KStdAction::close( this, TQT_SLOT( close() ), actionCollection(), "close" );
TDEAction* configureAct = KStdAction::preferences( KBarcodeSettings::getInstance(), TQT_SLOT(configure()), actionCollection() );
- TDEAction* wizardAct = new TDEAction( i18n("&Start Configuration Wizard..."), BarIcon("wizard"), 0, TQT_TQOBJECT(this),
+ TDEAction* wizardAct = new TDEAction( i18n("&Start Configuration Wizard..."), BarIcon("wizard"), 0, this,
TQT_SLOT(wizard()), actionCollection(), "wizard" );
- connectAct = new TDEAction(i18n("&Connect to Database"), BarIcon("connect_no"), 0, TQT_TQOBJECT(this), TQT_SLOT(connectMySQL()),
+ connectAct = new TDEAction(i18n("&Connect to Database"), BarIcon("connect_no"), 0, this, TQT_SLOT(connectMySQL()),
actionCollection(),"connect" );
- TDEAction* newTablesAct = new TDEAction( i18n("&Create Tables"), "", 0, TQT_TQOBJECT(this),
+ TDEAction* newTablesAct = new TDEAction( i18n("&Create Tables"), "", 0, this,
TQT_SLOT(newTables()), actionCollection(), "tables" );
importLabelDefAct = new TDEAction( i18n("&Import Label Definitions"), "", 0, SqlTables::getInstance(),
@@ -106,7 +106,7 @@ void DSMainWindow::setupActions()
configureAct->plug( settings );
wizardAct->plug( settings );
connectAct->plug( settings );
- (new TDEActionSeparator( TQT_TQOBJECT(this) ))->plug( settings );
+ (new TDEActionSeparator( this ))->plug( settings );
newTablesAct->plug( settings );
importLabelDefAct->plug( settings );
importExampleAct->plug( settings );
diff --git a/kbarcode/kbarcode.cpp b/kbarcode/kbarcode.cpp
index 64a5f41..fce7aa2 100644
--- a/kbarcode/kbarcode.cpp
+++ b/kbarcode/kbarcode.cpp
@@ -64,28 +64,28 @@ KBarcode::KBarcode( TQWidget *parent, const char *name, WFlags f)
layout->addWidget( buttonBatch );
layout->addWidget( buttonData );
- connect( buttonSingle, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( startBarcode() ) );
- connect( buttonEditor, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( startLabelEditor() ) );
- connect( buttonBatch, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this), TQT_SLOT( startBatchPrint() ) );
- connect( SqlTables::getInstance(), TQT_SIGNAL( connectedSQL() ), TQT_TQOBJECT(this), TQT_SLOT( enableData() ) );
+ connect( buttonSingle, TQT_SIGNAL( clicked() ), this, TQT_SLOT( startBarcode() ) );
+ connect( buttonEditor, TQT_SIGNAL( clicked() ), this, TQT_SLOT( startLabelEditor() ) );
+ connect( buttonBatch, TQT_SIGNAL( clicked() ), this, TQT_SLOT( startBatchPrint() ) );
+ connect( SqlTables::getInstance(), TQT_SIGNAL( connectedSQL() ), this, TQT_SLOT( enableData() ) );
setupActions();
show();
TDEAction* editLabelDefAct = new TDEAction(i18n("&Edit Label Definitions"), "",
- 0, TQT_TQOBJECT(this), TQT_SLOT(editLabelDef()), actionCollection(), "design" );
+ 0, this, TQT_SLOT(editLabelDef()), actionCollection(), "design" );
TDEAction* editArticleAct = new TDEAction(i18n("&Edit Articles"), "",
- 0, TQT_TQOBJECT(this), TQT_SLOT(editArticles()), actionCollection(), "design" );
+ 0, this, TQT_SLOT(editArticles()), actionCollection(), "design" );
TDEAction* editCustomerAct = new TDEAction(i18n("&Edit Customers"), "",
- 0, TQT_TQOBJECT(this), TQT_SLOT(editCustomers()), actionCollection(), "design" );
+ 0, this, TQT_SLOT(editCustomers()), actionCollection(), "design" );
TDEAction* editCustomerTextAct = new TDEAction(i18n("&Edit Customer Text"), "",
- 0, TQT_TQOBJECT(this), TQT_SLOT(editCustomerText()), actionCollection() );
+ 0, this, TQT_SLOT(editCustomerText()), actionCollection() );
TDEAction* importCSVAct = new TDEAction(i18n("&Import CSV File..."), "",
- 0, TQT_TQOBJECT(this), TQT_SLOT(importCSV()), actionCollection() );
+ 0, this, TQT_SLOT(importCSV()), actionCollection() );
TDEPopupMenu* data = new TDEPopupMenu( buttonData );
editLabelDefAct->plug( data );
diff --git a/kbarcode/labeleditor.cpp b/kbarcode/labeleditor.cpp
index 09d5ac1..a4fde3d 100644
--- a/kbarcode/labeleditor.cpp
+++ b/kbarcode/labeleditor.cpp
@@ -139,7 +139,7 @@ LabelEditor::LabelEditor( TQWidget *parent, TQString _filename, const char *name
statusBar()->setSizeGripEnabled( true );
statusBar()->show();
- c = new MyCanvas( TQT_TQOBJECT(this) );
+ c = new MyCanvas( this );
c->setDoubleBuffering( true );
c->setUpdatePeriod( CANVAS_UPDATE_PERIOD );
@@ -159,14 +159,14 @@ LabelEditor::LabelEditor( TQWidget *parent, TQString _filename, const char *name
// if( isFirstStart() )
// moveDockWindow( tools, TQt::DockLeft );
- connect( cv, TQT_SIGNAL( doubleClickedItem(TCanvasItem*) ), TQT_TQOBJECT(this), TQT_SLOT( doubleClickedItem(TCanvasItem*) ) );
- connect( cv, TQT_SIGNAL( showContextMenu(TQPoint) ), TQT_TQOBJECT(this), TQT_SLOT( showContextMenu(TQPoint) ) );
- connect( cv, TQT_SIGNAL( movedSomething() ), TQT_TQOBJECT(this), TQT_SLOT( setEdited() ) );
+ connect( cv, TQT_SIGNAL( doubleClickedItem(TCanvasItem*) ), this, TQT_SLOT( doubleClickedItem(TCanvasItem*) ) );
+ connect( cv, TQT_SIGNAL( showContextMenu(TQPoint) ), this, TQT_SLOT( showContextMenu(TQPoint) ) );
+ connect( cv, TQT_SIGNAL( movedSomething() ), this, TQT_SLOT( setEdited() ) );
connect( KBarcodeSettings::getInstance(), TQT_SIGNAL( updateGrid( int ) ), cv, TQT_SLOT( updateGUI() ) );
- connect( kapp, TQT_SIGNAL( aboutToQuit() ), TQT_TQOBJECT(this), TQT_SLOT( saveConfig() ) );
+ connect( kapp, TQT_SIGNAL( aboutToQuit() ), this, TQT_SLOT( saveConfig() ) );
connect( history, TQT_SIGNAL( commandExecuted() ), cv, TQT_SLOT( updateGUI() ) );
- connect( history, TQT_SIGNAL( commandExecuted() ), TQT_TQOBJECT(this), TQT_SLOT( setEdited() ) );
+ connect( history, TQT_SIGNAL( commandExecuted() ), this, TQT_SLOT( setEdited() ) );
if( !_filename.isEmpty() )
openUrl( _filename );
@@ -248,7 +248,7 @@ void LabelEditor::clearLabel()
createCommandHistoryActions();
connect( history, TQT_SIGNAL( commandExecuted() ), cv, TQT_SLOT( updateGUI() ) );
- connect( history, TQT_SIGNAL( commandExecuted() ), TQT_TQOBJECT(this), TQT_SLOT( setEdited() ) );
+ connect( history, TQT_SIGNAL( commandExecuted() ), this, TQT_SLOT( setEdited() ) );
m_edited = false;
@@ -437,47 +437,47 @@ bool LabelEditor::newLabel()
void LabelEditor::setupActions()
{
- TDEAction* newAct = KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT(startEditor()), actionCollection() );
- TDEAction* loadAct = KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT(startLoadEditor()), actionCollection() );
- TDEAction* quitAct = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
- TDEAction* closeAct = KStdAction::close( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection(), "close" );
- closeLabelAct = new TDEAction( i18n("Close &Label" ), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( closeLabel() ), actionCollection() );
-
- recentAct = new TDERecentFilesAction( i18n("&Recent Files"), 0, TQT_TQOBJECT(this), TQT_SLOT( loadRecentEditor( const KURL& ) ) );
-
- TDEAction* importPrintFileAct = new TDEAction( i18n("&Import and Print Batch File..."), BarIconSet( "document-print" ), 0, TQT_TQOBJECT(this), TQT_SLOT( batchPrint() ), actionCollection() );
-
- saveAct = KStdAction::save( TQT_TQOBJECT(this), TQT_SLOT( save() ), actionCollection(), "save" );
- saveAsAct = KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT( saveas() ), actionCollection(), "saveas" );
- descriptionAct = new TDEAction( i18n("&Change description..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(changeDes()), actionCollection() );
- deleteAct = new TDEAction( i18n("&Delete Object"), TQIconSet( BarIcon("edit-delete") ), Key_Delete, TQT_TQOBJECT(cv), TQT_SLOT( deleteCurrent() ), actionCollection() );
- editPropAct = new TDEAction( i18n("&Properties..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( doubleClickedCurrent() ), actionCollection() );
- printAct = KStdAction::print( TQT_TQOBJECT(this), TQT_SLOT( print() ), actionCollection(), "print" );
- bcpAct = new TDEAction( i18n("Print to &Barcode Printer..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( printBCP() ), actionCollection() );
- imgAct = new TDEAction( i18n("Print to &Image..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(printImage() ), actionCollection() );
- changeSizeAct = new TDEAction( i18n("&Change Label..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( changeSize() ), actionCollection() );
- barcodeAct = new TDEAction( i18n("Insert &Barcode"), TQIconSet( BarIcon("barcode") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertBarcode() ), actionCollection() );
+ TDEAction* newAct = KStdAction::openNew( this, TQT_SLOT(startEditor()), actionCollection() );
+ TDEAction* loadAct = KStdAction::open( this, TQT_SLOT(startLoadEditor()), actionCollection() );
+ TDEAction* quitAct = KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
+ TDEAction* closeAct = KStdAction::close( this, TQT_SLOT( close() ), actionCollection(), "close" );
+ closeLabelAct = new TDEAction( i18n("Close &Label" ), 0, 0, this, TQT_SLOT( closeLabel() ), actionCollection() );
+
+ recentAct = new TDERecentFilesAction( i18n("&Recent Files"), 0, this, TQT_SLOT( loadRecentEditor( const KURL& ) ) );
+
+ TDEAction* importPrintFileAct = new TDEAction( i18n("&Import and Print Batch File..."), BarIconSet( "document-print" ), 0, this, TQT_SLOT( batchPrint() ), actionCollection() );
+
+ saveAct = KStdAction::save( this, TQT_SLOT( save() ), actionCollection(), "save" );
+ saveAsAct = KStdAction::saveAs( this, TQT_SLOT( saveas() ), actionCollection(), "saveas" );
+ descriptionAct = new TDEAction( i18n("&Change description..."), 0, 0, this, TQT_SLOT(changeDes()), actionCollection() );
+ deleteAct = new TDEAction( i18n("&Delete Object"), TQIconSet( BarIcon("edit-delete") ), Key_Delete, cv, TQT_SLOT( deleteCurrent() ), actionCollection() );
+ editPropAct = new TDEAction( i18n("&Properties..."), 0, 0, this, TQT_SLOT( doubleClickedCurrent() ), actionCollection() );
+ printAct = KStdAction::print( this, TQT_SLOT( print() ), actionCollection(), "print" );
+ bcpAct = new TDEAction( i18n("Print to &Barcode Printer..."), 0, 0, this, TQT_SLOT( printBCP() ), actionCollection() );
+ imgAct = new TDEAction( i18n("Print to &Image..."), 0, 0, this, TQT_SLOT(printImage() ), actionCollection() );
+ changeSizeAct = new TDEAction( i18n("&Change Label..."), 0, 0, this, TQT_SLOT( changeSize() ), actionCollection() );
+ barcodeAct = new TDEAction( i18n("Insert &Barcode"), TQIconSet( BarIcon("barcode") ), 0, this, TQT_SLOT( insertBarcode() ), actionCollection() );
barcodeAct->setEnabled( Barkode::haveBarcode() );
- pictureAct = new TDEAction( i18n("Insert &Picture"), TQIconSet( BarIcon("inline_image") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertPicture() ), actionCollection() );
- textAct = new TDEAction( i18n("Insert &Text"), TQIconSet( BarIcon("text") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertText() ), actionCollection() );
- textDataAct = new TDEAction( i18n("Insert &Data Field"), TQIconSet( BarIcon("contents") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertDataText() ), actionCollection() );
- textLineAct = new TDEAction( i18n("Insert &Text Line"), TQIconSet( BarIcon("text") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertTextLine() ), actionCollection() );
- lineAct = new TDEAction( i18n("Insert &Line"), TQIconSet( BarIcon("kbarcodelinetool") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertLine() ), actionCollection() );
- rectAct = new TDEAction( i18n("Insert &Rectangle"), TQIconSet( BarIcon("kbarcoderect") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertRect() ), actionCollection() );
- circleAct = new TDEAction( i18n("Insert &Ellipse"), TQIconSet( BarIcon("kbarcodeellipse") ), 0, TQT_TQOBJECT(this), TQT_SLOT( insertCircle() ), actionCollection() );
- spellAct = KStdAction::spelling( TQT_TQOBJECT(this), TQT_SLOT(spellCheck()), actionCollection(), "spell" );
- gridAct = new TDEToggleAction( i18n("&Grid"), TQIconSet( BarIcon("kbarcodegrid") ), 0, TQT_TQOBJECT(this), TQT_SLOT( toggleGrid() ), actionCollection() );
- previewAct = new TDEAction( i18n("&Preview..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( preview() ), actionCollection() );
- sep = new TDEActionSeparator( TQT_TQOBJECT(this) );
- cutAct = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT( cut() ), actionCollection(), "cut" );
- copyAct = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( copy() ), actionCollection(), "copy" );
- pasteAct = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( paste() ), actionCollection(), "paste" );
- selectAllAct = KStdAction::selectAll( TQT_TQOBJECT(cv), TQT_SLOT( selectAll() ), actionCollection(), "select_all" );
- deSelectAllAct = KStdAction::deselect( TQT_TQOBJECT(cv), TQT_SLOT( deSelectAll() ), actionCollection(), "de_select_all" );
- addressBookAct = new TDEAction( i18n("Address&book"), TQIconSet( BarIcon("kaddressbook") ), 0, TQT_TQOBJECT(this), TQT_SLOT( launchAddressBook() ), actionCollection() );
+ pictureAct = new TDEAction( i18n("Insert &Picture"), TQIconSet( BarIcon("inline_image") ), 0, this, TQT_SLOT( insertPicture() ), actionCollection() );
+ textAct = new TDEAction( i18n("Insert &Text"), TQIconSet( BarIcon("text") ), 0, this, TQT_SLOT( insertText() ), actionCollection() );
+ textDataAct = new TDEAction( i18n("Insert &Data Field"), TQIconSet( BarIcon("contents") ), 0, this, TQT_SLOT( insertDataText() ), actionCollection() );
+ textLineAct = new TDEAction( i18n("Insert &Text Line"), TQIconSet( BarIcon("text") ), 0, this, TQT_SLOT( insertTextLine() ), actionCollection() );
+ lineAct = new TDEAction( i18n("Insert &Line"), TQIconSet( BarIcon("kbarcodelinetool") ), 0, this, TQT_SLOT( insertLine() ), actionCollection() );
+ rectAct = new TDEAction( i18n("Insert &Rectangle"), TQIconSet( BarIcon("kbarcoderect") ), 0, this, TQT_SLOT( insertRect() ), actionCollection() );
+ circleAct = new TDEAction( i18n("Insert &Ellipse"), TQIconSet( BarIcon("kbarcodeellipse") ), 0, this, TQT_SLOT( insertCircle() ), actionCollection() );
+ spellAct = KStdAction::spelling( this, TQT_SLOT(spellCheck()), actionCollection(), "spell" );
+ gridAct = new TDEToggleAction( i18n("&Grid"), TQIconSet( BarIcon("kbarcodegrid") ), 0, this, TQT_SLOT( toggleGrid() ), actionCollection() );
+ previewAct = new TDEAction( i18n("&Preview..."), 0, 0, this, TQT_SLOT( preview() ), actionCollection() );
+ sep = new TDEActionSeparator( this );
+ cutAct = KStdAction::cut( this, TQT_SLOT( cut() ), actionCollection(), "cut" );
+ copyAct = KStdAction::copy( this, TQT_SLOT( copy() ), actionCollection(), "copy" );
+ pasteAct = KStdAction::paste( this, TQT_SLOT( paste() ), actionCollection(), "paste" );
+ selectAllAct = KStdAction::selectAll( cv, TQT_SLOT( selectAll() ), actionCollection(), "select_all" );
+ deSelectAllAct = KStdAction::deselect( cv, TQT_SLOT( deSelectAll() ), actionCollection(), "de_select_all" );
+ addressBookAct = new TDEAction( i18n("Address&book"), TQIconSet( BarIcon("kaddressbook") ), 0, this, TQT_SLOT( launchAddressBook() ), actionCollection() );
TDEAction* singleBarcodeAct = new TDEAction(i18n("&Create Single Barcode..."), "",
- 0, TQT_TQOBJECT(this), TQT_SLOT(startBarcodeGen()),
+ 0, this, TQT_SLOT(startBarcodeGen()),
actionCollection(), "create" );
singleBarcodeAct->setEnabled( Barkode::haveBarcode() );
@@ -500,12 +500,12 @@ void LabelEditor::setupActions()
lineAct->plug( tools );
rectAct->plug( tools );
circleAct->plug( tools );
- (new TDEActionSeparator( TQT_TQOBJECT(this) ))->plug( tools );
+ (new TDEActionSeparator( this ))->plug( tools );
// spellAct->plug( tools ); // KDE 3.2
gridAct->plug( tools );
DSMainWindow::setupActions();
- connect( recentAct, TQT_SIGNAL( urlSelected( const KURL& ) ), TQT_TQOBJECT(this), TQT_SLOT( startLoadRecentEditor( const KURL& ) ) );
+ connect( recentAct, TQT_SIGNAL( urlSelected( const KURL& ) ), this, TQT_SLOT( startLoadRecentEditor( const KURL& ) ) );
TDEPopupMenu* fileMenu = new TDEPopupMenu( this );
editMenu = new TDEPopupMenu( this );
@@ -579,22 +579,22 @@ void LabelEditor::setupContextMenu()
m_mnuContext->setCheckable( true );
TDEPopupMenu* orderMenu = new TDEPopupMenu( m_mnuContext );
- orderMenu->insertItem( i18n("&On Top"), TQT_TQOBJECT(this), TQT_SLOT( onTopCurrent() ) );
- orderMenu->insertItem( i18n("&Raise"), TQT_TQOBJECT(this), TQT_SLOT( raiseCurrent() ) );
- orderMenu->insertItem( i18n("&Lower"), TQT_TQOBJECT(this), TQT_SLOT( lowerCurrent() ) );
- orderMenu->insertItem( i18n("&To Background"), TQT_TQOBJECT(this), TQT_SLOT( backCurrent() ) );
+ orderMenu->insertItem( i18n("&On Top"), this, TQT_SLOT( onTopCurrent() ) );
+ orderMenu->insertItem( i18n("&Raise"), this, TQT_SLOT( raiseCurrent() ) );
+ orderMenu->insertItem( i18n("&Lower"), this, TQT_SLOT( lowerCurrent() ) );
+ orderMenu->insertItem( i18n("&To Background"), this, TQT_SLOT( backCurrent() ) );
TDEPopupMenu* centerMenu = new TDEPopupMenu( m_mnuContext );
- centerMenu->insertItem( i18n("Center &Horizontally"), TQT_TQOBJECT(this), TQT_SLOT( centerHorizontal() ) );
- centerMenu->insertItem( i18n("Center &Vertically"), TQT_TQOBJECT(this), TQT_SLOT( centerVertical() ) );
+ centerMenu->insertItem( i18n("Center &Horizontally"), this, TQT_SLOT( centerHorizontal() ) );
+ centerMenu->insertItem( i18n("Center &Vertically"), this, TQT_SLOT( centerVertical() ) );
m_mnuContext->insertItem( i18n("&Order"), orderMenu );
m_mnuContext->insertItem( i18n("&Center"), centerMenu );
m_mnuContext->insertSeparator();
m_mnuContext->insertItem( SmallIcon("edit-delete"), i18n("&Delete"), cv, TQT_SLOT( deleteCurrent() ) );
- m_mnuContext->insertItem( i18n("&Protect Position and Size"), TQT_TQOBJECT(this), TQT_SLOT( lockItem() ), 0, ID_LOCK_ITEM );
+ m_mnuContext->insertItem( i18n("&Protect Position and Size"), this, TQT_SLOT( lockItem() ), 0, ID_LOCK_ITEM );
m_mnuContext->insertSeparator();
- m_mnuContext->insertItem( i18n("&Properties"), TQT_TQOBJECT(this), TQT_SLOT( doubleClickedCurrent() ) );
+ m_mnuContext->insertItem( i18n("&Properties"), this, TQT_SLOT( doubleClickedCurrent() ) );
}
void LabelEditor::insertBarcode()
diff --git a/kbarcode/multilineeditdlg.cpp b/kbarcode/multilineeditdlg.cpp
index 491175c..33ed0ab 100644
--- a/kbarcode/multilineeditdlg.cpp
+++ b/kbarcode/multilineeditdlg.cpp
@@ -65,29 +65,29 @@ void MultiLineEditor::setupActions()
{
ac = new TDEActionCollection( this );
- TDEAction* action_export = new TDEAction( i18n("Export"), "fileexport", 0, TQT_TQOBJECT(this), TQT_SLOT( save() ), ac );
+ TDEAction* action_export = new TDEAction( i18n("Export"), "fileexport", 0, this, TQT_SLOT( save() ), ac );
//
// Edit Actions
//
- TDEAction *action_undo = KStdAction::undo( TQT_TQOBJECT(editor), TQT_SLOT( undo() ), ac );
+ TDEAction *action_undo = KStdAction::undo( editor, TQT_SLOT( undo() ), ac );
action_undo->setEnabled( false );
connect( editor, TQT_SIGNAL( undoAvailable(bool) ), action_undo, TQT_SLOT( setEnabled(bool) ) );
- TDEAction *action_redo = KStdAction::redo( TQT_TQOBJECT(editor), TQT_SLOT( redo() ), ac );
+ TDEAction *action_redo = KStdAction::redo( editor, TQT_SLOT( redo() ), ac );
action_redo->setEnabled( false );
connect( editor, TQT_SIGNAL( redoAvailable(bool) ), action_redo, TQT_SLOT( setEnabled(bool) ) );
- TDEAction *action_cut = KStdAction::cut( TQT_TQOBJECT(editor), TQT_SLOT( cut() ), ac );
+ TDEAction *action_cut = KStdAction::cut( editor, TQT_SLOT( cut() ), ac );
action_cut->setEnabled( false );
connect( editor, TQT_SIGNAL( copyAvailable(bool) ), action_cut, TQT_SLOT( setEnabled(bool) ) );
- TDEAction *action_copy = KStdAction::copy( TQT_TQOBJECT(editor), TQT_SLOT( copy() ), ac );
+ TDEAction *action_copy = KStdAction::copy( editor, TQT_SLOT( copy() ), ac );
action_copy->setEnabled( false );
connect( editor, TQT_SIGNAL( copyAvailable(bool) ), action_copy, TQT_SLOT( setEnabled(bool) ) );
- TDEAction* action_paste = KStdAction::paste( TQT_TQOBJECT(editor), TQT_SLOT( paste() ), ac );
+ TDEAction* action_paste = KStdAction::paste( editor, TQT_SLOT( paste() ), ac );
//
// Character Formatting
@@ -101,7 +101,7 @@ void MultiLineEditor::setupActions()
action_underline = new TDEToggleAction( i18n("&Underline"), "format-text-underline", CTRL+Key_U, ac, "format_underline" );
connect( action_underline, TQT_SIGNAL( toggled(bool) ), editor, TQT_SLOT( setUnderline(bool) ) );
- TDEAction* action_color = new TDEAction( i18n("Text &Color..."), "colorpicker", 0, TQT_TQOBJECT(this), TQT_SLOT( formatColor() ), ac, "format_color" );
+ TDEAction* action_color = new TDEAction( i18n("Text &Color..."), "colorpicker", 0, this, TQT_SLOT( formatColor() ), ac, "format_color" );
//
// Font
@@ -116,16 +116,16 @@ void MultiLineEditor::setupActions()
// Alignment
//
action_align_left = new TDEToggleAction( i18n("Align &Left"), "format-text-direction-ltr", 0, ac, "format_align_left" );
- connect( action_align_left, TQT_SIGNAL( toggled(bool) ), TQT_TQOBJECT(this), TQT_SLOT( setAlignLeft(bool) ) );
+ connect( action_align_left, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( setAlignLeft(bool) ) );
action_align_center = new TDEToggleAction( i18n("Align &Center"), "text_center", 0, ac, "format_align_center" );
- connect( action_align_center, TQT_SIGNAL( toggled(bool) ), TQT_TQOBJECT(this), TQT_SLOT( setAlignCenter(bool) ) );
+ connect( action_align_center, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( setAlignCenter(bool) ) );
action_align_right = new TDEToggleAction( i18n("Align &Right"), "format-text-direction-rtl", 0, ac, "format_align_right" );
- connect( action_align_right, TQT_SIGNAL( toggled(bool) ), TQT_TQOBJECT(this), TQT_SLOT( setAlignRight(bool) ) );
+ connect( action_align_right, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( setAlignRight(bool) ) );
action_align_justify = new TDEToggleAction( i18n("&Justify"), "text_block", 0, ac, "format_align_justify" );
- connect( action_align_justify, TQT_SIGNAL( toggled(bool) ), TQT_TQOBJECT(this), TQT_SLOT( setAlignJustify(bool) ) );
+ connect( action_align_justify, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( setAlignJustify(bool) ) );
action_align_left->setExclusiveGroup( "alignment" );
action_align_center->setExclusiveGroup( "alignment" );
@@ -134,7 +134,7 @@ void MultiLineEditor::setupActions()
//TDEAction* action_spell = KStdAction::spelling( this, TQT_SLOT( checkSpelling() ), ac );
- TDEAction* textDataAct = new TDEAction( i18n("Insert &Data Field"), "contents", 0, TQT_TQOBJECT(this), TQT_SLOT( insertNewField() ), ac, "text_data_act"); action_export->plug( toolBar );
+ TDEAction* textDataAct = new TDEAction( i18n("Insert &Data Field"), "contents", 0, this, TQT_SLOT( insertNewField() ), ac, "text_data_act"); action_export->plug( toolBar );
toolBar->insertSeparator();
action_undo->plug( toolBar );
@@ -165,9 +165,9 @@ void MultiLineEditor::setupActions()
//
updateActions();
- connect( editor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ), TQT_TQOBJECT(this), TQT_SLOT( updateFont() ) );
- connect( editor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ), TQT_TQOBJECT(this), TQT_SLOT( updateCharFmt() ) );
- connect( editor, TQT_SIGNAL( cursorPositionChanged( int,int ) ), TQT_TQOBJECT(this), TQT_SLOT( updateAligment() ) );
+ connect( editor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ), this, TQT_SLOT( updateFont() ) );
+ connect( editor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ), this, TQT_SLOT( updateCharFmt() ) );
+ connect( editor, TQT_SIGNAL( cursorPositionChanged( int,int ) ), this, TQT_SLOT( updateAligment() ) );
}
TQString MultiLineEditor::text()
@@ -279,7 +279,7 @@ void MultiLineEditor::checkSpelling()
spell = new KSpell( this, i18n("Spell Checking"), 0, 0, 0, true, true, KSpell::HTML );
spell->setAutoDelete( true );
spell->check( s, true );
- connect( spell, TQT_SIGNAL( done(const TQString &) ), TQT_TQOBJECT(this), TQT_SLOT( spellCheckDone(const TQString &) ) );
+ connect( spell, TQT_SIGNAL( done(const TQString &) ), this, TQT_SLOT( spellCheckDone(const TQString &) ) );
spell->cleanUp();
#endif
diff --git a/kbarcode/textlineedit.cpp b/kbarcode/textlineedit.cpp
index d350112..39d1831 100644
--- a/kbarcode/textlineedit.cpp
+++ b/kbarcode/textlineedit.cpp
@@ -68,26 +68,26 @@ void TextLineEditor::setupActions()
ac = new TDEActionCollection( this );
- TDEAction *action_undo = KStdAction::undo( TQT_TQOBJECT(editor), TQT_SLOT( undo() ), ac );
+ TDEAction *action_undo = KStdAction::undo( editor, TQT_SLOT( undo() ), ac );
action_undo->setEnabled( false );
connect( editor, TQT_SIGNAL( undoAvailable(bool) ), action_undo, TQT_SLOT( setEnabled(bool) ) );
- TDEAction *action_redo = KStdAction::redo( TQT_TQOBJECT(editor), TQT_SLOT( redo() ), ac );
+ TDEAction *action_redo = KStdAction::redo( editor, TQT_SLOT( redo() ), ac );
action_redo->setEnabled( false );
connect( editor, TQT_SIGNAL( redoAvailable(bool) ), action_redo, TQT_SLOT( setEnabled(bool) ) );
- TDEAction *action_cut = KStdAction::cut( TQT_TQOBJECT(editor), TQT_SLOT( cut() ), ac );
+ TDEAction *action_cut = KStdAction::cut( editor, TQT_SLOT( cut() ), ac );
action_cut->setEnabled( false );
connect( editor, TQT_SIGNAL( copyAvailable(bool) ), action_cut, TQT_SLOT( setEnabled(bool) ) );
- TDEAction *action_copy = KStdAction::copy( TQT_TQOBJECT(editor), TQT_SLOT( copy() ), ac );
+ TDEAction *action_copy = KStdAction::copy( editor, TQT_SLOT( copy() ), ac );
action_copy->setEnabled( false );
connect( editor, TQT_SIGNAL( copyAvailable(bool) ), action_copy, TQT_SLOT( setEnabled(bool) ) );
- TDEAction* action_paste = KStdAction::paste( TQT_TQOBJECT(editor), TQT_SLOT( paste() ), ac );
+ TDEAction* action_paste = KStdAction::paste( editor, TQT_SLOT( paste() ), ac );
- TDEAction* textDataAct = new TDEAction( i18n("Insert &Data Field"), "contents", 0, TQT_TQOBJECT(this), TQT_SLOT( insertNewField() ), ac, "text_data_act");
+ TDEAction* textDataAct = new TDEAction( i18n("Insert &Data Field"), "contents", 0, this, TQT_SLOT( insertNewField() ), ac, "text_data_act");
action_undo->plug( toolBar );
action_redo->plug( toolBar );
@@ -122,7 +122,7 @@ void TextLineEditor::setupActions()
textDataAct->plug( tool2Bar );
action_font_type = new KComboBox(tool2Bar,"font_type") ;
- connect( action_font_type, TQT_SIGNAL( activated(int) ), TQT_TQOBJECT(this), TQT_SLOT( setFontType(int) ) );
+ connect( action_font_type, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( setFontType(int) ) );
action_font_type->insertStringList(fuentes) ;
@@ -131,8 +131,8 @@ void TextLineEditor::setupActions()
mag_vert = new KIntNumInput( tool3Bar,"magvert" );
TQLabel* labelh = new TQLabel( i18n("&Mag. Hor.:"), tool3Bar );
mag_hor = new KIntNumInput( tool3Bar,"maghor" );
- connect( mag_vert, TQT_SIGNAL( activated(int) ), TQT_TQOBJECT(this), TQT_SLOT( setVerMag(int) ) );
- connect( mag_hor, TQT_SIGNAL( activated(int) ), TQT_TQOBJECT(this), TQT_SLOT( setHorMag(int) ) );
+ connect( mag_vert, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( setVerMag(int) ) );
+ connect( mag_hor, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( setHorMag(int) ) );
mag_vert->setRange( 1, 9, 1, false );
mag_hor->setRange( 1, 9, 1, false );