diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-03 18:43:12 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-08 22:25:06 +0100 |
commit | c37e2d75d09145d2236388e5b739c6a41e4f3780 (patch) | |
tree | 019e90415692db23ce3b8d6f416f134c12fc4512 /src/qregisters.h | |
parent | 8816b7c7aded7ef8defca0bc6a78b2f5887faea6 (diff) | |
download | sciteco-c37e2d75d09145d2236388e5b739c6a41e4f3780.tar.gz |
delegate commandline replacements ("}") to the cmdline macro level
allows commandline editing scripted by macros
Diffstat (limited to 'src/qregisters.h')
-rw-r--r-- | src/qregisters.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/qregisters.h b/src/qregisters.h index 19fd3cd..651be1e 100644 --- a/src/qregisters.h +++ b/src/qregisters.h @@ -116,7 +116,7 @@ public: virtual void edit(void); virtual void undo_edit(void); - void execute(bool locals = true) throw (State::Error); + void execute(bool locals = true) throw (State::Error, ReplaceCmdline); bool load(const gchar *filename); inline void @@ -268,10 +268,11 @@ public: StateExpectQReg(); private: - State *custom(gchar chr) throw (Error); + State *custom(gchar chr) throw (Error, ReplaceCmdline); protected: - virtual State *got_register(QRegister ®) throw (Error) = 0; + virtual State *got_register(QRegister ®) + throw (Error, ReplaceCmdline) = 0; }; class StatePushQReg : public StateExpectQReg { @@ -328,7 +329,7 @@ private: class StateMacro : public StateExpectQReg { private: - State *got_register(QRegister ®) throw (Error); + State *got_register(QRegister ®) throw (Error, ReplaceCmdline); }; class StateCopyToQReg : public StateExpectQReg { |