mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Allow to un/load Lua Session Scripts in the Script Manager
This commit is contained in:
parent
32fe5a083e
commit
a732c7c9fa
4 changed files with 159 additions and 3 deletions
|
|
@ -29,6 +29,7 @@ class LuaScriptManager : public ArdourWindow
|
|||
{
|
||||
public:
|
||||
LuaScriptManager ();
|
||||
void set_session (ARDOUR::Session *);
|
||||
|
||||
protected:
|
||||
void session_going_away();
|
||||
|
|
@ -101,6 +102,33 @@ private:
|
|||
|
||||
Gtk::Button _c_add_button;
|
||||
Gtk::Button _c_del_button;
|
||||
|
||||
/* Session scripts */
|
||||
void setup_session_scripts ();
|
||||
void session_script_selection_changed ();
|
||||
|
||||
void add_sess_btn_clicked ();
|
||||
void del_sess_btn_clicked ();
|
||||
|
||||
class LuaSessionScriptModelColumns : public Gtk::TreeModelColumnRecord
|
||||
{
|
||||
public:
|
||||
LuaSessionScriptModelColumns ()
|
||||
{
|
||||
add (name);
|
||||
}
|
||||
|
||||
Gtk::TreeModelColumn<std::string> name;
|
||||
};
|
||||
|
||||
Glib::RefPtr<Gtk::ListStore> _s_store;
|
||||
LuaCallbackScriptModelColumns _s_model;
|
||||
Gtk::TreeView _s_view;
|
||||
|
||||
Gtk::Button _s_add_button;
|
||||
Gtk::Button _s_del_button;
|
||||
|
||||
PBD::ScopedConnection _session_script_connection;
|
||||
};
|
||||
|
||||
#endif /* _gtk2_ardour_lua_script_manager_h_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue