mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
use WindowManager toggle API for script-manager
This commit is contained in:
parent
cdb1395a99
commit
05baa2d1c1
8 changed files with 1 additions and 26 deletions
|
|
@ -282,7 +282,7 @@
|
|||
<menuitem action='set-mouse-mode-object-range'/>
|
||||
<separator/>
|
||||
<menu action="ActionScripts">
|
||||
<menuitem action='manage-action-scripts'/>
|
||||
<menuitem action='toggle-script-manager'/>
|
||||
<separator/>
|
||||
<menuitem action='script-action-1'/>
|
||||
<menuitem action='script-action-2'/>
|
||||
|
|
|
|||
|
|
@ -211,8 +211,6 @@ public:
|
|||
void toggle_monitor_section_visibility ();
|
||||
void toggle_keep_tearoffs();
|
||||
|
||||
void lua_script_manager();
|
||||
|
||||
static PublicEditor* _instance;
|
||||
|
||||
/** Emitted frequently with the audible frame, false, and the edit point as
|
||||
|
|
|
|||
|
|
@ -922,9 +922,3 @@ ARDOUR_UI::toggle_monitor_section_visibility ()
|
|||
mixer->show_monitor_section (tact->get_active());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::lua_script_manager ()
|
||||
{
|
||||
lua_script_window.show ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5726,12 +5726,6 @@ Editor::session_going_away ()
|
|||
SessionHandlePtr::session_going_away ();
|
||||
}
|
||||
|
||||
void
|
||||
Editor::manage_action_scripts ()
|
||||
{
|
||||
ARDOUR_UI::instance()->lua_script_manager();
|
||||
}
|
||||
|
||||
void
|
||||
Editor::trigger_script (int i)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1618,7 +1618,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
|
||||
void initialize_canvas ();
|
||||
|
||||
void manage_action_scripts ();
|
||||
void set_script_action_name (int i, const std::string&);
|
||||
|
||||
/* display control */
|
||||
|
|
|
|||
|
|
@ -475,9 +475,6 @@ Editor::register_actions ()
|
|||
|
||||
myactions.register_action (editor_actions, X_("cycle-zoom-focus"), _("Next Zoom Focus"), sigc::mem_fun (*this, &Editor::cycle_zoom_focus));
|
||||
|
||||
reg_sens (editor_actions, "manage-action-scripts", _("Manage"),
|
||||
sigc::mem_fun(*this, &Editor::manage_action_scripts));
|
||||
|
||||
for (int i = 1; i <= 9; ++i) {
|
||||
string const a = string_compose (X_("script-action-%1"), i);
|
||||
string const n = string_compose (_("Unset #%1"), i);
|
||||
|
|
|
|||
|
|
@ -109,12 +109,6 @@ LuaScriptManager::LuaScriptManager ()
|
|||
callback_selection_changed ();
|
||||
}
|
||||
|
||||
bool
|
||||
LuaScriptManager::on_delete_event (GdkEventAny*)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
LuaScriptManager::session_going_away ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ public:
|
|||
LuaScriptManager ();
|
||||
|
||||
protected:
|
||||
bool on_delete_event (GdkEventAny*);
|
||||
void session_going_away();
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue