summaryrefslogtreecommitdiffstats
path: root/knode/kncomposer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knode/kncomposer.cpp')
-rw-r--r--knode/kncomposer.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/knode/kncomposer.cpp b/knode/kncomposer.cpp
index b478f909..707db3fd 100644
--- a/knode/kncomposer.cpp
+++ b/knode/kncomposer.cpp
@@ -205,70 +205,70 @@ KNComposer::KNComposer(KNLocalArticle *a, const TQString &text, const TQString &
//------------------------------- <Actions> --------------------------------------
//file menu
- new TDEAction(i18n("&Send Now"),"mail-send", CTRL + Key_Return , TQT_TQOBJECT(this),
+ new TDEAction(i18n("&Send Now"),"mail-send", CTRL + Key_Return , this,
TQT_SLOT(slotSendNow()), actionCollection(), "send_now");
- new TDEAction(i18n("Send &Later"), "queue", 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Send &Later"), "queue", 0, this,
TQT_SLOT(slotSendLater()), actionCollection(), "send_later");
- new TDEAction(i18n("Save as &Draft"),"document-save", 0 , TQT_TQOBJECT(this),
+ new TDEAction(i18n("Save as &Draft"),"document-save", 0 , this,
TQT_SLOT(slotSaveAsDraft()), actionCollection(), "save_as_draft");
- new TDEAction(i18n("D&elete"),"edit-delete", 0 , TQT_TQOBJECT(this),
+ new TDEAction(i18n("D&elete"),"edit-delete", 0 , this,
TQT_SLOT(slotArtDelete()), actionCollection(), "art_delete");
- KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(close()),actionCollection());
+ KStdAction::close(this, TQT_SLOT(close()),actionCollection());
//edit menu
- KStdAction::undo(TQT_TQOBJECT(this), TQT_SLOT(slotUndo()), actionCollection());
- KStdAction::redo(TQT_TQOBJECT(this), TQT_SLOT(slotRedo()), actionCollection());
+ KStdAction::undo(this, TQT_SLOT(slotUndo()), actionCollection());
+ KStdAction::redo(this, TQT_SLOT(slotRedo()), actionCollection());
- KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(slotCut()), actionCollection());
+ KStdAction::cut(this, TQT_SLOT(slotCut()), actionCollection());
- KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), actionCollection());
+ KStdAction::copy(this, TQT_SLOT(slotCopy()), actionCollection());
- KStdAction::pasteText(TQT_TQOBJECT(this), TQT_SLOT(slotPaste()), actionCollection());
+ KStdAction::pasteText(this, TQT_SLOT(slotPaste()), actionCollection());
- new TDEAction(i18n("Paste as &Quotation"), 0, TQT_TQOBJECT(v_iew->e_dit),
+ new TDEAction(i18n("Paste as &Quotation"), 0, v_iew->e_dit,
TQT_SLOT(slotPasteAsQuotation()), actionCollection(), "paste_quoted");
- KStdAction::selectAll(TQT_TQOBJECT(this), TQT_SLOT(slotSelectAll()), actionCollection());
+ KStdAction::selectAll(this, TQT_SLOT(slotSelectAll()), actionCollection());
- KStdAction::find(TQT_TQOBJECT(v_iew->e_dit), TQT_SLOT(slotFind()), actionCollection());
- KStdAction::findNext(TQT_TQOBJECT(v_iew->e_dit), TQT_SLOT(slotSearchAgain()), actionCollection());
+ KStdAction::find(v_iew->e_dit, TQT_SLOT(slotFind()), actionCollection());
+ KStdAction::findNext(v_iew->e_dit, TQT_SLOT(slotSearchAgain()), actionCollection());
- KStdAction::replace(TQT_TQOBJECT(v_iew->e_dit), TQT_SLOT(slotReplace()), actionCollection());
+ KStdAction::replace(v_iew->e_dit, TQT_SLOT(slotReplace()), actionCollection());
//attach menu
- new TDEAction(i18n("Append &Signature"), 0 , TQT_TQOBJECT(this), TQT_SLOT(slotAppendSig()),
+ new TDEAction(i18n("Append &Signature"), 0 , this, TQT_SLOT(slotAppendSig()),
actionCollection(), "append_signature");
- new TDEAction(i18n("&Insert File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotInsertFile()),
+ new TDEAction(i18n("&Insert File..."), 0, this, TQT_SLOT(slotInsertFile()),
actionCollection(), "insert_file");
- new TDEAction(i18n("Insert File (in a &box)..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotInsertFileBoxed()),
+ new TDEAction(i18n("Insert File (in a &box)..."), 0, this, TQT_SLOT(slotInsertFileBoxed()),
actionCollection(), "insert_file_boxed");
- new TDEAction(i18n("Attach &File..."), "attach", 0, TQT_TQOBJECT(this), TQT_SLOT(slotAttachFile()),
+ new TDEAction(i18n("Attach &File..."), "attach", 0, this, TQT_SLOT(slotAttachFile()),
actionCollection(), "attach_file");
a_ctPGPsign = new TDEToggleAction(i18n("Sign Article with &PGP"),
"signature", 0,
actionCollection(), "sign_article");
- a_ctRemoveAttachment = new TDEAction(i18n("&Remove"), 0, TQT_TQOBJECT(this),
+ a_ctRemoveAttachment = new TDEAction(i18n("&Remove"), 0, this,
TQT_SLOT(slotRemoveAttachment()), actionCollection(), "remove_attachment");
- a_ctAttachmentProperties = new TDEAction(i18n("&Properties"), 0, TQT_TQOBJECT(this),
+ a_ctAttachmentProperties = new TDEAction(i18n("&Properties"), 0, this,
TQT_SLOT(slotAttachmentProperties()), actionCollection(), "attachment_properties");
//options menu
- a_ctDoPost = new TDEToggleAction(i18n("Send &News Article"), "document-new", 0 , TQT_TQOBJECT(this),
+ a_ctDoPost = new TDEToggleAction(i18n("Send &News Article"), "document-new", 0 , this,
TQT_SLOT(slotToggleDoPost()), actionCollection(), "send_news");
- a_ctDoMail = new TDEToggleAction(i18n("Send E&mail"), "mail_generic" , 0 , TQT_TQOBJECT(this),
+ a_ctDoMail = new TDEToggleAction(i18n("Send E&mail"), "mail_generic" , 0 , this,
TQT_SLOT(slotToggleDoMail()), actionCollection(), "send_mail");
a_ctSetCharset = new TDESelectAction(i18n("Set &Charset"), 0, actionCollection(), "set_charset");
@@ -277,50 +277,50 @@ KNComposer::KNComposer(KNLocalArticle *a, const TQString &text, const TQString &
connect(a_ctSetCharset, TQT_SIGNAL(activated(const TQString&)),
this, TQT_SLOT(slotSetCharset(const TQString&)));
- a_ctSetCharsetKeyb = new TDEAction(i18n("Set Charset"), 0, TQT_TQOBJECT(this),
+ a_ctSetCharsetKeyb = new TDEAction(i18n("Set Charset"), 0, this,
TQT_SLOT(slotSetCharsetKeyboard()), actionCollection(), "set_charset_keyboard");
- a_ctWordWrap = new TDEToggleAction(i18n("&Word Wrap"), 0 , TQT_TQOBJECT(this),
+ a_ctWordWrap = new TDEToggleAction(i18n("&Word Wrap"), 0 , this,
TQT_SLOT(slotToggleWordWrap()), actionCollection(), "toggle_wordwrap");
//tools menu
- new TDEAction(i18n("Add &Quote Characters"), 0, TQT_TQOBJECT(v_iew->e_dit),
+ new TDEAction(i18n("Add &Quote Characters"), 0, v_iew->e_dit,
TQT_SLOT(slotAddQuotes()), actionCollection(), "tools_quote");
- new TDEAction(i18n("&Remove Quote Characters"), 0, TQT_TQOBJECT(v_iew->e_dit),
+ new TDEAction(i18n("&Remove Quote Characters"), 0, v_iew->e_dit,
TQT_SLOT(slotRemoveQuotes()), actionCollection(), "tools_unquote");
- new TDEAction(i18n("Add &Box"), 0, TQT_TQOBJECT(v_iew->e_dit),
+ new TDEAction(i18n("Add &Box"), 0, v_iew->e_dit,
TQT_SLOT(slotAddBox()), actionCollection(), "tools_box");
- new TDEAction(i18n("Re&move Box"), 0, TQT_TQOBJECT(v_iew->e_dit),
+ new TDEAction(i18n("Re&move Box"), 0, v_iew->e_dit,
TQT_SLOT(slotRemoveBox()), actionCollection(), "tools_unbox");
- TDEAction *undoRewrap = new TDEAction(i18n("Get &Original Text (not re-wrapped)"), 0, TQT_TQOBJECT(this),
+ TDEAction *undoRewrap = new TDEAction(i18n("Get &Original Text (not re-wrapped)"), 0, this,
TQT_SLOT(slotUndoRewrap()), actionCollection(), "tools_undoRewrap");
undoRewrap->setEnabled(!u_nwraped.isNull());
- TDEAction *rot13 = new TDEAction(i18n("S&cramble (Rot 13)"), "encrypted", 0, TQT_TQOBJECT(v_iew->e_dit),
+ TDEAction *rot13 = new TDEAction(i18n("S&cramble (Rot 13)"), "encrypted", 0, v_iew->e_dit,
TQT_SLOT(slotRot13()), actionCollection(), "tools_rot13");
rot13->setEnabled(false);
connect(v_iew->e_dit, TQT_SIGNAL(copyAvailable(bool)), rot13, TQT_SLOT(setEnabled(bool)));
- a_ctExternalEditor = new TDEAction(i18n("Start &External Editor"), "system-run", 0, TQT_TQOBJECT(this),
+ a_ctExternalEditor = new TDEAction(i18n("Start &External Editor"), "system-run", 0, this,
TQT_SLOT(slotExternalEditor()), actionCollection(), "external_editor");
- a_ctSpellCheck = KStdAction::spelling (TQT_TQOBJECT(this), TQT_SLOT(slotSpellcheck()), actionCollection());
+ a_ctSpellCheck = KStdAction::spelling (this, TQT_SLOT(slotSpellcheck()), actionCollection());
//settings menu
createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true);
- KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(slotConfKeys()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(slotConfKeys()), actionCollection());
- KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(slotConfToolbar()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(slotConfToolbar()), actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(knGlobals.top), TQT_SLOT(slotSettings()), actionCollection());
+ KStdAction::preferences(knGlobals.top, TQT_SLOT(slotSettings()), actionCollection());
a_ccel=new TDEAccel(this);
a_ctSetCharsetKeyb->plugAccel(a_ccel);
@@ -1327,7 +1327,7 @@ void KNComposer::slotSpellcheck()
a_ctExternalEditor->setEnabled(false);
a_ctSpellCheck->setEnabled(false);
- s_pellChecker = new KSpell(TQT_TQWIDGET(this), i18n("Spellcheck"), TQT_TQOBJECT(this), TQT_SLOT(slotSpellStarted(KSpell *)));
+ s_pellChecker = new KSpell(this, i18n("Spellcheck"), this, TQT_SLOT(slotSpellStarted(KSpell *)));
TQStringList l = KSpellingHighlighter::personalWords();
for ( TQStringList::Iterator it = l.begin(); it != l.end(); ++it ) {
s_pellChecker->addPersonal( *it );
@@ -2398,7 +2398,7 @@ void KNComposer::Editor::contentsContextMenuEvent( TQContextMenuEvent */*e*/ )
}
else
{
- spell = new KSpell(this, i18n("Spellcheck"), TQT_TQOBJECT(this), TQT_SLOT(slotSpellStarted(KSpell *)));
+ spell = new KSpell(this, i18n("Spellcheck"), this, TQT_SLOT(slotSpellStarted(KSpell *)));
TQStringList l = KSpellingHighlighter::personalWords();
for ( TQStringList::Iterator it = l.begin(); it != l.end(); ++it ) {
spell->addPersonal( *it );