diff options
author | Slávek Banko <[email protected]> | 2014-03-04 04:21:07 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-03-04 04:21:07 +0100 |
commit | 462324fb8d4ff24c48599fb311aa1e26f9a4da53 (patch) | |
tree | 51160e84bba9121cceacd6fcbab10658dec91f9f /kate/katesort/src | |
parent | d7401b1d182b94c4a849567aae7d4ef5580e0b6b (diff) | |
download | tdeaddons-462324fb8d4ff24c48599fb311aa1e26f9a4da53.tar.gz tdeaddons-462324fb8d4ff24c48599fb311aa1e26f9a4da53.zip |
Initial TDE conversion of katesort
Diffstat (limited to 'kate/katesort/src')
-rw-r--r-- | kate/katesort/src/katesort.desktop | 2 | ||||
-rw-r--r-- | kate/katesort/src/plugin_sort.cpp | 14 | ||||
-rw-r--r-- | kate/katesort/src/plugin_sort.h | 4 | ||||
-rw-r--r-- | kate/katesort/src/sortdialog.cpp | 6 | ||||
-rw-r--r-- | kate/katesort/src/sortdialog.h | 4 |
5 files changed, 15 insertions, 15 deletions
diff --git a/kate/katesort/src/katesort.desktop b/kate/katesort/src/katesort.desktop index f39feeb..9968cc1 100644 --- a/kate/katesort/src/katesort.desktop +++ b/kate/katesort/src/katesort.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Type=Service ServiceTypes=Kate/Plugin -X-KDE-Library=libsortplugin +X-TDE-Library=libsortplugin X-Kate-Version=2.5 Name=Sort Name[cs]=Řazení diff --git a/kate/katesort/src/plugin_sort.cpp b/kate/katesort/src/plugin_sort.cpp index 95f53c6..01530ce 100644 --- a/kate/katesort/src/plugin_sort.cpp +++ b/kate/katesort/src/plugin_sort.cpp @@ -22,8 +22,8 @@ #include "plugin_sort.h" #include "sortdialog.h" -#include <kaction.h> -#include <klocale.h> +#include <tdeaction.h> +#include <tdelocale.h> #include <kstandarddirs.h> #include <map> #include <tqregexp.h> @@ -40,14 +40,14 @@ extern "C" { void* init_libsortplugin() { - KGlobal::locale()->insertCatalogue("katesort"); + TDEGlobal::locale()->insertCatalogue("katesort"); return new KatePluginFactory; } } KatePluginFactory::KatePluginFactory() { - s_instance = new KInstance( "kate" ); + s_instance = new TDEInstance( "kate" ); } KatePluginFactory::~KatePluginFactory() @@ -60,7 +60,7 @@ TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, c return new KatePluginSort( parent, name ); } -KInstance* KatePluginFactory::s_instance = 0L; +TDEInstance* KatePluginFactory::s_instance = 0L; KatePluginSort::KatePluginSort( TQObject* parent, const char* name ) : Kate::Plugin ( (Kate::Application*)parent, name ) @@ -76,11 +76,11 @@ void KatePluginSort::addView(Kate::MainWindow *win) /// @todo doesn't this have to be deleted? PluginView *view = new PluginView (); - (void) new KAction ( i18n("Sort"), 0, this, + (void) new TDEAction ( i18n("Sort"), 0, this, SLOT( slotSort() ), view->actionCollection(), "edit_insert_sort" ); - view->setInstance (new KInstance("kate")); + view->setInstance (new TDEInstance("kate")); view->setXMLFile("plugins/sort/plugin_sort.rc"); win->guiFactory()->addClient (view); view->win = win; diff --git a/kate/katesort/src/plugin_sort.h b/kate/katesort/src/plugin_sort.h index f37dd86..ee054c0 100644 --- a/kate/katesort/src/plugin_sort.h +++ b/kate/katesort/src/plugin_sort.h @@ -31,7 +31,7 @@ #include <kate/viewmanager.h> #include <klibloader.h> -#include <klocale.h> +#include <tdelocale.h> #include <map> #include "sortdialog.h" @@ -47,7 +47,7 @@ class KatePluginFactory : public KLibFactory virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() ); private: - static KInstance* s_instance; + static TDEInstance* s_instance; }; class KatePluginSort : public Kate::Plugin, Kate::PluginViewInterface diff --git a/kate/katesort/src/sortdialog.cpp b/kate/katesort/src/sortdialog.cpp index 0ebaed8..09f43fd 100644 --- a/kate/katesort/src/sortdialog.cpp +++ b/kate/katesort/src/sortdialog.cpp @@ -20,7 +20,7 @@ #include "sortdialog.h" -#include "kconfig.h" +#include "tdeconfig.h" #include <tqwhatsthis.h> SortDialog::SortDialog ( TQWidget* parent, const char* name, bool modal, WFlags fl ) @@ -112,7 +112,7 @@ void SortDialog::toggledType() void SortDialog::config_load () { // tqDebug("config_load()"); - KConfig *config = new KConfig("katesortpluginrc"); + TDEConfig *config = new TDEConfig("katesortpluginrc"); m_radioButtonAsc->setChecked(config->readBoolEntry("Asc",true)); m_radioButtonDesc->setChecked(config->readBoolEntry("Desc",false)); m_radioButtonAlphaSort->setChecked(config->readBoolEntry("Alpha",true)); @@ -127,7 +127,7 @@ void SortDialog::config_load () void SortDialog::config_save () { // tqDebug("config_save()"); - KConfig *config = new KConfig("katesortpluginrc"); + TDEConfig *config = new TDEConfig("katesortpluginrc"); config->writeEntry("Asc",m_radioButtonAsc->isOn()); config->writeEntry("Desc", m_radioButtonDesc->isOn()); config->writeEntry("Alpha",m_radioButtonAlphaSort->isOn()); diff --git a/kate/katesort/src/sortdialog.h b/kate/katesort/src/sortdialog.h index 06af3d5..135a33a 100644 --- a/kate/katesort/src/sortdialog.h +++ b/kate/katesort/src/sortdialog.h @@ -23,7 +23,7 @@ #include "sortdialoglayout.h" #include <tqdialog.h> -#include <klocale.h> +#include <tdelocale.h> #include <tqlineedit.h> #include <tqpushbutton.h> #include <tqbuttongroup.h> @@ -51,7 +51,7 @@ class SortDialog : public sortdialoglayout /*$PROTECTED_FUNCTIONS$*/ void config_load(); void config_save(); - KConfig *config; + TDEConfig *config; protected slots: /*$PROTECTED_SLOTS$*/ |