mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
make sure editor can follow visibility changes for VCAs
This commit is contained in:
parent
fbc51c03ef
commit
8ceab4e193
3 changed files with 20 additions and 1 deletions
|
|
@ -581,7 +581,6 @@ EditorRoutes::redisplay_real ()
|
||||||
|
|
||||||
for (n = 0, position = 0, i = rows.begin(); i != rows.end(); ++i) {
|
for (n = 0, position = 0, i = rows.begin(); i != rows.end(); ++i) {
|
||||||
TimeAxisView *tv = (*i)[_columns.tv];
|
TimeAxisView *tv = (*i)[_columns.tv];
|
||||||
boost::shared_ptr<Stripable> route = (*i)[_columns.stripable];
|
|
||||||
|
|
||||||
if (tv == 0) {
|
if (tv == 0) {
|
||||||
// just a "title" row
|
// just a "title" row
|
||||||
|
|
@ -926,7 +925,9 @@ EditorRoutes::route_property_changed (const PropertyChange& what_changed, boost:
|
||||||
|
|
||||||
if (what_changed.contains (ARDOUR::Properties::hidden)) {
|
if (what_changed.contains (ARDOUR::Properties::hidden)) {
|
||||||
(*i)[_columns.visible] = !stripable->presentation_info().hidden();
|
(*i)[_columns.visible] = !stripable->presentation_info().hidden();
|
||||||
|
cerr << stripable->name() << " visibility changed, redisplay\n";
|
||||||
redisplay ();
|
redisplay ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -304,3 +304,19 @@ VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m)
|
||||||
set_gui_property ("height", h);
|
set_gui_property ("height", h);
|
||||||
_vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */
|
_vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
VCATimeAxisView::marked_for_display () const
|
||||||
|
{
|
||||||
|
return !_vca->presentation_info().hidden();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
VCATimeAxisView::set_marked_for_display (bool yn)
|
||||||
|
{
|
||||||
|
if (yn == _vca->presentation_info().hidden()) {
|
||||||
|
_vca->presentation_info().set_hidden (!yn);
|
||||||
|
return true; // things changed
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ class VCATimeAxisView : public TimeAxisView
|
||||||
void set_height (uint32_t h, TrackHeightMode m = OnlySelf);
|
void set_height (uint32_t h, TrackHeightMode m = OnlySelf);
|
||||||
|
|
||||||
bool selectable() const { return false; }
|
bool selectable() const { return false; }
|
||||||
|
bool marked_for_display () const;
|
||||||
|
bool set_marked_for_display (bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
boost::shared_ptr<ARDOUR::VCA> _vca;
|
boost::shared_ptr<ARDOUR::VCA> _vca;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue