summaryrefslogtreecommitdiffstats
path: root/kedit
diff options
context:
space:
mode:
Diffstat (limited to 'kedit')
-rw-r--r--kedit/CMakeL10n.txt6
-rw-r--r--kedit/CMakeLists.txt5
-rw-r--r--kedit/KEdit.desktop55
-rw-r--r--kedit/kedit.cpp134
-rw-r--r--kedit/kedit.h4
-rw-r--r--kedit/ktextfiledlg.cpp13
-rw-r--r--kedit/ktextfiledlg.h3
-rw-r--r--kedit/misc.ui4
8 files changed, 85 insertions, 139 deletions
diff --git a/kedit/CMakeL10n.txt b/kedit/CMakeL10n.txt
index 162dd6a..2def764 100644
--- a/kedit/CMakeL10n.txt
+++ b/kedit/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_create_template( "kedit" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/KEdit.desktop/"
+ SOURCES KEdit.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/kedit/CMakeLists.txt b/kedit/CMakeLists.txt
index 4b313b1..13d9c85 100644
--- a/kedit/CMakeLists.txt
+++ b/kedit/CMakeLists.txt
@@ -39,11 +39,8 @@ install( FILES keditui.rc
DESTINATION ${DATA_INSTALL_DIR}/kedit
)
-install( FILES KEdit.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( KEdit.desktop )
install( FILES kedit.kcfg
DESTINATION ${KCFG_INSTALL_DIR}
)
-
diff --git a/kedit/KEdit.desktop b/kedit/KEdit.desktop
index 54e679c..8974fac 100644
--- a/kedit/KEdit.desktop
+++ b/kedit/KEdit.desktop
@@ -1,62 +1,7 @@
[Desktop Entry]
Name=KEdit
-Name[hi]=केएडिट
GenericName=Simple Text Editor
-GenericName[ar]=محرر نصوص بسيط
-GenericName[bg]=Текстов редактор
-GenericName[bs]=Jednostavni tekst editor
-GenericName[ca]=Editor de text
-GenericName[cs]=Jednoduchý textový editor
-GenericName[cy]=Golygydd Testun Syml
-GenericName[da]=Simpel teksteditor
-GenericName[de]=Einfacher Texteditor
-GenericName[el]=Απλός επεξεργαστής κειμένου
-GenericName[eo]=Simpla Tekstredaktilo
-GenericName[es]=Editor de texto sencillo
-GenericName[et]=Lihtne tekstiredaktor
-GenericName[eu]=Testu Editore Soila
-GenericName[fa]=ویرایشگر سادۀ متن
-GenericName[fi]=Tekstieditori
-GenericName[fr]=Éditeur de texte élémentaire
-GenericName[ga]=Eagarthóir Téacs Simplí
-GenericName[he]=עורך טקסט פשוט
-GenericName[hi]=सादा पाठ संपादक
-GenericName[hu]=Egyszerű szövegszerkesztő
-GenericName[is]=Einfaldur textaritill
-GenericName[it]=Semplice editor di testi
-GenericName[ja]=シンプルなテキストエディタ
-GenericName[ka]=მარტივი ტექსტის რედაქტორი
-GenericName[kk]=Қарапайым мәтін редакторы
-GenericName[km]=កម្មវិធី​និពន្ធ​អត្ថបទ
-GenericName[lt]=Paprastas teksto redaktorius
-GenericName[mk]=Едноставен уредувач на текст
-GenericName[ms]=Penyunting Teks Ringkas
-GenericName[nb]=Enkelt skriveprogram
-GenericName[nds]=Eenfach Texteditor
-GenericName[ne]=सामान्य पाठ सम्पादक
-GenericName[nl]=Eenvoudige teksteditor
-GenericName[nn]=Enkelt skriveprogram
-GenericName[pa]=ਸਧਾਰਨ ਪਾਠ ਸੰਪਾਦਕ
-GenericName[pl]=Prosty edytor tekstu
-GenericName[pt]=Editor de Texto Simples
-GenericName[pt_BR]=Editor de Texto Simples
-GenericName[ro]=Editor simplu de text
-GenericName[ru]=Простой текстовый редактор
-GenericName[sk]=Jednoduchý textový editor
-GenericName[sl]=Preprost urejevalnik besedil
-GenericName[sr]=Једноставни уређивач текста
-GenericName[sr@Latn]=Jednostavni uređivač teksta
-GenericName[sv]=Enkel texteditor
-GenericName[ta]=சுலப உரை தொகுப்பான்
-GenericName[tg]=Муҳаррири Оддии Матн
-GenericName[tr]=Basit Metin Düzenleyici
-GenericName[uk]=Простий редактор текстів
-GenericName[uz]=Oddiy matn tahrirchi
-GenericName[uz@cyrillic]=Оддий матн таҳрирчи
-GenericName[wa]=Simpe aspougneu di tecse
-GenericName[zh_CN]=简单文本编辑器
-GenericName[zh_TW]=簡單的文字編輯器
Exec=kedit -caption "%c" %i %m %u
Icon=kedit
diff --git a/kedit/kedit.cpp b/kedit/kedit.cpp
index 51d04b6..ddb185e 100644
--- a/kedit/kedit.cpp
+++ b/kedit/kedit.cpp
@@ -72,9 +72,9 @@ TopLevel::TopLevel (TQWidget *, const char *name)
windowList->append( this );
statusbar_timer = new TQTimer(this);
- connect(statusbar_timer, TQT_SIGNAL(timeout()),this,TQT_SLOT(timer_slot()));
+ connect(statusbar_timer, TQ_SIGNAL(timeout()),this,TQ_SLOT(timer_slot()));
- connect(kapp,TQT_SIGNAL(tdedisplayPaletteChanged()),this,TQT_SLOT(set_colors()));
+ connect(kapp,TQ_SIGNAL(tdedisplayPaletteChanged()),this,TQ_SLOT(set_colors()));
setupStatusBar();
setupActions();
@@ -107,24 +107,24 @@ void TopLevel::setupEditWidget()
eframe = new KEdit (this, "eframe");
eframe->setOverwriteEnabled(true);
- connect(eframe, TQT_SIGNAL(CursorPositionChanged()),this,
- TQT_SLOT(statusbar_slot()));
- connect(eframe, TQT_SIGNAL(toggle_overwrite_signal()),this,
- TQT_SLOT(toggle_overwrite()));
- connect(eframe, TQT_SIGNAL(gotUrlDrop(TQDropEvent*)), this,
- TQT_SLOT(urlDrop_slot(TQDropEvent*)));
- connect(eframe, TQT_SIGNAL(undoAvailable(bool)),undoAction,
- TQT_SLOT(setEnabled(bool)));
- connect(eframe, TQT_SIGNAL(redoAvailable(bool)),redoAction,
- TQT_SLOT(setEnabled(bool)));
- connect(eframe, TQT_SIGNAL(copyAvailable(bool)),cutAction,
- TQT_SLOT(setEnabled(bool)));
- connect(eframe, TQT_SIGNAL(copyAvailable(bool)),copyAction,
- TQT_SLOT(setEnabled(bool)));
- connect( eframe, TQT_SIGNAL(selectionChanged()),this,
- TQT_SLOT(slotSelectionChanged()));
- connect( eframe, TQT_SIGNAL(modificationChanged( bool)),
- TQT_SLOT(setFileCaption()));
+ connect(eframe, TQ_SIGNAL(CursorPositionChanged()),this,
+ TQ_SLOT(statusbar_slot()));
+ connect(eframe, TQ_SIGNAL(toggle_overwrite_signal()),this,
+ TQ_SLOT(toggle_overwrite()));
+ connect(eframe, TQ_SIGNAL(gotUrlDrop(TQDropEvent*)), this,
+ TQ_SLOT(urlDrop_slot(TQDropEvent*)));
+ connect(eframe, TQ_SIGNAL(undoAvailable(bool)),undoAction,
+ TQ_SLOT(setEnabled(bool)));
+ connect(eframe, TQ_SIGNAL(redoAvailable(bool)),redoAction,
+ TQ_SLOT(setEnabled(bool)));
+ connect(eframe, TQ_SIGNAL(copyAvailable(bool)),cutAction,
+ TQ_SLOT(setEnabled(bool)));
+ connect(eframe, TQ_SIGNAL(copyAvailable(bool)),copyAction,
+ TQ_SLOT(setEnabled(bool)));
+ connect( eframe, TQ_SIGNAL(selectionChanged()),this,
+ TQ_SLOT(slotSelectionChanged()));
+ connect( eframe, TQ_SIGNAL(modificationChanged( bool)),
+ TQ_SLOT(setFileCaption()));
undoAction->setEnabled(false);
redoAction->setEnabled(false);
@@ -163,20 +163,20 @@ void TopLevel::setupEditWidget()
right_mouse_button = new TQPopupMenu;
right_mouse_button->insertItem (i18n("Open..."),
- this, TQT_SLOT(file_open()));
+ this, TQ_SLOT(file_open()));
right_mouse_button->insertItem (SmallIcon("document-save"),i18n("Save"),
- this, TQT_SLOT(file_save()));
+ this, TQ_SLOT(file_save()));
right_mouse_button->insertItem (SmallIcon("document-save-as"),i18n("Save As..."),
- this, TQT_SLOT(file_save_as()));
+ this, TQ_SLOT(file_save_as()));
right_mouse_button->insertSeparator(-1);
right_mouse_button->insertItem(i18n("Copy"),
- this, TQT_SLOT(copy()));
+ this, TQ_SLOT(copy()));
right_mouse_button->insertItem(i18n("Paste"),
- this, TQT_SLOT(paste()));
+ this, TQ_SLOT(paste()));
right_mouse_button->insertItem(i18n("Cut"),
- this, TQT_SLOT(cut()));
+ this, TQ_SLOT(cut()));
right_mouse_button->insertItem(i18n("Select All"),
- this, TQT_SLOT(select_all()));
+ this, TQ_SLOT(select_all()));
eframe->installRBPopup(right_mouse_button);
*/
}
@@ -193,42 +193,42 @@ void TopLevel::slotSelectionChanged()
void TopLevel::setupActions()
{
// setup File menu
- KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(file_new()), actionCollection());
- KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(file_open()), actionCollection());
- recent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(openRecent(const KURL&)),
+ KStdAction::openNew(this, TQ_SLOT(file_new()), actionCollection());
+ KStdAction::open(this, TQ_SLOT(file_open()), actionCollection());
+ recent = KStdAction::openRecent(this, TQ_SLOT(openRecent(const KURL&)),
actionCollection());
- KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(file_save()), actionCollection());
- KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(file_save_as()), actionCollection());
- KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(file_close()), actionCollection());
- KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(print()), actionCollection());
- KStdAction::mail(TQT_TQOBJECT(this), TQT_SLOT(mail()), actionCollection());
- KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
+ KStdAction::save(this, TQ_SLOT(file_save()), actionCollection());
+ KStdAction::saveAs(this, TQ_SLOT(file_save_as()), actionCollection());
+ KStdAction::close(this, TQ_SLOT(file_close()), actionCollection());
+ KStdAction::print(this, TQ_SLOT(print()), actionCollection());
+ KStdAction::mail(this, TQ_SLOT(mail()), actionCollection());
+ KStdAction::quit(this, TQ_SLOT(close()), actionCollection());
// setup edit menu
- undoAction = KStdAction::undo(TQT_TQOBJECT(this), TQT_SLOT(undo()), actionCollection());
- redoAction = KStdAction::redo(TQT_TQOBJECT(this), TQT_SLOT(redo()), actionCollection());
- cutAction = KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(cut()), actionCollection());
- copyAction = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(copy()), actionCollection());
- KStdAction::pasteText(TQT_TQOBJECT(this), TQT_SLOT(paste()), actionCollection());
- KStdAction::selectAll(TQT_TQOBJECT(this), TQT_SLOT(select_all()), actionCollection());
- KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(search()), actionCollection());
- KStdAction::findNext(TQT_TQOBJECT(this), TQT_SLOT(search_again()), actionCollection());
- KStdAction::replace(TQT_TQOBJECT(this), TQT_SLOT(replace()), actionCollection());
-
- (void)new TDEAction(i18n("&Insert File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(file_insert()),
+ undoAction = KStdAction::undo(this, TQ_SLOT(undo()), actionCollection());
+ redoAction = KStdAction::redo(this, TQ_SLOT(redo()), actionCollection());
+ cutAction = KStdAction::cut(this, TQ_SLOT(cut()), actionCollection());
+ copyAction = KStdAction::copy(this, TQ_SLOT(copy()), actionCollection());
+ KStdAction::pasteText(this, TQ_SLOT(paste()), actionCollection());
+ KStdAction::selectAll(this, TQ_SLOT(select_all()), actionCollection());
+ KStdAction::find(this, TQ_SLOT(search()), actionCollection());
+ KStdAction::findNext(this, TQ_SLOT(search_again()), actionCollection());
+ KStdAction::replace(this, TQ_SLOT(replace()), actionCollection());
+
+ (void)new TDEAction(i18n("&Insert File..."), 0, this, TQ_SLOT(file_insert()),
actionCollection(), "insert_file");
- (void)new TDEAction(i18n("In&sert Date"), 0, TQT_TQOBJECT(this), TQT_SLOT(insertDate()),
+ (void)new TDEAction(i18n("In&sert Date"), 0, this, TQ_SLOT(insertDate()),
actionCollection(), "insert_date");
- (void)new TDEAction(i18n("Cl&ean Spaces"), 0, TQT_TQOBJECT(this), TQT_SLOT(clean_space()),
+ (void)new TDEAction(i18n("Cl&ean Spaces"), 0, this, TQ_SLOT(clean_space()),
actionCollection(), "clean_spaces");
// setup Tools menu
- KStdAction::spelling(TQT_TQOBJECT(this), TQT_SLOT(spellcheck()), actionCollection());
+ KStdAction::spelling(this, TQ_SLOT(spellcheck()), actionCollection());
// setup Go menu
- KStdAction::gotoLine(TQT_TQOBJECT(this), TQT_SLOT(gotoLine()), actionCollection());
+ KStdAction::gotoLine(this, TQ_SLOT(gotoLine()), actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showSettings()), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(showSettings()), actionCollection());
}
void TopLevel::setupStatusBar()
@@ -388,20 +388,20 @@ void TopLevel::spellcheck()
statusBar()->changeItem(i18n("Spellcheck: Started."), ID_GENERAL);
initSpellConfig();
- tdespell = new KSpell(this, i18n("Spellcheck"), TQT_TQOBJECT(this),
- TQT_SLOT( spell_started(KSpell *)), tdespellconfigOptions);
+ tdespell = new KSpell(this, i18n("Spellcheck"), this,
+ TQ_SLOT( spell_started(KSpell *)), tdespellconfigOptions);
- connect (tdespell, TQT_SIGNAL ( death()),
- this, TQT_SLOT ( spell_finished( )));
+ connect (tdespell, TQ_SIGNAL ( death()),
+ this, TQ_SLOT ( spell_finished( )));
- connect (tdespell, TQT_SIGNAL (progress (unsigned int)),
- this, TQT_SLOT (spell_progress (unsigned int)));
- connect (tdespell, TQT_SIGNAL (misspelling (const TQString &, const TQStringList &, unsigned int)),
- eframe, TQT_SLOT (misspelling (const TQString &, const TQStringList &, unsigned int)));
- connect (tdespell, TQT_SIGNAL (corrected (const TQString &, const TQString &, unsigned int)),
- eframe, TQT_SLOT (corrected (const TQString &, const TQString &, unsigned int)));
- connect (tdespell, TQT_SIGNAL (done(const TQString&)),
- this, TQT_SLOT (spell_done(const TQString&)));
+ connect (tdespell, TQ_SIGNAL (progress (unsigned int)),
+ this, TQ_SLOT (spell_progress (unsigned int)));
+ connect (tdespell, TQ_SIGNAL (misspelling (const TQString &, const TQStringList &, unsigned int)),
+ eframe, TQ_SLOT (misspelling (const TQString &, const TQStringList &, unsigned int)));
+ connect (tdespell, TQ_SIGNAL (corrected (const TQString &, const TQString &, unsigned int)),
+ eframe, TQ_SLOT (corrected (const TQString &, const TQString &, unsigned int)));
+ connect (tdespell, TQ_SIGNAL (done(const TQString&)),
+ this, TQ_SLOT (spell_done(const TQString&)));
}
@@ -831,7 +831,7 @@ void TopLevel::showSettings()
initSpellConfig();
TDEConfigDialog* dialog = new SettingsDialog(this, "settings", Prefs::self(), tdespellconfigOptions);
- connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(updateSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(updateSettings()));
dialog->show();
}
@@ -1257,7 +1257,7 @@ static const TDECmdLineOptions options[] =
TDECmdLineLastOption
};
-extern "C" KDE_EXPORT int kdemain (int argc, char **argv)
+extern "C" TDE_EXPORT int kdemain (int argc, char **argv)
{
bool have_top_window = false;
@@ -1333,7 +1333,7 @@ SettingsDialog::SettingsDialog(TQWidget *parent, const char *name,TDEConfigSkele
// Spelling
addPage(spellConfig, i18n("Spelling"),
"tools-check-spelling", i18n("Spelling Checker"));
- connect(spellConfig, TQT_SIGNAL(configChanged()), this, TQT_SLOT(slotSpellConfigChanged()));
+ connect(spellConfig, TQ_SIGNAL(configChanged()), this, TQ_SLOT(slotSpellConfigChanged()));
// Miscellaneous
Misc *miscOptions = new Misc(0, "MiscSettings");
diff --git a/kedit/kedit.h b/kedit/kedit.h
index 9751b57..93a0d02 100644
--- a/kedit/kedit.h
+++ b/kedit/kedit.h
@@ -47,7 +47,7 @@ namespace TDEIO { class Job; }
class TopLevel : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -205,7 +205,7 @@ private slots:
};
class SettingsDialog: public TDEConfigDialog {
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/kedit/ktextfiledlg.cpp b/kedit/ktextfiledlg.cpp
index a5b5b13..859172e 100644
--- a/kedit/ktextfiledlg.cpp
+++ b/kedit/ktextfiledlg.cpp
@@ -1,4 +1,3 @@
-// -*- c++ -*-
/* This file is part of the KDE libraries
Copyright (C) 2001 Wolfram Diestel <wolfram@steloj.de>
@@ -40,7 +39,7 @@ KTextFileDialog::KTextFileDialog(const TQString& startDir,
// insert encoding action into toolbar
TDESelectAction *mEncoding = new TDESelectAction(
i18n( "Set &Encoding" ), 0, this,
- TQT_SLOT( slotSetEncoding() ), this,
+ TQ_SLOT( slotSetEncoding() ), this,
"encoding" );
TQStringList encodings = TDEGlobal::charsets()->descriptiveEncodingNames();
@@ -63,7 +62,7 @@ KTextFileDialog::KTextFileDialog(const TQString& startDir,
TDEAction* mEncoding = new TDEAction(
i18n("Select Encoding..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotShowEncCombo() ), TQT_TQOBJECT(this), "encoding");
+ this, TQ_SLOT( slotShowEncCombo() ), this, "encoding");
mEncoding->setIcon( TQString::fromLatin1("charset") );
@@ -119,10 +118,10 @@ void KTextFileDialog::slotShowEncCombo()
i++;
}
- connect( encDlg->actionButton( KDialogBase::Ok ), TQT_SIGNAL(clicked()),
- encDlg, TQT_SLOT(accept()) );
- connect( encDlg->actionButton( KDialogBase::Cancel ), TQT_SIGNAL(clicked()),
- encDlg, TQT_SLOT(reject()) );
+ connect( encDlg->actionButton( KDialogBase::Ok ), TQ_SIGNAL(clicked()),
+ encDlg, TQ_SLOT(accept()) );
+ connect( encDlg->actionButton( KDialogBase::Cancel ), TQ_SIGNAL(clicked()),
+ encDlg, TQ_SLOT(reject()) );
encDlg->setMinimumSize( 300, 120);
diff --git a/kedit/ktextfiledlg.h b/kedit/ktextfiledlg.h
index ae16ae9..8c1968e 100644
--- a/kedit/ktextfiledlg.h
+++ b/kedit/ktextfiledlg.h
@@ -1,4 +1,3 @@
-// -*- c++ -*-
/* This file is part of the KDE libraries
Copyright (C) 2001 Wolfram Diestel <wolfram@steloj.de>
@@ -37,7 +36,7 @@ class KURL;
*/
class KTextFileDialog : public KFileDialog
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kedit/misc.ui b/kedit/misc.ui
index 956790d..3ff751e 100644
--- a/kedit/misc.ui
+++ b/kedit/misc.ui
@@ -116,8 +116,8 @@
<includes>
<include location="local" impldecl="in implementation">misc.ui.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot>settingsWrapMode( int mode )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>