diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-29 18:34:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-29 18:34:27 +0200 |
commit | 6d49e245035fe3b078b5e58825d81f20bce9511d (patch) | |
tree | 56b2b04134bcd59d3378d571b5ce77d33e7498f4 /libs/ardour/ardour/luaproc.h | |
parent | 69bd02bd255cb7855bee9594b0ba4d1c989281fe (diff) |
implement lua plugin presets
Diffstat (limited to 'libs/ardour/ardour/luaproc.h')
-rw-r--r-- | libs/ardour/ardour/luaproc.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libs/ardour/ardour/luaproc.h b/libs/ardour/ardour/luaproc.h index d7c0aea5c5..67c4432087 100644 --- a/libs/ardour/ardour/luaproc.h +++ b/libs/ardour/ardour/luaproc.h @@ -92,7 +92,10 @@ public: int set_state (const XMLNode&, int version); int set_script_from_state (const XMLNode&); - bool load_preset (PresetRecord) { return false; } + bool load_preset (PresetRecord); + std::string do_save_preset (std::string); + void do_remove_preset (std::string); + bool has_editor() const { return false; } bool can_support_io_configuration (const ChanCount& in, ChanCount& out, ChanCount* imprecise); @@ -101,14 +104,11 @@ public: ChanCount output_streams() const { return _configured_out; } ChanCount input_streams() const { return _configured_in; } - std::string do_save_preset (std::string) { return ""; } - void do_remove_preset (std::string) { } - bool has_inline_display () { return _lua_has_inline_display; } void setup_lua_inline_gui (LuaState *lua_gui); private: - void find_presets () { } + void find_presets (); /* END Plugin interface */ protected: @@ -131,6 +131,10 @@ private: bool load_script (); void lua_print (std::string s); + std::string preset_name_to_uri (const std::string&) const; + std::string presets_file () const; + XMLTree* presets_tree () const; + boost::shared_ptr<ScalePoints> parse_scale_points (luabridge::LuaRef*); std::vector<std::pair<bool, int> > _ctrl_params; |