Change LuaWindow into an ArdourWindow

* remember window visibility, size and position
* Show as toggle in the window-menu (rather than show action)
* reduce specialization, use WM and ArdourWindow infrastructure
  (transient parent, window-type, etc)
This commit is contained in:
Robin Gareus 2021-09-20 04:26:24 +02:00
parent 23c5793173
commit 747b24f063
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
7 changed files with 24 additions and 69 deletions

View file

@ -108,20 +108,6 @@ ARDOUR_UI::create_editor ()
return 0;
}
int
ARDOUR_UI::create_luawindow ()
{
try {
luawindow = LuaWindow::instance ();
}
catch (failed_constructor& err) {
return -1;
}
return 0;
}
int
ARDOUR_UI::create_recorder ()
{
@ -278,7 +264,6 @@ ARDOUR_UI::install_actions ()
ActionManager::register_action (common_actions, X_("show-ui-prefs"), _("Show more UI preferences"), sigc::mem_fun (*this, &ARDOUR_UI::show_ui_prefs));
}
ActionManager::register_action (common_actions, X_("toggle-luawindow"), S_("Window|Scripting"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_luawindow));
ActionManager::register_action (common_actions, X_("toggle-meterbridge"), S_("Window|Meterbridge"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_meterbridge));
act = ActionManager::register_action (common_actions, X_("NewMIDITracer"), _("MIDI Tracer"), sigc::mem_fun(*this, &ARDOUR_UI::new_midi_tracer_window));