summaryrefslogtreecommitdiffstats
path: root/kmail/templatesinsertcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/templatesinsertcommand.cpp')
-rw-r--r--kmail/templatesinsertcommand.cpp146
1 files changed, 73 insertions, 73 deletions
diff --git a/kmail/templatesinsertcommand.cpp b/kmail/templatesinsertcommand.cpp
index f74820352..ee07c375b 100644
--- a/kmail/templatesinsertcommand.cpp
+++ b/kmail/templatesinsertcommand.cpp
@@ -20,30 +20,30 @@
#include <config.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kaction.h>
#include <kactionclasses.h>
#include <kpopupmenu.h>
#include <klocale.h>
-#include <qsignalmapper.h>
+#include <tqsignalmapper.h>
#include <kdebug.h>
#include "templatesinsertcommand.h"
-TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent,
+TemplatesInsertCommand::TemplatesInsertCommand( TQWidget *parent,
const char *name )
- : QPushButton( parent, name )
+ : TQPushButton( parent, name )
{
setText( i18n( "&Insert Command..." ) );
- connect( this, SIGNAL( clicked() ),
- this, SLOT( slotClicked() ) );
+ connect( this, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClicked() ) );
KAction *action;
KActionMenu *menu;
- QSignalMapper *mapper = new QSignalMapper( this );
- connect( mapper, SIGNAL( mapped(int) ),
- this, SLOT( slotMapped(int) ) );
+ TQSignalMapper *mapper = new TQSignalMapper( this );
+ connect( mapper, TQT_SIGNAL( mapped(int) ),
+ this, TQT_SLOT( slotMapped(int) ) );
mMenu = new KActionMenu( i18n( "Insert Command..." ), this );
@@ -52,107 +52,107 @@ TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent,
mMenu->insert( menu );
action = new KAction( i18n("Quoted Message"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CQuote );
menu->insert( action );
action = new KAction( i18n("Message Text as Is"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CText );
menu->insert( action );
action = new KAction( i18n("Message Id"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COMsgId );
menu->insert( action );
action = new KAction( i18n("Date"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CODate );
menu->insert( action );
action = new KAction( i18n("Date in Short Format"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CODateShort );
menu->insert( action );
action = new KAction( i18n("Date in C Locale"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CODateEn );
menu->insert( action );
action = new KAction( i18n("Day of Week"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CODow );
menu->insert( action );
action = new KAction( i18n("Time"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COTime );
menu->insert( action );
action = new KAction( i18n("Time in Long Format"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COTimeLong );
menu->insert( action );
action = new KAction( i18n("Time in C Locale"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COTimeLongEn );
menu->insert( action );
action = new KAction( i18n("To Field Address"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COToAddr );
menu->insert( action );
action = new KAction( i18n("To Field Name"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COToName );
menu->insert( action );
action = new KAction( i18n("To Field First Name"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COToFName );
menu->insert( action );
action = new KAction( i18n("To Field Last Name"),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COToLName );
menu->insert( action );
action = new KAction( i18n( "CC Field Address" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COCCAddr );
menu->insert( action );
action = new KAction( i18n( "CC Field Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COCCName );
menu->insert( action );
action = new KAction( i18n( "CC Field First Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COCCFName );
menu->insert( action );
action = new KAction( i18n( "CC Field Last Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COCCLName );
menu->insert( action );
action = new KAction( i18n( "From Field Address" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COFromAddr );
menu->insert( action );
action = new KAction( i18n( "From Field Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COFromName );
menu->insert( action );
action = new KAction( i18n( "From Field First Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COFromFName );
menu->insert( action );
action = new KAction( i18n( "From Field Last Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COFromLName );
menu->insert( action );
action = new KAction( i18n( "Subject" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COFullSubject );
menu->insert( action );
action = new KAction( i18n( "Quoted Headers" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CQHeaders );
menu->insert( action );
action = new KAction( i18n( "Headers as Is" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CHeaders );
menu->insert( action );
action = new KAction( i18n( "Header Content" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, COHeader );
menu->insert( action );
@@ -161,91 +161,91 @@ TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent,
mMenu->insert( menu );
action = new KAction( i18n( "Message Id" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CMsgId );
menu->insert( action );
action = new KAction( i18n( "Date" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CDate );
menu->insert( action );
action = new KAction( i18n( "Date in Short Format" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CDateShort );
menu->insert( action );
action = new KAction( i18n( "Date in C Locale" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CDateEn );
menu->insert( action );
action = new KAction( i18n( "Day of Week" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CDow );
menu->insert( action );
action = new KAction( i18n( "Time" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CTime );
menu->insert( action );
action = new KAction( i18n( "Time in Long Format" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CTimeLong );
menu->insert( action );
action = new KAction( i18n( "Time in C Locale" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CTimeLongEn );
menu->insert( action );
action = new KAction( i18n( "To Field Address" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CToAddr );
menu->insert( action );
action = new KAction( i18n( "To Field Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CToName );
menu->insert( action );
action = new KAction( i18n( "To Field First Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CToFName );
menu->insert( action );
action = new KAction( i18n( "To Field Last Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CToLName );
menu->insert( action );
action = new KAction( i18n( "CC Field Address" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CCCAddr );
menu->insert( action );
action = new KAction( i18n( "CC Field Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CCCName );
menu->insert( action );
action = new KAction( i18n( "CC Field First Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CCCFName );
menu->insert( action );
action = new KAction( i18n( "CC Field Last Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CCCLName );
menu->insert( action );
action = new KAction( i18n( "From Field Address" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CFromAddr );
menu->insert( action );
action = new KAction( i18n( "From Field Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CFromName );
menu->insert( action );
action = new KAction( i18n( "From Field First Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CFromFName );
menu->insert( action );
action = new KAction( i18n( "From Field Last Name" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CFromLName );
menu->insert( action );
action = new KAction( i18n( "Subject" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CFullSubject );
menu->insert( action );
action = new KAction( i18n( "Header Content" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CHeader );
menu->insert( action );
@@ -254,27 +254,27 @@ TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent,
mMenu->insert( menu );
action = new KAction( i18n( "Insert Result of Command" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CSystem );
menu->insert( action );
action = new KAction( i18n( "Pipe Original Message Body and Insert Result as Quoted Text" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CQuotePipe );
menu->insert( action );
action = new KAction( i18n( "Pipe Original Message Body and Insert Result as Is" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CTextPipe );
menu->insert( action );
action = new KAction( i18n( "Pipe Original Message with Headers and Insert Result as Is" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CMsgPipe );
menu->insert( action );
action = new KAction( i18n( "Pipe Current Message Body and Insert Result as Is" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CBodyPipe );
menu->insert( action );
action = new KAction( i18n( "Pipe Current Message Body and Replace with Result" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CClearPipe );
menu->insert( action );
@@ -283,35 +283,35 @@ TemplatesInsertCommand::TemplatesInsertCommand( QWidget *parent,
mMenu->insert( menu );
action = new KAction( i18n( "Set Cursor Position" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CCursor );
menu->insert( action );
action = new KAction( i18n( "Insert File Content" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CInsert );
menu->insert( action );
action = new KAction( i18n( "DNL" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CDnl );
menu->insert( action );
action = new KAction( i18n( "Template Comment" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CRem );
menu->insert( action );
action = new KAction( i18n( "No Operation" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CNop );
menu->insert( action );
action = new KAction( i18n( "Clear Generated Message" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CClear );
menu->insert( action );
action = new KAction( i18n( "Turn Debug On" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CDebug );
menu->insert( action );
action = new KAction( i18n( "Turn Debug Off" ),
- 0, mapper, SLOT( map() ), menu );
+ 0, mapper, TQT_SLOT( map() ), menu );
mapper->setMapping( action, CDebugOff );
menu->insert( action );
}
@@ -322,8 +322,8 @@ TemplatesInsertCommand::~TemplatesInsertCommand()
void TemplatesInsertCommand::slotClicked()
{
- QSize ps = mMenu->popupMenu()->sizeHint();
- mMenu->popup( mapToGlobal( QPoint( 0, -(ps.height()) ) ) );
+ TQSize ps = mMenu->popupMenu()->sizeHint();
+ mMenu->popup( mapToGlobal( TQPoint( 0, -(ps.height()) ) ) );
}
void TemplatesInsertCommand::slotMapped( int cmd )