[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: KDE/kdesdk/kate/plugins
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2009-03-29 16:12:47
Message-ID: 200903291812.47584.dhdev () gmx ! de
[Download RAW message or body]
On Saturday 28 March 2009, Laurent Montel wrote:
> SVN commit 946111 by mlaurent:
>
> Port it (not work for the moment)
What does the plugin do? The symbolviewer plugin also supports python.
What is it the python browser plugin can do more?
Dominik
> M +1 -1 CMakeLists.txt
> M +1 -1 kpybrowser/CMakeLists.txt
> M +6 -5 kpybrowser/kpybrowser.desktop
> M +7 -35 kpybrowser/pybrowse_part.cpp
> M +3 -11 kpybrowser/pybrowse_part.h
>
>
> --- trunk/KDE/kdesdk/kate/plugins/CMakeLists.txt #946110:946111
> @@ -26,7 +26,7 @@
>
>
> #add_subdirectory( htmltools )
> -#add_subdirectory( kpybrowser )
> +add_subdirectory( kpybrowser )
> add_subdirectory( openheader )
> #add_subdirectory( xmltools )
> add_subdirectory( xmlcheck )
> --- trunk/KDE/kdesdk/kate/plugins/kpybrowser/CMakeLists.txt
> #946110:946111 @@ -11,7 +11,7 @@
>
>
>
> -target_link_libraries(katepybrowseplugin ${KDE4_KDEUI_LIBS}
> ${KDE4_KTEXTEDITOR_LIBS} kateinterfaces )
> +target_link_libraries(katepybrowseplugin ${KDE4_KDE3SUPPORT_LIBS}
> ${KDE4_KDEUI_LIBS} ${KDE4_KTEXTEDITOR_LIBS} kateinterfaces )
>
> install(TARGETS katepybrowseplugin DESTINATION ${PLUGIN_INSTALL_DIR}
> )
>
> --- trunk/KDE/kdesdk/kate/plugins/kpybrowser/kpybrowser.desktop
> #946110:946111 @@ -1,10 +1,11 @@
> # KDE Config File
> [Desktop Entry]
> -Type=Application
> -Exec=kpybrowser -caption "%c"
> -Icon=kpybrowser
> -Comment=
> -Terminal=false
> +Encoding=UTF-8
> +Type=Service
> +ServiceTypes=Kate/Plugin
> +X-KDE-Library=katepybrowseplugin
> +X-Kate-Version=3.0
> +
> Name=KPyBrowser
> Name[nb]=KPy-visning
> Name[ne]=केडीई पाइथोन ब्राउजर
> --- trunk/KDE/kdesdk/kate/plugins/kpybrowser/pybrowse_part.cpp
> #946110:946111 @@ -33,8 +33,9 @@
>
> K_EXPORT_COMPONENT_FACTORY( katepybrowseplugin,
> KGenericFactory<KatePluginPyBrowse>( "katepybrowse" ) )
>
> +
> PluginViewPyBrowse::PluginViewPyBrowse (Kate::MainWindow *w)
> - : win (w)
> + : Kate::PluginView (w),KXMLGUIClient(),win()
> {
> QAction *a =
> actionCollection()->addAction("python_update_pybrowse");
> a->setText(i18n("Update Python Browser"));
> @@ -129,49 +130,20 @@
> //TO DO implement this later so that you can turn the browser off
> and on }
>
> -KatePluginPyBrowse::KatePluginPyBrowse( QObject* parent, const
> QStringList& ) - : Kate::Plugin ( (Kate::Application *)parent,
> "KatePluginPyBrowse" ) -{
> -}
>
> -KatePluginPyBrowse::~KatePluginPyBrowse()
> -{
> -}
>
> -void KatePluginPyBrowse::addView (Kate::MainWindow *win)
> -{
> - PluginViewPyBrowse *view = new PluginViewPyBrowse(win);
> - m_views.append (view);
> -}
>
> -void KatePluginPyBrowse::removeView(Kate::MainWindow *win)
> +KatePluginPyBrowse::KatePluginPyBrowse( QObject* parent, const
> QStringList& ) + : Kate::Plugin ( (Kate::Application *)parent )
> {
> - for (uint z=0; z < m_views.count(); z++)
> - if (m_views.at(z)->win == win)
> - {
> - PluginViewPyBrowse *view = m_views.at(z);
> - m_views.remove (view);
> - delete view;
> - }
> }
>
> -void KatePluginPyBrowse::storeViewConfig(KConfig* config,
> Kate::MainWindow* win, const QString& groupPrefix)
> +KatePluginPyBrowse::~KatePluginPyBrowse()
> {
> - // TODO: FIXME: port to new Kate interfaces
> }
> -
> -void KatePluginPyBrowse::loadViewConfig(KConfig* config,
> Kate::MainWindow*win, const QString& groupPrefix) -{
> - // TODO: FIXME: port to new Kate interfaces
> -}
>
> -void KatePluginPyBrowse::storeGeneralConfig(KConfig* config, const
> QString& groupPrefix) +Kate::PluginView
> *KatePluginPyBrowse::createView(Kate::MainWindow *mainWindow) {
> - // TODO: FIXME: port to new Kate interfaces
> + return new PluginViewPyBrowse(mainWindow);
> }
>
> -void KatePluginPyBrowse::loadGeneralConfig(KConfig* config, const
> QString& groupPrefix) -{
> - // TODO: FIXME: port to new Kate interfaces
> -}
> -
> --- trunk/KDE/kdesdk/kate/plugins/kpybrowser/pybrowse_part.h
> #946110:946111 @@ -34,7 +34,7 @@
> #include <Q3PtrList>
> #include "kpybrowser.h"
>
> -class PluginViewPyBrowse : public QObject, KXMLGUIClient
> +class PluginViewPyBrowse : public Kate::PluginView, public
> KXMLGUIClient {
> Q_OBJECT
>
> @@ -55,22 +55,14 @@
> KPyBrowser *kpybrowser;
> };
>
> -class KatePluginPyBrowse : public Kate::Plugin, public
> Kate::PluginViewInterface +class KatePluginPyBrowse : public
> Kate::Plugin {
> Q_OBJECT
>
> public:
> explicit KatePluginPyBrowse( QObject* parent = 0, const
> QStringList& = QStringList() ); ~KatePluginPyBrowse();
> -
> - void addView(Kate::MainWindow *win);
> - void removeView(Kate::MainWindow *win);
> - void storeViewConfig(KConfig* config, Kate::MainWindow* win, const
> QString& groupPrefix); - void loadViewConfig(KConfig* config,
> Kate::MainWindow* win, const QString& groupPrefix); - void
> storeGeneralConfig(KConfig* config, const QString& groupPrefix); - void
> loadGeneralConfig(KConfig* config, const QString& groupPrefix); -
> private:
> - Q3PtrList<PluginViewPyBrowse> m_views;
> + Kate::PluginView *createView(Kate::MainWindow *mainWindow);
> };
>
> #endif
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic