Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 2527588b rédigé par Kubat's avatar Kubat
Parcourir les fichiers

UI & MISC: Place the 'using' on FakeVim internal types inside the proxy editor...

UI & MISC: Place the 'using' on FakeVim internal types inside the proxy editor to not poluate the Vivy namespace
parent 55e4f3e0
Branches
Aucune étiquette associée trouvée
1 requête de fusion!19Fake vim
...@@ -19,14 +19,14 @@ struct ExCommand; ...@@ -19,14 +19,14 @@ struct ExCommand;
namespace Vivy namespace Vivy
{ {
class EditorProxy; class EditorProxy;
using FakeVimHandler = FakeVim::Internal::FakeVimHandler;
using ExCommand = FakeVim::Internal::ExCommand;
class EditorProxy final : public QObject { class EditorProxy final : public QObject {
Q_OBJECT Q_OBJECT
VIVY_UNMOVABLE_OBJECT(EditorProxy) VIVY_UNMOVABLE_OBJECT(EditorProxy)
explicit EditorProxy(QPlainTextEdit *widget) noexcept; explicit EditorProxy(QPlainTextEdit *widget) noexcept;
using FakeVimHandler = FakeVim::Internal::FakeVimHandler;
using ExCommand = FakeVim::Internal::ExCommand;
public: public:
~EditorProxy() override; ~EditorProxy() override;
...@@ -44,7 +44,7 @@ public slots: ...@@ -44,7 +44,7 @@ public slots:
void changeStatusMessage(const QString &contents, int cursorPos) noexcept; void changeStatusMessage(const QString &contents, int cursorPos) noexcept;
void changeExtraInformation(const QString &info) noexcept; void changeExtraInformation(const QString &info) noexcept;
void updateStatusBar() noexcept; void updateStatusBar() noexcept;
void handleExCommand(bool *handled, const FakeVim::Internal::ExCommand &cmd) noexcept; void handleExCommand(bool *handled, const ExCommand &cmd) noexcept;
void requestSetBlockSelection(const QTextCursor &tc) noexcept; void requestSetBlockSelection(const QTextCursor &tc) noexcept;
void requestDisableBlockSelection() noexcept; void requestDisableBlockSelection() noexcept;
void updateBlockSelection() noexcept; void updateBlockSelection() noexcept;
...@@ -56,10 +56,10 @@ private: ...@@ -56,10 +56,10 @@ private:
static int firstNonSpace(const QString &text) noexcept; static int firstNonSpace(const QString &text) noexcept;
void updateExtraSelections() noexcept; void updateExtraSelections() noexcept;
bool wantSaveAndQuit(const FakeVim::Internal::ExCommand &cmd) noexcept; bool wantSaveAndQuit(const ExCommand &cmd) noexcept;
bool wantSave(const FakeVim::Internal::ExCommand &cmd) noexcept; bool wantSave(const ExCommand &cmd) noexcept;
bool wantQuit(const FakeVim::Internal::ExCommand &cmd) noexcept; bool wantQuit(const ExCommand &cmd) noexcept;
bool wantRun(const FakeVim::Internal::ExCommand &cmd) noexcept; bool wantRun(const ExCommand &cmd) noexcept;
QPlainTextEdit *widget; QPlainTextEdit *widget;
QString statusMessage; QString statusMessage;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter