mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
NO-OP: remove cruft
This commit is contained in:
parent
4eb161cd4c
commit
5facfc113d
1 changed files with 0 additions and 45 deletions
|
|
@ -1311,7 +1311,6 @@ public:
|
||||||
|
|
||||||
_store->signal_row_changed().connect (sigc::mem_fun (*this, &ControlSurfacesOptions::view_changed));
|
_store->signal_row_changed().connect (sigc::mem_fun (*this, &ControlSurfacesOptions::view_changed));
|
||||||
_view.signal_button_release_event().connect_notify (sigc::mem_fun(*this, &ControlSurfacesOptions::edit_clicked));
|
_view.signal_button_release_event().connect_notify (sigc::mem_fun(*this, &ControlSurfacesOptions::edit_clicked));
|
||||||
_view.get_selection()->signal_changed().connect (sigc::mem_fun (*this, &ControlSurfacesOptions::selection_changed));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void parameter_changed (std::string const &)
|
void parameter_changed (std::string const &)
|
||||||
|
|
@ -1355,10 +1354,6 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void selection_changed ()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void view_changed (TreeModel::Path const &, TreeModel::iterator const & i)
|
void view_changed (TreeModel::Path const &, TreeModel::iterator const & i)
|
||||||
{
|
{
|
||||||
TreeModel::Row r = *i;
|
TreeModel::Row r = *i;
|
||||||
|
|
@ -1372,46 +1367,6 @@ private:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* XXX when we move to putting all editors into a notebook,
|
|
||||||
this test will have to be more subtle.
|
|
||||||
*/
|
|
||||||
bool const was_editing = (cpi && cpi->protocol && (cpi->protocol->get_gui() != 0));
|
|
||||||
bool const is_editing = r[_model.edit];
|
|
||||||
|
|
||||||
if (was_editing != is_editing) {
|
|
||||||
if (!was_editing) {
|
|
||||||
if (!r[_model.enabled]) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
cpi = r[_model.protocol_info];
|
|
||||||
if (!cpi || !cpi->protocol || !cpi->protocol->has_editor ()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Box* box = (Box*) cpi->protocol->get_gui ();
|
|
||||||
if (!box) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (box->get_parent()) {
|
|
||||||
static_cast<ArdourWindow*>(box->get_parent())->present();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
WindowTitle title (Glib::get_application_name());
|
|
||||||
title += r[_model.name];
|
|
||||||
title += _("Configuration");
|
|
||||||
/* once created, the window is managed by the surface itself (as ->get_parent())
|
|
||||||
* Surface's tear_down_gui() is called on session close, when de-activating
|
|
||||||
* or re-initializing a surface.
|
|
||||||
* tear_down_gui() hides an deletes the Window if it exists.
|
|
||||||
*/
|
|
||||||
ArdourWindow* win = new ArdourWindow (_parent, title.get_string());
|
|
||||||
win->add (*box);
|
|
||||||
box->show ();
|
|
||||||
win->present ();
|
|
||||||
} else {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
bool const was_enabled = (cpi->protocol != 0);
|
bool const was_enabled = (cpi->protocol != 0);
|
||||||
bool const is_enabled = r[_model.enabled];
|
bool const is_enabled = r[_model.enabled];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue