*/
-#include "pbd/convert.h"
+#include "pbd/string_convert.h"
#include "ardour/mute_control.h"
#include "ardour/profile.h"
#include "ui_config.h"
#include "vca_time_axis.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace ARDOUR;
using namespace ARDOUR_UI_UTILS;
spill_button.show ();
gain_meter.get_gain_slider().show ();
+ controls_ebox.set_name ("ControlMasterBaseUnselected");
+ time_axis_frame.set_name ("ControlMasterBaseUnselected");
+
s->config.ParameterChanged.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::parameter_changed, this, _1), gui_context());
Config->ParameterChanged.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::parameter_changed, this, _1), gui_context());
UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &VCATimeAxisView::parameter_changed));
mute_button.set_controllable (_vca->mute_control());
/* VCA number never changes */
- number_label.set_text (to_string (_vca->number(), std::dec));
+ number_label.set_text (PBD::to_string (_vca->number()));
set_height (preset_height (HeightNormal));
void
VCATimeAxisView::update_vca_name ()
{
- name_label.set_text (_vca->name());
+ name_label.set_text (_vca->full_name());
}
void
set_gui_property ("height", h);
_vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */
}
+
+bool
+VCATimeAxisView::marked_for_display () const
+{
+ return _vca && !_vca->presentation_info().hidden();
+}
+
+bool
+VCATimeAxisView::set_marked_for_display (bool yn)
+{
+ if (_vca && (yn == _vca->presentation_info().hidden())) {
+ _vca->presentation_info().set_hidden (!yn);
+ return true; // things changed
+ }
+ return false;
+}