diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-12 02:51:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-12 02:51:51 +0000 |
commit | a1955a82e81816161f5b7dbf460a694e902237b0 (patch) | |
tree | 3c576a733aed52ff02a8fdc9786838bdea7758d2 /gtk2_ardour/plugin_ui.cc | |
parent | 7999372faccab884b4e652da83702d7ec252e14b (diff) |
AU GUIs basically working, though unfinished; push up dialog for massive split operations (still in progress); fix problem where peakfile is slightly older than audio data even though it is ready to use (debugging output still present); move sync-menu code to libs/gtkmm2ext for linkage reasons; prevent flush_pending() calls from "top menu" items on OS X from locking the GUI; try to make adding lots of regions (e.g. from split-at-points) scale a bit better; SAE version has no timecode mode for audio clocks
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3038 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 1f6ed84660..4a74b39f0d 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -62,7 +62,6 @@ using namespace Gtk; using namespace sigc; PluginUIWindow::PluginUIWindow (boost::shared_ptr<PluginInsert> insert, bool scrollable) - : ArdourDialog ("plugin ui") { bool have_gui = false; non_gtk_gui = false; @@ -99,7 +98,7 @@ PluginUIWindow::PluginUIWindow (boost::shared_ptr<PluginInsert> insert, bool scr GenericPluginUI* pu = new GenericPluginUI (insert, scrollable); _pluginui = pu; - get_vbox()->add (*pu); + add (*pu); set_wmclass (X_("ardour_plugin_editor"), "Ardour"); @@ -107,7 +106,7 @@ PluginUIWindow::PluginUIWindow (boost::shared_ptr<PluginInsert> insert, bool scr signal_unmap_event().connect (mem_fun (*pu, &GenericPluginUI::stop_updating)); } - set_position (Gtk::WIN_POS_MOUSE); + // set_position (Gtk::WIN_POS_MOUSE); set_name ("PluginEditor"); add_events (Gdk::KEY_PRESS_MASK|Gdk::KEY_RELEASE_MASK|Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK); @@ -138,23 +137,14 @@ PluginUIWindow::on_show () { cerr << "PluginWindow shown\n"; - ArdourDialog::on_show (); - Glib::ListHandle<Widget*> kids (get_vbox()->get_children()); - - cerr << "send show to " << kids.size() << " children of this plugin UI\n"; - - for (Glib::ListHandle<Widget*>::iterator x = kids.begin(); x != kids.end(); ++x) { - cerr << "\tSend show to " << (*x) << endl; - (*x)->show (); - } - cerr << "!! send done\n"; + Window::on_show (); } void PluginUIWindow::on_hide () { cerr << "PluginWindow hidden\n"; - ArdourDialog::on_hide (); + Window::on_hide (); } bool @@ -174,7 +164,7 @@ PluginUIWindow::create_vst_editor(boost::shared_ptr<PluginInsert> insert) VSTPluginUI* vpu = new VSTPluginUI (insert, vp); _pluginui = vpu; - get_vbox()->add (*vpu); + add (*vpu); vpu->package (*this); } @@ -191,8 +181,7 @@ PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert> insert) #else VBox* box; _pluginui = create_au_gui (insert, &box); - cerr << "#*#*#*#*#*#*#*#*## PACK " << box << " INTO PLUGIN UI\n"; - get_vbox()->add (*box); + add (*box); non_gtk_gui = true; extern sigc::signal<void,bool> ApplicationActivationChanged; @@ -206,12 +195,16 @@ void PluginUIWindow::app_activated (bool yn) { #if defined (HAVE_AUDIOUNITS) && defined(GTKOSX) - if (yn) { - if (_pluginui) { + cerr << "APP activated ? " << yn << endl; + if (_pluginui) { + if (yn) { _pluginui->activate (); + present (); + } else { + hide (); + _pluginui->deactivate (); } - } - cerr << "APP activated ? " << yn << endl; + } #endif } |