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
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!19Fake vim
......@@ -19,14 +19,14 @@ struct ExCommand;
namespace Vivy
{
class EditorProxy;
using FakeVimHandler = FakeVim::Internal::FakeVimHandler;
using ExCommand = FakeVim::Internal::ExCommand;
class EditorProxy final : public QObject {
Q_OBJECT
VIVY_UNMOVABLE_OBJECT(EditorProxy)
explicit EditorProxy(QPlainTextEdit *widget) noexcept;
using FakeVimHandler = FakeVim::Internal::FakeVimHandler;
using ExCommand = FakeVim::Internal::ExCommand;
public:
~EditorProxy() override;
......@@ -44,7 +44,7 @@ public slots:
void changeStatusMessage(const QString &contents, int cursorPos) noexcept;
void changeExtraInformation(const QString &info) 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 requestDisableBlockSelection() noexcept;
void updateBlockSelection() noexcept;
......@@ -56,10 +56,10 @@ private:
static int firstNonSpace(const QString &text) noexcept;
void updateExtraSelections() noexcept;
bool wantSaveAndQuit(const FakeVim::Internal::ExCommand &cmd) noexcept;
bool wantSave(const FakeVim::Internal::ExCommand &cmd) noexcept;
bool wantQuit(const FakeVim::Internal::ExCommand &cmd) noexcept;
bool wantRun(const FakeVim::Internal::ExCommand &cmd) noexcept;
bool wantSaveAndQuit(const ExCommand &cmd) noexcept;
bool wantSave(const ExCommand &cmd) noexcept;
bool wantQuit(const ExCommand &cmd) noexcept;
bool wantRun(const ExCommand &cmd) noexcept;
QPlainTextEdit *widget;
QString statusMessage;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter