summaryrefslogtreecommitdiffstats
path: root/kword/KWView.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:02:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:02:43 -0600
commitaea627236e4de24599c3e30617cf264c3c1b7d40 (patch)
tree467e13ca5a7eb0ab292259289ecc3572f53c5eae /kword/KWView.cpp
parent786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff)
downloadkoffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz
koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kword/KWView.cpp')
-rw-r--r--kword/KWView.cpp426
1 files changed, 213 insertions, 213 deletions
diff --git a/kword/KWView.cpp b/kword/KWView.cpp
index 68386e295..f32912e07 100644
--- a/kword/KWView.cpp
+++ b/kword/KWView.cpp
@@ -562,13 +562,13 @@ void KWView::setupActions()
// accelerator clashes.
// -------------- File menu
- m_actionExtraCreateTemplate = new KAction( i18n( "&Create Template From Document..." ), 0,
+ m_actionExtraCreateTemplate = new TDEAction( i18n( "&Create Template From Document..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Statistics" ), 0, TQT_TQOBJECT(this), TQT_SLOT( fileStatistics() ), actionCollection(), "file_statistics" );
+ m_actionFileStatistics = new TDEAction( i18n( "Statistics" ), 0, TQT_TQOBJECT(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
@@ -580,17 +580,17 @@ void KWView::setupActions()
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 KAction( i18n( "Select All Frames" ), 0, TQT_TQOBJECT(this), TQT_SLOT( editSelectAllFrames() ), actionCollection(), "edit_selectallframes" );
- m_actionEditSelectCurrentFrame = new KAction( i18n( "Select Frame" ), 0,
+ new TDEAction( i18n( "Select All Frames" ), 0, TQT_TQOBJECT(this), TQT_SLOT( editSelectAllFrames() ), actionCollection(), "edit_selectallframes" );
+ m_actionEditSelectCurrentFrame = new TDEAction( i18n( "Select Frame" ), 0,
0, TQT_TQOBJECT(this), TQT_SLOT( editSelectCurrentFrame() ),
actionCollection(), "edit_selectcurrentframe" );
m_actionSpellCheck = KStdAction::spelling( TQT_TQOBJECT(this), TQT_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" );
- m_actionDeletePage = new KAction( i18n( "Delete Page" ), "delslide", 0,
+ m_actionDeletePage = new TDEAction( i18n( "Delete Page" ), "delslide", 0,
TQT_TQOBJECT(this), TQT_SLOT( deletePage() ),
actionCollection(), "delete_page" );
kdDebug() << m_doc->pageCount() << " " << (m_doc->processingType() == KWDocument::DTP) << endl;
- (void) new KAction( i18n( "Configure Mai&l Merge..." ), "configure",0,
+ (void) new TDEAction( i18n( "Configure Mai&l Merge..." ), "configure",0,
TQT_TQOBJECT(this), TQT_SLOT( editMailMergeDataBase() ),
actionCollection(), "edit_sldatabase" );
@@ -601,33 +601,33 @@ void KWView::setupActions()
// (void) new KWMailMergeComboAction::KWMailMergeComboAction(i18n("Insert Mailmerge Var"),0,TQT_TQOBJECT(this), TQT_SLOT(JWJWJW()),actionCollection(),"mailmerge_varchooser");
// -------------- Frame menu
- m_actionEditDelFrame = new KAction( i18n( "&Delete Frame" ), 0,
+ m_actionEditDelFrame = new TDEAction( i18n( "&Delete Frame" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Create Linked Copy" ), 0, TQT_TQOBJECT(this), TQT_SLOT( createLinkedFrame() ), actionCollection(), "create_linked_frame" );
+ m_actionCreateLinkedFrame = new TDEAction( i18n( "Create Linked Copy" ), 0, TQT_TQOBJECT(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 KAction( i18n( "Ra&ise Frame" ), "raise",
+ m_actionRaiseFrame = new TDEAction( i18n( "Ra&ise Frame" ), "raise",
TQt::CTRL +TQt::SHIFT+ TQt::Key_R, TQT_TQOBJECT(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 KAction( i18n( "&Lower Frame" ), "lower",
+ m_actionLowerFrame = new TDEAction( i18n( "&Lower Frame" ), "lower",
TQt::CTRL +TQt::SHIFT+ TQt::Key_L, TQT_TQOBJECT(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 KAction( i18n( "Bring to Front" ), "bring_forward",
+ m_actionBringToFront= new TDEAction( i18n( "Bring to Front" ), "bring_forward",
0, TQT_TQOBJECT(this), TQT_SLOT( bringToFront() ),
actionCollection(), "bring_tofront_frame" );
- m_actionSendBackward= new KAction( i18n( "Send to Back" ), "send_backward",
+ m_actionSendBackward= new TDEAction( i18n( "Send to Back" ), "send_backward",
0, TQT_TQOBJECT(this), TQT_SLOT( sendToBack() ),
actionCollection(), "send_toback_frame" );
@@ -636,14 +636,14 @@ void KWView::setupActions()
if ( !m_doc->isEmbedded() ) {
- m_actionViewTextMode = new KToggleAction( i18n( "Text Mode" ), 0,
+ m_actionViewTextMode = new TDEToggleAction( i18n( "Text Mode" ), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "&Page Mode" ), 0,
+ m_actionViewPageMode = new TDEToggleAction( i18n( "&Page Mode" ), 0,
TQT_TQOBJECT(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." ) );
@@ -651,7 +651,7 @@ void KWView::setupActions()
m_actionViewPageMode->setExclusiveGroup( "viewmodes" );
m_actionViewPageMode->setChecked( true );
- m_actionViewPreviewMode = new KToggleAction( i18n( "Pre&view Mode" ), 0,
+ m_actionViewPreviewMode = new TDEToggleAction( i18n( "Pre&view Mode" ), 0,
TQT_TQOBJECT(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." ) );
@@ -666,33 +666,33 @@ void KWView::setupActions()
m_actionViewPreviewMode = 0;
}
- m_actionViewFormattingChars = new KToggleAction( i18n( "&Formatting Characters" ), 0,
+ m_actionViewFormattingChars = new TDEToggleAction( i18n( "&Formatting Characters" ), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "Frame &Borders" ), 0,
+ m_actionViewFrameBorders = new TDEToggleAction( i18n( "Frame &Borders" ), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "Enable Document &Headers" ), 0,
+ m_actionViewHeader = new TDEToggleAction( i18n( "Enable Document &Headers" ), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "Enable Document Foo&ters" ), 0,
+ m_actionViewFooter = new TDEToggleAction( i18n( "Enable Document Foo&ters" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewFooter() ),
actionCollection(), "format_footer" );
m_actionViewFooter->setCheckedState(i18n("Disable Document Foo&ters"));
m_actionViewFooter->setToolTip( i18n( "Shows and hides footer display." ) );
m_actionViewFooter->setWhatsThis( i18n( "Selecting this option toggles the display of footers in KWord. <br><br>Footers are special frames at the bottom of each page which can contain page numbers or other information." ) );
- m_actionViewZoom = new KSelectAction( i18n( "Zoom" ), "viewmag", 0,
+ m_actionViewZoom = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0,
actionCollection(), "view_zoom" );
connect( m_actionViewZoom, TQT_SIGNAL( activated( const TQString & ) ),
@@ -701,14 +701,14 @@ void KWView::setupActions()
changeZoomMenu( );
// -------------- Insert menu
- m_actionInsertSpecialChar = new KAction( i18n( "Sp&ecial Character..." ), "char",
+ m_actionInsertSpecialChar = new TDEAction( i18n( "Sp&ecial Character..." ), "char",
TQt::ALT + TQt::SHIFT + TQt::Key_C,
TQT_TQOBJECT(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 KAction( TQString(), TQt::CTRL + TQt::Key_Return,
+ m_actionInsertFrameBreak = new TDEAction( TQString(), TQt::CTRL + TQt::Key_Return,
TQT_TQOBJECT(this), TQT_SLOT( insertFrameBreak() ),
actionCollection(), "insert_framebreak" );
if ( m_doc->processingType() == KWDocument::WP ) {
@@ -721,52 +721,52 @@ void KWView::setupActions()
m_actionInsertFrameBreak->setWhatsThis( i18n( "This inserts a non-printing character at the current cursor position. All text after this point will be moved into the next frame in the frameset." ) );
}
- /*actionInsertPage =*/ new KAction( m_doc->processingType() == KWDocument::WP ? i18n( "Page" ) : i18n( "Page..." ), "page", 0,
+ /*actionInsertPage =*/ new TDEAction( m_doc->processingType() == KWDocument::WP ? i18n( "Page" ) : i18n( "Page..." ), "page", 0,
TQT_TQOBJECT(this), TQT_SLOT( insertPage() ),
actionCollection(), "insert_page" );
- m_actionInsertLink = new KAction( i18n( "Link..." ), 0,
+ m_actionInsertLink = new TDEAction( i18n( "Link..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Comment..." ), 0,
+ m_actionInsertComment = new TDEAction( i18n( "Comment..." ), 0,
TQT_TQOBJECT(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 KAction( i18n("Edit Comment..."), 0,
+ m_actionEditComment = new TDEAction( i18n("Edit Comment..."), 0,
TQT_TQOBJECT(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 KAction( i18n("Remove Comment"), 0,
+ m_actionRemoveComment = new TDEAction( i18n("Remove Comment"), 0,
TQT_TQOBJECT(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 KAction( i18n("Copy Text of Comment..."), 0,
+ m_actionCopyTextOfComment = new TDEAction( i18n("Copy Text of Comment..."), 0,
TQT_TQOBJECT(this), TQT_SLOT(copyTextOfComment()),
actionCollection(), "copy_text_comment");
- m_actionInsertFootEndNote = new KAction( i18n( "&Footnote/Endnote..." ), 0,
+ m_actionInsertFootEndNote = new TDEAction( i18n( "&Footnote/Endnote..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Table of &Contents" ), 0,
+ m_actionInsertContents = new TDEAction( i18n( "Table of &Contents" ), 0,
TQT_TQOBJECT(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." ) );
m_variableDefMap.clear();
- actionInsertVariable = new KActionMenu( i18n( "&Variable" ),
+ actionInsertVariable = new TDEActionMenu( i18n( "&Variable" ),
actionCollection(), "insert_variable" );
// The last argument is only needed if a submenu is to be created
@@ -776,7 +776,7 @@ void KWView::setupActions()
addVariableActions( VT_PGNUM, KoPageVariable::actionTexts(), actionInsertVariable, i18n("&Page") );
addVariableActions( VT_STATISTIC, KWStatisticVariable::actionTexts(), actionInsertVariable, i18n("&Statistic") );
- m_actionInsertCustom = new KActionMenu( i18n( "&Custom" ),
+ m_actionInsertCustom = new TDEActionMenu( i18n( "&Custom" ),
actionCollection(), "insert_custom" );
actionInsertVariable->insert(m_actionInsertCustom);
@@ -785,7 +785,7 @@ void KWView::setupActions()
addVariableActions( VT_MAILMERGE, KoMailMergeVariable::actionTexts(), actionInsertVariable, TQString() );
actionInsertVariable->popupMenu()->insertSeparator();
- m_actionRefreshAllVariable = new KAction( i18n( "&Refresh All Variables" ), 0,
+ m_actionRefreshAllVariable = new TDEAction( i18n( "&Refresh All Variables" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( refreshAllVariable() ),
actionCollection(), "refresh_all_variable" );
m_actionRefreshAllVariable->setToolTip( i18n( "Update all variables to current values." ) );
@@ -793,31 +793,31 @@ void KWView::setupActions()
actionInsertVariable->insert(m_actionRefreshAllVariable);
- m_actionInsertExpression = new KActionMenu( i18n( "&Expression" ),
+ m_actionInsertExpression = new TDEActionMenu( i18n( "&Expression" ),
actionCollection(), "insert_expression" );
loadexpressionActions( m_actionInsertExpression);
- m_actionToolsCreateText = new KToggleAction( i18n( "Te&xt Frame" ), "frame_text", TQt::Key_F10 /*same as kpr*/,
+ m_actionToolsCreateText = new TDEToggleAction( i18n( "Te&xt Frame" ), "frame_text", TQt::Key_F10 /*same as kpr*/,
TQT_TQOBJECT(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 KAction( i18n( "For&mula" ), "frame_formula", TQt::Key_F4,
+ m_actionInsertFormula = new TDEAction( i18n( "For&mula" ), "frame_formula", TQt::Key_F4,
TQT_TQOBJECT(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 KAction( i18n( "&Table..." ), "inline_table",
+ m_actionInsertTable = new TDEAction( i18n( "&Table..." ), "inline_table",
TQt::Key_F5,
TQT_TQOBJECT(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 KToggleAction( i18n( "P&icture..." ), "frame_image", // or inline_image ?
+ 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() ),
actionCollection(), "insert_picture" );
@@ -831,72 +831,72 @@ void KWView::setupActions()
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 KAction( i18n( "Fi&le..." ), 0,
+ m_actionInsertFile = new TDEAction( i18n( "Fi&le..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertFile() ),
actionCollection(), "insert_file" );
// ------------------------- Format menu
- m_actionFormatFont = new KAction( i18n( "&Font..." ), TQt::ALT + TQt::CTRL + TQt::Key_F,
+ m_actionFormatFont = new TDEAction( i18n( "&Font..." ), TQt::ALT + TQt::CTRL + TQt::Key_F,
TQT_TQOBJECT(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 KAction( i18n( "&Paragraph..." ), TQt::ALT + TQt::CTRL + TQt::Key_P,
+ m_actionFormatParag = new TDEAction( i18n( "&Paragraph..." ), TQt::ALT + TQt::CTRL + TQt::Key_P,
TQT_TQOBJECT(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 KAction( i18n( "F&rame/Frameset Properties" ), 0,
+ m_actionFormatFrameSet = new TDEAction( i18n( "F&rame/Frameset Properties" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Page &Layout..." ), 0,
+ m_actionFormatPage = new TDEAction( i18n( "Page &Layout..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "&Frame Style Manager" ), 0 /*shortcut?*/,
+ m_actionFormatFrameStylist = new TDEAction( i18n( "&Frame Style Manager" ), 0 /*shortcut?*/,
TQT_TQOBJECT(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 KAction( i18n( "&Style Manager" ), TQt::ALT + TQt::CTRL + TQt::Key_S,
+ m_actionFormatStylist = new TDEAction( i18n( "&Style Manager" ), TQt::ALT + TQt::CTRL + TQt::Key_S,
TQT_TQOBJECT(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." ) );
- m_actionFormatFontSize = new KFontSizeAction( i18n( "Font Size" ), 0,
+ 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 ) ) );
- m_actionFontSizeIncrease = new KAction( i18n("Increase Font Size"), "fontsizeup", TQt::CTRL + TQt::Key_Greater, TQT_TQOBJECT(this), TQT_SLOT( increaseFontSize() ), actionCollection(), "increase_fontsize" );
- m_actionFontSizeDecrease = new KAction( 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, 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" );
#ifdef KFONTACTION_HAS_CRITERIA_ARG
- m_actionFormatFontFamily = new KFontAction( KFontChooser::SmoothScalableFonts,
+ m_actionFormatFontFamily = new TDEFontAction( TDEFontChooser::SmoothScalableFonts,
i18n( "Font Family" ), 0,
actionCollection(), "format_fontfamily" );
#else
- m_actionFormatFontFamily = new KFontAction( i18n( "Font Family" ), 0,
+ m_actionFormatFontFamily = new TDEFontAction( i18n( "Font Family" ), 0,
actionCollection(), "format_fontfamily" );
#endif
connect( m_actionFormatFontFamily, TQT_SIGNAL( activated( const TQString & ) ),
TQT_TQOBJECT(this), TQT_SLOT( textFontSelected( const TQString & ) ) );
- m_actionFormatStyleMenu = new KActionMenu( i18n( "St&yle" ), 0,
+ m_actionFormatStyleMenu = new TDEActionMenu( i18n( "St&yle" ), 0,
actionCollection(), "format_stylemenu" );
- m_actionFormatStyle = new KSelectAction( i18n( "St&yle" ), 0,
+ m_actionFormatStyle = new TDESelectAction( i18n( "St&yle" ), 0,
actionCollection(), "format_style" );
// In fact, binding a key to this action will simply re-apply the current style. Why not.
//m_actionFormatStyle->setShortcutConfigurable( false );
@@ -904,7 +904,7 @@ void KWView::setupActions()
TQT_TQOBJECT(this), TQT_SLOT( textStyleSelected( int ) ) );
updateStyleList();
- m_actionFormatDefault=new KAction( i18n( "Default Format" ), 0,
+ m_actionFormatDefault=new TDEAction( i18n( "Default Format" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( textDefaultFormat() ),
actionCollection(), "text_default" );
m_actionFormatDefault->setToolTip( i18n( "Change font and paragraph attributes to their default values." ) );
@@ -912,84 +912,84 @@ void KWView::setupActions()
// ----------------------- More format actions, for the toolbar only
- m_actionFormatBold = new KToggleAction( i18n( "&Bold" ), "text_bold", TQt::CTRL + TQt::Key_B,
+ m_actionFormatBold = new TDEToggleAction( i18n( "&Bold" ), "text_bold", TQt::CTRL + TQt::Key_B,
TQT_TQOBJECT(this), TQT_SLOT( textBold() ),
actionCollection(), "format_bold" );
- m_actionFormatItalic = new KToggleAction( i18n( "&Italic" ), "text_italic", TQt::CTRL + TQt::Key_I,
+ m_actionFormatItalic = new TDEToggleAction( i18n( "&Italic" ), "text_italic", TQt::CTRL + TQt::Key_I,
TQT_TQOBJECT(this), TQT_SLOT( textItalic() ),
actionCollection(), "format_italic" );
- m_actionFormatUnderline = new KToggleAction( i18n( "&Underline" ), "text_under", TQt::CTRL + TQt::Key_U,
+ m_actionFormatUnderline = new TDEToggleAction( i18n( "&Underline" ), "text_under", TQt::CTRL + TQt::Key_U,
TQT_TQOBJECT(this), TQT_SLOT( textUnderline() ),
actionCollection(), "format_underline" );
- m_actionFormatStrikeOut = new KToggleAction( i18n( "&Strike Out" ), "text_strike", 0 ,
+ m_actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "text_strike", 0 ,
TQT_TQOBJECT(this), TQT_SLOT( textStrikeOut() ),
actionCollection(), "format_strike" );
- m_actionFormatAlignLeft = new KToggleAction( i18n( "Align &Left" ), "text_left", TQt::CTRL + TQt::Key_L,
+ m_actionFormatAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "text_left", TQt::CTRL + TQt::Key_L,
TQT_TQOBJECT(this), TQT_SLOT( textAlignLeft() ),
actionCollection(), "format_alignleft" );
m_actionFormatAlignLeft->setExclusiveGroup( "align" );
m_actionFormatAlignLeft->setChecked( TRUE );
- m_actionFormatAlignCenter = new KToggleAction( i18n( "Align &Center" ), "text_center", TQt::CTRL + TQt::ALT + TQt::Key_C,
+ m_actionFormatAlignCenter = new TDEToggleAction( i18n( "Align &Center" ), "text_center", TQt::CTRL + TQt::ALT + TQt::Key_C,
TQT_TQOBJECT(this), TQT_SLOT( textAlignCenter() ),
actionCollection(), "format_aligncenter" );
m_actionFormatAlignCenter->setExclusiveGroup( "align" );
- m_actionFormatAlignRight = new KToggleAction( i18n( "Align &Right" ), "text_right", TQt::CTRL + TQt::ALT + TQt::Key_R,
+ m_actionFormatAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "text_right", TQt::CTRL + TQt::ALT + TQt::Key_R,
TQT_TQOBJECT(this), TQT_SLOT( textAlignRight() ),
actionCollection(), "format_alignright" );
m_actionFormatAlignRight->setExclusiveGroup( "align" );
- m_actionFormatAlignBlock = new KToggleAction( i18n( "Align &Block" ), "text_block", TQt::CTRL + TQt::Key_J,
+ m_actionFormatAlignBlock = new TDEToggleAction( i18n( "Align &Block" ), "text_block", TQt::CTRL + TQt::Key_J,
TQT_TQOBJECT(this), TQT_SLOT( textAlignBlock() ),
actionCollection(), "format_alignblock" );
m_actionFormatAlignBlock->setExclusiveGroup( "align" );
- m_actionFormatSpacingSingle = new KToggleAction( i18n( "Line Spacing &1" ), "spacesimple", TQt::CTRL + TQt::Key_1,
+ m_actionFormatSpacingSingle = new TDEToggleAction( i18n( "Line Spacing &1" ), "spacesimple", TQt::CTRL + TQt::Key_1,
TQT_TQOBJECT(this), TQT_SLOT( textSpacingSingle() ),
actionCollection(), "format_spacingsingle" );
m_actionFormatSpacingSingle->setExclusiveGroup( "spacing" );
- m_actionFormatSpacingOneAndHalf = new KToggleAction( i18n( "Line Spacing 1.&5" ), "spacedouble", TQt::CTRL + TQt::Key_5,
+ m_actionFormatSpacingOneAndHalf = new TDEToggleAction( i18n( "Line Spacing 1.&5" ), "spacedouble", TQt::CTRL + TQt::Key_5,
TQT_TQOBJECT(this), TQT_SLOT( textSpacingOneAndHalf() ),
actionCollection(), "format_spacing15" );
m_actionFormatSpacingOneAndHalf->setExclusiveGroup( "spacing" );
- m_actionFormatSpacingDouble = new KToggleAction( i18n( "Line Spacing &2" ), "spacetriple", TQt::CTRL + TQt::Key_2,
+ m_actionFormatSpacingDouble = new TDEToggleAction( i18n( "Line Spacing &2" ), "spacetriple", TQt::CTRL + TQt::Key_2,
TQT_TQOBJECT(this), TQT_SLOT( textSpacingDouble() ),
actionCollection(), "format_spacingdouble" );
m_actionFormatSpacingDouble->setExclusiveGroup( "spacing" );
- m_actionFormatSuper = new KToggleAction( i18n( "Superscript" ), "super", 0,
+ m_actionFormatSuper = new TDEToggleAction( i18n( "Superscript" ), "super", 0,
TQT_TQOBJECT(this), TQT_SLOT( textSuperScript() ),
actionCollection(), "format_super" );
//m_actionFormatSuper->setExclusiveGroup( "valign" );
- m_actionFormatSub = new KToggleAction( i18n( "Subscript" ), "sub", 0,
+ m_actionFormatSub = new TDEToggleAction( i18n( "Subscript" ), "sub", 0,
TQT_TQOBJECT(this), TQT_SLOT( textSubScript() ),
actionCollection(), "format_sub" );
//m_actionFormatSub->setExclusiveGroup( "valign" );
- m_actionFormatIncreaseIndent= new KAction( i18n( "Increase Indent" ),
+ m_actionFormatIncreaseIndent= new TDEAction( i18n( "Increase Indent" ),
TQApplication::reverseLayout() ? "format_decreaseindent" : "format_increaseindent", 0,
TQT_TQOBJECT(this), TQT_SLOT( textIncreaseIndent() ),
actionCollection(), "format_increaseindent" );
- m_actionFormatDecreaseIndent= new KAction( i18n( "Decrease Indent" ),
+ m_actionFormatDecreaseIndent= new TDEAction( i18n( "Decrease Indent" ),
TQApplication::reverseLayout() ? "format_increaseindent" :"format_decreaseindent", 0,
TQT_TQOBJECT(this), TQT_SLOT( textDecreaseIndent() ),
actionCollection(), "format_decreaseindent" );
- m_actionFormatColor = new TKSelectColorAction( i18n( "Text Color..." ), TKSelectColorAction::TextColor,
+ m_actionFormatColor = new TTDESelectColorAction( i18n( "Text Color..." ), TTDESelectColorAction::TextColor,
TQT_TQOBJECT(this), TQT_SLOT( textColor() ),
actionCollection(), "format_color", true );
m_actionFormatColor->setDefaultColor(TQColor());
- //actionFormatList = new KToggleAction( i18n( "List" ), "enumList", 0,
+ //actionFormatList = new TDEToggleAction( i18n( "List" ), "enumList", 0,
// TQT_TQOBJECT(this), TQT_SLOT( textList() ),
// actionCollection(), "format_list" );
//actionFormatList->setExclusiveGroup( "style" );
- m_actionFormatNumber = new KActionMenu( i18n( "Number" ),
+ m_actionFormatNumber = new TDEActionMenu( i18n( "Number" ),
"enumList", actionCollection(), "format_number" );
m_actionFormatNumber->setDelayed( false );
- m_actionFormatBullet = new KActionMenu( i18n( "Bullet" ),
+ m_actionFormatBullet = new TDEActionMenu( i18n( "Bullet" ),
"unsortedList", actionCollection(), "format_bullet" );
m_actionFormatBullet->setDelayed( false );
TQPtrList<KoCounterStyleWidget::StyleRepresenter> stylesList;
@@ -998,7 +998,7 @@ void KWView::setupActions()
for ( ; styleIt.current() ; ++styleIt ) {
// Dynamically create toggle-actions for each list style.
// This approach allows to edit toolbars and extract separate actions from this menu
- KToggleAction* act = new KToggleAction( styleIt.current()->name(), /*TODO icon,*/
+ TDEToggleAction* act = new TDEToggleAction( styleIt.current()->name(), /*TODO icon,*/
0, TQT_TQOBJECT(this), TQT_SLOT( slotCounterStyleSelected() ),
actionCollection(), TQString("counterstyle_%1").arg( styleIt.current()->style() ).latin1() );
act->setExclusiveGroup( "counterstyle" );
@@ -1014,24 +1014,24 @@ void KWView::setupActions()
// ---------------------------- frame toolbar actions
- m_actionFrameStyleMenu = new KActionMenu( i18n( "Fra&mestyle" ), 0,
+ m_actionFrameStyleMenu = new TDEActionMenu( i18n( "Fra&mestyle" ), 0,
actionCollection(), "frame_stylemenu" );
- m_actionFrameStyle = new KSelectAction( i18n( "Framest&yle" ), 0,
+ 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 ) ) );
updateFrameStyleList();
- m_actionBorderOutline = new KToggleAction( i18n( "Border Outline" ), "borderoutline",
+ m_actionBorderOutline = new TDEToggleAction( i18n( "Border Outline" ), "borderoutline",
0, TQT_TQOBJECT(this), TQT_SLOT( borderOutline() ), actionCollection(), "border_outline" );
- m_actionBorderLeft = new KToggleAction( i18n( "Border Left" ), "borderleft",
+ m_actionBorderLeft = new TDEToggleAction( i18n( "Border Left" ), "borderleft",
0, TQT_TQOBJECT(this), TQT_SLOT( borderLeft() ), actionCollection(), "border_left" );
- m_actionBorderRight = new KToggleAction( i18n( "Border Right" ), "borderright",
+ m_actionBorderRight = new TDEToggleAction( i18n( "Border Right" ), "borderright",
0, TQT_TQOBJECT(this), TQT_SLOT( borderRight() ), actionCollection(), "border_right" );
- m_actionBorderTop = new KToggleAction( i18n( "Border Top" ), "bordertop",
+ m_actionBorderTop = new TDEToggleAction( i18n( "Border Top" ), "bordertop",
0, TQT_TQOBJECT(this), TQT_SLOT( borderTop() ), actionCollection(), "border_top" );
- m_actionBorderBottom = new KToggleAction( i18n( "Border Bottom" ), "borderbottom",
+ m_actionBorderBottom = new TDEToggleAction( i18n( "Border Bottom" ), "borderbottom",
0, TQT_TQOBJECT(this), TQT_SLOT( borderBottom() ), actionCollection(), "border_bottom" );
- m_actionBorderStyle = new KSelectAction( i18n( "Border Style" ),
+ m_actionBorderStyle = new TDESelectAction( i18n( "Border Style" ),
0, actionCollection(), "border_style" );
TQStringList lst;
@@ -1042,7 +1042,7 @@ void KWView::setupActions()
lst << KoBorder::getStyle( KoBorder::DASH_DOT_DOT );
lst << KoBorder::getStyle( KoBorder::DOUBLE_LINE );
m_actionBorderStyle->setItems( lst );
- m_actionBorderWidth = new KSelectAction( i18n( "Border Width" ), 0,
+ m_actionBorderWidth = new TDESelectAction( i18n( "Border Width" ), 0,
actionCollection(), "border_width" );
lst.clear();
for ( unsigned int i = 1; i < 10; i++ )
@@ -1050,11 +1050,11 @@ void KWView::setupActions()
m_actionBorderWidth->setItems( lst );
m_actionBorderWidth->setCurrentItem( 0 );
- m_actionBorderColor = new TKSelectColorAction( i18n("Border Color"), TKSelectColorAction::LineColor, actionCollection(), "border_color", true );
+ m_actionBorderColor = new TTDESelectColorAction( i18n("Border Color"), TTDESelectColorAction::LineColor, actionCollection(), "border_color", true );
m_actionBorderColor->setDefaultColor(TQColor());
- m_actionBackgroundColor = new TKSelectColorAction( i18n( "Text Background Color..." ), TKSelectColorAction::FillColor, actionCollection(),"border_backgroundcolor", true);
+ m_actionBackgroundColor = new TTDESelectColorAction( i18n( "Text Background Color..." ), TTDESelectColorAction::FillColor, actionCollection(),"border_backgroundcolor", true);
m_actionBackgroundColor->setToolTip( i18n( "Change background color for currently selected text." ) );
m_actionBackgroundColor->setWhatsThis( i18n( "Change background color for currently selected text." ) );
@@ -1062,56 +1062,56 @@ void KWView::setupActions()
m_actionBackgroundColor->setDefaultColor(TQColor());
// ---------------------- Table menu
- m_actionTablePropertiesMenu = new KAction( i18n( "&Properties" ), 0,
+ m_actionTablePropertiesMenu = new TDEAction( i18n( "&Properties" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "&Insert Row..." ), "insert_table_row", 0,
+ m_actionTableInsertRow = new TDEAction( i18n( "&Insert Row..." ), "insert_table_row", 0,
TQT_TQOBJECT(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 KAction( i18n( "I&nsert Column..." ), "insert_table_col", 0,
+ m_actionTableInsertCol = new TDEAction( i18n( "I&nsert Column..." ), "insert_table_col", 0,
TQT_TQOBJECT(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 KAction( 0, "delete_table_row", 0,
+ m_actionTableDelRow = new TDEAction( 0, "delete_table_row", 0,
TQT_TQOBJECT(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 KAction( 0, "delete_table_col", 0,
+ m_actionTableDelCol = new TDEAction( 0, "delete_table_col", 0,
TQT_TQOBJECT(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 KAction( i18n( "Resize Column..." ), 0,
+ m_actionTableResizeCol = new TDEAction( i18n( "Resize Column..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "&Join Cells" ), 0,
+ m_actionTableJoinCells = new TDEAction( i18n( "&Join Cells" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "&Split Cell..." ), 0,
+ m_actionTableSplitCells= new TDEAction( i18n( "&Split Cell..." ), 0,
TQT_TQOBJECT(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." ) );
- m_actionTableProtectCells= new KToggleAction( i18n( "Protect Cells" ), 0, 0, 0,
+ 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,
@@ -1119,41 +1119,41 @@ 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 KAction( i18n( "&Ungroup Table" ), 0,
+ m_actionTableUngroup = new TDEAction( i18n( "&Ungroup Table" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Delete &Table" ), 0,
+ m_actionTableDelete = new TDEAction( i18n( "Delete &Table" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "T&able Style Manager" ), 0,
+ m_actionTableStylist = new TDEAction( i18n( "T&able Style Manager" ), 0,
TQT_TQOBJECT(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." ) );
- m_actionTableStyleMenu = new KActionMenu( i18n( "Table&style" ), 0,
+ m_actionTableStyleMenu = new TDEActionMenu( i18n( "Table&style" ), 0,
actionCollection(), "table_stylemenu" );
- m_actionTableStyle = new KSelectAction( i18n( "Table&style" ), 0,
+ 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 ) ) );
updateTableStyleList();
- m_actionConvertTableToText = new KAction( i18n( "Convert Table to Text" ), 0,
+ m_actionConvertTableToText = new TDEAction( i18n( "Convert Table to Text" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( convertTableToText() ),
actionCollection(), "convert_table_to_text" );
- m_actionSortText= new KAction( i18n( "Sort Text..." ), 0,
+ m_actionSortText= new TDEAction( i18n( "Sort Text..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( sortText() ),
actionCollection(), "sort_text" );
- m_actionAddPersonalExpression= new KAction( i18n( "Add Expression" ), 0,
+ m_actionAddPersonalExpression= new TDEAction( i18n( "Add Expression" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( addPersonalExpression() ),
actionCollection(), "add_personal_expression" );
@@ -1161,30 +1161,30 @@ void KWView::setupActions()
// ---------------------- Tools menu
- m_actionAllowAutoFormat = new KToggleAction( i18n( "Enable Autocorrection" ), 0,
+ m_actionAllowAutoFormat = new TDEToggleAction( i18n( "Enable Autocorrection" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Configure &Autocorrection..." ), 0,
+ m_actionAutoFormat = new TDEAction( i18n( "Configure &Autocorrection..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Custom &Variables..." ), 0,
+ m_actionEditCustomVarsEdit = new TDEAction( i18n( "Custom &Variables..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( editCustomVars() ), // TODO: new dialog w add etc.
actionCollection(), "custom_vars" );
- m_actionEditPersonnalExpr=new KAction( i18n( "Edit &Personal Expressions..." ), 0,
+ m_actionEditPersonnalExpr=new TDEAction( i18n( "Edit &Personal Expressions..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Change Case..." ), 0,
+ m_actionChangeCase=new TDEAction( i18n( "Change Case..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( changeCaseOfText() ),
actionCollection(), "change_case" );
m_actionChangeCase->setToolTip( i18n( "Alter the capitalization of selected text." ) );
@@ -1194,56 +1194,56 @@ void KWView::setupActions()
m_actionConfigure = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()), actionCollection(), "configure" );
//------------------------ Menu frameSet
- KAction *actionChangePicture=new KAction( i18n( "Change Picture..." ),"frame_image",0,
+ TDEAction *actionChangePicture=new TDEAction( i18n( "Change Picture..." ),"frame_image",0,
TQT_TQOBJECT(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 KAction( i18n( "Configure Header/Footer..." ), 0,
+ m_actionConfigureHeaderFooter=new TDEAction( i18n( "Configure Header/Footer..." ), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "Inline Frame" ), 0,
+ m_actionInlineFrame = new TDEToggleAction( i18n( "Inline Frame" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Open Link" ), 0,
+ m_actionOpenLink = new TDEAction( i18n( "Open Link" ), 0,
TQT_TQOBJECT(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 KAction( i18n("Change Link..."), 0,
+ m_actionChangeLink=new TDEAction( i18n("Change Link..."), 0,
TQT_TQOBJECT(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 KAction( i18n( "Copy Link" ), 0,
+ m_actionCopyLink = new TDEAction( i18n( "Copy Link" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( copyLink() ),
actionCollection(), "copy_link" );
- m_actionAddLinkToBookmak = new KAction( i18n( "Add to Bookmark" ), 0,
+ m_actionAddLinkToBookmak = new TDEAction( i18n( "Add to Bookmark" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( addToBookmark() ),
actionCollection(), "add_to_bookmark" );
- m_actionRemoveLink = new KAction( i18n( "Remove Link" ), 0,
+ m_actionRemoveLink = new TDEAction( i18n( "Remove Link" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( removeLink() ),
actionCollection(), "remove_link" );
- m_actionShowDocStruct = new KToggleAction( i18n( "Show Doc Structure" ), 0,
+ m_actionShowDocStruct = new TDEToggleAction( i18n( "Show Doc Structure" ), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "Show Rulers" ), 0,
+ m_actionShowRuler = new TDEToggleAction( i18n( "Show Rulers" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( showRuler() ),
actionCollection(), "show_ruler" );
m_actionShowRuler->setCheckedState(i18n("Hide Rulers"));
@@ -1253,16 +1253,16 @@ void KWView::setupActions()
"be used to position tabulators among others.<p>Uncheck this to disable "
"the rulers from being displayed." ) );
- m_actionViewShowGrid = new KToggleAction( i18n( "Show Grid" ), 0,
+ m_actionViewShowGrid = new TDEToggleAction( i18n( "Show Grid" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewGrid() ),
actionCollection(), "view_grid" );
m_actionViewShowGrid->setCheckedState(i18n("Hide Grid"));
- m_actionViewSnapToGrid= new KToggleAction( i18n( "Snap to Grid" ), 0,
+ m_actionViewSnapToGrid= new TDEToggleAction( i18n( "Snap to Grid" ), 0,
TQT_TQOBJECT(this), TQT_SLOT(viewSnapToGrid() ),
actionCollection(), "view_snaptogrid" );
- m_actionConfigureCompletion = new KAction( i18n( "Configure C&ompletion..." ), 0,
+ m_actionConfigureCompletion = new TDEAction( i18n( "Configure C&ompletion..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( configureCompletion() ),
actionCollection(), "configure_completion" );
m_actionConfigureCompletion->setToolTip( i18n( "Change the words and options for autocompletion." ) );
@@ -1270,139 +1270,139 @@ void KWView::setupActions()
// ------------------- Actions with a key binding and no GUI item
- new KAction( i18n( "Insert Non-Breaking Space" ), TQt::CTRL+TQt::Key_Space,
+ new TDEAction( i18n( "Insert Non-Breaking Space" ), TQt::CTRL+TQt::Key_Space,
TQT_TQOBJECT(this), TQT_SLOT( slotNonbreakingSpace() ), actionCollection(), "nonbreaking_space" );
- new KAction( i18n( "Insert Non-Breaking Hyphen" ), TQt::CTRL+TQt::SHIFT+TQt::Key_Minus,
+ new TDEAction( i18n( "Insert Non-Breaking Hyphen" ), TQt::CTRL+TQt::SHIFT+TQt::Key_Minus,
TQT_TQOBJECT(this), TQT_SLOT( slotNonbreakingHyphen() ), actionCollection(), "nonbreaking_hyphen" );
- new KAction( i18n( "Insert Soft Hyphen" ), TQt::CTRL+TQt::Key_Minus,
+ new TDEAction( i18n( "Insert Soft Hyphen" ), TQt::CTRL+TQt::Key_Minus,
TQT_TQOBJECT(this), TQT_SLOT( slotSoftHyphen() ), actionCollection(), "soft_hyphen" );
- new KAction( i18n( "Line Break" ), TQt::SHIFT+TQt::Key_Return,
+ new TDEAction( i18n( "Line Break" ), TQt::SHIFT+TQt::Key_Return,
TQT_TQOBJECT(this), TQT_SLOT( slotLineBreak() ), actionCollection(), "line_break" );
- new KAction( i18n( "Completion" ), KStdAccel::shortcut(KStdAccel::TextCompletion), TQT_TQOBJECT(this), TQT_SLOT( slotCompletion() ), actionCollection(), "completion" );
+ new TDEAction( i18n( "Completion" ), TDEStdAccel::shortcut(TDEStdAccel::TextCompletion), TQT_TQOBJECT(this), TQT_SLOT( slotCompletion() ), actionCollection(), "completion" );
- new KAction( i18n( "Increase Numbering Level" ), TQt::ALT+TQt::Key_Right,
+ new TDEAction( i18n( "Increase Numbering Level" ), TQt::ALT+TQt::Key_Right,
TQT_TQOBJECT(this), TQT_SLOT( slotIncreaseNumberingLevel() ), actionCollection(), "increase_numbering_level" );
- new KAction( i18n( "Decrease Numbering Level" ), TQt::ALT+TQt::Key_Left,
+ new TDEAction( i18n( "Decrease Numbering Level" ), TQt::ALT+TQt::Key_Left,
TQT_TQOBJECT(this), TQT_SLOT( slotDecreaseNumberingLevel() ), actionCollection(), "decrease_numbering_level" );
// --------
- m_actionEditCustomVars = new KAction( i18n( "Edit Variable..." ), 0,
+ m_actionEditCustomVars = new TDEAction( i18n( "Edit Variable..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( editCustomVariable() ),
actionCollection(), "edit_customvars" );
- m_actionApplyAutoFormat= new KAction( i18n( "Apply Autocorrection" ), 0,
+ m_actionApplyAutoFormat= new TDEAction( i18n( "Apply Autocorrection" ), 0,
TQT_TQOBJECT(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 KAction( i18n( "Create Style From Selection..." ), 0,
+ m_actionCreateStyleFromSelection = new TDEAction( i18n( "Create Style From Selection..." ), 0,
TQT_TQOBJECT(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 KAction( i18n( "&Footnote..." ), 0,
+ m_actionConfigureFootEndNote = new TDEAction( i18n( "&Footnote..." ), 0,
TQT_TQOBJECT(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 KAction( i18n("Edit Footnote"), 0,
+ m_actionEditFootEndNote= new TDEAction( i18n("Edit Footnote"), 0,
TQT_TQOBJECT(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 KAction( i18n("Change Footnote/Endnote Parameter"), 0,
+ m_actionChangeFootNoteType = new TDEAction( i18n("Change Footnote/Endnote Parameter"), 0,
TQT_TQOBJECT(this), TQT_SLOT( changeFootNoteType() ),
actionCollection(), "change_footendtype");
- m_actionSavePicture= new KAction( i18n("Save Picture As..."), 0,
+ m_actionSavePicture= new TDEAction( i18n("Save Picture As..."), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "Autospellcheck" ), 0,
+ m_actionAllowBgSpellCheck = new TDEToggleAction( i18n( "Autospellcheck" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( autoSpellCheck() ),
actionCollection(), "tool_auto_spellcheck" );
- m_actionGoToFootEndNote = new KAction( TQString() /*set dynamically*/, 0,
+ m_actionGoToFootEndNote = new TDEAction( TQString() /*set dynamically*/, 0,
TQT_TQOBJECT(this), TQT_SLOT( goToFootEndNote() ),
actionCollection(), "goto_footendnote" );
// Document Structure Area popup menu.
- m_actionDocStructEdit = new KAction( i18n( "Edit Text" ), 0,
+ m_actionDocStructEdit = new TDEAction( i18n( "Edit Text" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructEdit() ),
actionCollection(), "docstruct_edit" );
- m_actionDocStructSpeak = new KAction( i18n("Speak Text" ), 0,
+ m_actionDocStructSpeak = new TDEAction( i18n("Speak Text" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructSpeak() ),
actionCollection(), "docstruct_speak" );
- m_actionDocStructSelect = new KAction( i18n( "Show" ), 0,
+ m_actionDocStructSelect = new TDEAction( i18n( "Show" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructSelect() ),
actionCollection(), "docstruct_select" );
- m_actionDocStructDelete = new KAction( i18n( "Delete Frame" ), 0,
+ m_actionDocStructDelete = new TDEAction( i18n( "Delete Frame" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructDelete() ),
actionCollection(), "docstruct_delete" );
- m_actionDocStructProperties = new KAction( i18n( "Properties" ), 0,
+ m_actionDocStructProperties = new TDEAction( i18n( "Properties" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructProperties() ),
actionCollection(), "docstruct_properties" );
- m_actionAddBookmark= new KAction( i18n( "&Bookmark..." ), 0,
+ m_actionAddBookmark= new TDEAction( i18n( "&Bookmark..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( addBookmark() ),
actionCollection(), "add_bookmark" );
- m_actionSelectBookmark= new KAction( i18n( "Select &Bookmark..." ), 0,
+ m_actionSelectBookmark= new TDEAction( i18n( "Select &Bookmark..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( selectBookmark() ),
actionCollection(), "select_bookmark" );
- m_actionImportStyle= new KAction( i18n( "Import Styles..." ), 0,
+ m_actionImportStyle= new TDEAction( i18n( "Import Styles..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( importStyle() ),
actionCollection(), "import_style" );
- m_actionCreateFrameStyle = new KAction( i18n( "&Create Framestyle From Frame..." ), 0,
+ m_actionCreateFrameStyle = new TDEAction( i18n( "&Create Framestyle From Frame..." ), 0,
TQT_TQOBJECT(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 KToggleAction( i18n( "Type Anywhere Cursor" ), 0,
+ m_actionInsertDirectCursor = new TDEToggleAction( i18n( "Type Anywhere Cursor" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertDirectCursor() ),
actionCollection(), "direct_cursor" );
#endif
- m_actionConvertToTextBox = new KAction( i18n( "Convert to Text Box" ), 0,
+ m_actionConvertToTextBox = new TDEAction( i18n( "Convert to Text Box" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( convertToTextBox() ),
actionCollection(), "convert_to_text_box" );
- m_actionSpellIgnoreAll = new KAction( i18n( "Ignore All" ), 0,
+ m_actionSpellIgnoreAll = new TDEAction( i18n( "Ignore All" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotAddIgnoreAllWord() ),
actionCollection(), "ignore_all" );
- m_actionAddWordToPersonalDictionary=new KAction( i18n( "Add Word to Dictionary" ),0,
+ m_actionAddWordToPersonalDictionary=new TDEAction( i18n( "Add Word to Dictionary" ),0,
TQT_TQOBJECT(this), TQT_SLOT( addWordToDictionary() ),
actionCollection(), "add_word_to_dictionary" );
- m_actionEmbeddedStoreInternal=new KToggleAction( i18n( "Store Document Internally" ),0,
+ m_actionEmbeddedStoreInternal=new TDEToggleAction( i18n( "Store Document Internally" ),0,
TQT_TQOBJECT(this), TQT_SLOT( embeddedStoreInternal() ),
actionCollection(), "embedded_store_internal" );
- m_actionGoToDocumentStructure=new KAction( i18n( "Go to Document Structure" ), KShortcut("Alt+1"),
+ m_actionGoToDocumentStructure=new TDEAction( i18n( "Go to Document Structure" ), TDEShortcut("Alt+1"),
TQT_TQOBJECT(this), TQT_SLOT( goToDocumentStructure() ),
actionCollection(), "goto_document_structure" );
- m_actionGoToDocument=new KAction( i18n( "Go to Document" ), KShortcut("Alt+2"),
+ m_actionGoToDocument=new TDEAction( i18n( "Go to Document" ), TDEShortcut("Alt+2"),
TQT_TQOBJECT(this), TQT_SLOT( goToDocument() ),
actionCollection(), "goto_document" );
// For RMB inside a cell, see KWFrameView::showPopup
// This isn't a dynamic list; it's only plugged/unplugged depending on the context.
// If you change the contents of that list, check ~KWView.
- m_tableActionList.append( new KActionSeparator(actionCollection()) );
+ m_tableActionList.append( new TDEActionSeparator(actionCollection()) );
m_tableActionList.append( m_actionTableInsertRow );
m_tableActionList.append( m_actionTableDelRow );
m_tableActionList.append( m_actionTableInsertCol );
@@ -1420,14 +1420,14 @@ void KWView::updateGridButton()
m_actionViewSnapToGrid->setChecked ( m_doc->snapToGrid() );
}
-void KWView::loadexpressionActions( KActionMenu * parentMenu)
+void KWView::loadexpressionActions( TDEActionMenu * parentMenu)
{
- KActionPtrList lst = actionCollection()->actions("expression-action");
- TQValueList<KAction *> actions = lst;
- TQValueList<KAction *>::ConstIterator it = lst.begin();
- TQValueList<KAction *>::ConstIterator end = lst.end();
+ TDEActionPtrList lst = actionCollection()->actions("expression-action");
+ TQValueList<TDEAction *> actions = lst;
+ TQValueList<TDEAction *>::ConstIterator it = lst.begin();
+ TQValueList<TDEAction *>::ConstIterator end = lst.end();
// Delete all actions but keep their shortcuts in mind
- TQMap<TQString, KShortcut> personalShortCuts;
+ TQMap<TQString, TDEShortcut> personalShortCuts;
for (; it != end; ++it )
{
personalShortCuts.insert( (*it)->text(), (*it)->shortcut() );
@@ -1455,7 +1455,7 @@ void KWView::loadexpressionActions( KActionMenu * parentMenu)
createExpressionActions( parentMenu,*it, i,(nbFile<(int)files.count()-1), personalShortCuts );
}
-void KWView::createExpressionActions( KActionMenu * parentMenu,const TQString& filename,int &i, bool insertSepar, const TQMap<TQString, KShortcut>& personalShortCut )
+void KWView::createExpressionActions( TDEActionMenu * parentMenu,const TQString& filename,int &i, bool insertSepar, const TQMap<TQString, TDEShortcut>& personalShortCut )
{
TQFile file( filename );
if ( !file.exists() || !file.open( IO_ReadOnly ) )
@@ -1476,7 +1476,7 @@ void KWView::createExpressionActions( KActionMenu * parentMenu,const TQString& f
{
expressionExist =true;
TQString group = i18n( e.namedItem( "TypeName" ).toElement().text().utf8() );
- KActionMenu * subMenu = new KActionMenu( group, actionCollection() );
+ TDEActionMenu * subMenu = new TDEActionMenu( group, actionCollection() );
parentMenu->insert( subMenu );
TQDomNode n2 = e.firstChild();
@@ -1489,7 +1489,7 @@ void KWView::createExpressionActions( KActionMenu * parentMenu,const TQString& f
if ( e2.tagName() == "Expression" )
{
TQString text = i18n( e2.namedItem( "Text" ).toElement().text().utf8() );
- KAction * act = new KAction( text, 0, TQT_TQOBJECT(this), TQT_SLOT( insertExpression() ),
+ TDEAction * act = new TDEAction( text, 0, TQT_TQOBJECT(this), TQT_SLOT( insertExpression() ),
actionCollection(),
TQString("expression-action_%1").arg(i).latin1() );
if ( personalShortCut.contains(text) )
@@ -1512,20 +1512,20 @@ void KWView::insertExpression()
KWTextFrameSetEdit * edit = currentTextEdit();
if ( edit )
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
edit->insertExpression(act->text());
}
}
void KWView::addVariableActions( int type, const TQStringList & texts,
- KActionMenu * parentMenu, const TQString & menuText )
+ TDEActionMenu * parentMenu, const TQString & menuText )
{
// Single items go directly into parentMenu.
// For multiple items we create a submenu.
if ( texts.count() > 1 && !menuText.isEmpty() )
{
- KActionMenu * subMenu = new KActionMenu( menuText, actionCollection() );
+ TDEActionMenu * subMenu = new TDEActionMenu( menuText, actionCollection() );
parentMenu->insert( subMenu );
parentMenu = subMenu;
}
@@ -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 );
- KAction * act = new KAction( (*it), 0, TQT_TQOBJECT(this), TQT_SLOT( insertVariable() ),
+ TDEAction * act = new TDEAction( (*it), 0, TQT_TQOBJECT(this), TQT_SLOT( insertVariable() ),
actionCollection(), actionName );
// Mainly for KEditToolbar
act->setToolTip( i18n( "Insert variable \"%1\" into the text" ).arg( *it ) );
@@ -1551,11 +1551,11 @@ void KWView::addVariableActions( int type, const TQStringList & texts,
void KWView::refreshCustomMenu()
{
- KActionPtrList lst2 = actionCollection()->actions("custom-variable-action");
- TQValueList<KAction *> actions = lst2;
- TQValueList<KAction *>::ConstIterator it2 = lst2.begin();
- TQValueList<KAction *>::ConstIterator end = lst2.end();
- TQMap<TQString, KShortcut> shortCuts;
+ TDEActionPtrList lst2 = actionCollection()->actions("custom-variable-action");
+ TQValueList<TDEAction *> actions = lst2;
+ TQValueList<TDEAction *>::ConstIterator it2 = lst2.begin();
+ TQValueList<TDEAction *>::ConstIterator end = lst2.end();
+ TQMap<TQString, TDEShortcut> shortCuts;
for (; it2 != end; ++it2 )
{
@@ -1564,13 +1564,13 @@ void KWView::refreshCustomMenu()
}
delete m_actionInsertCustom;
- m_actionInsertCustom = new KActionMenu( i18n( "&Custom" ),
+ m_actionInsertCustom = new TDEActionMenu( i18n( "&Custom" ),
actionCollection(), "insert_custom" );
actionInsertVariable->insert(m_actionInsertCustom, 0);
m_actionInsertCustom->popupMenu()->clear();
TQPtrListIterator<KoVariable> it( m_doc->variableCollection()->getVariables() );
- KAction * act=0;
+ TDEAction * act=0;
TQStringList lst;
TQString varName;
int i = 0;
@@ -1584,7 +1584,7 @@ void KWView::refreshCustomMenu()
{
lst.append( varName );
TQCString name = TQString("custom-action_%1").arg(i).latin1();
- act = new KAction( varName, shortCuts[varName], TQT_TQOBJECT(this), TQT_SLOT( insertCustomVariable() ),actionCollection(), name );
+ act = new TDEAction( varName, shortCuts[varName], TQT_TQOBJECT(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 KAction( i18n("New..."), 0, TQT_TQOBJECT(this), TQT_SLOT( insertNewCustomVariable() ), actionCollection(),TQString("custom-action_%1").arg(i).latin1());
+ act = new TDEAction( i18n("New..."), 0, TQT_TQOBJECT(this), TQT_SLOT( insertNewCustomVariable() ), actionCollection(),TQString("custom-action_%1").arg(i).latin1());
act->setGroup( "custom-variable-action" );
@@ -1611,7 +1611,7 @@ void KWView::insertCustomVariable()
KWTextFrameSetEdit * edit = currentTextEdit();
if ( edit )
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
edit->insertCustomVariable(act->text());
}
}
@@ -2046,7 +2046,7 @@ void KWView::showCounter( KoParagCounter &c )
TQString styleStr("counterstyle_");
styleStr += TQString::number( c.style() );
//kdDebug() << "KWView::showCounter styleStr=" << styleStr << endl;
- KToggleAction* act = static_cast<KToggleAction *>( actionCollection()->action( styleStr.latin1() ) );
+ TDEToggleAction* act = static_cast<TDEToggleAction *>( actionCollection()->action( styleStr.latin1() ) );
Q_ASSERT( act );
if ( act )
act->setChecked( true );
@@ -2085,11 +2085,11 @@ void KWView::updateBorderButtons( const KoBorder& left, const KoBorder& right,
void KWView::updateReadWrite( bool readwrite )
{
// First disable or enable everything
- TQValueList<KAction*> actions = actionCollection()->actions();
+ TQValueList<TDEAction*> actions = actionCollection()->actions();
// Also grab actions from the document
actions += m_doc->actionCollection()->actions();
- TQValueList<KAction*>::ConstIterator aIt = actions.begin();
- TQValueList<KAction*>::ConstIterator aEnd = actions.end();
+ TQValueList<TDEAction*>::ConstIterator aIt = actions.begin();
+ TQValueList<TDEAction*>::ConstIterator aEnd = actions.end();
for (; aIt != aEnd; ++aIt )
(*aIt)->setEnabled( readwrite );
@@ -2117,7 +2117,7 @@ void KWView::updateReadWrite( bool readwrite )
m_actionFormatBullet->setEnabled(true);
m_actionFormatNumber->setEnabled( true);
m_actionSelectBookmark->setEnabled( true );
- KAction* act = actionCollection()->action("edit_sldatabase");
+ TDEAction* act = actionCollection()->action("edit_sldatabase");
if (act)
act->setEnabled( true );
@@ -2182,7 +2182,7 @@ void KWView::showStyle( const TQString & styleName )
// Select style in combo
m_actionFormatStyle->setCurrentItem( pos );
// Check the appropriate action among the m_actionFormatStyleMenu actions
- KToggleAction* act = dynamic_cast<KToggleAction *>(actionCollection()->action(style->name().utf8().data()));
+ TDEToggleAction* act = dynamic_cast<TDEToggleAction *>(actionCollection()->action(style->name().utf8().data()));
if ( act )
act->setChecked( true );
}
@@ -2199,22 +2199,22 @@ void KWView::updateStyleList()
// Generate list of styles
const TQStringList lst = m_doc->styleCollection()->displayNameList();
const int pos = lst.findIndex( currentStyle );
- // Fill the combo - using a KSelectAction
+ // Fill the combo - using a TDESelectAction
m_actionFormatStyle->setItems( lst );
if ( pos > -1 )
m_actionFormatStyle->setCurrentItem( pos );
- // Fill the menu - using a KActionMenu, so that it's possible to bind keys
+ // Fill the menu - using a TDEActionMenu, so that it's possible to bind keys
// to individual actions
TQStringList lstWithAccels;
// Generate unique accelerators for the menu items
- KAccelGen::generate( lst, lstWithAccels );
- TQMap<TQString, KShortcut> shortCuts;
+ TDEAccelGen::generate( lst, lstWithAccels );
+ TQMap<TQString, TDEShortcut> shortCuts;
- KActionPtrList lst2 = actionCollection()->actions("styleList");
- TQValueList<KAction *> actions = lst2;
- TQValueList<KAction *>::ConstIterator it = lst2.begin();
- const TQValueList<KAction *>::ConstIterator end = lst2.end();
+ TDEActionPtrList lst2 = actionCollection()->actions("styleList");
+ TQValueList<TDEAction *> actions = lst2;
+ TQValueList<TDEAction *>::ConstIterator it = lst2.begin();
+ const TQValueList<TDEAction *>::ConstIterator end = lst2.end();
for (; it != end; ++it )
{
shortCuts.insert( TQString::fromUtf8( (*it)->name() ), (*it)->shortcut() );
@@ -2229,7 +2229,7 @@ void KWView::updateStyleList()
if ( style )
{
TQString name = PARAGSTYLE_ACTION_PREFIX + style->name();
- KToggleAction* act = new KToggleAction( (*it),
+ TDEToggleAction* act = new TDEToggleAction( (*it),
shortCuts[name], TQT_TQOBJECT(this), TQT_SLOT( slotStyleSelected() ),
actionCollection(), name.utf8() );
act->setGroup( "styleList" );
@@ -2267,18 +2267,18 @@ void KWView::updateFrameStyleList()
if ( pos > -1 )
m_actionFrameStyle->setCurrentItem( pos );
- // Fill the menu - using a KActionMenu, so that it's possible to bind keys
+ // Fill the menu - using a TDEActionMenu, so that it's possible to bind keys
// to individual actions
TQStringList lstWithAccels;
// Generate unique accelerators for the menu items
- KAccelGen::generate( lst, lstWithAccels );
- TQMap<TQString, KShortcut> shortCuts; // style (internal) name -> shortcut
+ TDEAccelGen::generate( lst, lstWithAccels );
+ TQMap<TQString, TDEShortcut> shortCuts; // style (internal) name -> shortcut
- KActionPtrList lst2 = actionCollection()->actions("frameStyleList");
- TQValueList<KAction *> actions = lst2;
- TQValueList<KAction *>::ConstIterator it = lst2.begin();
- TQValueList<KAction *>::ConstIterator end = lst2.end();
+ TDEActionPtrList lst2 = actionCollection()->actions("frameStyleList");
+ TQValueList<TDEAction *> actions = lst2;
+ TQValueList<TDEAction *>::ConstIterator it = lst2.begin();
+ TQValueList<TDEAction *>::ConstIterator end = lst2.end();
for (; it != end; ++it )
{
shortCuts.insert( TQString::fromUtf8( (*it)->name() ), (*it)->shortcut() );
@@ -2294,7 +2294,7 @@ void KWView::updateFrameStyleList()
if ( style )
{
TQString name = FRAMESTYLE_ACTION_PREFIX + style->name();
- KToggleAction* act = new KToggleAction( (*it),
+ TDEToggleAction* act = new TDEToggleAction( (*it),
shortCuts[name], // KDE4: use value()
TQT_TQOBJECT(this), TQT_SLOT( slotFrameStyleSelected() ),
actionCollection(), name.utf8() /*KDE4: remove conversion*/ );
@@ -2320,16 +2320,16 @@ void KWView::updateTableStyleList()
if ( pos > -1 )
m_actionTableStyle->setCurrentItem( pos );
- // Fill the menu - using a KActionMenu, so that it's possible to bind keys
+ // Fill the menu - using a TDEActionMenu, so that it's possible to bind keys
// to individual actions
TQStringList lstWithAccels;
// Generate unique accelerators for the menu items
- KAccelGen::generate( lst, lstWithAccels );
- TQMap<TQString, KShortcut> shortCuts;
+ TDEAccelGen::generate( lst, lstWithAccels );
+ TQMap<TQString, TDEShortcut> shortCuts;
- TQValueList<KAction *> actions = actionCollection()->actions("tableStyleList");
- TQValueList<KAction *>::ConstIterator it = actions.begin();
- const TQValueList<KAction *>::ConstIterator end = actions.end();
+ TQValueList<TDEAction *> actions = actionCollection()->actions("tableStyleList");
+ TQValueList<TDEAction *>::ConstIterator it = actions.begin();
+ const TQValueList<TDEAction *>::ConstIterator end = actions.end();
for (; it != end; ++it )
{
shortCuts.insert( TQString::fromUtf8( (*it)->name() ), (*it)->shortcut() );
@@ -2345,7 +2345,7 @@ void KWView::updateTableStyleList()
if ( style )
{
TQString name = TABLESTYLE_ACTION_PREFIX + style->name();
- KToggleAction* act = new KToggleAction( (*it),
+ TDEToggleAction* act = new TDEToggleAction( (*it),
shortCuts[name], TQT_TQOBJECT(this), TQT_SLOT( slotTableStyleSelected() ),
actionCollection(), name.utf8() );
act->setExclusiveGroup( "tableStyleList" );
@@ -3580,7 +3580,7 @@ void KWView::insertVariable()
KWTextFrameSetEdit * edit = currentTextEdit();
if ( edit )
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
VariableDefMap::Iterator it = m_variableDefMap.find( act );
if ( it == m_variableDefMap.end() )
kdWarning() << "Action not found in m_variableDefMap." << endl;
@@ -3627,7 +3627,7 @@ void KWView::insertFootNote()
void KWView::updateTocActionText(bool hasToc)
{
- KActionCollection * coll = actionCollection();
+ TDEActionCollection * coll = actionCollection();
TQString name= hasToc ? i18n("Update Table of &Contents"):i18n("Table of &Contents");
coll->action("insert_contents")->setText(name);
}
@@ -4592,7 +4592,7 @@ void KWView::frameStyleSelected( KWFrameStyle *sty )
const int pos = m_doc->frameStyleCollection()->indexOf( sty );
Q_ASSERT( pos >= 0 );
m_actionFrameStyle->setCurrentItem( pos );
- KToggleAction* act = dynamic_cast<KToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
+ TDEToggleAction* act = dynamic_cast<TDEToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
if ( act )
act->setChecked( true );
}
@@ -4661,7 +4661,7 @@ void KWView::tableStyleSelected( KWTableStyle *sty )
// Adjust GUI
int pos = m_doc->tableStyleCollection()->indexOf( sty );
m_actionTableStyle->setCurrentItem( pos );
- KToggleAction* act = dynamic_cast<KToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
+ TDEToggleAction* act = dynamic_cast<TDEToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
if ( act )
act->setChecked( true );
}
@@ -7436,9 +7436,9 @@ void KWView::deleteFrameSet( KWFrameSet * frameset)
}
}
-TQPtrList<KAction> KWView::listOfResultOfCheckWord( const TQString &word )
+TQPtrList<TDEAction> KWView::listOfResultOfCheckWord( const TQString &word )
{
- TQPtrList<KAction> listAction;
+ TQPtrList<TDEAction> listAction;
DefaultDictionary *dict = m_broker->defaultDictionary();
const TQStringList lst = dict->suggest( word );
if ( !lst.contains( word ) )
@@ -7449,7 +7449,7 @@ TQPtrList<KAction> KWView::listOfResultOfCheckWord( const TQString &word )
{
if ( !(*it).isEmpty() ) // in case of removed subtypes or placeholders
{
- KAction * act = new KAction( *it );
+ TDEAction * act = new TDEAction( *it );
connect( act, TQT_SIGNAL(activated()), TQT_TQOBJECT(this), TQT_SLOT(slotCorrectWord()) );
listAction.append( act );
}
@@ -7460,7 +7460,7 @@ TQPtrList<KAction> KWView::listOfResultOfCheckWord( const TQString &word )
void KWView::slotCorrectWord()
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
KWTextFrameSetEdit* edit = currentTextEdit();
if ( edit )
{