diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/filelistloader | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/filelistloader')
-rw-r--r-- | kate/filelistloader/katefll_initplugin.cpp | 16 | ||||
-rw-r--r-- | kate/filelistloader/katefll_initplugin.h | 4 | ||||
-rw-r--r-- | kate/filelistloader/katefll_plugin.cpp | 26 | ||||
-rw-r--r-- | kate/filelistloader/katefll_plugin.h | 6 |
4 files changed, 26 insertions, 26 deletions
diff --git a/kate/filelistloader/katefll_initplugin.cpp b/kate/filelistloader/katefll_initplugin.cpp index 4eb116f..8fb8061 100644 --- a/kate/filelistloader/katefll_initplugin.cpp +++ b/kate/filelistloader/katefll_initplugin.cpp @@ -20,7 +20,7 @@ #include <kate/pluginmanager.h> -#include <qfileinfo.h> +#include <tqfileinfo.h> #include <kgenericfactory.h> #include <kaction.h> #include <klocale.h> @@ -30,7 +30,7 @@ K_EXPORT_COMPONENT_FACTORY( katefll_initplugin, KGenericFactory<InitPluginKateFileListLoader>( "katefll_loader" ) ) -InitPluginKateFileListLoader::InitPluginKateFileListLoader (QObject * parent, const char *name, const QStringList datalist) +InitPluginKateFileListLoader::InitPluginKateFileListLoader (TQObject * parent, const char *name, const TQStringList datalist) :InitPlugin((Kate::Application*)parent,name) { } @@ -48,14 +48,14 @@ int InitPluginKateFileListLoader::actionsKateShouldNotPerformOnRealStartup() int InitPluginKateFileListLoader::initKate() { - QString tmpFile; + TQString tmpFile; KURL tmpURL; if( KIO::NetAccess::download( configScript(), tmpFile ) ) { - QFile file(tmpFile); + TQFile file(tmpFile); file.open(IO_ReadOnly); - QTextStream t(&file); + TQTextStream t(&file); bool somethingOpened=false; @@ -79,11 +79,11 @@ int InitPluginKateFileListLoader::initKate() Kate::Plugin *pl=application()->pluginManager()->plugin("katefll_plugin"); if (pl) { - connect(this,SIGNAL(updateInit()),pl,SLOT(updateInit())); + connect(this,TQT_SIGNAL(updateInit()),pl,TQT_SLOT(updateInit())); updateInit(); - disconnect(this,SIGNAL(updateInit()),pl,SLOT(updateInit())); + disconnect(this,TQT_SIGNAL(updateInit()),pl,TQT_SLOT(updateInit())); -/* int id = pl->metaObject()->findSlot( SLOT(updateInit()) ); +/* int id = pl->metaObject()->findSlot( TQT_SLOT(updateInit()) ); if ( id != -1 ) { kdDebug()<<"Action slot was found, it will be called now"<<endl; diff --git a/kate/filelistloader/katefll_initplugin.h b/kate/filelistloader/katefll_initplugin.h index 7bfd955..55ac1a9 100644 --- a/kate/filelistloader/katefll_initplugin.h +++ b/kate/filelistloader/katefll_initplugin.h @@ -18,7 +18,7 @@ #ifndef _PLUGIN_KATE_FLL_H #define _PLUGIN_KATE_FLL_H -#include <qstring.h> +#include <tqstring.h> #include <kate/plugin.h> #include <kate/application.h> @@ -33,7 +33,7 @@ class InitPluginKateFileListLoader : public Kate::InitPlugin Q_OBJECT public: - InitPluginKateFileListLoader (QObject * =0, const char * =0, const QStringList =QStringList()); + InitPluginKateFileListLoader (TQObject * =0, const char * =0, const TQStringList =TQStringList()); virtual ~InitPluginKateFileListLoader(); virtual int actionsKateShouldNotPerformOnRealStartup(); virtual int initKate(); diff --git a/kate/filelistloader/katefll_plugin.cpp b/kate/filelistloader/katefll_plugin.cpp index bbb91a3..b10464f 100644 --- a/kate/filelistloader/katefll_plugin.cpp +++ b/kate/filelistloader/katefll_plugin.cpp @@ -20,7 +20,7 @@ #include <kate/pluginmanager.h> -#include <qfileinfo.h> +#include <tqfileinfo.h> #include <kgenericfactory.h> #include <kaction.h> #include <klocale.h> @@ -42,7 +42,7 @@ class PluginView : public KXMLGUIClient KRecentFilesAction *recentFiles; }; -PluginKateFileListLoader::PluginKateFileListLoader (QObject * parent, const char *name, const QStringList) +PluginKateFileListLoader::PluginKateFileListLoader (TQObject * parent, const char *name, const TQStringList) : Plugin((Kate::Application*)parent,name), PluginViewInterface(), m_config( new KConfig("katefilelistpluginrc") ) { @@ -75,20 +75,20 @@ void PluginKateFileListLoader::addView(Kate::MainWindow *win) PluginView *view = new PluginView (); (void) new KAction( i18n("Open File List..."), 0, - this, SLOT( slotOpenList() ), + this, TQT_SLOT( slotOpenList() ), view->actionCollection(), "file_kfllopen" ); view->recentFiles = new KRecentFilesAction( i18n("Open Recent"), KShortcut::null(), - this, SLOT(slotOpenList(const KURL&)), view->actionCollection(), + this, TQT_SLOT(slotOpenList(const KURL&)), view->actionCollection(), "file_kfllopenrecent"); view->recentFiles->loadEntries(m_config, "Recent Files"); (void) new KAction( i18n("Save File List"), 0, - this, SLOT( slotSaveList() ), + this, TQT_SLOT( slotSaveList() ), view->actionCollection(), "file_kfllsave" ); (void) new KAction( i18n("Save File List As..."), 0, - this, SLOT( slotSaveListAs() ), + this, TQT_SLOT( slotSaveListAs() ), view->actionCollection(), "file_kfllsaveas" ); view->setInstance (new KInstance("kate")); @@ -133,7 +133,7 @@ void PluginKateFileListLoader::removeURLFromList(const KURL& url) void PluginKateFileListLoader::slotOpenList() { - KURL url = KFileDialog::getOpenURL(QString::null, + KURL url = KFileDialog::getOpenURL(TQString::null, "*.katefl|Kate File List (*.katefl)"); if (url.isValid()) // cancel pressed? slotOpenList(url); @@ -151,13 +151,13 @@ void PluginKateFileListLoader::slotOpenList(const KURL& url) "kate-filelist-loader-close-other" ) == KMessageBox::Yes ) application()->documentManager()->closeAllDocuments(); - QString tmpFile; + TQString tmpFile; if( KIO::NetAccess::download( url, tmpFile, 0 ) ) { - QFile file(tmpFile); + TQFile file(tmpFile); file.open(IO_ReadOnly); - QTextStream t(&file); + TQTextStream t(&file); KURL tmp; while (!t.eof()) { if ( ! tmp.isEmpty() ) @@ -190,7 +190,7 @@ void PluginKateFileListLoader::slotSaveList() { /* if (m_oldInitURL!=application()->initPluginManager()->initScript()) { - switch (KMessageBox::questionYesNoCancel(0,i18n("<qt>Since the last time you saved the file list, Kate has been reinitialized by another plugin other than the <B>File List Loader</B>. Do you still want to save the list to %1?</qt>").arg(m_saveURL.prettyURL()),QString::null,KStdGuiItem::save(),KStdGuiItem::discard())) + switch (KMessageBox::questionYesNoCancel(0,i18n("<qt>Since the last time you saved the file list, Kate has been reinitialized by another plugin other than the <B>File List Loader</B>. Do you still want to save the list to %1?</qt>").arg(m_saveURL.prettyURL()),TQString::null,KStdGuiItem::save(),KStdGuiItem::discard())) { case KMessageBox::Yes: save(); break; case KMessageBox::No: slotSaveListAs(); break; @@ -203,7 +203,7 @@ void PluginKateFileListLoader::slotSaveList() { /*if (m_saveURL!=application()->initPluginManager()->initScript()) { - switch (KMessageBox::questionYesNoCancel(0,i18n("<qt>Kate has been reinitialized by another plugin other than the <B>File List Loader</B>. Do you still want to save the list to %1?</qt>").arg(m_saveURL.prettyURL()),QString::null,KStdGuiItem::save(),KStdGuiItem::discard())) + switch (KMessageBox::questionYesNoCancel(0,i18n("<qt>Kate has been reinitialized by another plugin other than the <B>File List Loader</B>. Do you still want to save the list to %1?</qt>").arg(m_saveURL.prettyURL()),TQString::null,KStdGuiItem::save(),KStdGuiItem::discard())) { case KMessageBox::Yes: save(); break; case KMessageBox::No: slotSaveListAs(); break; @@ -230,7 +230,7 @@ void PluginKateFileListLoader::save() void PluginKateFileListLoader::slotSaveListAs() { - KURL url=KFileDialog::getSaveURL(QString::null,"*.katefl|Kate File List (*.katefl)"); + KURL url=KFileDialog::getSaveURL(TQString::null,"*.katefl|Kate File List (*.katefl)"); if (url.isValid()) { m_oldInitURL="";//application()->initPluginManager()->initScript(); diff --git a/kate/filelistloader/katefll_plugin.h b/kate/filelistloader/katefll_plugin.h index 81b7bb8..e40f996 100644 --- a/kate/filelistloader/katefll_plugin.h +++ b/kate/filelistloader/katefll_plugin.h @@ -18,7 +18,7 @@ #ifndef _PLUGIN_KATE_FLL_H #define _PLUGIN_KATE_FLL_H -#include <qstring.h> +#include <tqstring.h> #include <kate/plugin.h> #include <kate/application.h> @@ -35,7 +35,7 @@ class PluginKateFileListLoader : public Kate::Plugin, Kate::PluginViewInterface Q_OBJECT public: - PluginKateFileListLoader (QObject * =0, const char * =0, const QStringList =QStringList()); + PluginKateFileListLoader (TQObject * =0, const char * =0, const TQStringList =TQStringList()); virtual ~PluginKateFileListLoader(); void addView (Kate::MainWindow *win); @@ -56,7 +56,7 @@ class PluginKateFileListLoader : public Kate::Plugin, Kate::PluginViewInterface void save(); private: - QPtrList<class PluginView> m_views; + TQPtrList<class PluginView> m_views; KRecentFilesAction *m_recentFiles; KConfig* m_config; KURL m_oldInitURL; |