diff options
author | hjk <qtc-committer@nokia.com> | 2009-01-13 16:38:05 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-01-13 16:38:05 +0100 |
commit | a83421234a2a9d67bceeb70eb5359df9a9950377 (patch) | |
tree | d36a7d1f93d1ddcfd038a089e3f416a35b3fcc86 /src/plugins/fakevim/fakevimplugin.h | |
parent | e6f7cb68a56e4531020273b73c06781536bd3158 (diff) | |
download | qt-creator-a83421234a2a9d67bceeb70eb5359df9a9950377.tar.gz |
fakevim: refactoring, pimpl FakeVimPlugin
Diffstat (limited to 'src/plugins/fakevim/fakevimplugin.h')
-rw-r--r-- | src/plugins/fakevim/fakevimplugin.h | 43 |
1 files changed, 5 insertions, 38 deletions
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 <extensionsystem/iplugin.h> -#include <QtCore/QObject> -#include <QtCore/QList> -#include <QtGui/QTextEdit> - -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<QTextEdit::ExtraSelection> &selections); - private: - FakeVimHandler *m_handler; - QAction *m_installHandlerAction; - Core::ICore *m_core; + friend class FakeVimPluginPrivate; + FakeVimPluginPrivate *d; }; } // namespace Internal |