diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:12 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:12 -0600 |
commit | fd5d099065a748cac49e20a13481f85666c53c71 (patch) | |
tree | a0f1672cd88eb0e69b9ddc2ed9b08ecd98538bd3 /libtdepim/komposer/plugins/default | |
parent | b440a9c608596cd88efdb3bfa4661c5e37efbe4b (diff) | |
download | tdepim-fd5d099065a748cac49e20a13481f85666c53c71.tar.gz tdepim-fd5d099065a748cac49e20a13481f85666c53c71.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'libtdepim/komposer/plugins/default')
-rw-r--r-- | libtdepim/komposer/plugins/default/defaulteditor.cpp | 32 | ||||
-rw-r--r-- | libtdepim/komposer/plugins/default/defaulteditor.h | 28 |
2 files changed, 30 insertions, 30 deletions
diff --git a/libtdepim/komposer/plugins/default/defaulteditor.cpp b/libtdepim/komposer/plugins/default/defaulteditor.cpp index 426e4c01b..88c4fb1ea 100644 --- a/libtdepim/komposer/plugins/default/defaulteditor.cpp +++ b/libtdepim/komposer/plugins/default/defaulteditor.cpp @@ -93,7 +93,7 @@ DefaultEditor::changeSignature( const TQString &sig ) } void -DefaultEditor::createActions( KActionCollection *ac ) +DefaultEditor::createActions( TDEActionCollection *ac ) { // // File Actions @@ -106,22 +106,22 @@ DefaultEditor::createActions( KActionCollection *ac ) // // Edit Actions // - KAction *actionUndo = KStdAction::undo( m_textEdit, TQT_SLOT(undo()), ac ); + TDEAction *actionUndo = KStdAction::undo( m_textEdit, TQT_SLOT(undo()), ac ); actionUndo->setEnabled( false ); connect( m_textEdit, TQT_SIGNAL(undoAvailable(bool)), actionUndo, TQT_SLOT(setEnabled(bool)) ); - KAction *actionRedo = KStdAction::redo( m_textEdit, TQT_SLOT(redo()), ac ); + TDEAction *actionRedo = KStdAction::redo( m_textEdit, TQT_SLOT(redo()), ac ); actionRedo->setEnabled( false ); connect( m_textEdit, TQT_SIGNAL(redoAvailable(bool)), actionRedo, TQT_SLOT(setEnabled(bool)) ); - KAction *action_cut = KStdAction::cut( m_textEdit, TQT_SLOT(cut()), ac ); + TDEAction *action_cut = KStdAction::cut( m_textEdit, TQT_SLOT(cut()), ac ); action_cut->setEnabled( false ); connect( m_textEdit, TQT_SIGNAL(copyAvailable(bool)), action_cut, TQT_SLOT(setEnabled(bool)) ); - KAction *action_copy = KStdAction::copy( m_textEdit, TQT_SLOT(copy()), ac ); + TDEAction *action_copy = KStdAction::copy( m_textEdit, TQT_SLOT(copy()), ac ); action_copy->setEnabled( false ); connect( m_textEdit, TQT_SIGNAL(copyAvailable(bool)), action_copy, TQT_SLOT(setEnabled(bool)) ); @@ -129,7 +129,7 @@ DefaultEditor::createActions( KActionCollection *ac ) (void) KStdAction::print( this, TQT_SLOT(print()), ac ); (void) KStdAction::paste( m_textEdit, TQT_SLOT(paste()), ac ); - (void) new KAction( i18n( "C&lear" ), 0, + (void) new TDEAction( i18n( "C&lear" ), 0, m_textEdit, TQT_SLOT(removeSelectedText()), ac, "edit_clear" ); @@ -144,37 +144,37 @@ DefaultEditor::createActions( KActionCollection *ac ) // // Character Formatting // - m_actionBold = new KToggleAction( i18n("&Bold"), "text_bold", CTRL+Key_B, + m_actionBold = new TDEToggleAction( i18n("&Bold"), "text_bold", CTRL+Key_B, ac, "format_bold" ); connect( m_actionBold, TQT_SIGNAL(toggled(bool)), m_textEdit, TQT_SLOT(setBold(bool)) ); - m_actionItalic = new KToggleAction( i18n("&Italic"), "text_italic", CTRL+Key_I, + m_actionItalic = new TDEToggleAction( i18n("&Italic"), "text_italic", CTRL+Key_I, ac, "format_italic" ); connect( m_actionItalic, TQT_SIGNAL(toggled(bool)), m_textEdit, TQT_SLOT(setItalic(bool) )); - m_actionUnderline = new KToggleAction( i18n("&Underline"), "text_under", CTRL+Key_U, + m_actionUnderline = new TDEToggleAction( i18n("&Underline"), "text_under", CTRL+Key_U, ac, "format_underline" ); connect( m_actionUnderline, TQT_SIGNAL(toggled(bool)), m_textEdit, TQT_SLOT(setUnderline(bool)) ); - (void) new KAction( i18n("Text &Color..."), "colorpicker", 0, + (void) new TDEAction( i18n("Text &Color..."), "colorpicker", 0, this, TQT_SLOT(formatColor()), ac, "format_color" ); // // Font // - m_actionFont = new KFontAction( i18n("&Font"), 0, + m_actionFont = new TDEFontAction( i18n("&Font"), 0, ac, "format_font" ); connect( m_actionFont, TQT_SIGNAL(activated(const TQString &)), m_textEdit, TQT_SLOT(setFamily(const TQString &)) ); - m_actionFontSize = new KFontSizeAction( i18n("Font &Size"), 0, + m_actionFontSize = new TDEFontSizeAction( i18n("Font &Size"), 0, ac, "format_font_size" ); connect( m_actionFontSize, TQT_SIGNAL(fontSizeChanged(int)), m_textEdit, TQT_SLOT(setPointSize(int)) ); @@ -182,22 +182,22 @@ DefaultEditor::createActions( KActionCollection *ac ) // // Alignment // - m_actionAlignLeft = new KToggleAction( i18n("Align &Left"), "text_left", 0, + m_actionAlignLeft = new TDEToggleAction( i18n("Align &Left"), "text_left", 0, ac, "format_align_left" ); connect( m_actionAlignLeft, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setAlignLeft(bool)) ); - m_actionAlignCenter = new KToggleAction( i18n("Align &Center"), "text_center", 0, + m_actionAlignCenter = new TDEToggleAction( i18n("Align &Center"), "text_center", 0, ac, "format_align_center" ); connect( m_actionAlignCenter, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setAlignCenter(bool)) ); - m_actionAlignRight = new KToggleAction( i18n("Align &Right"), "text_right", 0, + m_actionAlignRight = new TDEToggleAction( i18n("Align &Right"), "text_right", 0, ac, "format_align_right" ); connect( m_actionAlignRight, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setAlignRight(bool)) ); - m_actionAlignJustify = new KToggleAction( i18n("&Justify"), "text_block", 0, + m_actionAlignJustify = new TDEToggleAction( i18n("&Justify"), "text_block", 0, ac, "format_align_justify" ); connect( m_actionAlignJustify, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setAlignJustify(bool)) ); diff --git a/libtdepim/komposer/plugins/default/defaulteditor.h b/libtdepim/komposer/plugins/default/defaulteditor.h index d73953a67..5763b5542 100644 --- a/libtdepim/komposer/plugins/default/defaulteditor.h +++ b/libtdepim/komposer/plugins/default/defaulteditor.h @@ -25,10 +25,10 @@ #include "editor.h" class TQTextEdit; -class KFontAction; -class KFontSizeAction; -class KToggleAction; -class KActionCollection; +class TDEFontAction; +class TDEFontSizeAction; +class TDEToggleAction; +class TDEActionCollection; class DefaultEditor : public Komposer::Editor @@ -91,7 +91,7 @@ protected slots: /** * Creates the part's actions in the part's action collection. */ - void createActions( KActionCollection *ac ); + void createActions( TDEActionCollection *ac ); void updateActions(); @@ -102,17 +102,17 @@ protected slots: private: TQTextEdit *m_textEdit; - KToggleAction *m_actionBold; - KToggleAction *m_actionItalic; - KToggleAction *m_actionUnderline; + TDEToggleAction *m_actionBold; + TDEToggleAction *m_actionItalic; + TDEToggleAction *m_actionUnderline; - KFontAction *m_actionFont; - KFontSizeAction *m_actionFontSize; + TDEFontAction *m_actionFont; + TDEFontSizeAction *m_actionFontSize; - KToggleAction *m_actionAlignLeft; - KToggleAction *m_actionAlignRight; - KToggleAction *m_actionAlignCenter; - KToggleAction *m_actionAlignJustify; + TDEToggleAction *m_actionAlignLeft; + TDEToggleAction *m_actionAlignRight; + TDEToggleAction *m_actionAlignCenter; + TDEToggleAction *m_actionAlignJustify; }; #endif |