#include <gtkmm2ext/gtk_ui.h>
#include "ardour/playlist.h"
-#include "ardour/audioregion.h"
-#include "ardour/audiosource.h"
#include "ardour/session.h"
#include "ardour_ui.h"
if (what_changed.contains (ARDOUR::Properties::locked)) {
region_locked ();
}
+ if (what_changed.contains (ARDOUR::Properties::locked)) {
+ /* name will show locked status */
+ region_renamed ();
+ }
}
void
str += '{';
str += _region->name();
str += '}';
+ } else if (_region->video_locked()) {
+ str += '[';
+ str += _region->name();
+ str += ']';
} else {
str = _region->name();
}
bool me = false;
/* the color that will be used to show parts of regions that will not be heard */
- uint32_t non_playing_color = RGBA_TO_UINT (32, 32, 32, 192);
+ uint32_t const non_playing_color = ARDOUR_UI::config()->canvasvar_CoveredRegion.get ();
while (t < end) {
}
}
-void
+bool
RegionView::trim_front (framepos_t new_bound, bool no_overlap)
{
if (_region->locked()) {
- return;
+ return false;
}
RouteTimeAxisView& rtv = dynamic_cast<RouteTimeAxisView&> (trackview);
}
region_changed (ARDOUR::bounds_change);
+
+ return (pre_trim_first_frame != _region->first_frame()); //return true if we actually changed something
}
-void
+bool
RegionView::trim_end (framepos_t new_bound, bool no_overlap)
{
if (_region->locked()) {
- return;
+ return false;
}
RouteTimeAxisView& rtv = dynamic_cast<RouteTimeAxisView&> (trackview);
} else {
region_changed (PropertyChange (ARDOUR::Properties::length));
}
+
+ return (pre_trim_last_frame != _region->last_frame()); //return true if we actually changed something
}