From e1b37ac1936f81994a2c1aa2778298fbc757531f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 4 Jan 2024 10:30:32 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit c0332621bc998c9786f4841e86a62b7711fe4abf) --- kword/KWView.cpp | 520 +++++++++++++++++++++++++++---------------------------- 1 file changed, 260 insertions(+), 260 deletions(-) (limited to 'kword/KWView.cpp') diff --git a/kword/KWView.cpp b/kword/KWView.cpp index fdf776dc2..278ea451b 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( this, TQT_SIGNAL( embeddImage( const TQString & ) ), - this, TQT_SLOT( slotEmbedImage( const TQString & ) ) ); + TQObject::connect( this, TQ_SIGNAL( embeddImage( const TQString & ) ), + this, TQ_SLOT( slotEmbedImage( const TQString & ) ) ); setKeyCompression( TRUE ); setAcceptDrops( TRUE ); @@ -312,52 +312,52 @@ KWView::KWView( const TQString& viewMode, TQWidget *parent, const char *name, KW addStatusBarItem( m_sbUnitLabel, 0 ); } - connect( m_doc, TQT_SIGNAL( modified( bool ) ), - this, TQT_SLOT( documentModified( bool )) ); + connect( m_doc, TQ_SIGNAL( modified( bool ) ), + this, TQ_SLOT( documentModified( bool )) ); - connect( m_doc, TQT_SIGNAL( numPagesChanged() ), - this, TQT_SLOT( numPagesChanged()) ); + connect( m_doc, TQ_SIGNAL( numPagesChanged() ), + this, TQ_SLOT( numPagesChanged()) ); - connect( m_doc, TQT_SIGNAL( pageLayoutChanged( const KoPageLayout& ) ), - this, TQT_SLOT( slotPageLayoutChanged( const KoPageLayout& )) ); + connect( m_doc, TQ_SIGNAL( pageLayoutChanged( const KoPageLayout& ) ), + this, TQ_SLOT( slotPageLayoutChanged( const KoPageLayout& )) ); - connect( m_doc, TQT_SIGNAL( docStructureChanged(int) ), - this, TQT_SLOT( docStructChanged(int)) ); + connect( m_doc, TQ_SIGNAL( docStructureChanged(int) ), + this, TQ_SLOT( docStructChanged(int)) ); - connect( m_doc, TQT_SIGNAL( unitChanged(KoUnit::Unit) ), - this, TQT_SLOT( slotUnitChanged(KoUnit::Unit) ) ); + connect( m_doc, TQ_SIGNAL( unitChanged(KoUnit::Unit) ), + this, TQ_SLOT( slotUnitChanged(KoUnit::Unit) ) ); - connect( m_doc, TQT_SIGNAL( sig_refreshMenuCustomVariable()), - this, TQT_SLOT( refreshCustomMenu())); + connect( m_doc, TQ_SIGNAL( sig_refreshMenuCustomVariable()), + this, TQ_SLOT( refreshCustomMenu())); - connect( m_doc, TQT_SIGNAL( completed() ), - this, TQT_SLOT( slotDocumentLoadingCompleted() ) ); + connect( m_doc, TQ_SIGNAL( completed() ), + this, TQ_SLOT( slotDocumentLoadingCompleted() ) ); - connect( frameViewManager(), TQT_SIGNAL(sigFrameSelectionChanged()), - this, TQT_SLOT( frameSelectedChanged())); + connect( frameViewManager(), TQ_SIGNAL(sigFrameSelectionChanged()), + this, TQ_SLOT( frameSelectedChanged())); - connect( frameViewManager(), TQT_SIGNAL(sigFrameSetRenamed()), - this, TQT_SLOT( updateFrameStatusBarItem())); + connect( frameViewManager(), TQ_SIGNAL(sigFrameSetRenamed()), + this, TQ_SLOT( updateFrameStatusBarItem())); - connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ), - this, TQT_SLOT( clipboardDataChanged() ) ); + connect( TQApplication::clipboard(), TQ_SIGNAL( dataChanged() ), + this, TQ_SLOT( clipboardDataChanged() ) ); - connect( m_gui->canvasWidget(), TQT_SIGNAL(currentFrameSetEditChanged()), - this, TQT_SLOT(slotFrameSetEditChanged()) ); + connect( m_gui->canvasWidget(), TQ_SIGNAL(currentFrameSetEditChanged()), + this, TQ_SLOT(slotFrameSetEditChanged()) ); - connect( m_gui->canvasWidget(), TQT_SIGNAL( currentMouseModeChanged(int) ), - this, TQT_SLOT( showMouseMode(int) ) ); + connect( m_gui->canvasWidget(), TQ_SIGNAL( currentMouseModeChanged(int) ), + this, TQ_SLOT( showMouseMode(int) ) ); - connect( m_gui->canvasWidget(), TQT_SIGNAL( overwriteModeChanged( bool ) ), - this, TQT_SLOT( changeOverwriteMode( bool ) ) ); + connect( m_gui->canvasWidget(), TQ_SIGNAL( overwriteModeChanged( bool ) ), + this, TQ_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)), - this, TQT_SLOT(slotChangeCutState(bool )) ); - connect (m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)), - this, TQT_SLOT(slotChangeCaseState(bool ))); + connect( m_gui->canvasWidget(), TQ_SIGNAL(selectionChanged(bool)), + this, TQ_SLOT(slotChangeCutState(bool )) ); + connect (m_gui->canvasWidget(), TQ_SIGNAL(selectionChanged(bool)), + this, TQ_SLOT(slotChangeCaseState(bool ))); } else { @@ -365,28 +365,28 @@ KWView::KWView( const TQString& viewMode, TQWidget *parent, const char *name, KW m_actionChangeCase->setEnabled( false ); } - connect( m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)), - m_actionEditCopy, TQT_SLOT(setEnabled(bool)) ); + connect( m_gui->canvasWidget(), TQ_SIGNAL(selectionChanged(bool)), + m_actionEditCopy, TQ_SLOT(setEnabled(bool)) ); - //connect (m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)), - // m_actionCreateStyleFromSelection, TQT_SLOT(setEnabled(bool))); + //connect (m_gui->canvasWidget(), TQ_SIGNAL(selectionChanged(bool)), + // m_actionCreateStyleFromSelection, TQ_SLOT(setEnabled(bool))); - connect (m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)), - m_actionConvertToTextBox, TQT_SLOT(setEnabled(bool))); - connect (m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)), - m_actionAddPersonalExpression, TQT_SLOT(setEnabled(bool ))); - connect (m_gui->canvasWidget(), TQT_SIGNAL(selectionChanged(bool)), - m_actionSortText, TQT_SLOT(setEnabled(bool ))); + connect (m_gui->canvasWidget(), TQ_SIGNAL(selectionChanged(bool)), + m_actionConvertToTextBox, TQ_SLOT(setEnabled(bool))); + connect (m_gui->canvasWidget(), TQ_SIGNAL(selectionChanged(bool)), + m_actionAddPersonalExpression, TQ_SLOT(setEnabled(bool ))); + connect (m_gui->canvasWidget(), TQ_SIGNAL(selectionChanged(bool)), + m_actionSortText, TQ_SLOT(setEnabled(bool ))); - connect( m_gui->canvasWidget(), TQT_SIGNAL(docStructChanged(int)), - this, TQT_SLOT(docStructChanged(int))); + connect( m_gui->canvasWidget(), TQ_SIGNAL(docStructChanged(int)), + this, TQ_SLOT(docStructChanged(int))); - connect( m_gui->canvasWidget(), TQT_SIGNAL(updateRuler()), - this, TQT_SLOT(slotUpdateRuler())); + connect( m_gui->canvasWidget(), TQ_SIGNAL(updateRuler()), + this, TQ_SLOT(slotUpdateRuler())); if ( shell() ) { - connect( shell(), TQT_SIGNAL( documentSaved()), m_doc,TQT_SLOT(slotDocumentInfoModifed() ) ); + connect( shell(), TQ_SIGNAL( documentSaved()), m_doc,TQ_SLOT(slotDocumentInfoModifed() ) ); changeNbOfRecentFiles( m_doc->maxRecentFiles() ); } @@ -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, this, TQT_SLOT( slotSetInitialPosition() ) ); - TQTimer::singleShot( 0, this, TQT_SLOT( updateZoom() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( slotSetInitialPosition() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( updateZoom() ) ); } KWView::~KWView() @@ -563,72 +563,72 @@ void KWView::setupActions() // -------------- File menu m_actionExtraCreateTemplate = new TDEAction( i18n( "&Create Template From Document..." ), 0, - this, TQT_SLOT( extraCreateTemplate() ), + this, TQ_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.

You can use this new template as a starting point for another document." ) ); - m_actionFileStatistics = new TDEAction( i18n( "Statistics" ), 0, this, TQT_SLOT( fileStatistics() ), actionCollection(), "file_statistics" ); + m_actionFileStatistics = new TDEAction( i18n( "Statistics" ), 0, this, TQ_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.

Evaluates readability using the Flesch reading score." ) ); // -------------- Edit actions - 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_actionEditCut = KStdAction::cut( this, TQ_SLOT( editCut() ), actionCollection(), "edit_cut" ); + m_actionEditCopy = KStdAction::copy( this, TQ_SLOT( editCopy() ), actionCollection(), "edit_copy" ); + m_actionEditPaste = KStdAction::paste( this, TQ_SLOT( editPaste() ), actionCollection(), "edit_paste" ); + m_actionEditFind = KStdAction::find( this, TQ_SLOT( editFind() ), actionCollection(), "edit_find" ); + m_actionEditFindNext = KStdAction::findNext( this, TQ_SLOT( editFindNext() ), actionCollection(), "edit_findnext" ); + m_actionEditFindPrevious = KStdAction::findPrev( this, TQ_SLOT( editFindPrevious() ), actionCollection(), "edit_findprevious" ); + m_actionEditReplace = KStdAction::replace( this, TQ_SLOT( editReplace() ), actionCollection(), "edit_replace" ); + m_actionEditSelectAll = KStdAction::selectAll( this, TQ_SLOT( editSelectAll() ), actionCollection(), "edit_selectall" ); + new TDEAction( i18n( "Select All Frames" ), 0, this, TQ_SLOT( editSelectAllFrames() ), actionCollection(), "edit_selectallframes" ); m_actionEditSelectCurrentFrame = new TDEAction( i18n( "Select Frame" ), 0, - 0, this, TQT_SLOT( editSelectCurrentFrame() ), + 0, this, TQ_SLOT( editSelectCurrentFrame() ), actionCollection(), "edit_selectcurrentframe" ); - m_actionSpellCheck = KStdAction::spelling( this, TQT_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" ); + m_actionSpellCheck = KStdAction::spelling( this, TQ_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" ); m_actionDeletePage = new TDEAction( i18n( "Delete Page" ), "delslide", 0, - this, TQT_SLOT( deletePage() ), + this, TQ_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, - this, TQT_SLOT( editMailMergeDataBase() ), + this, TQ_SLOT( editMailMergeDataBase() ), actionCollection(), "edit_sldatabase" ); (void) new KWMailMergeLabelAction( i18n("Drag Mail Merge Variable"), 0, - this, TQT_SLOT(editMailMergeDataBase()), actionCollection(), "mailmerge_draglabel" ); + this, TQ_SLOT(editMailMergeDataBase()), actionCollection(), "mailmerge_draglabel" ); -// (void) new KWMailMergeComboAction::KWMailMergeComboAction(i18n("Insert Mailmerge Var"),0,this, TQT_SLOT(JWJWJW()),actionCollection(),"mailmerge_varchooser"); +// (void) new KWMailMergeComboAction::KWMailMergeComboAction(i18n("Insert Mailmerge Var"),0,this, TQ_SLOT(JWJWJW()),actionCollection(),"mailmerge_varchooser"); // -------------- Frame menu m_actionEditDelFrame = new TDEAction( i18n( "&Delete Frame" ), 0, - this, TQT_SLOT( editDeleteFrame() ), + this, TQ_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, this, TQT_SLOT( createLinkedFrame() ), actionCollection(), "create_linked_frame" ); + m_actionCreateLinkedFrame = new TDEAction( i18n( "Create Linked Copy" ), 0, this, TQ_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, this, TQT_SLOT( raiseFrame() ), + TQt::CTRL +TQt::SHIFT+ TQt::Key_R, this, TQ_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, this, TQT_SLOT( lowerFrame() ), + TQt::CTRL +TQt::SHIFT+ TQt::Key_L, this, TQ_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, this, TQT_SLOT( bringToFront() ), + 0, this, TQ_SLOT( bringToFront() ), actionCollection(), "bring_tofront_frame" ); m_actionSendBackward= new TDEAction( i18n( "Send to Back" ), "send_backward", - 0, this, TQT_SLOT( sendToBack() ), + 0, this, TQ_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, - this, TQT_SLOT( viewTextMode() ), + this, TQ_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, - this, TQT_SLOT( viewPageMode() ), + this, TQ_SLOT( viewPageMode() ), actionCollection(), "view_pagemode" ); m_actionViewPageMode->setWhatsThis( i18n( "Switch to page mode.

Page mode is designed to make editing your text easy.

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, - this, TQT_SLOT( viewPreviewMode() ), + this, TQ_SLOT( viewPreviewMode() ), actionCollection(), "view_previewmode" ); m_actionViewPreviewMode->setWhatsThis( i18n( "Zoom out from your document to get a look at several pages of your document.

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, - this, TQT_SLOT( slotViewFormattingChars() ), + this, TQ_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.

When this is enabled, KWord shows you tabs, spaces, carriage returns and other non-printing characters." ) ); m_actionViewFrameBorders = new TDEToggleAction( i18n( "Frame &Borders" ), 0, - this, TQT_SLOT( slotViewFrameBorders() ), + this, TQ_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.

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, - this, TQT_SLOT( viewHeader() ), + this, TQ_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.

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, - this, TQT_SLOT( viewFooter() ), + this, TQ_SLOT( viewFooter() ), actionCollection(), "format_footer" ); m_actionViewFooter->setCheckedState(i18n("Disable Document Foo&ters")); m_actionViewFooter->setToolTip( i18n( "Shows and hides footer display." ) ); @@ -695,21 +695,21 @@ void KWView::setupActions() m_actionViewZoom = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0, actionCollection(), "view_zoom" ); - connect( m_actionViewZoom, TQT_SIGNAL( activated( const TQString & ) ), - this, TQT_SLOT( viewZoom( const TQString & ) ) ); + connect( m_actionViewZoom, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_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, - this, TQT_SLOT( insertSpecialChar() ), + this, TQ_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, - this, TQT_SLOT( insertFrameBreak() ), + this, TQ_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, - this, TQT_SLOT( insertPage() ), + this, TQ_SLOT( insertPage() ), actionCollection(), "insert_page" ); m_actionInsertLink = new TDEAction( i18n( "Link..." ), 0, - this, TQT_SLOT( insertLink() ), + this, TQ_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, - this, TQT_SLOT( insertComment() ), + this, TQ_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, - this, TQT_SLOT(editComment()), + this, TQ_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, - this, TQT_SLOT(removeComment()), + this, TQ_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, - this, TQT_SLOT(copyTextOfComment()), + this, TQ_SLOT(copyTextOfComment()), actionCollection(), "copy_text_comment"); m_actionInsertFootEndNote = new TDEAction( i18n( "&Footnote/Endnote..." ), 0, - this, TQT_SLOT( insertFootNote() ), + this, TQ_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, - this, TQT_SLOT( insertContents() ), + this, TQ_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, - this, TQT_SLOT( refreshAllVariable() ), + this, TQ_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.

This will update page numbers, dates or any other variables that need updating." ) ); @@ -798,90 +798,90 @@ void KWView::setupActions() loadexpressionActions( m_actionInsertExpression); m_actionToolsCreateText = new TDEToggleAction( i18n( "Te&xt Frame" ), "frame_text", TQt::Key_F10 /*same as kpr*/, - this, TQT_SLOT( toolsCreateText() ), + this, TQ_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, - this, TQT_SLOT( insertFormula() ), + this, TQ_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, - this, TQT_SLOT( insertTable() ), + this, TQ_SLOT( insertTable() ), actionCollection(), "insert_table" ); m_actionInsertTable->setToolTip( i18n( "Create a table." ) ); m_actionInsertTable->setWhatsThis( i18n( "Create a table.

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*/, - this, TQT_SLOT( insertPicture() ), + this, TQ_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", - this, TQT_SLOT( toolsPart() ), + this, TQ_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, - this, TQT_SLOT( insertFile() ), + this, TQ_SLOT( insertFile() ), actionCollection(), "insert_file" ); // ------------------------- Format menu m_actionFormatFont = new TDEAction( i18n( "&Font..." ), TQt::ALT + TQt::CTRL + TQt::Key_F, - this, TQT_SLOT( formatFont() ), + this, TQ_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, - this, TQT_SLOT( formatParagraph() ), + this, TQ_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.

Select text in multiple paragraphs to change the formatting of all selected paragraphs.

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, - this, TQT_SLOT( formatFrameSet() ), + this, TQ_SLOT( formatFrameSet() ), actionCollection(), "format_frameset" ); m_actionFormatFrameSet->setToolTip( i18n( "Alter frameset properties." ) ); m_actionFormatFrameSet->setWhatsThis( i18n( "Alter frameset properties.

Currently you can change the frame background." ) ); m_actionFormatPage = new TDEAction( i18n( "Page &Layout..." ), 0, - this, TQT_SLOT( formatPage() ), + this, TQ_SLOT( formatPage() ), actionCollection(), "format_page" ); m_actionFormatPage->setToolTip( i18n( "Change properties of entire page." ) ); m_actionFormatPage->setWhatsThis( i18n( "Change properties of the entire page.

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?*/, - this, TQT_SLOT( extraFrameStylist() ), + this, TQ_SLOT( extraFrameStylist() ), actionCollection(), "frame_stylist" ); m_actionFormatFrameStylist->setToolTip( i18n( "Change attributes of framestyles." ) ); m_actionFormatFrameStylist->setWhatsThis( i18n( "Change background and borders of framestyles.

Multiple framestyles can be changed using the dialog box." ) ); m_actionFormatStylist = new TDEAction( i18n( "&Style Manager" ), TQt::ALT + TQt::CTRL + TQt::Key_S, - this, TQT_SLOT( extraStylist() ), + this, TQ_SLOT( extraStylist() ), actionCollection(), "format_stylist" ); m_actionFormatStylist->setToolTip( i18n( "Change attributes of styles." ) ); m_actionFormatStylist->setWhatsThis( i18n( "Change font and paragraph attributes of styles.

Multiple styles can be changed using the dialog box." ) ); m_actionFormatFontSize = new TDEFontSizeAction( i18n( "Font Size" ), 0, actionCollection(), "format_fontsize" ); - connect( m_actionFormatFontSize, TQT_SIGNAL( fontSizeChanged( int ) ), - this, TQT_SLOT( textSizeSelected( int ) ) ); + connect( m_actionFormatFontSize, TQ_SIGNAL( fontSizeChanged( int ) ), + this, TQ_SLOT( textSizeSelected( int ) ) ); - 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" ); + m_actionFontSizeIncrease = new TDEAction( i18n("Increase Font Size"), "fontsizeup", TQt::CTRL + TQt::Key_Greater, this, TQ_SLOT( increaseFontSize() ), actionCollection(), "increase_fontsize" ); + m_actionFontSizeDecrease = new TDEAction( i18n("Decrease Font Size"), "fontsizedown", TQt::CTRL + TQt::Key_Less, this, TQ_SLOT( decreaseFontSize() ), actionCollection(), "decrease_fontsize" ); #ifdef KFONTACTION_HAS_CRITERIA_ARG m_actionFormatFontFamily = new TDEFontAction( TDEFontChooser::SmoothScalableFonts, @@ -891,8 +891,8 @@ void KWView::setupActions() m_actionFormatFontFamily = new TDEFontAction( i18n( "Font Family" ), 0, actionCollection(), "format_fontfamily" ); #endif - connect( m_actionFormatFontFamily, TQT_SIGNAL( activated( const TQString & ) ), - this, TQT_SLOT( textFontSelected( const TQString & ) ) ); + connect( m_actionFormatFontFamily, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( textFontSelected( const TQString & ) ) ); m_actionFormatStyleMenu = new TDEActionMenu( i18n( "St&yle" ), 0, actionCollection(), "format_stylemenu" ); @@ -900,12 +900,12 @@ void KWView::setupActions() actionCollection(), "format_style" ); // 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 ) ), - this, TQT_SLOT( textStyleSelected( int ) ) ); + connect( m_actionFormatStyle, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( textStyleSelected( int ) ) ); updateStyleList(); m_actionFormatDefault=new TDEAction( i18n( "Default Format" ), 0, - this, TQT_SLOT( textDefaultFormat() ), + this, TQ_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, - this, TQT_SLOT( textBold() ), + this, TQ_SLOT( textBold() ), actionCollection(), "format_bold" ); m_actionFormatItalic = new TDEToggleAction( i18n( "&Italic" ), "format-text-italic", TQt::CTRL + TQt::Key_I, - this, TQT_SLOT( textItalic() ), + this, TQ_SLOT( textItalic() ), actionCollection(), "format_italic" ); m_actionFormatUnderline = new TDEToggleAction( i18n( "&Underline" ), "format-text-underline", TQt::CTRL + TQt::Key_U, - this, TQT_SLOT( textUnderline() ), + this, TQ_SLOT( textUnderline() ), actionCollection(), "format_underline" ); m_actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "format-text-strikethrough", 0 , - this, TQT_SLOT( textStrikeOut() ), + this, TQ_SLOT( textStrikeOut() ), actionCollection(), "format_strike" ); m_actionFormatAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "format-text-direction-ltr", TQt::CTRL + TQt::Key_L, - this, TQT_SLOT( textAlignLeft() ), + this, TQ_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, - this, TQT_SLOT( textAlignCenter() ), + this, TQ_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, - this, TQT_SLOT( textAlignRight() ), + this, TQ_SLOT( textAlignRight() ), actionCollection(), "format_alignright" ); m_actionFormatAlignRight->setExclusiveGroup( "align" ); m_actionFormatAlignBlock = new TDEToggleAction( i18n( "Align &Block" ), "text_block", TQt::CTRL + TQt::Key_J, - this, TQT_SLOT( textAlignBlock() ), + this, TQ_SLOT( textAlignBlock() ), actionCollection(), "format_alignblock" ); m_actionFormatAlignBlock->setExclusiveGroup( "align" ); m_actionFormatSpacingSingle = new TDEToggleAction( i18n( "Line Spacing &1" ), "spacesimple", TQt::CTRL + TQt::Key_1, - this, TQT_SLOT( textSpacingSingle() ), + this, TQ_SLOT( textSpacingSingle() ), actionCollection(), "format_spacingsingle" ); m_actionFormatSpacingSingle->setExclusiveGroup( "spacing" ); m_actionFormatSpacingOneAndHalf = new TDEToggleAction( i18n( "Line Spacing 1.&5" ), "spacedouble", TQt::CTRL + TQt::Key_5, - this, TQT_SLOT( textSpacingOneAndHalf() ), + this, TQ_SLOT( textSpacingOneAndHalf() ), actionCollection(), "format_spacing15" ); m_actionFormatSpacingOneAndHalf->setExclusiveGroup( "spacing" ); m_actionFormatSpacingDouble = new TDEToggleAction( i18n( "Line Spacing &2" ), "spacetriple", TQt::CTRL + TQt::Key_2, - this, TQT_SLOT( textSpacingDouble() ), + this, TQ_SLOT( textSpacingDouble() ), actionCollection(), "format_spacingdouble" ); m_actionFormatSpacingDouble->setExclusiveGroup( "spacing" ); m_actionFormatSuper = new TDEToggleAction( i18n( "Superscript" ), "super", 0, - this, TQT_SLOT( textSuperScript() ), + this, TQ_SLOT( textSuperScript() ), actionCollection(), "format_super" ); //m_actionFormatSuper->setExclusiveGroup( "valign" ); m_actionFormatSub = new TDEToggleAction( i18n( "Subscript" ), "sub", 0, - this, TQT_SLOT( textSubScript() ), + this, TQ_SLOT( textSubScript() ), actionCollection(), "format_sub" ); //m_actionFormatSub->setExclusiveGroup( "valign" ); m_actionFormatIncreaseIndent= new TDEAction( i18n( "Increase Indent" ), TQApplication::reverseLayout() ? "format_decreaseindent" : "format_increaseindent", 0, - this, TQT_SLOT( textIncreaseIndent() ), + this, TQ_SLOT( textIncreaseIndent() ), actionCollection(), "format_increaseindent" ); m_actionFormatDecreaseIndent= new TDEAction( i18n( "Decrease Indent" ), TQApplication::reverseLayout() ? "format_increaseindent" :"format_decreaseindent", 0, - this, TQT_SLOT( textDecreaseIndent() ), + this, TQ_SLOT( textDecreaseIndent() ), actionCollection(), "format_decreaseindent" ); m_actionFormatColor = new TTDESelectColorAction( i18n( "Text Color..." ), TTDESelectColorAction::TextColor, - this, TQT_SLOT( textColor() ), + this, TQ_SLOT( textColor() ), actionCollection(), "format_color", true ); m_actionFormatColor->setDefaultColor(TQColor()); //actionFormatList = new TDEToggleAction( i18n( "List" ), "enumList", 0, - // this, TQT_SLOT( textList() ), + // this, TQ_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, this, TQT_SLOT( slotCounterStyleSelected() ), + 0, this, TQ_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 @@ -1018,19 +1018,19 @@ void KWView::setupActions() actionCollection(), "frame_stylemenu" ); m_actionFrameStyle = new TDESelectAction( i18n( "Framest&yle" ), 0, actionCollection(), "frame_style" ); - connect( m_actionFrameStyle, TQT_SIGNAL( activated( int ) ), - this, TQT_SLOT( frameStyleSelected( int ) ) ); + connect( m_actionFrameStyle, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( frameStyleSelected( int ) ) ); updateFrameStyleList(); m_actionBorderOutline = new TDEToggleAction( i18n( "Border Outline" ), "borderoutline", - 0, this, TQT_SLOT( borderOutline() ), actionCollection(), "border_outline" ); + 0, this, TQ_SLOT( borderOutline() ), actionCollection(), "border_outline" ); m_actionBorderLeft = new TDEToggleAction( i18n( "Border Left" ), "borderleft", - 0, this, TQT_SLOT( borderLeft() ), actionCollection(), "border_left" ); + 0, this, TQ_SLOT( borderLeft() ), actionCollection(), "border_left" ); m_actionBorderRight = new TDEToggleAction( i18n( "Border Right" ), "borderright", - 0, this, TQT_SLOT( borderRight() ), actionCollection(), "border_right" ); + 0, this, TQ_SLOT( borderRight() ), actionCollection(), "border_right" ); m_actionBorderTop = new TDEToggleAction( i18n( "Border Top" ), "bordertop", - 0, this, TQT_SLOT( borderTop() ), actionCollection(), "border_top" ); + 0, this, TQ_SLOT( borderTop() ), actionCollection(), "border_top" ); m_actionBorderBottom = new TDEToggleAction( i18n( "Border Bottom" ), "borderbottom", - 0, this, TQT_SLOT( borderBottom() ), actionCollection(), "border_bottom" ); + 0, this, TQ_SLOT( borderBottom() ), actionCollection(), "border_bottom" ); m_actionBorderStyle = new TDESelectAction( i18n( "Border Style" ), 0, actionCollection(), "border_style" ); @@ -1058,55 +1058,55 @@ void KWView::setupActions() m_actionBackgroundColor->setToolTip( i18n( "Change background color for currently selected text." ) ); m_actionBackgroundColor->setWhatsThis( i18n( "Change background color for currently selected text." ) ); - connect(m_actionBackgroundColor,TQT_SIGNAL(activated()),TQT_SLOT(backgroundColor() )); + connect(m_actionBackgroundColor,TQ_SIGNAL(activated()),TQ_SLOT(backgroundColor() )); m_actionBackgroundColor->setDefaultColor(TQColor()); // ---------------------- Table menu m_actionTablePropertiesMenu = new TDEAction( i18n( "&Properties" ), 0, - this, TQT_SLOT( tableProperties() ), + this, TQ_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, - this, TQT_SLOT( tableInsertRow() ), + this, TQ_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, - this, TQT_SLOT( tableInsertCol() ), + this, TQ_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, - this, TQT_SLOT( tableDeleteRow() ), + this, TQ_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, - this, TQT_SLOT( tableDeleteCol() ), + this, TQ_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, - this, TQT_SLOT( tableResizeCol() ), + this, TQ_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, - this, TQT_SLOT( tableJoinCells() ), + this, TQ_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.

This is a good way to create titles and labels within a table." ) ); m_actionTableSplitCells= new TDEAction( i18n( "&Split Cell..." ), 0, - this, TQT_SLOT( tableSplitCells() ), + this, TQ_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.

Cells can be split horizontally, vertically or both directions at once." ) ); @@ -1114,26 +1114,26 @@ void KWView::setupActions() m_actionTableProtectCells= new TDEToggleAction( i18n( "Protect Cells" ), 0, 0, 0, actionCollection(), "table_protectcells" ); m_actionTableProtectCells->setToolTip( i18n( "Prevent changes to content of selected cells." ) ); - connect (m_actionTableProtectCells, TQT_SIGNAL( toggled(bool) ), this, - TQT_SLOT( tableProtectCells(bool) )); + connect (m_actionTableProtectCells, TQ_SIGNAL( toggled(bool) ), this, + TQ_SLOT( tableProtectCells(bool) )); m_actionTableProtectCells->setWhatsThis( i18n( "Toggles cell protection on and off.

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, - this, TQT_SLOT( tableUngroupTable() ), + this, TQ_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

Each frame can be moved independently around the page." ) ); m_actionTableDelete = new TDEAction( i18n( "Delete &Table" ), 0, - this, TQT_SLOT( tableDelete() ), + this, TQ_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, - this, TQT_SLOT( tableStylist() ), + this, TQ_SLOT( tableStylist() ), actionCollection(), "table_stylist" ); m_actionTableStylist->setToolTip( i18n( "Change attributes of tablestyles." ) ); m_actionTableStylist->setWhatsThis( i18n( "Change textstyle and framestyle of the tablestyles.

Multiple tablestyles can be changed using the dialog box." ) ); @@ -1142,19 +1142,19 @@ void KWView::setupActions() actionCollection(), "table_stylemenu" ); m_actionTableStyle = new TDESelectAction( i18n( "Table&style" ), 0, actionCollection(), "table_style" ); - connect( m_actionTableStyle, TQT_SIGNAL( activated( int ) ), - this, TQT_SLOT( tableStyleSelected( int ) ) ); + connect( m_actionTableStyle, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( tableStyleSelected( int ) ) ); updateTableStyleList(); m_actionConvertTableToText = new TDEAction( i18n( "Convert Table to Text" ), 0, - this, TQT_SLOT( convertTableToText() ), + this, TQ_SLOT( convertTableToText() ), actionCollection(), "convert_table_to_text" ); m_actionSortText= new TDEAction( i18n( "Sort Text..." ), 0, - this, TQT_SLOT( sortText() ), + this, TQ_SLOT( sortText() ), actionCollection(), "sort_text" ); m_actionAddPersonalExpression= new TDEAction( i18n( "Add Expression" ), 0, - this, TQT_SLOT( addPersonalExpression() ), + this, TQ_SLOT( addPersonalExpression() ), actionCollection(), "add_personal_expression" ); @@ -1162,89 +1162,89 @@ void KWView::setupActions() m_actionAllowAutoFormat = new TDEToggleAction( i18n( "Enable Autocorrection" ), 0, - this, TQT_SLOT( slotAllowAutoFormat() ), + this, TQ_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, - this, TQT_SLOT( extraAutoFormat() ), + this, TQ_SLOT( extraAutoFormat() ), actionCollection(), "configure_autocorrection" ); m_actionAutoFormat->setToolTip( i18n( "Change autocorrection options." ) ); m_actionAutoFormat->setWhatsThis( i18n( "Change autocorrection options including: