summaryrefslogtreecommitdiffstats
path: root/knotes/knoteedit.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:12 -0600
commitfd5d099065a748cac49e20a13481f85666c53c71 (patch)
treea0f1672cd88eb0e69b9ddc2ed9b08ecd98538bd3 /knotes/knoteedit.cpp
parentb440a9c608596cd88efdb3bfa4661c5e37efbe4b (diff)
downloadtdepim-fd5d099065a748cac49e20a13481f85666c53c71.tar.gz
tdepim-fd5d099065a748cac49e20a13481f85666c53c71.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'knotes/knoteedit.cpp')
-rw-r--r--knotes/knoteedit.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/knotes/knoteedit.cpp b/knotes/knoteedit.cpp
index 2844c29f3..62fe2a4be 100644
--- a/knotes/knoteedit.cpp
+++ b/knotes/knoteedit.cpp
@@ -36,7 +36,7 @@ static const short SEP = 5;
static const short ICON_SIZE = 10;
-KNoteEdit::KNoteEdit( KActionCollection *actions, TQWidget *parent, const char *name )
+KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char *name )
: KTextEdit( parent, name ), m_note( 0 )
{
setAcceptDrops( true );
@@ -64,17 +64,17 @@ KNoteEdit::KNoteEdit( KActionCollection *actions, TQWidget *parent, const char *
connect( this, TQT_SIGNAL(copyAvailable(bool)), TQT_TQOBJECT(this), TQT_SLOT( slotCutEnabled( bool ) ) );
connect( this, TQT_SIGNAL(copyAvailable(bool)), m_copy, TQT_SLOT(setEnabled(bool)) );
- new KAction( KStdGuiItem::clear(), 0, TQT_TQOBJECT(this), TQT_SLOT(clear()), actions, "edit_clear" );
+ new TDEAction( KStdGuiItem::clear(), 0, TQT_TQOBJECT(this), TQT_SLOT(clear()), actions, "edit_clear" );
KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT(selectAll()), actions );
// create the actions modifying the text format
- m_textBold = new KToggleAction( i18n("Bold"), "text_bold", CTRL + Key_B, 0, 0,
+ m_textBold = new TDEToggleAction( i18n("Bold"), "text_bold", CTRL + Key_B, 0, 0,
actions, "format_bold" );
- m_textItalic = new KToggleAction( i18n("Italic"), "text_italic", CTRL + Key_I, 0, 0,
+ m_textItalic = new TDEToggleAction( i18n("Italic"), "text_italic", CTRL + Key_I, 0, 0,
actions, "format_italic" );
- m_textUnderline = new KToggleAction( i18n("Underline"), "text_under", CTRL + Key_U, 0, 0,
+ m_textUnderline = new TDEToggleAction( i18n("Underline"), "text_under", CTRL + Key_U, 0, 0,
actions, "format_underline" );
- m_textStrikeOut = new KToggleAction( i18n("Strike Out"), "text_strike", CTRL + Key_S, 0, 0,
+ m_textStrikeOut = new TDEToggleAction( i18n("Strike Out"), "text_strike", CTRL + Key_S, 0, 0,
actions, "format_strikeout" );
connect( m_textBold, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setBold(bool)) );
@@ -82,17 +82,17 @@ KNoteEdit::KNoteEdit( KActionCollection *actions, TQWidget *parent, const char *
connect( m_textUnderline, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setUnderline(bool)) );
connect( m_textStrikeOut, TQT_SIGNAL(toggled(bool)), TQT_SLOT(textStrikeOut(bool)) );
- m_textAlignLeft = new KToggleAction( i18n("Align Left"), "text_left", ALT + Key_L,
+ m_textAlignLeft = new TDEToggleAction( i18n("Align Left"), "text_left", ALT + Key_L,
TQT_TQOBJECT(this), TQT_SLOT(textAlignLeft()),
actions, "format_alignleft" );
m_textAlignLeft->setChecked( true ); // just a dummy, will be updated later
- m_textAlignCenter = new KToggleAction( i18n("Align Center"), "text_center", ALT + Key_C,
+ m_textAlignCenter = new TDEToggleAction( i18n("Align Center"), "text_center", ALT + Key_C,
TQT_TQOBJECT(this), TQT_SLOT(textAlignCenter()),
actions, "format_aligncenter" );
- m_textAlignRight = new KToggleAction( i18n("Align Right"), "text_right", ALT + Key_R,
+ m_textAlignRight = new TDEToggleAction( i18n("Align Right"), "text_right", ALT + Key_R,
TQT_TQOBJECT(this), TQT_SLOT(textAlignRight()),
actions, "format_alignright" );
- m_textAlignBlock = new KToggleAction( i18n("Align Block"), "text_block", ALT + Key_B,
+ m_textAlignBlock = new TDEToggleAction( i18n("Align Block"), "text_block", ALT + Key_B,
TQT_TQOBJECT(this), TQT_SLOT(textAlignBlock()),
actions, "format_alignblock" );
@@ -101,16 +101,16 @@ KNoteEdit::KNoteEdit( KActionCollection *actions, TQWidget *parent, const char *
m_textAlignRight->setExclusiveGroup( "align" );
m_textAlignBlock->setExclusiveGroup( "align" );
- m_textList = new KToggleAction( i18n("List"), "enum_list", 0,
+ m_textList = new TDEToggleAction( i18n("List"), "enum_list", 0,
TQT_TQOBJECT(this), TQT_SLOT(textList()),
actions, "format_list" );
m_textList->setExclusiveGroup( "style" );
- m_textSuper = new KToggleAction( i18n("Superscript"), "text_super", 0,
+ m_textSuper = new TDEToggleAction( i18n("Superscript"), "text_super", 0,
TQT_TQOBJECT(this), TQT_SLOT(textSuperScript()),
actions, "format_super" );
- m_textSub = new KToggleAction( i18n("Subscript"), "text_sub", 0,
+ m_textSub = new TDEToggleAction( i18n("Subscript"), "text_sub", 0,
TQT_TQOBJECT(this), TQT_SLOT(textSubScript()),
actions, "format_sub" );
@@ -119,25 +119,25 @@ KNoteEdit::KNoteEdit( KActionCollection *actions, TQWidget *parent, const char *
// There is no easy possibility to implement text indenting with TQTextEdit
//
-// m_textIncreaseIndent = new KAction( i18n("Increase Indent"), "format_increaseindent", 0,
+// m_textIncreaseIndent = new TDEAction( i18n("Increase Indent"), "format_increaseindent", 0,
// TQT_TQOBJECT(this), TQT_SLOT(textIncreaseIndent()),
// actions, "format_increaseindent" );
//
-// m_textDecreaseIndent = new KAction( i18n("Decrease Indent"), "format_decreaseindent", 0,
+// m_textDecreaseIndent = new TDEAction( i18n("Decrease Indent"), "format_decreaseindent", 0,
// TQT_TQOBJECT(this), TQT_SLOT(textDecreaseIndent()),
// actions, "format_decreaseindent" );
TQPixmap pix( ICON_SIZE, ICON_SIZE );
pix.fill( black ); // just a dummy, gets updated before widget is shown
- m_textColor = new KAction( i18n("Text Color..."), pix, 0, TQT_TQOBJECT(this),
+ m_textColor = new TDEAction( i18n("Text Color..."), pix, 0, TQT_TQOBJECT(this),
TQT_SLOT(textColor()), actions, "format_color" );
- m_textFont = new KFontAction( i18n("Text Font"), "text", KKey(),
+ m_textFont = new TDEFontAction( i18n("Text Font"), "text", KKey(),
actions, "format_font" );
connect( m_textFont, TQT_SIGNAL(activated( const TQString & )),
TQT_TQOBJECT(this), TQT_SLOT(setFamily( const TQString & )) );
- m_textSize = new KFontSizeAction( i18n("Text Size"), KKey(),
+ m_textSize = new TDEFontSizeAction( i18n("Text Size"), KKey(),
actions, "format_size" );
connect( m_textSize, TQT_SIGNAL(fontSizeChanged( int )),
TQT_TQOBJECT(this), TQT_SLOT(setPointSize( int )) );