From a83421234a2a9d67bceeb70eb5359df9a9950377 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 13 Jan 2009 16:38:05 +0100 Subject: fakevim: refactoring, pimpl FakeVimPlugin --- src/plugins/fakevim/fakevimplugin.h | 43 +++++-------------------------------- 1 file changed, 5 insertions(+), 38 deletions(-) (limited to 'src/plugins/fakevim/fakevimplugin.h') diff --git a/src/plugins/fakevim/fakevimplugin.h b/src/plugins/fakevim/fakevimplugin.h index bbd934281f..75f323afcd 100644 --- a/src/plugins/fakevim/fakevimplugin.h +++ b/src/plugins/fakevim/fakevimplugin.h @@ -36,35 +36,13 @@ #include -#include -#include -#include - -QT_BEGIN_NAMESPACE -class QAction; -QT_END_NAMESPACE - - -namespace Core { - -class ICore; -class IEditor; - -} // namespace Core - - -namespace TextEditor { - -class ITextEditor; - -} // namespace TextEditor - - namespace FakeVim { namespace Internal { class FakeVimHandler; +class FakeVimPluginPrivate; + class FakeVimPlugin : public ExtensionSystem::IPlugin { Q_OBJECT @@ -74,25 +52,14 @@ public: ~FakeVimPlugin(); private: + // implementation of ExtensionSystem::IPlugin bool initialize(const QStringList &arguments, QString *error_message); void shutdown(); void extensionsInitialized(); -private slots: - void installHandler(); - void installHandler(QWidget *widget); - void removeHandler(QWidget *widget); - void showCommandBuffer(const QString &contents); - void showExtraInformation(const QString &msg); - void editorOpened(Core::IEditor *); - void editorAboutToClose(Core::IEditor *); - void changeSelection(QWidget *widget, - const QList &selections); - private: - FakeVimHandler *m_handler; - QAction *m_installHandlerAction; - Core::ICore *m_core; + friend class FakeVimPluginPrivate; + FakeVimPluginPrivate *d; }; } // namespace Internal -- cgit v1.2.1