summaryrefslogtreecommitdiffstats
path: root/libtdepim/komposer/plugins/default
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/komposer/plugins/default')
-rw-r--r--libtdepim/komposer/plugins/default/defaulteditor.cpp96
-rw-r--r--libtdepim/komposer/plugins/default/defaulteditor.desktop91
-rw-r--r--libtdepim/komposer/plugins/default/defaulteditor.h2
3 files changed, 51 insertions, 138 deletions
diff --git a/libtdepim/komposer/plugins/default/defaulteditor.cpp b/libtdepim/komposer/plugins/default/defaulteditor.cpp
index fe059b9e..1aba9705 100644
--- a/libtdepim/komposer/plugins/default/defaulteditor.cpp
+++ b/libtdepim/komposer/plugins/default/defaulteditor.cpp
@@ -98,71 +98,71 @@ DefaultEditor::createActions( TDEActionCollection *ac )
//
// File Actions
//
- (void) KStdAction::open( this, TQT_SLOT(open()), ac );
- (void) KStdAction::openRecent( this, TQT_SLOT(openURL(const KURL &)), ac );
- (void) KStdAction::save( this, TQT_SLOT(save()), ac );
- (void) KStdAction::saveAs( this, TQT_SLOT(saveAs()), ac );
+ (void) KStdAction::open( this, TQ_SLOT(open()), ac );
+ (void) KStdAction::openRecent( this, TQ_SLOT(openURL(const KURL &)), ac );
+ (void) KStdAction::save( this, TQ_SLOT(save()), ac );
+ (void) KStdAction::saveAs( this, TQ_SLOT(saveAs()), ac );
//
// Edit Actions
//
- TDEAction *actionUndo = KStdAction::undo( m_textEdit, TQT_SLOT(undo()), ac );
+ TDEAction *actionUndo = KStdAction::undo( m_textEdit, TQ_SLOT(undo()), ac );
actionUndo->setEnabled( false );
- connect( m_textEdit, TQT_SIGNAL(undoAvailable(bool)),
- actionUndo, TQT_SLOT(setEnabled(bool)) );
+ connect( m_textEdit, TQ_SIGNAL(undoAvailable(bool)),
+ actionUndo, TQ_SLOT(setEnabled(bool)) );
- TDEAction *actionRedo = KStdAction::redo( m_textEdit, TQT_SLOT(redo()), ac );
+ TDEAction *actionRedo = KStdAction::redo( m_textEdit, TQ_SLOT(redo()), ac );
actionRedo->setEnabled( false );
- connect( m_textEdit, TQT_SIGNAL(redoAvailable(bool)),
- actionRedo, TQT_SLOT(setEnabled(bool)) );
+ connect( m_textEdit, TQ_SIGNAL(redoAvailable(bool)),
+ actionRedo, TQ_SLOT(setEnabled(bool)) );
- TDEAction *action_cut = KStdAction::cut( m_textEdit, TQT_SLOT(cut()), ac );
+ TDEAction *action_cut = KStdAction::cut( m_textEdit, TQ_SLOT(cut()), ac );
action_cut->setEnabled( false );
- connect( m_textEdit, TQT_SIGNAL(copyAvailable(bool)),
- action_cut, TQT_SLOT(setEnabled(bool)) );
+ connect( m_textEdit, TQ_SIGNAL(copyAvailable(bool)),
+ action_cut, TQ_SLOT(setEnabled(bool)) );
- TDEAction *action_copy = KStdAction::copy( m_textEdit, TQT_SLOT(copy()), ac );
+ TDEAction *action_copy = KStdAction::copy( m_textEdit, TQ_SLOT(copy()), ac );
action_copy->setEnabled( false );
- connect( m_textEdit, TQT_SIGNAL(copyAvailable(bool)),
- action_copy, TQT_SLOT(setEnabled(bool)) );
+ connect( m_textEdit, TQ_SIGNAL(copyAvailable(bool)),
+ action_copy, TQ_SLOT(setEnabled(bool)) );
- (void) KStdAction::print( this, TQT_SLOT(print()), ac );
+ (void) KStdAction::print( this, TQ_SLOT(print()), ac );
- (void) KStdAction::paste( m_textEdit, TQT_SLOT(paste()), ac );
+ (void) KStdAction::paste( m_textEdit, TQ_SLOT(paste()), ac );
(void) new TDEAction( i18n( "C&lear" ), 0,
- m_textEdit, TQT_SLOT(removeSelectedText()),
+ m_textEdit, TQ_SLOT(removeSelectedText()),
ac, "edit_clear" );
- (void) KStdAction::selectAll( m_textEdit, TQT_SLOT(selectAll()), ac );
+ (void) KStdAction::selectAll( m_textEdit, TQ_SLOT(selectAll()), ac );
//
// View Actions
//
- (void) KStdAction::zoomIn( m_textEdit, TQT_SLOT(zoomIn()), ac );
- (void) KStdAction::zoomOut( m_textEdit, TQT_SLOT(zoomOut()), ac );
+ (void) KStdAction::zoomIn( m_textEdit, TQ_SLOT(zoomIn()), ac );
+ (void) KStdAction::zoomOut( m_textEdit, TQ_SLOT(zoomOut()), ac );
//
// Character Formatting
//
m_actionBold = new TDEToggleAction( i18n("&Bold"), "format-text-bold", CTRL+Key_B,
ac, "format_bold" );
- connect( m_actionBold, TQT_SIGNAL(toggled(bool)),
- m_textEdit, TQT_SLOT(setBold(bool)) );
+ connect( m_actionBold, TQ_SIGNAL(toggled(bool)),
+ m_textEdit, TQ_SLOT(setBold(bool)) );
m_actionItalic = new TDEToggleAction( i18n("&Italic"), "format-text-italic", CTRL+Key_I,
ac, "format_italic" );
- connect( m_actionItalic, TQT_SIGNAL(toggled(bool)),
- m_textEdit, TQT_SLOT(setItalic(bool) ));
+ connect( m_actionItalic, TQ_SIGNAL(toggled(bool)),
+ m_textEdit, TQ_SLOT(setItalic(bool) ));
m_actionUnderline = new TDEToggleAction( i18n("&Underline"), "format-text-underline", CTRL+Key_U,
ac, "format_underline" );
- connect( m_actionUnderline, TQT_SIGNAL(toggled(bool)),
- m_textEdit, TQT_SLOT(setUnderline(bool)) );
+ connect( m_actionUnderline, TQ_SIGNAL(toggled(bool)),
+ m_textEdit, TQ_SLOT(setUnderline(bool)) );
(void) new TDEAction( i18n("Text &Color..."), "colorpicker", 0,
- this, TQT_SLOT(formatColor()),
+ this, TQ_SLOT(formatColor()),
ac, "format_color" );
//
@@ -170,37 +170,37 @@ DefaultEditor::createActions( TDEActionCollection *ac )
//
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 &)) );
+ connect( m_actionFont, TQ_SIGNAL(activated(const TQString &)),
+ m_textEdit, TQ_SLOT(setFamily(const TQString &)) );
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)) );
+ connect( m_actionFontSize, TQ_SIGNAL(fontSizeChanged(int)),
+ m_textEdit, TQ_SLOT(setPointSize(int)) );
//
// Alignment
//
m_actionAlignLeft = new TDEToggleAction( i18n("Align &Left"), "format-text-direction-ltr", 0,
ac, "format_align_left" );
- connect( m_actionAlignLeft, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setAlignLeft(bool)) );
+ connect( m_actionAlignLeft, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setAlignLeft(bool)) );
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)) );
+ connect( m_actionAlignCenter, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setAlignCenter(bool)) );
m_actionAlignRight = new TDEToggleAction( i18n("Align &Right"), "format-text-direction-rtl", 0,
ac, "format_align_right" );
- connect( m_actionAlignRight, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setAlignRight(bool)) );
+ connect( m_actionAlignRight, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setAlignRight(bool)) );
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)) );
+ connect( m_actionAlignJustify, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setAlignJustify(bool)) );
m_actionAlignLeft->setExclusiveGroup( "alignment" );
m_actionAlignCenter->setExclusiveGroup( "alignment" );
@@ -210,19 +210,19 @@ DefaultEditor::createActions( TDEActionCollection *ac )
//
// Tools
//
- (void) KStdAction::spelling( this, TQT_SLOT(checkSpelling()), ac );
+ (void) KStdAction::spelling( this, TQ_SLOT(checkSpelling()), ac );
//
// Setup enable/disable
//
updateActions();
- connect( m_textEdit, TQT_SIGNAL(currentFontChanged(const TQFont &)),
- this, TQT_SLOT( updateFont() ) );
- connect( m_textEdit, TQT_SIGNAL(currentFontChanged(const TQFont &)),
- this, TQT_SLOT(updateCharFmt()) );
- connect( m_textEdit, TQT_SIGNAL(cursorPositionChanged(int, int)),
- this, TQT_SLOT(updateAligment()) );
+ connect( m_textEdit, TQ_SIGNAL(currentFontChanged(const TQFont &)),
+ this, TQ_SLOT( updateFont() ) );
+ connect( m_textEdit, TQ_SIGNAL(currentFontChanged(const TQFont &)),
+ this, TQ_SLOT(updateCharFmt()) );
+ connect( m_textEdit, TQ_SIGNAL(cursorPositionChanged(int, int)),
+ this, TQ_SLOT(updateAligment()) );
}
void
diff --git a/libtdepim/komposer/plugins/default/defaulteditor.desktop b/libtdepim/komposer/plugins/default/defaulteditor.desktop
index a5afd815..4b01632b 100644
--- a/libtdepim/komposer/plugins/default/defaulteditor.desktop
+++ b/libtdepim/komposer/plugins/default/defaulteditor.desktop
@@ -16,94 +16,7 @@ X-TDE-PluginInfo-Category=Editors
X-TDE-PluginInfo-Depends=
X-TDE-PluginInfo-License=LGPL
X-TDE-PluginInfo-EnabledByDefault=true
+
Name=Komposer Editor
-Name[af]=Komposer Redigeerder
-Name[bg]=Редактор за Komposer
-Name[br]=Aozer Komposer
-Name[ca]=Editor Komposer
-Name[cs]=Komposer editor
-Name[da]=Komposer-editor
-Name[el]=Επεξεργαστής Komposer
-Name[eo]=Komposer-redaktilo
-Name[es]=Editor Komposer
-Name[et]=Komposeri redaktor
-Name[eu]=Komposer editorea
-Name[fa]=ویرایشگر Komposer
-Name[fi]=Komposer-muokkain
-Name[fr]=Éditeur Komposer
-Name[fy]=Komposer-bewurker
-Name[ga]=Eagarthóir Komposer
-Name[gl]=Editor Komposer
-Name[hu]=Komposer szerkesztő
-Name[is]=Komposer ritill
-Name[it]=Editor Komposer
-Name[ja]=Komposer エディタ
-Name[kk]=Komposer өңдегіші
-Name[km]=កម្មវិធី​និពន្ធ Komposer
-Name[lt]=Komposer redaktorius
-Name[ms]=Editor Komposer
-Name[nb]=Komposer-redigering
-Name[ne]=कम्पोजर सम्पादक
-Name[nl]=Komposer-editor
-Name[nn]=Komposer-redigering
-Name[pl]=Edytor Komposer
-Name[pt]=Editor Kompositor
-Name[pt_BR]=Editor do Komposer
-Name[ru]=Редактор Komposer
-Name[sk]=Editor Komposer
-Name[sl]=Urejevalnik Komposer
-Name[sr]=Уређивач Komposer-а
-Name[sr@Latn]=Uređivač Komposer-a
-Name[sv]=Komposer editor
-Name[ta]=கம்போசர் தொகுப்பான்
-Name[tr]=Komposer Düzenleyicisi
-Name[uk]=Редактор Komposer
-Name[zh_CN]=Komposer 编辑器
-Name[zh_TW]=Komposer 編輯器
+
Comment=Komposer default editor
-Comment[af]=Komposer standaard redigeerder
-Comment[bg]=Подразбиращ се редактор за Komposer
-Comment[ca]=Editor predeterminat de Komposer
-Comment[cs]=Výchozí Komposer editor
-Comment[da]=Komposer standardeditor
-Comment[de]=Komposer Standardeditor
-Comment[el]=Προεπιλεγμένος επεξεργαστής του Komposer
-Comment[eo]=Komposer-redaktilo apriora
-Comment[es]=Editor predefinido Komposer
-Comment[et]=Komposeri vaikeredaktor
-Comment[eu]=Komposer editore lehenetsia
-Comment[fa]=ویرایشگر پیش‌فرض Komposer
-Comment[fi]=Komposer oletusmuokkain
-Comment[fr]=Éditeur Komposer par défaut
-Comment[fy]=Komposer standertbewurker
-Comment[ga]=Eagarthóir réamhshocraithe Komposer
-Comment[gl]=Editor por defecto Komposer
-Comment[he]=עורך ברירת מחדל של Kompoer
-Comment[hu]=A Komposer alapértelmezett szerkesztője
-Comment[is]=Sjálfgefinn ritill Komposer
-Comment[it]=Editor di default per Komposer
-Comment[ja]=Komposer 標準エディタ
-Comment[kk]=Komposer әдетті өңдегіші
-Comment[km]=កម្មវិធី​និពន្ធ​លំនាំដើម​របស់ Komposer
-Comment[ko]=Komposer 기본 편집기
-Comment[lt]=Komposer numatytasis redaktorius
-Comment[ms]=Pengedit piawai Komposer
-Comment[nb]=Komposer standard-redigerer
-Comment[nds]=Komposer-Standardeditor
-Comment[ne]=कम्पोजरको पूर्वनिर्धारित सम्पादक
-Comment[nl]=Komposer standaardeditor
-Comment[nn]=Komposer standard-redigeringsprogram
-Comment[pl]=Domyślny edytor Komposera
-Comment[pt]=Editor predefinido Kompositor
-Comment[pt_BR]=Editor padrão do Komposer
-Comment[ru]=Редактор Komposer по умолчанию
-Comment[sk]=Štandardný editor Komposer
-Comment[sl]=Privzeti urejevalnik Komposer
-Comment[sr]=Подразумевани Komposer-ов уређивач
-Comment[sr@Latn]=Podrazumevani Komposer-ov uređivač
-Comment[sv]=Komposer standardeditor
-Comment[ta]=கம்போசர் முன்னிருப்பு தொகுப்பான்
-Comment[tr]=Öntanımlı Komposer düzenleyicisi
-Comment[uk]=Типовий редактор Komposer
-Comment[zh_CN]=Komposer 默认编辑器
-Comment[zh_TW]=Komposer 預設編輯器
diff --git a/libtdepim/komposer/plugins/default/defaulteditor.h b/libtdepim/komposer/plugins/default/defaulteditor.h
index 5763b554..3c55a792 100644
--- a/libtdepim/komposer/plugins/default/defaulteditor.h
+++ b/libtdepim/komposer/plugins/default/defaulteditor.h
@@ -33,7 +33,7 @@ class TDEActionCollection;
class DefaultEditor : public Komposer::Editor
{
- Q_OBJECT
+ TQ_OBJECT
public:
DefaultEditor( TQObject *parent, const char *name, const TQStringList &args );