summaryrefslogtreecommitdiffstats
path: root/kword/KWView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWView.cpp')
-rw-r--r--kword/KWView.cpp402
1 files changed, 201 insertions, 201 deletions
diff --git a/kword/KWView.cpp b/kword/KWView.cpp
index de64037d..fdf776dc 100644
--- a/kword/KWView.cpp
+++ b/kword/KWView.cpp
@@ -267,8 +267,8 @@ KWView::KWView( const TQString& viewMode, TQWidget *parent, const char *name, KW
setXMLFile( "kword.rc" );
- TQObject::connect( TQT_TQOBJECT(this), TQT_SIGNAL( embeddImage( const TQString & ) ),
- TQT_TQOBJECT(this), TQT_SLOT( slotEmbedImage( const TQString & ) ) );
+ TQObject::connect( this, TQT_SIGNAL( embeddImage( const TQString & ) ),
+ this, TQT_SLOT( slotEmbedImage( const TQString & ) ) );
setKeyCompression( TRUE );
setAcceptDrops( TRUE );
@@ -313,51 +313,51 @@ KWView::KWView( const TQString& viewMode, TQWidget *parent, const char *name, KW
}
connect( m_doc, TQT_SIGNAL( modified( bool ) ),
- TQT_TQOBJECT(this), TQT_SLOT( documentModified( bool )) );
+ this, TQT_SLOT( documentModified( bool )) );
connect( m_doc, TQT_SIGNAL( numPagesChanged() ),
- TQT_TQOBJECT(this), TQT_SLOT( numPagesChanged()) );
+ this, TQT_SLOT( numPagesChanged()) );
connect( m_doc, TQT_SIGNAL( pageLayoutChanged( const KoPageLayout& ) ),
- TQT_TQOBJECT(this), TQT_SLOT( slotPageLayoutChanged( const KoPageLayout& )) );
+ this, TQT_SLOT( slotPageLayoutChanged( const KoPageLayout& )) );
connect( m_doc, TQT_SIGNAL( docStructureChanged(int) ),
- TQT_TQOBJECT(this), TQT_SLOT( docStructChanged(int)) );
+ this, TQT_SLOT( docStructChanged(int)) );
connect( m_doc, TQT_SIGNAL( unitChanged(KoUnit::Unit) ),
- TQT_TQOBJECT(this), TQT_SLOT( slotUnitChanged(KoUnit::Unit) ) );
+ this, TQT_SLOT( slotUnitChanged(KoUnit::Unit) ) );
connect( m_doc, TQT_SIGNAL( sig_refreshMenuCustomVariable()),
- TQT_TQOBJECT(this), TQT_SLOT( refreshCustomMenu()));
+ this, TQT_SLOT( refreshCustomMenu()));
connect( m_doc, TQT_SIGNAL( completed() ),
- TQT_TQOBJECT(this), TQT_SLOT( slotDocumentLoadingCompleted() ) );
+ this, TQT_SLOT( slotDocumentLoadingCompleted() ) );
connect( frameViewManager(), TQT_SIGNAL(sigFrameSelectionChanged()),
- TQT_TQOBJECT(this), TQT_SLOT( frameSelectedChanged()));
+ this, TQT_SLOT( frameSelectedChanged()));
connect( frameViewManager(), TQT_SIGNAL(sigFrameSetRenamed()),
- TQT_TQOBJECT(this), TQT_SLOT( updateFrameStatusBarItem()));
+ this, TQT_SLOT( updateFrameStatusBarItem()));
connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ),
- TQT_TQOBJECT(this), TQT_SLOT( clipboardDataChanged() ) );
+ this, TQT_SLOT( clipboardDataChanged() ) );
connect( m_gui->canvasWidget(), TQT_SIGNAL(currentFrameSetEditChanged()),
- TQT_TQOBJECT(this), TQT_SLOT(slotFrameSetEditChanged()) );
+ this, TQT_SLOT(slotFrameSetEditChanged()) );
connect( m_gui->canvasWidget(), TQT_SIGNAL( currentMouseModeChanged(int) ),
- TQT_TQOBJECT(this), TQT_SLOT( showMouseMode(int) ) );
+ this, TQT_SLOT( showMouseMode(int) ) );
connect( m_gui->canvasWidget(), TQT_SIGNAL( overwriteModeChanged( bool ) ),
- TQT_TQOBJECT(this), TQT_SLOT( changeOverwriteMode( bool ) ) );
+ this, TQT_SLOT( changeOverwriteMode( bool ) ) );
// Cut and copy are directly connected to the selectionChanged signal
if ( m_doc->isReadWrite() )
{
connect( m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)),
- TQT_TQOBJECT(this), TQT_SLOT(slotChangeCutState(bool )) );
+ this, TQT_SLOT(slotChangeCutState(bool )) );
connect (m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)),
- TQT_TQOBJECT(this), TQT_SLOT(slotChangeCaseState(bool )));
+ this, TQT_SLOT(slotChangeCaseState(bool )));
}
else
{
@@ -379,10 +379,10 @@ KWView::KWView( const TQString& viewMode, TQWidget *parent, const char *name, KW
m_actionSortText, TQT_SLOT(setEnabled(bool )));
connect( m_gui->canvasWidget(), TQT_SIGNAL(docStructChanged(int)),
- TQT_TQOBJECT(this), TQT_SLOT(docStructChanged(int)));
+ this, TQT_SLOT(docStructChanged(int)));
connect( m_gui->canvasWidget(), TQT_SIGNAL(updateRuler()),
- TQT_TQOBJECT(this), TQT_SLOT(slotUpdateRuler()));
+ this, TQT_SLOT(slotUpdateRuler()));
if ( shell() )
{
@@ -405,8 +405,8 @@ KWView::KWView( const TQString& viewMode, TQWidget *parent, const char *name, KW
// Determine initial scroll position
// We do this delayed, so that the GUI has been fully constructed
// (and e.g. the statusbar can repaint).
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetInitialPosition() ) );
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotSetInitialPosition() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
}
KWView::~KWView()
@@ -563,72 +563,72 @@ void KWView::setupActions()
// -------------- File menu
m_actionExtraCreateTemplate = new TDEAction( i18n( "&Create Template From Document..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( extraCreateTemplate() ),
+ this, TQT_SLOT( extraCreateTemplate() ),
actionCollection(), "extra_template" );
m_actionExtraCreateTemplate->setToolTip( i18n( "Save this document and use it later as a template" ) );
m_actionExtraCreateTemplate->setWhatsThis( i18n( "You can save this document as a template.<br><br>You can use this new template as a starting point for another document." ) );
- m_actionFileStatistics = new TDEAction( i18n( "Statistics" ), 0, TQT_TQOBJECT(this), TQT_SLOT( fileStatistics() ), actionCollection(), "file_statistics" );
+ m_actionFileStatistics = new TDEAction( i18n( "Statistics" ), 0, this, TQT_SLOT( fileStatistics() ), actionCollection(), "file_statistics" );
m_actionFileStatistics->setToolTip( i18n( "Sentence, word and letter counts for this document" ) );
m_actionFileStatistics->setWhatsThis( i18n( "Information on the number of letters, words, syllables and sentences for this document.<p>Evaluates readability using the Flesch reading score." ) );
// -------------- Edit actions
- m_actionEditCut = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT( editCut() ), actionCollection(), "edit_cut" );
- m_actionEditCopy = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( editCopy() ), actionCollection(), "edit_copy" );
- m_actionEditPaste = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( editPaste() ), actionCollection(), "edit_paste" );
- m_actionEditFind = KStdAction::find( TQT_TQOBJECT(this), TQT_SLOT( editFind() ), actionCollection(), "edit_find" );
- m_actionEditFindNext = KStdAction::findNext( TQT_TQOBJECT(this), TQT_SLOT( editFindNext() ), actionCollection(), "edit_findnext" );
- m_actionEditFindPrevious = KStdAction::findPrev( TQT_TQOBJECT(this), TQT_SLOT( editFindPrevious() ), actionCollection(), "edit_findprevious" );
- m_actionEditReplace = KStdAction::replace( TQT_TQOBJECT(this), TQT_SLOT( editReplace() ), actionCollection(), "edit_replace" );
- m_actionEditSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( editSelectAll() ), actionCollection(), "edit_selectall" );
- new TDEAction( i18n( "Select All Frames" ), 0, TQT_TQOBJECT(this), TQT_SLOT( editSelectAllFrames() ), actionCollection(), "edit_selectallframes" );
+ m_actionEditCut = KStdAction::cut( this, TQT_SLOT( editCut() ), actionCollection(), "edit_cut" );
+ m_actionEditCopy = KStdAction::copy( this, TQT_SLOT( editCopy() ), actionCollection(), "edit_copy" );
+ m_actionEditPaste = KStdAction::paste( this, TQT_SLOT( editPaste() ), actionCollection(), "edit_paste" );
+ m_actionEditFind = KStdAction::find( this, TQT_SLOT( editFind() ), actionCollection(), "edit_find" );
+ m_actionEditFindNext = KStdAction::findNext( this, TQT_SLOT( editFindNext() ), actionCollection(), "edit_findnext" );
+ m_actionEditFindPrevious = KStdAction::findPrev( this, TQT_SLOT( editFindPrevious() ), actionCollection(), "edit_findprevious" );
+ m_actionEditReplace = KStdAction::replace( this, TQT_SLOT( editReplace() ), actionCollection(), "edit_replace" );
+ m_actionEditSelectAll = KStdAction::selectAll( this, TQT_SLOT( editSelectAll() ), actionCollection(), "edit_selectall" );
+ new TDEAction( i18n( "Select All Frames" ), 0, this, TQT_SLOT( editSelectAllFrames() ), actionCollection(), "edit_selectallframes" );
m_actionEditSelectCurrentFrame = new TDEAction( i18n( "Select Frame" ), 0,
- 0, TQT_TQOBJECT(this), TQT_SLOT( editSelectCurrentFrame() ),
+ 0, this, TQT_SLOT( editSelectCurrentFrame() ),
actionCollection(), "edit_selectcurrentframe" );
- m_actionSpellCheck = KStdAction::spelling( TQT_TQOBJECT(this), TQT_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" );
+ m_actionSpellCheck = KStdAction::spelling( this, TQT_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" );
m_actionDeletePage = new TDEAction( i18n( "Delete Page" ), "delslide", 0,
- TQT_TQOBJECT(this), TQT_SLOT( deletePage() ),
+ this, TQT_SLOT( deletePage() ),
actionCollection(), "delete_page" );
kdDebug() << m_doc->pageCount() << " " << (m_doc->processingType() == KWDocument::DTP) << endl;
(void) new TDEAction( i18n( "Configure Mai&l Merge..." ), "configure",0,
- TQT_TQOBJECT(this), TQT_SLOT( editMailMergeDataBase() ),
+ this, TQT_SLOT( editMailMergeDataBase() ),
actionCollection(), "edit_sldatabase" );
(void) new KWMailMergeLabelAction( i18n("Drag Mail Merge Variable"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(editMailMergeDataBase()), actionCollection(), "mailmerge_draglabel" );
+ this, TQT_SLOT(editMailMergeDataBase()), actionCollection(), "mailmerge_draglabel" );
-// (void) new KWMailMergeComboAction::KWMailMergeComboAction(i18n("Insert Mailmerge Var"),0,TQT_TQOBJECT(this), TQT_SLOT(JWJWJW()),actionCollection(),"mailmerge_varchooser");
+// (void) new KWMailMergeComboAction::KWMailMergeComboAction(i18n("Insert Mailmerge Var"),0,this, TQT_SLOT(JWJWJW()),actionCollection(),"mailmerge_varchooser");
// -------------- Frame menu
m_actionEditDelFrame = new TDEAction( i18n( "&Delete Frame" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( editDeleteFrame() ),
+ this, TQT_SLOT( editDeleteFrame() ),
actionCollection(), "edit_delframe" );
m_actionEditDelFrame->setToolTip( i18n( "Delete the currently selected frame(s)." ) );
m_actionEditDelFrame->setWhatsThis( i18n( "Delete the currently selected frame(s)." ) );
- m_actionCreateLinkedFrame = new TDEAction( i18n( "Create Linked Copy" ), 0, TQT_TQOBJECT(this), TQT_SLOT( createLinkedFrame() ), actionCollection(), "create_linked_frame" );
+ m_actionCreateLinkedFrame = new TDEAction( i18n( "Create Linked Copy" ), 0, this, TQT_SLOT( createLinkedFrame() ), actionCollection(), "create_linked_frame" );
m_actionCreateLinkedFrame->setToolTip( i18n( "Create a copy of the current frame, always showing the same contents" ) );
m_actionCreateLinkedFrame->setWhatsThis( i18n("Create a copy of the current frame, that remains linked to it. This means they always show the same contents: modifying the contents in such a frame will update all its linked copies.") );
m_actionRaiseFrame = new TDEAction( i18n( "Ra&ise Frame" ), "raise",
- TQt::CTRL +TQt::SHIFT+ TQt::Key_R, TQT_TQOBJECT(this), TQT_SLOT( raiseFrame() ),
+ TQt::CTRL +TQt::SHIFT+ TQt::Key_R, this, TQT_SLOT( raiseFrame() ),
actionCollection(), "raiseframe" );
m_actionRaiseFrame->setToolTip( i18n( "Raise the currently selected frame so that it appears above all the other frames" ) );
m_actionRaiseFrame->setWhatsThis( i18n( "Raise the currently selected frame so that it appears above all the other frames. This is only useful if frames overlap each other. If multiple frames are selected they are all raised in turn." ) );
m_actionLowerFrame = new TDEAction( i18n( "&Lower Frame" ), "lower",
- TQt::CTRL +TQt::SHIFT+ TQt::Key_L, TQT_TQOBJECT(this), TQT_SLOT( lowerFrame() ),
+ TQt::CTRL +TQt::SHIFT+ TQt::Key_L, this, TQT_SLOT( lowerFrame() ),
actionCollection(), "lowerframe" );
m_actionLowerFrame->setToolTip( i18n( "Lower the currently selected frame so that it disappears under any frame that overlaps it" ) );
m_actionLowerFrame->setWhatsThis( i18n( "Lower the currently selected frame so that it disappears under any frame that overlaps it. If multiple frames are selected they are all lowered in turn." ) );
m_actionBringToFront= new TDEAction( i18n( "Bring to Front" ), "bring_forward",
- 0, TQT_TQOBJECT(this), TQT_SLOT( bringToFront() ),
+ 0, this, TQT_SLOT( bringToFront() ),
actionCollection(), "bring_tofront_frame" );
m_actionSendBackward= new TDEAction( i18n( "Send to Back" ), "send_backward",
- 0, TQT_TQOBJECT(this), TQT_SLOT( sendToBack() ),
+ 0, this, TQT_SLOT( sendToBack() ),
actionCollection(), "send_toback_frame" );
@@ -637,14 +637,14 @@ void KWView::setupActions()
if ( !m_doc->isEmbedded() ) {
m_actionViewTextMode = new TDEToggleAction( i18n( "Text Mode" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( viewTextMode() ),
+ this, TQT_SLOT( viewTextMode() ),
actionCollection(), "view_textmode" );
m_actionViewTextMode->setToolTip( i18n( "Only show the text of the document." ) );
m_actionViewTextMode->setWhatsThis( i18n( "Do not show any pictures, formatting or layout. KWord will display only the text for editing." ) );
m_actionViewTextMode->setExclusiveGroup( "viewmodes" );
m_actionViewPageMode = new TDEToggleAction( i18n( "&Page Mode" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( viewPageMode() ),
+ this, TQT_SLOT( viewPageMode() ),
actionCollection(), "view_pagemode" );
m_actionViewPageMode->setWhatsThis( i18n( "Switch to page mode.<br><br> Page mode is designed to make editing your text easy.<br><br>This function is most frequently used to return to text editing after switching to preview mode." ) );
m_actionViewPageMode->setToolTip( i18n( "Switch to page editing mode." ) );
@@ -652,7 +652,7 @@ void KWView::setupActions()
m_actionViewPageMode->setExclusiveGroup( "viewmodes" );
m_actionViewPageMode->setChecked( true );
m_actionViewPreviewMode = new TDEToggleAction( i18n( "Pre&view Mode" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( viewPreviewMode() ),
+ this, TQT_SLOT( viewPreviewMode() ),
actionCollection(), "view_previewmode" );
m_actionViewPreviewMode->setWhatsThis( i18n( "Zoom out from your document to get a look at several pages of your document.<br><br>The number of pages per line can be customized." ) );
m_actionViewPreviewMode->setToolTip( i18n( "Zoom out to a multiple page view." ) );
@@ -667,26 +667,26 @@ void KWView::setupActions()
}
m_actionViewFormattingChars = new TDEToggleAction( i18n( "&Formatting Characters" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotViewFormattingChars() ),
+ this, TQT_SLOT( slotViewFormattingChars() ),
actionCollection(), "view_formattingchars" );
m_actionViewFormattingChars->setToolTip( i18n( "Toggle the display of non-printing characters." ) );
m_actionViewFormattingChars->setWhatsThis( i18n( "Toggle the display of non-printing characters.<br><br>When this is enabled, KWord shows you tabs, spaces, carriage returns and other non-printing characters." ) );
m_actionViewFrameBorders = new TDEToggleAction( i18n( "Frame &Borders" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotViewFrameBorders() ),
+ this, TQT_SLOT( slotViewFrameBorders() ),
actionCollection(), "view_frameborders" );
m_actionViewFrameBorders->setToolTip( i18n( "Turns the border display on and off." ) );
m_actionViewFrameBorders->setWhatsThis( i18n( "Turns the border display on and off.<br><br>The borders are never printed. This option is useful to see how the document will appear on the printed page." ) );
m_actionViewHeader = new TDEToggleAction( i18n( "Enable Document &Headers" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( viewHeader() ),
+ this, TQT_SLOT( viewHeader() ),
actionCollection(), "format_header" );
m_actionViewHeader->setCheckedState(i18n("Disable Document &Headers"));
m_actionViewHeader->setToolTip( i18n( "Shows and hides header display." ) );
m_actionViewHeader->setWhatsThis( i18n( "Selecting this option toggles the display of headers in KWord.<br><br>Headers are special frames at the top of each page which can contain page numbers or other information." ) );
m_actionViewFooter = new TDEToggleAction( i18n( "Enable Document Foo&ters" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( viewFooter() ),
+ this, TQT_SLOT( viewFooter() ),
actionCollection(), "format_footer" );
m_actionViewFooter->setCheckedState(i18n("Disable Document Foo&ters"));
m_actionViewFooter->setToolTip( i18n( "Shows and hides footer display." ) );
@@ -696,20 +696,20 @@ void KWView::setupActions()
actionCollection(), "view_zoom" );
connect( m_actionViewZoom, TQT_SIGNAL( activated( const TQString & ) ),
- TQT_TQOBJECT(this), TQT_SLOT( viewZoom( const TQString & ) ) );
+ this, TQT_SLOT( viewZoom( const TQString & ) ) );
m_actionViewZoom->setEditable(true);
changeZoomMenu( );
// -------------- Insert menu
m_actionInsertSpecialChar = new TDEAction( i18n( "Sp&ecial Character..." ), "char",
TQt::ALT + TQt::SHIFT + TQt::Key_C,
- TQT_TQOBJECT(this), TQT_SLOT( insertSpecialChar() ),
+ this, TQT_SLOT( insertSpecialChar() ),
actionCollection(), "insert_specialchar" );
m_actionInsertSpecialChar->setToolTip( i18n( "Insert one or more symbols or letters not found on the keyboard." ) );
m_actionInsertSpecialChar->setWhatsThis( i18n( "Insert one or more symbols or letters not found on the keyboard." ) );
m_actionInsertFrameBreak = new TDEAction( TQString(), TQt::CTRL + TQt::Key_Return,
- TQT_TQOBJECT(this), TQT_SLOT( insertFrameBreak() ),
+ this, TQT_SLOT( insertFrameBreak() ),
actionCollection(), "insert_framebreak" );
if ( m_doc->processingType() == KWDocument::WP ) {
m_actionInsertFrameBreak->setText( i18n( "Page Break" ) );
@@ -722,45 +722,45 @@ void KWView::setupActions()
}
/*actionInsertPage =*/ new TDEAction( m_doc->processingType() == KWDocument::WP ? i18n( "Page" ) : i18n( "Page..." ), "page", 0,
- TQT_TQOBJECT(this), TQT_SLOT( insertPage() ),
+ this, TQT_SLOT( insertPage() ),
actionCollection(), "insert_page" );
m_actionInsertLink = new TDEAction( i18n( "Link..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( insertLink() ),
+ this, TQT_SLOT( insertLink() ),
actionCollection(), "insert_link" );
m_actionInsertLink->setToolTip( i18n( "Insert a Web address, email address or hyperlink to a file." ) );
m_actionInsertLink->setWhatsThis( i18n( "Insert a Web address, email address or hyperlink to a file." ) );
m_actionInsertComment = new TDEAction( i18n( "Comment..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( insertComment() ),
+ this, TQT_SLOT( insertComment() ),
actionCollection(), "insert_comment" );
m_actionInsertComment->setToolTip( i18n( "Insert a comment about the selected text." ) );
m_actionInsertComment->setWhatsThis( i18n( "Insert a comment about the selected text. These comments are not designed to appear on the final page." ) );
m_actionEditComment = new TDEAction( i18n("Edit Comment..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT(editComment()),
+ this, TQT_SLOT(editComment()),
actionCollection(), "edit_comment");
m_actionEditComment->setToolTip( i18n( "Change the content of a comment." ) );
m_actionEditComment->setWhatsThis( i18n( "Change the content of a comment." ) );
m_actionRemoveComment = new TDEAction( i18n("Remove Comment"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(removeComment()),
+ this, TQT_SLOT(removeComment()),
actionCollection(), "remove_comment");
m_actionRemoveComment->setToolTip( i18n( "Remove the selected document comment." ) );
m_actionRemoveComment->setWhatsThis( i18n( "Remove the selected document comment." ) );
m_actionCopyTextOfComment = new TDEAction( i18n("Copy Text of Comment..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT(copyTextOfComment()),
+ this, TQT_SLOT(copyTextOfComment()),
actionCollection(), "copy_text_comment");
m_actionInsertFootEndNote = new TDEAction( i18n( "&Footnote/Endnote..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( insertFootNote() ),
+ this, TQT_SLOT( insertFootNote() ),
actionCollection(), "insert_footendnote" );
m_actionInsertFootEndNote->setToolTip( i18n( "Insert a footnote referencing the selected text." ) );
m_actionInsertFootEndNote->setWhatsThis( i18n( "Insert a footnote referencing the selected text." ) );
m_actionInsertContents = new TDEAction( i18n( "Table of &Contents" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( insertContents() ),
+ this, TQT_SLOT( insertContents() ),
actionCollection(), "insert_contents" );
m_actionInsertContents->setToolTip( i18n( "Insert table of contents at the current cursor position." ) );
m_actionInsertContents->setWhatsThis( i18n( "Insert table of contents at the current cursor position." ) );
@@ -786,7 +786,7 @@ void KWView::setupActions()
actionInsertVariable->popupMenu()->insertSeparator();
m_actionRefreshAllVariable = new TDEAction( i18n( "&Refresh All Variables" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( refreshAllVariable() ),
+ this, TQT_SLOT( refreshAllVariable() ),
actionCollection(), "refresh_all_variable" );
m_actionRefreshAllVariable->setToolTip( i18n( "Update all variables to current values." ) );
m_actionRefreshAllVariable->setWhatsThis( i18n( "Update all variables in the document to current values.<br><br>This will update page numbers, dates or any other variables that need updating." ) );
@@ -798,79 +798,79 @@ void KWView::setupActions()
loadexpressionActions( m_actionInsertExpression);
m_actionToolsCreateText = new TDEToggleAction( i18n( "Te&xt Frame" ), "frame_text", TQt::Key_F10 /*same as kpr*/,
- TQT_TQOBJECT(this), TQT_SLOT( toolsCreateText() ),
+ this, TQT_SLOT( toolsCreateText() ),
actionCollection(), "tools_createtext" );
m_actionToolsCreateText->setToolTip( i18n( "Create a new text frame." ) );
m_actionToolsCreateText->setWhatsThis( i18n( "Create a new text frame." ) );
m_actionToolsCreateText->setExclusiveGroup( "tools" );
m_actionInsertFormula = new TDEAction( i18n( "For&mula" ), "frame_formula", TQt::Key_F4,
- TQT_TQOBJECT(this), TQT_SLOT( insertFormula() ),
+ this, TQT_SLOT( insertFormula() ),
actionCollection(), "tools_formula" );
m_actionInsertFormula->setToolTip( i18n( "Insert a formula into a new frame." ) );
m_actionInsertFormula->setWhatsThis( i18n( "Insert a formula into a new frame." ) );
m_actionInsertTable = new TDEAction( i18n( "&Table..." ), "inline_table",
TQt::Key_F5,
- TQT_TQOBJECT(this), TQT_SLOT( insertTable() ),
+ this, TQT_SLOT( insertTable() ),
actionCollection(), "insert_table" );
m_actionInsertTable->setToolTip( i18n( "Create a table." ) );
m_actionInsertTable->setWhatsThis( i18n( "Create a table.<br><br>The table can either exist in a frame of its own or inline." ) );
m_actionToolsCreatePix = new TDEToggleAction( i18n( "P&icture..." ), "frame_image", // or inline_image ?
TQt::SHIFT + TQt::Key_F5 /*same as kpr*/,
- TQT_TQOBJECT(this), TQT_SLOT( insertPicture() ),
+ this, TQT_SLOT( insertPicture() ),
actionCollection(), "insert_picture" );
m_actionToolsCreatePix->setToolTip( i18n( "Create a new frame for a picture." ) );
m_actionToolsCreatePix->setWhatsThis( i18n( "Create a new frame for a picture or diagram." ) );
m_actionToolsCreatePix->setExclusiveGroup( "tools" );
m_actionToolsCreatePart = new KoPartSelectAction( i18n( "&Object Frame" ), "frame_query",
- TQT_TQOBJECT(this), TQT_SLOT( toolsPart() ),
+ this, TQT_SLOT( toolsPart() ),
actionCollection(), "tools_part" );
m_actionToolsCreatePart->setToolTip( i18n( "Insert an object into a new frame." ) );
m_actionToolsCreatePart->setWhatsThis( i18n( "Insert an object into a new frame." ) );
m_actionInsertFile = new TDEAction( i18n( "Fi&le..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( insertFile() ),
+ this, TQT_SLOT( insertFile() ),
actionCollection(), "insert_file" );
// ------------------------- Format menu
m_actionFormatFont = new TDEAction( i18n( "&Font..." ), TQt::ALT + TQt::CTRL + TQt::Key_F,
- TQT_TQOBJECT(this), TQT_SLOT( formatFont() ),
+ this, TQT_SLOT( formatFont() ),
actionCollection(), "format_font" );
m_actionFormatFont->setToolTip( i18n( "Change character size, font, boldface, italics etc." ) );
m_actionFormatFont->setWhatsThis( i18n( "Change the attributes of the currently selected characters." ) );
m_actionFormatParag = new TDEAction( i18n( "&Paragraph..." ), TQt::ALT + TQt::CTRL + TQt::Key_P,
- TQT_TQOBJECT(this), TQT_SLOT( formatParagraph() ),
+ this, TQT_SLOT( formatParagraph() ),
actionCollection(), "format_paragraph" );
m_actionFormatParag->setToolTip( i18n( "Change paragraph margins, text flow, borders, bullets, numbering etc." ) );
m_actionFormatParag->setWhatsThis( i18n( "Change paragraph margins, text flow, borders, bullets, numbering etc.<p>Select text in multiple paragraphs to change the formatting of all selected paragraphs.<p>If no text is selected, the paragraph where the cursor is located will be changed." ) );
m_actionFormatFrameSet = new TDEAction( i18n( "F&rame/Frameset Properties" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( formatFrameSet() ),
+ this, TQT_SLOT( formatFrameSet() ),
actionCollection(), "format_frameset" );
m_actionFormatFrameSet->setToolTip( i18n( "Alter frameset properties." ) );
m_actionFormatFrameSet->setWhatsThis( i18n( "Alter frameset properties.<p>Currently you can change the frame background." ) );
m_actionFormatPage = new TDEAction( i18n( "Page &Layout..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( formatPage() ),
+ this, TQT_SLOT( formatPage() ),
actionCollection(), "format_page" );
m_actionFormatPage->setToolTip( i18n( "Change properties of entire page." ) );
m_actionFormatPage->setWhatsThis( i18n( "Change properties of the entire page.<p>Currently you can change paper size, paper orientation, header and footer sizes, and column settings." ) );
m_actionFormatFrameStylist = new TDEAction( i18n( "&Frame Style Manager" ), 0 /*shortcut?*/,
- TQT_TQOBJECT(this), TQT_SLOT( extraFrameStylist() ),
+ this, TQT_SLOT( extraFrameStylist() ),
actionCollection(), "frame_stylist" );
m_actionFormatFrameStylist->setToolTip( i18n( "Change attributes of framestyles." ) );
m_actionFormatFrameStylist->setWhatsThis( i18n( "Change background and borders of framestyles.<p>Multiple framestyles can be changed using the dialog box." ) );
m_actionFormatStylist = new TDEAction( i18n( "&Style Manager" ), TQt::ALT + TQt::CTRL + TQt::Key_S,
- TQT_TQOBJECT(this), TQT_SLOT( extraStylist() ),
+ this, TQT_SLOT( extraStylist() ),
actionCollection(), "format_stylist" );
m_actionFormatStylist->setToolTip( i18n( "Change attributes of styles." ) );
m_actionFormatStylist->setWhatsThis( i18n( "Change font and paragraph attributes of styles.<p>Multiple styles can be changed using the dialog box." ) );
@@ -878,10 +878,10 @@ void KWView::setupActions()
m_actionFormatFontSize = new TDEFontSizeAction( i18n( "Font Size" ), 0,
actionCollection(), "format_fontsize" );
connect( m_actionFormatFontSize, TQT_SIGNAL( fontSizeChanged( int ) ),
- TQT_TQOBJECT(this), TQT_SLOT( textSizeSelected( int ) ) );
+ this, TQT_SLOT( textSizeSelected( int ) ) );
- m_actionFontSizeIncrease = new TDEAction( i18n("Increase Font Size"), "fontsizeup", TQt::CTRL + TQt::Key_Greater, TQT_TQOBJECT(this), TQT_SLOT( increaseFontSize() ), actionCollection(), "increase_fontsize" );
- m_actionFontSizeDecrease = new TDEAction( i18n("Decrease Font Size"), "fontsizedown", TQt::CTRL + TQt::Key_Less, TQT_TQOBJECT(this), TQT_SLOT( decreaseFontSize() ), actionCollection(), "decrease_fontsize" );
+ m_actionFontSizeIncrease = new TDEAction( i18n("Increase Font Size"), "fontsizeup", TQt::CTRL + TQt::Key_Greater, this, TQT_SLOT( increaseFontSize() ), actionCollection(), "increase_fontsize" );
+ m_actionFontSizeDecrease = new TDEAction( i18n("Decrease Font Size"), "fontsizedown", TQt::CTRL + TQt::Key_Less, this, TQT_SLOT( decreaseFontSize() ), actionCollection(), "decrease_fontsize" );
#ifdef KFONTACTION_HAS_CRITERIA_ARG
m_actionFormatFontFamily = new TDEFontAction( TDEFontChooser::SmoothScalableFonts,
@@ -892,7 +892,7 @@ void KWView::setupActions()
actionCollection(), "format_fontfamily" );
#endif
connect( m_actionFormatFontFamily, TQT_SIGNAL( activated( const TQString & ) ),
- TQT_TQOBJECT(this), TQT_SLOT( textFontSelected( const TQString & ) ) );
+ this, TQT_SLOT( textFontSelected( const TQString & ) ) );
m_actionFormatStyleMenu = new TDEActionMenu( i18n( "St&yle" ), 0,
actionCollection(), "format_stylemenu" );
@@ -901,11 +901,11 @@ void KWView::setupActions()
// In fact, binding a key to this action will simply re-apply the current style. Why not.
//m_actionFormatStyle->setShortcutConfigurable( false );
connect( m_actionFormatStyle, TQT_SIGNAL( activated( int ) ),
- TQT_TQOBJECT(this), TQT_SLOT( textStyleSelected( int ) ) );
+ this, TQT_SLOT( textStyleSelected( int ) ) );
updateStyleList();
m_actionFormatDefault=new TDEAction( i18n( "Default Format" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( textDefaultFormat() ),
+ this, TQT_SLOT( textDefaultFormat() ),
actionCollection(), "text_default" );
m_actionFormatDefault->setToolTip( i18n( "Change font and paragraph attributes to their default values." ) );
m_actionFormatDefault->setWhatsThis( i18n( "Change font and paragraph attributes to their default values." ) );
@@ -913,76 +913,76 @@ void KWView::setupActions()
// ----------------------- More format actions, for the toolbar only
m_actionFormatBold = new TDEToggleAction( i18n( "&Bold" ), "format-text-bold", TQt::CTRL + TQt::Key_B,
- TQT_TQOBJECT(this), TQT_SLOT( textBold() ),
+ this, TQT_SLOT( textBold() ),
actionCollection(), "format_bold" );
m_actionFormatItalic = new TDEToggleAction( i18n( "&Italic" ), "format-text-italic", TQt::CTRL + TQt::Key_I,
- TQT_TQOBJECT(this), TQT_SLOT( textItalic() ),
+ this, TQT_SLOT( textItalic() ),
actionCollection(), "format_italic" );
m_actionFormatUnderline = new TDEToggleAction( i18n( "&Underline" ), "format-text-underline", TQt::CTRL + TQt::Key_U,
- TQT_TQOBJECT(this), TQT_SLOT( textUnderline() ),
+ this, TQT_SLOT( textUnderline() ),
actionCollection(), "format_underline" );
m_actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "format-text-strikethrough", 0 ,
- TQT_TQOBJECT(this), TQT_SLOT( textStrikeOut() ),
+ this, TQT_SLOT( textStrikeOut() ),
actionCollection(), "format_strike" );
m_actionFormatAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "format-text-direction-ltr", TQt::CTRL + TQt::Key_L,
- TQT_TQOBJECT(this), TQT_SLOT( textAlignLeft() ),
+ this, TQT_SLOT( textAlignLeft() ),
actionCollection(), "format_alignleft" );
m_actionFormatAlignLeft->setExclusiveGroup( "align" );
m_actionFormatAlignLeft->setChecked( TRUE );
m_actionFormatAlignCenter = new TDEToggleAction( i18n( "Align &Center" ), "text_center", TQt::CTRL + TQt::ALT + TQt::Key_C,
- TQT_TQOBJECT(this), TQT_SLOT( textAlignCenter() ),
+ this, TQT_SLOT( textAlignCenter() ),
actionCollection(), "format_aligncenter" );
m_actionFormatAlignCenter->setExclusiveGroup( "align" );
m_actionFormatAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "format-text-direction-rtl", TQt::CTRL + TQt::ALT + TQt::Key_R,
- TQT_TQOBJECT(this), TQT_SLOT( textAlignRight() ),
+ this, TQT_SLOT( textAlignRight() ),
actionCollection(), "format_alignright" );
m_actionFormatAlignRight->setExclusiveGroup( "align" );
m_actionFormatAlignBlock = new TDEToggleAction( i18n( "Align &Block" ), "text_block", TQt::CTRL + TQt::Key_J,
- TQT_TQOBJECT(this), TQT_SLOT( textAlignBlock() ),
+ this, TQT_SLOT( textAlignBlock() ),
actionCollection(), "format_alignblock" );
m_actionFormatAlignBlock->setExclusiveGroup( "align" );
m_actionFormatSpacingSingle = new TDEToggleAction( i18n( "Line Spacing &1" ), "spacesimple", TQt::CTRL + TQt::Key_1,
- TQT_TQOBJECT(this), TQT_SLOT( textSpacingSingle() ),
+ this, TQT_SLOT( textSpacingSingle() ),
actionCollection(), "format_spacingsingle" );
m_actionFormatSpacingSingle->setExclusiveGroup( "spacing" );
m_actionFormatSpacingOneAndHalf = new TDEToggleAction( i18n( "Line Spacing 1.&5" ), "spacedouble", TQt::CTRL + TQt::Key_5,
- TQT_TQOBJECT(this), TQT_SLOT( textSpacingOneAndHalf() ),
+ this, TQT_SLOT( textSpacingOneAndHalf() ),
actionCollection(), "format_spacing15" );
m_actionFormatSpacingOneAndHalf->setExclusiveGroup( "spacing" );
m_actionFormatSpacingDouble = new TDEToggleAction( i18n( "Line Spacing &2" ), "spacetriple", TQt::CTRL + TQt::Key_2,
- TQT_TQOBJECT(this), TQT_SLOT( textSpacingDouble() ),
+ this, TQT_SLOT( textSpacingDouble() ),
actionCollection(), "format_spacingdouble" );
m_actionFormatSpacingDouble->setExclusiveGroup( "spacing" );
m_actionFormatSuper = new TDEToggleAction( i18n( "Superscript" ), "super", 0,
- TQT_TQOBJECT(this), TQT_SLOT( textSuperScript() ),
+ this, TQT_SLOT( textSuperScript() ),
actionCollection(), "format_super" );
//m_actionFormatSuper->setExclusiveGroup( "valign" );
m_actionFormatSub = new TDEToggleAction( i18n( "Subscript" ), "sub", 0,
- TQT_TQOBJECT(this), TQT_SLOT( textSubScript() ),
+ this, TQT_SLOT( textSubScript() ),
actionCollection(), "format_sub" );
//m_actionFormatSub->setExclusiveGroup( "valign" );
m_actionFormatIncreaseIndent= new TDEAction( i18n( "Increase Indent" ),
TQApplication::reverseLayout() ? "format_decreaseindent" : "format_increaseindent", 0,
- TQT_TQOBJECT(this), TQT_SLOT( textIncreaseIndent() ),
+ this, TQT_SLOT( textIncreaseIndent() ),
actionCollection(), "format_increaseindent" );
m_actionFormatDecreaseIndent= new TDEAction( i18n( "Decrease Indent" ),
TQApplication::reverseLayout() ? "format_increaseindent" :"format_decreaseindent", 0,
- TQT_TQOBJECT(this), TQT_SLOT( textDecreaseIndent() ),
+ this, TQT_SLOT( textDecreaseIndent() ),
actionCollection(), "format_decreaseindent" );
m_actionFormatColor = new TTDESelectColorAction( i18n( "Text Color..." ), TTDESelectColorAction::TextColor,
- TQT_TQOBJECT(this), TQT_SLOT( textColor() ),
+ this, TQT_SLOT( textColor() ),
actionCollection(), "format_color", true );
m_actionFormatColor->setDefaultColor(TQColor());
//actionFormatList = new TDEToggleAction( i18n( "List" ), "enumList", 0,
- // TQT_TQOBJECT(this), TQT_SLOT( textList() ),
+ // this, TQT_SLOT( textList() ),
// actionCollection(), "format_list" );
//actionFormatList->setExclusiveGroup( "style" );
@@ -999,7 +999,7 @@ void KWView::setupActions()
// Dynamically create toggle-actions for each list style.
// This approach allows to edit toolbars and extract separate actions from this menu
TDEToggleAction* act = new TDEToggleAction( styleIt.current()->name(), /*TODO icon,*/
- 0, TQT_TQOBJECT(this), TQT_SLOT( slotCounterStyleSelected() ),
+ 0, this, TQT_SLOT( slotCounterStyleSelected() ),
actionCollection(), TQString("counterstyle_%1").arg( styleIt.current()->style() ).latin1() );
act->setExclusiveGroup( "counterstyle" );
// Add to the right menu: both for "none", bullet for bullets, numbers otherwise
@@ -1019,18 +1019,18 @@ void KWView::setupActions()
m_actionFrameStyle = new TDESelectAction( i18n( "Framest&yle" ), 0,
actionCollection(), "frame_style" );
connect( m_actionFrameStyle, TQT_SIGNAL( activated( int ) ),
- TQT_TQOBJECT(this), TQT_SLOT( frameStyleSelected( int ) ) );
+ this, TQT_SLOT( frameStyleSelected( int ) ) );
updateFrameStyleList();
m_actionBorderOutline = new TDEToggleAction( i18n( "Border Outline" ), "borderoutline",
- 0, TQT_TQOBJECT(this), TQT_SLOT( borderOutline() ), actionCollection(), "border_outline" );
+ 0, this, TQT_SLOT( borderOutline() ), actionCollection(), "border_outline" );
m_actionBorderLeft = new TDEToggleAction( i18n( "Border Left" ), "borderleft",
- 0, TQT_TQOBJECT(this), TQT_SLOT( borderLeft() ), actionCollection(), "border_left" );
+ 0, this, TQT_SLOT( borderLeft() ), actionCollection(), "border_left" );
m_actionBorderRight = new TDEToggleAction( i18n( "Border Right" ), "borderright",
- 0, TQT_TQOBJECT(this), TQT_SLOT( borderRight() ), actionCollection(), "border_right" );
+ 0, this, TQT_SLOT( borderRight() ), actionCollection(), "border_right" );
m_actionBorderTop = new TDEToggleAction( i18n( "Border Top" ), "bordertop",
- 0, TQT_TQOBJECT(this), TQT_SLOT( borderTop() ), actionCollection(), "border_top" );
+ 0, this, TQT_SLOT( borderTop() ), actionCollection(), "border_top" );
m_actionBorderBottom = new TDEToggleAction( i18n( "Border Bottom" ), "borderbottom",
- 0, TQT_TQOBJECT(this), TQT_SLOT( borderBottom() ), actionCollection(), "border_bottom" );
+ 0, this, TQT_SLOT( borderBottom() ), actionCollection(), "border_bottom" );
m_actionBorderStyle = new TDESelectAction( i18n( "Border Style" ),
0, actionCollection(), "border_style" );
@@ -1063,50 +1063,50 @@ void KWView::setupActions()
// ---------------------- Table menu
m_actionTablePropertiesMenu = new TDEAction( i18n( "&Properties" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableProperties() ),
+ this, TQT_SLOT( tableProperties() ),
actionCollection(), "table_propertiesmenu" );
m_actionTablePropertiesMenu->setToolTip( i18n( "Adjust properties of the current table." ) );
m_actionTablePropertiesMenu->setWhatsThis( i18n( "Adjust properties of the current table." ) );
m_actionTableInsertRow = new TDEAction( i18n( "&Insert Row..." ), "insert_table_row", 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableInsertRow() ),
+ this, TQT_SLOT( tableInsertRow() ),
actionCollection(), "table_insrow" );
m_actionTableInsertRow->setToolTip( i18n( "Insert one or more rows at cursor location." ) );
m_actionTableInsertRow->setWhatsThis( i18n( "Insert one or more rows at current cursor location." ) );
m_actionTableInsertCol = new TDEAction( i18n( "I&nsert Column..." ), "insert_table_col", 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableInsertCol() ),
+ this, TQT_SLOT( tableInsertCol() ),
actionCollection(), "table_inscol" );
m_actionTableInsertCol->setToolTip( i18n( "Insert one or more columns into the current table." ) );
m_actionTableInsertCol->setWhatsThis( i18n( "Insert one or more columns into the current table." ) );
m_actionTableDelRow = new TDEAction( 0, "delete_table_row", 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableDeleteRow() ),
+ this, TQT_SLOT( tableDeleteRow() ),
actionCollection(), "table_delrow" );
m_actionTableDelRow->setToolTip( i18n( "Delete selected rows from the current table." ) );
m_actionTableDelRow->setWhatsThis( i18n( "Delete selected rows from the current table." ) );
m_actionTableDelCol = new TDEAction( 0, "delete_table_col", 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableDeleteCol() ),
+ this, TQT_SLOT( tableDeleteCol() ),
actionCollection(), "table_delcol" );
m_actionTableDelCol->setToolTip( i18n( "Delete selected columns from the current table." ) );
m_actionTableDelCol->setWhatsThis( i18n( "Delete selected columns from the current table." ) );
m_actionTableResizeCol = new TDEAction( i18n( "Resize Column..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableResizeCol() ),
+ this, TQT_SLOT( tableResizeCol() ),
actionCollection(), "table_resizecol" );
m_actionTableResizeCol->setToolTip( i18n( "Change the width of the currently selected column." ) );
m_actionTableResizeCol->setWhatsThis( i18n( "Change the width of the currently selected column." ) );
m_actionTableJoinCells = new TDEAction( i18n( "&Join Cells" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableJoinCells() ),
+ this, TQT_SLOT( tableJoinCells() ),
actionCollection(), "table_joincells" );
m_actionTableJoinCells->setToolTip( i18n( "Join two or more cells into one large cell." ) );
m_actionTableJoinCells->setWhatsThis( i18n( "Join two or more cells into one large cell.<p>This is a good way to create titles and labels within a table." ) );
m_actionTableSplitCells= new TDEAction( i18n( "&Split Cell..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableSplitCells() ),
+ this, TQT_SLOT( tableSplitCells() ),
actionCollection(), "table_splitcells" );
m_actionTableSplitCells->setToolTip( i18n( "Split one cell into two or more cells." ) );
m_actionTableSplitCells->setWhatsThis( i18n( "Split one cell into two or more cells.<p>Cells can be split horizontally, vertically or both directions at once." ) );
@@ -1120,20 +1120,20 @@ void KWView::setupActions()
m_actionTableProtectCells->setWhatsThis( i18n( "Toggles cell protection on and off.<br><br>When cell protection is on, the user can not alter the content or formatting of the text within the cell." ) );
m_actionTableUngroup = new TDEAction( i18n( "&Ungroup Table" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableUngroupTable() ),
+ this, TQT_SLOT( tableUngroupTable() ),
actionCollection(), "table_ungroup" );
m_actionTableUngroup->setToolTip( i18n( "Break a table into individual frames." ) );
m_actionTableUngroup->setWhatsThis( i18n( "Break a table into individual frames<p>Each frame can be moved independently around the page." ) );
m_actionTableDelete = new TDEAction( i18n( "Delete &Table" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableDelete() ),
+ this, TQT_SLOT( tableDelete() ),
actionCollection(), "table_delete" );
m_actionTableDelete->setToolTip( i18n( "Delete the entire table." ) );
m_actionTableDelete->setWhatsThis( i18n( "Deletes all cells and the content within the cells of the currently selected table." ) );
m_actionTableStylist = new TDEAction( i18n( "T&able Style Manager" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( tableStylist() ),
+ this, TQT_SLOT( tableStylist() ),
actionCollection(), "table_stylist" );
m_actionTableStylist->setToolTip( i18n( "Change attributes of tablestyles." ) );
m_actionTableStylist->setWhatsThis( i18n( "Change textstyle and framestyle of the tablestyles.<p>Multiple tablestyles can be changed using the dialog box." ) );
@@ -1143,18 +1143,18 @@ void KWView::setupActions()
m_actionTableStyle = new TDESelectAction( i18n( "Table&style" ), 0,
actionCollection(), "table_style" );
connect( m_actionTableStyle, TQT_SIGNAL( activated( int ) ),
- TQT_TQOBJECT(this), TQT_SLOT( tableStyleSelected( int ) ) );
+ this, TQT_SLOT( tableStyleSelected( int ) ) );
updateTableStyleList();
m_actionConvertTableToText = new TDEAction( i18n( "Convert Table to Text" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( convertTableToText() ),
+ this, TQT_SLOT( convertTableToText() ),
actionCollection(), "convert_table_to_text" );
m_actionSortText= new TDEAction( i18n( "Sort Text..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( sortText() ),
+ this, TQT_SLOT( sortText() ),
actionCollection(), "sort_text" );
m_actionAddPersonalExpression= new TDEAction( i18n( "Add Expression" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( addPersonalExpression() ),
+ this, TQT_SLOT( addPersonalExpression() ),
actionCollection(), "add_personal_expression" );
@@ -1162,89 +1162,89 @@ void KWView::setupActions()
m_actionAllowAutoFormat = new TDEToggleAction( i18n( "Enable Autocorrection" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAllowAutoFormat() ),
+ this, TQT_SLOT( slotAllowAutoFormat() ),
actionCollection(), "enable_autocorrection" );
m_actionAllowAutoFormat->setCheckedState(i18n("Disable Autocorrection"));
m_actionAllowAutoFormat->setToolTip( i18n( "Toggle autocorrection on and off." ) );
m_actionAllowAutoFormat->setWhatsThis( i18n( "Toggle autocorrection on and off." ) );
m_actionAutoFormat = new TDEAction( i18n( "Configure &Autocorrection..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( extraAutoFormat() ),
+ this, TQT_SLOT( extraAutoFormat() ),
actionCollection(), "configure_autocorrection" );
m_actionAutoFormat->setToolTip( i18n( "Change autocorrection options." ) );
m_actionAutoFormat->setWhatsThis( i18n( "Change autocorrection options including:<p> <UL><LI><P>exceptions to autocorrection</P> <LI><P>add/remove autocorrection replacement text</P> <LI><P>and basic autocorrection options</P>." ) );
m_actionEditCustomVarsEdit = new TDEAction( i18n( "Custom &Variables..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( editCustomVars() ), // TODO: new dialog w add etc.
+ this, TQT_SLOT( editCustomVars() ), // TODO: new dialog w add etc.
actionCollection(), "custom_vars" );
m_actionEditPersonnalExpr=new TDEAction( i18n( "Edit &Personal Expressions..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( editPersonalExpr() ),
+ this, TQT_SLOT( editPersonalExpr() ),
actionCollection(), "personal_expr" );
m_actionEditPersonnalExpr->setToolTip( i18n( "Add or change one or more personal expressions." ) );
m_actionEditPersonnalExpr->setWhatsThis( i18n( "Add or change one or more personal expressions.<p>Personal expressions are a way to quickly insert commonly used phrases or text into your document." ) );
m_actionChangeCase=new TDEAction( i18n( "Change Case..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( changeCaseOfText() ),
+ this, TQT_SLOT( changeCaseOfText() ),
actionCollection(), "change_case" );
m_actionChangeCase->setToolTip( i18n( "Alter the capitalization of selected text." ) );
m_actionChangeCase->setWhatsThis( i18n( "Alter the capitalization of selected text to one of five pre-defined patterns.<p>You can also switch all letters from upper case to lower case and from lower case to upper case in one move." ) );
//------------------------ Settings menu
- m_actionConfigure = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()), actionCollection(), "configure" );
+ m_actionConfigure = KStdAction::preferences(this, TQT_SLOT(configure()), actionCollection(), "configure" );
//------------------------ Menu frameSet
TDEAction *actionChangePicture=new TDEAction( i18n( "Change Picture..." ),"frame_image",0,
- TQT_TQOBJECT(this), TQT_SLOT( changePicture() ),
+ this, TQT_SLOT( changePicture() ),
actionCollection(), "change_picture" );
actionChangePicture->setToolTip( i18n( "Change the picture in the currently selected frame." ) );
actionChangePicture->setWhatsThis( i18n( "You can specify a different picture in the current frame.<br><br>KWord automatically resizes the new picture to fit within the old frame." ) );
m_actionConfigureHeaderFooter=new TDEAction( i18n( "Configure Header/Footer..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( configureHeaderFooter() ),
+ this, TQT_SLOT( configureHeaderFooter() ),
actionCollection(), "configure_headerfooter" );
m_actionConfigureHeaderFooter->setToolTip( i18n( "Configure the currently selected header or footer." ) );
m_actionConfigureHeaderFooter->setWhatsThis( i18n( "Configure the currently selected header or footer." ) );
m_actionInlineFrame = new TDEToggleAction( i18n( "Inline Frame" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( inlineFrame() ),
+ this, TQT_SLOT( inlineFrame() ),
actionCollection(), "inline_frame" );
m_actionInlineFrame->setToolTip( i18n( "Convert current frame to an inline frame." ) );
m_actionInlineFrame->setWhatsThis( i18n( "Convert the current frame to an inline frame.<br><br>Place the inline frame within the text at the point nearest to the frames current position." ) );
m_actionOpenLink = new TDEAction( i18n( "Open Link" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( openLink() ),
+ this, TQT_SLOT( openLink() ),
actionCollection(), "open_link" );
m_actionOpenLink->setToolTip( i18n( "Open the link with the appropriate application." ) );
m_actionOpenLink->setWhatsThis( i18n( "Open the link with the appropriate application.<br><br>Web addresses are opened in a browser.<br>Email addresses begin a new message addressed to the link.<br>File links are opened by the appropriate viewer or editor." ) );
m_actionChangeLink=new TDEAction( i18n("Change Link..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT(changeLink()),
+ this, TQT_SLOT(changeLink()),
actionCollection(), "change_link");
m_actionChangeLink->setToolTip( i18n( "Change the content of the currently selected link." ) );
m_actionChangeLink->setWhatsThis( i18n( "Change the details of the currently selected link." ) );
m_actionCopyLink = new TDEAction( i18n( "Copy Link" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( copyLink() ),
+ this, TQT_SLOT( copyLink() ),
actionCollection(), "copy_link" );
m_actionAddLinkToBookmak = new TDEAction( i18n( "Add to Bookmark" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( addToBookmark() ),
+ this, TQT_SLOT( addToBookmark() ),
actionCollection(), "add_to_bookmark" );
m_actionRemoveLink = new TDEAction( i18n( "Remove Link" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( removeLink() ),
+ this, TQT_SLOT( removeLink() ),
actionCollection(), "remove_link" );
m_actionShowDocStruct = new TDEToggleAction( i18n( "Show Doc Structure" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( showDocStructure() ),
+ this, TQT_SLOT( showDocStructure() ),
actionCollection(), "show_docstruct" );
m_actionShowDocStruct->setCheckedState(i18n("Hide Doc Structure"));
m_actionShowDocStruct->setToolTip( i18n( "Open document structure sidebar." ) );
m_actionShowDocStruct->setWhatsThis( i18n( "Open document structure sidebar.<p>This sidebar helps you organize your document and quickly find pictures, tables etc." ) );
m_actionShowRuler = new TDEToggleAction( i18n( "Show Rulers" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( showRuler() ),
+ this, TQT_SLOT( showRuler() ),
actionCollection(), "show_ruler" );
m_actionShowRuler->setCheckedState(i18n("Hide Rulers"));
m_actionShowRuler->setToolTip( i18n( "Shows or hides rulers." ) );
@@ -1254,16 +1254,16 @@ void KWView::setupActions()
"the rulers from being displayed." ) );
m_actionViewShowGrid = new TDEToggleAction( i18n( "Show Grid" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( viewGrid() ),
+ this, TQT_SLOT( viewGrid() ),
actionCollection(), "view_grid" );
m_actionViewShowGrid->setCheckedState(i18n("Hide Grid"));
m_actionViewSnapToGrid= new TDEToggleAction( i18n( "Snap to Grid" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT(viewSnapToGrid() ),
+ this, TQT_SLOT(viewSnapToGrid() ),
actionCollection(), "view_snaptogrid" );
m_actionConfigureCompletion = new TDEAction( i18n( "Configure C&ompletion..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( configureCompletion() ),
+ this, TQT_SLOT( configureCompletion() ),
actionCollection(), "configure_completion" );
m_actionConfigureCompletion->setToolTip( i18n( "Change the words and options for autocompletion." ) );
m_actionConfigureCompletion->setWhatsThis( i18n( "Add words or change the options for autocompletion." ) );
@@ -1271,132 +1271,132 @@ void KWView::setupActions()
// ------------------- Actions with a key binding and no GUI item
new TDEAction( i18n( "Insert Non-Breaking Space" ), TQt::CTRL+TQt::Key_Space,
- TQT_TQOBJECT(this), TQT_SLOT( slotNonbreakingSpace() ), actionCollection(), "nonbreaking_space" );
+ this, TQT_SLOT( slotNonbreakingSpace() ), actionCollection(), "nonbreaking_space" );
new TDEAction( i18n( "Insert Non-Breaking Hyphen" ), TQt::CTRL+TQt::SHIFT+TQt::Key_Minus,
- TQT_TQOBJECT(this), TQT_SLOT( slotNonbreakingHyphen() ), actionCollection(), "nonbreaking_hyphen" );
+ this, TQT_SLOT( slotNonbreakingHyphen() ), actionCollection(), "nonbreaking_hyphen" );
new TDEAction( i18n( "Insert Soft Hyphen" ), TQt::CTRL+TQt::Key_Minus,
- TQT_TQOBJECT(this), TQT_SLOT( slotSoftHyphen() ), actionCollection(), "soft_hyphen" );
+ this, TQT_SLOT( slotSoftHyphen() ), actionCollection(), "soft_hyphen" );
new TDEAction( i18n( "Line Break" ), TQt::SHIFT+TQt::Key_Return,
- TQT_TQOBJECT(this), TQT_SLOT( slotLineBreak() ), actionCollection(), "line_break" );
+ this, TQT_SLOT( slotLineBreak() ), actionCollection(), "line_break" );
- new TDEAction( i18n( "Completion" ), TDEStdAccel::shortcut(TDEStdAccel::TextCompletion), TQT_TQOBJECT(this), TQT_SLOT( slotCompletion() ), actionCollection(), "completion" );
+ new TDEAction( i18n( "Completion" ), TDEStdAccel::shortcut(TDEStdAccel::TextCompletion), this, TQT_SLOT( slotCompletion() ), actionCollection(), "completion" );
new TDEAction( i18n( "Increase Numbering Level" ), TQt::ALT+TQt::Key_Right,
- TQT_TQOBJECT(this), TQT_SLOT( slotIncreaseNumberingLevel() ), actionCollection(), "increase_numbering_level" );
+ this, TQT_SLOT( slotIncreaseNumberingLevel() ), actionCollection(), "increase_numbering_level" );
new TDEAction( i18n( "Decrease Numbering Level" ), TQt::ALT+TQt::Key_Left,
- TQT_TQOBJECT(this), TQT_SLOT( slotDecreaseNumberingLevel() ), actionCollection(), "decrease_numbering_level" );
+ this, TQT_SLOT( slotDecreaseNumberingLevel() ), actionCollection(), "decrease_numbering_level" );
// --------
m_actionEditCustomVars = new TDEAction( i18n( "Edit Variable..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( editCustomVariable() ),
+ this, TQT_SLOT( editCustomVariable() ),
actionCollection(), "edit_customvars" );
m_actionApplyAutoFormat= new TDEAction( i18n( "Apply Autocorrection" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( applyAutoFormat() ),
+ this, TQT_SLOT( applyAutoFormat() ),
actionCollection(), "apply_autoformat" );
m_actionApplyAutoFormat->setToolTip( i18n( "Manually force KWord to scan the entire document and apply autocorrection." ) );
m_actionApplyAutoFormat->setWhatsThis( i18n( "Manually force KWord to scan the entire document and apply autocorrection." ) );
m_actionCreateStyleFromSelection = new TDEAction( i18n( "Create Style From Selection..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( createStyleFromSelection()),
+ this, TQT_SLOT( createStyleFromSelection()),
actionCollection(), "create_style" );
m_actionCreateStyleFromSelection->setToolTip( i18n( "Create a new style based on the currently selected text." ) );
m_actionCreateStyleFromSelection->setWhatsThis( i18n( "Create a new style based on the currently selected text." ) ); // ## "on the current paragraph, taking the formatting from where the cursor is. Selecting text isn't even needed."
m_actionConfigureFootEndNote = new TDEAction( i18n( "&Footnote..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( configureFootEndNote()),
+ this, TQT_SLOT( configureFootEndNote()),
actionCollection(), "format_footendnote" );
m_actionConfigureFootEndNote->setToolTip( i18n( "Change the look of footnotes." ) );
m_actionConfigureFootEndNote->setWhatsThis( i18n( "Change the look of footnotes." ) );
m_actionEditFootEndNote= new TDEAction( i18n("Edit Footnote"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( editFootEndNote()),
+ this, TQT_SLOT( editFootEndNote()),
actionCollection(), "edit_footendnote" );
m_actionEditFootEndNote->setToolTip( i18n( "Change the content of the currently selected footnote." ) );
m_actionEditFootEndNote->setWhatsThis( i18n( "Change the content of the currently selected footnote." ) );
m_actionChangeFootNoteType = new TDEAction( i18n("Change Footnote/Endnote Parameter"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( changeFootNoteType() ),
+ this, TQT_SLOT( changeFootNoteType() ),
actionCollection(), "change_footendtype");
m_actionSavePicture= new TDEAction( i18n("Save Picture As..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT( savePicture() ),
+ this, TQT_SLOT( savePicture() ),
actionCollection(), "save_picture");
m_actionSavePicture->setToolTip( i18n( "Save the picture in a separate file." ) );
m_actionSavePicture->setWhatsThis( i18n( "Save the picture in the currently selected frame in a separate file, outside the KWord document." ) );
m_actionAllowBgSpellCheck = new TDEToggleAction( i18n( "Autospellcheck" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( autoSpellCheck() ),
+ this, TQT_SLOT( autoSpellCheck() ),
actionCollection(), "tool_auto_spellcheck" );
m_actionGoToFootEndNote = new TDEAction( TQString() /*set dynamically*/, 0,
- TQT_TQOBJECT(this), TQT_SLOT( goToFootEndNote() ),
+ this, TQT_SLOT( goToFootEndNote() ),
actionCollection(), "goto_footendnote" );
// Document Structure Area popup menu.
m_actionDocStructEdit = new TDEAction( i18n( "Edit Text" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( docStructEdit() ),
+ this, TQT_SLOT( docStructEdit() ),
actionCollection(), "docstruct_edit" );
m_actionDocStructSpeak = new TDEAction( i18n("Speak Text" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( docStructSpeak() ),
+ this, TQT_SLOT( docStructSpeak() ),
actionCollection(), "docstruct_speak" );
m_actionDocStructSelect = new TDEAction( i18n( "Show" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( docStructSelect() ),
+ this, TQT_SLOT( docStructSelect() ),
actionCollection(), "docstruct_select" );
m_actionDocStructDelete = new TDEAction( i18n( "Delete Frame" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( docStructDelete() ),
+ this, TQT_SLOT( docStructDelete() ),
actionCollection(), "docstruct_delete" );
m_actionDocStructProperties = new TDEAction( i18n( "Properties" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( docStructProperties() ),
+ this, TQT_SLOT( docStructProperties() ),
actionCollection(), "docstruct_properties" );
m_actionAddBookmark= new TDEAction( i18n( "&Bookmark..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( addBookmark() ),
+ this, TQT_SLOT( addBookmark() ),
actionCollection(), "add_bookmark" );
m_actionSelectBookmark= new TDEAction( i18n( "Select &Bookmark..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( selectBookmark() ),
+ this, TQT_SLOT( selectBookmark() ),
actionCollection(), "select_bookmark" );
m_actionImportStyle= new TDEAction( i18n( "Import Styles..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( importStyle() ),
+ this, TQT_SLOT( importStyle() ),
actionCollection(), "import_style" );
m_actionCreateFrameStyle = new TDEAction( i18n( "&Create Framestyle From Frame..." ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( createFrameStyle()),
+ this, TQT_SLOT( createFrameStyle()),
actionCollection(), "create_framestyle" );
m_actionCreateFrameStyle->setToolTip( i18n( "Create a new style based on the currently selected frame." ) );
m_actionCreateFrameStyle->setWhatsThis( i18n( "Create a new framestyle based on the currently selected frame." ) );
#if 0 // re-enable after fixing
m_actionInsertDirectCursor = new TDEToggleAction( i18n( "Type Anywhere Cursor" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( insertDirectCursor() ),
+ this, TQT_SLOT( insertDirectCursor() ),
actionCollection(), "direct_cursor" );
#endif
m_actionConvertToTextBox = new TDEAction( i18n( "Convert to Text Box" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( convertToTextBox() ),
+ this, TQT_SLOT( convertToTextBox() ),
actionCollection(), "convert_to_text_box" );
m_actionSpellIgnoreAll = new TDEAction( i18n( "Ignore All" ), 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAddIgnoreAllWord() ),
+ this, TQT_SLOT( slotAddIgnoreAllWord() ),
actionCollection(), "ignore_all" );
m_actionAddWordToPersonalDictionary=new TDEAction( i18n( "Add Word to Dictionary" ),0,
- TQT_TQOBJECT(this), TQT_SLOT( addWordToDictionary() ),
+ this, TQT_SLOT( addWordToDictionary() ),
actionCollection(), "add_word_to_dictionary" );
m_actionEmbeddedStoreInternal=new TDEToggleAction( i18n( "Store Document Internally" ),0,
- TQT_TQOBJECT(this), TQT_SLOT( embeddedStoreInternal() ),
+ this, TQT_SLOT( embeddedStoreInternal() ),
actionCollection(), "embedded_store_internal" );
m_actionGoToDocumentStructure=new TDEAction( i18n( "Go to Document Structure" ), TDEShortcut("Alt+1"),
- TQT_TQOBJECT(this), TQT_SLOT( goToDocumentStructure() ),
+ this, TQT_SLOT( goToDocumentStructure() ),
actionCollection(), "goto_document_structure" );
m_actionGoToDocument=new TDEAction( i18n( "Go to Document" ), TDEShortcut("Alt+2"),
- TQT_TQOBJECT(this), TQT_SLOT( goToDocument() ),
+ this, TQT_SLOT( goToDocument() ),
actionCollection(), "goto_document" );
// For RMB inside a cell, see KWFrameView::showPopup
@@ -1489,7 +1489,7 @@ void KWView::createExpressionActions( TDEActionMenu * parentMenu,const TQString&
if ( e2.tagName() == "Expression" )
{
TQString text = i18n( e2.namedItem( "Text" ).toElement().text().utf8() );
- TDEAction * act = new TDEAction( text, 0, TQT_TQOBJECT(this), TQT_SLOT( insertExpression() ),
+ TDEAction * act = new TDEAction( text, 0, this, TQT_SLOT( insertExpression() ),
actionCollection(),
TQString("expression-action_%1").arg(i).latin1() );
if ( personalShortCut.contains(text) )
@@ -1539,7 +1539,7 @@ void KWView::addVariableActions( int type, const TQStringList & texts,
v.subtype = i;
TQCString actionName;
actionName.sprintf( "var-action-%d-%d", type, i );
- TDEAction * act = new TDEAction( (*it), 0, TQT_TQOBJECT(this), TQT_SLOT( insertVariable() ),
+ TDEAction * act = new TDEAction( (*it), 0, this, TQT_SLOT( insertVariable() ),
actionCollection(), actionName );
// Mainly for KEditToolbar
act->setToolTip( i18n( "Insert variable \"%1\" into the text" ).arg( *it ) );
@@ -1584,7 +1584,7 @@ void KWView::refreshCustomMenu()
{
lst.append( varName );
TQCString name = TQString("custom-action_%1").arg(i).latin1();
- act = new TDEAction( varName, shortCuts[varName], TQT_TQOBJECT(this), TQT_SLOT( insertCustomVariable() ),actionCollection(), name );
+ act = new TDEAction( varName, shortCuts[varName], this, TQT_SLOT( insertCustomVariable() ),actionCollection(), name );
act->setGroup( "custom-variable-action" );
m_actionInsertCustom->insert( act );
i++;
@@ -1595,7 +1595,7 @@ void KWView::refreshCustomMenu()
if(state)
m_actionInsertCustom->popupMenu()->insertSeparator();
- act = new TDEAction( i18n("New..."), 0, TQT_TQOBJECT(this), TQT_SLOT( insertNewCustomVariable() ), actionCollection(),TQString("custom-action_%1").arg(i).latin1());
+ act = new TDEAction( i18n("New..."), 0, this, TQT_SLOT( insertNewCustomVariable() ), actionCollection(),TQString("custom-action_%1").arg(i).latin1());
act->setGroup( "custom-variable-action" );
@@ -2228,7 +2228,7 @@ void KWView::updateStyleList()
{
TQString name = PARAGSTYLE_ACTION_PREFIX + style->name();
TDEToggleAction* act = new TDEToggleAction( (*it),
- shortCuts[name], TQT_TQOBJECT(this), TQT_SLOT( slotStyleSelected() ),
+ shortCuts[name], this, TQT_SLOT( slotStyleSelected() ),
actionCollection(), name.utf8() );
act->setGroup( "styleList" );
act->setExclusiveGroup( "styleListAction" );
@@ -2294,7 +2294,7 @@ void KWView::updateFrameStyleList()
TQString name = FRAMESTYLE_ACTION_PREFIX + style->name();
TDEToggleAction* act = new TDEToggleAction( (*it),
shortCuts[name], // KDE4: use value()
- TQT_TQOBJECT(this), TQT_SLOT( slotFrameStyleSelected() ),
+ this, TQT_SLOT( slotFrameStyleSelected() ),
actionCollection(), name.utf8() /*KDE4: remove conversion*/ );
act->setGroup( "frameStyleList" );
act->setExclusiveGroup( "frameStyleList" );
@@ -2344,7 +2344,7 @@ void KWView::updateTableStyleList()
{
TQString name = TABLESTYLE_ACTION_PREFIX + style->name();
TDEToggleAction* act = new TDEToggleAction( (*it),
- shortCuts[name], TQT_TQOBJECT(this), TQT_SLOT( slotTableStyleSelected() ),
+ shortCuts[name], this, TQT_SLOT( slotTableStyleSelected() ),
actionCollection(), name.utf8() );
act->setExclusiveGroup( "tableStyleList" );
act->setGroup( "tableStyleList" );
@@ -2941,7 +2941,7 @@ void KWView::viewTextMode()
{
case KoZoomMode::ZOOM_WIDTH:
m_doc->setZoomMode(KoZoomMode::ZOOM_WIDTH);
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
break;
case KoZoomMode::ZOOM_PAGE: // no break
m_zoomViewModeNormal.m_zoomMode = KoZoomMode::ZOOM_CONSTANT;
@@ -2977,11 +2977,11 @@ void KWView::viewPageMode()
{
case KoZoomMode::ZOOM_WIDTH:
m_doc->setZoomMode(KoZoomMode::ZOOM_WIDTH);
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
break;
case KoZoomMode::ZOOM_PAGE:
m_doc->setZoomMode(KoZoomMode::ZOOM_PAGE);
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
break;
case KoZoomMode::ZOOM_CONSTANT:
m_doc->setZoomMode(KoZoomMode::ZOOM_CONSTANT);
@@ -3005,11 +3005,11 @@ void KWView::viewPreviewMode()
{
case KoZoomMode::ZOOM_WIDTH:
m_doc->setZoomMode(KoZoomMode::ZOOM_WIDTH);
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
break;
case KoZoomMode::ZOOM_PAGE:
m_doc->setZoomMode(KoZoomMode::ZOOM_PAGE);
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
break;
case KoZoomMode::ZOOM_CONSTANT:
m_doc->setZoomMode(KoZoomMode::ZOOM_CONSTANT);
@@ -3230,7 +3230,7 @@ void KWView::viewZoom( const TQString &s )
if(zoom != m_doc->zoom() && !canvas->verticalScrollBar() ||
!canvas->verticalScrollBar()->isVisible()) { // has no vertical scrollbar
// we have to do this twice to take into account a possibly appearing vertical scrollbar
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
}
ok = true;
}
@@ -3451,9 +3451,9 @@ void KWView::insertSpecialChar()
{
m_specialCharDlg = new KoCharSelectDia( this, "insert special char", f, c, false );
connect( m_specialCharDlg, TQT_SIGNAL(insertChar(TQChar,const TQString &)),
- TQT_TQOBJECT(this), TQT_SLOT(slotSpecialChar(TQChar,const TQString &)));
+ this, TQT_SLOT(slotSpecialChar(TQChar,const TQString &)));
connect( m_specialCharDlg, TQT_SIGNAL( finished() ),
- TQT_TQOBJECT(this), TQT_SLOT( slotSpecialCharDlgClosed() ) );
+ this, TQT_SLOT( slotSpecialCharDlgClosed() ) );
}
m_specialCharDlg->show();
}
@@ -3463,9 +3463,9 @@ void KWView::slotSpecialCharDlgClosed()
if ( m_specialCharDlg )
{
disconnect( m_specialCharDlg, TQT_SIGNAL(insertChar(TQChar,const TQString &)),
- TQT_TQOBJECT(this), TQT_SLOT(slotSpecialChar(TQChar,const TQString &)));
+ this, TQT_SLOT(slotSpecialChar(TQChar,const TQString &)));
disconnect( m_specialCharDlg, TQT_SIGNAL( finished() ),
- TQT_TQOBJECT(this), TQT_SLOT( slotSpecialCharDlgClosed() ) );
+ this, TQT_SLOT( slotSpecialCharDlgClosed() ) );
m_specialCharDlg->deleteLater();
m_specialCharDlg = 0L;
}
@@ -3650,7 +3650,7 @@ void KWView::formatFont()
, this, "" );
connect( m_fontDlg, TQT_SIGNAL( applyFont() ),
- TQT_TQOBJECT(this), TQT_SLOT( slotApplyFont() ) );
+ this, TQT_SLOT( slotApplyFont() ) );
m_fontDlg->exec();
delete m_fontDlg;
@@ -3713,7 +3713,7 @@ void KWView::showParagraphDialog( int initialPage, double initialTabPos )
if ( initialPage == KoParagDia::PD_TABS )
m_paragDlg->tabulatorsWidget()->setCurrentTab( initialTabPos );
}
- connect( m_paragDlg, TQT_SIGNAL( applyParagStyle() ), TQT_TQOBJECT(this), TQT_SLOT( slotApplyParag()));
+ connect( m_paragDlg, TQT_SIGNAL( applyParagStyle() ), this, TQT_SLOT( slotApplyParag()));
m_paragDlg->exec();
delete m_paragDlg;
@@ -5558,7 +5558,7 @@ TQPopupMenu * KWView::popupMenu( const TQString& name )
void KWView::startKSpell()
{
if ( !m_spell.kospell )
- m_spell.kospell = new KoSpell( m_broker, TQT_TQOBJECT(this) );
+ m_spell.kospell = new KoSpell( m_broker, this );
// Spell-check the next paragraph
Q_ASSERT( m_spell.textIterator );
@@ -5569,15 +5569,15 @@ void KWView::startKSpell()
m_spell.dlg->activeAutoCorrect( true );
TQObject::connect( m_spell.dlg, TQT_SIGNAL(misspelling(const TQString&, int)),
- TQT_TQOBJECT(this), TQT_SLOT(spellCheckerMisspelling(const TQString&, int)) );
+ this, TQT_SLOT(spellCheckerMisspelling(const TQString&, int)) );
TQObject::connect( m_spell.dlg, TQT_SIGNAL(replace(const TQString&, int, const TQString&)),
- TQT_TQOBJECT(this), TQT_SLOT(spellCheckerCorrected(const TQString&, int, const TQString&)) );
+ this, TQT_SLOT(spellCheckerCorrected(const TQString&, int, const TQString&)) );
TQObject::connect( m_spell.dlg, TQT_SIGNAL(done(const TQString&) ),
- TQT_TQOBJECT(this), TQT_SLOT(spellCheckerDone(const TQString&)) );
+ this, TQT_SLOT(spellCheckerDone(const TQString&)) );
TQObject::connect( m_spell.dlg, TQT_SIGNAL(cancel() ),
- TQT_TQOBJECT(this), TQT_SLOT( spellCheckerCancel() ) );
+ this, TQT_SLOT( spellCheckerCancel() ) );
TQObject::connect( m_spell.dlg, TQT_SIGNAL(autoCorrect(const TQString &, const TQString & ) ),
- TQT_TQOBJECT(this), TQT_SLOT( spellAddAutoCorrect (const TQString &, const TQString &) ) );
+ this, TQT_SLOT( spellAddAutoCorrect (const TQString &, const TQString &) ) );
m_spell.dlg->show();
//clearSpellChecker();
@@ -6298,14 +6298,14 @@ void KWView::showDocStructure()
{
m_doc->setShowDocStruct(m_actionShowDocStruct->isChecked());
m_doc->reorganizeGUI();
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
}
void KWView::showRuler()
{
m_doc->setShowRuler( m_actionShowRuler->isChecked());
m_doc->reorganizeGUI();
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateZoom() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) );
}
void KWView::viewGrid()
@@ -7448,7 +7448,7 @@ TQPtrList<TDEAction> KWView::listOfResultOfCheckWord( const TQString &word )
if ( !(*it).isEmpty() ) // in case of removed subtypes or placeholders
{
TDEAction * act = new TDEAction( *it );
- connect( act, TQT_SIGNAL(activated()), TQT_TQOBJECT(this), TQT_SLOT(slotCorrectWord()) );
+ connect( act, TQT_SIGNAL(activated()), this, TQT_SLOT(slotCorrectWord()) );
listAction.append( act );
}
}
@@ -7645,10 +7645,10 @@ KWGUI::KWGUI( const TQString& viewMode, TQWidget *parent, KWView *daView )
connect( m_horRuler, TQT_SIGNAL( doubleClicked() ), m_view, TQT_SLOT( slotHRulerDoubleClicked() ) );
connect( m_horRuler, TQT_SIGNAL( doubleClicked(double) ), m_view, TQT_SLOT( slotHRulerDoubleClicked(double) ) );
- connect( m_horRuler, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), TQT_TQOBJECT(this), TQT_SLOT( unitChanged( KoUnit::Unit ) ) );
+ connect( m_horRuler, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), this, TQT_SLOT( unitChanged( KoUnit::Unit ) ) );
connect( m_vertRuler, TQT_SIGNAL( newPageLayout( const KoPageLayout & ) ), m_view, TQT_SLOT( newPageLayout( const KoPageLayout & ) ) );
connect( m_vertRuler, TQT_SIGNAL( doubleClicked() ), m_view, TQT_SLOT( formatPage() ) );
- connect( m_vertRuler, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), TQT_TQOBJECT(this), TQT_SLOT( unitChanged( KoUnit::Unit ) ) );
+ connect( m_vertRuler, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), this, TQT_SLOT( unitChanged( KoUnit::Unit ) ) );
m_horRuler->hide();
m_vertRuler->hide();