#include <utility>
#include <gtkmm2ext/barcontroller.h>
-#include <pbd/memento_command.h>
-#include <ardour/automation_control.h>
-#include <ardour/event_type_map.h>
-#include <ardour/route.h>
+#include "pbd/memento_command.h"
+#include "ardour/automation_control.h"
+#include "ardour/event_type_map.h"
+#include "ardour/route.h"
#include "ardour_ui.h"
#include "automation_time_axis.h"
#include "i18n.h"
+using namespace std;
using namespace ARDOUR;
using namespace PBD;
using namespace Gtk;
mem_fun (_editor, &PublicEditor::canvas_automation_track_event),
_base_rect, this));
- _base_rect->lower_to_bottom();
+ // _base_rect->lower_to_bottom();
hide_button.add (*(manage (new Gtk::Image (::get_icon("hide")))));
controls_base_unselected_name = X_("AutomationTrackControlsBase");
controls_ebox.set_name (controls_base_unselected_name);
- controls_frame.set_shadow_type (Gtk::SHADOW_ETCHED_OUT);
-
XMLNode* xml_node = get_parent_with_state()->get_automation_child_xml_node (
_control->parameter());
AutomationTimeAxisView::set_automation_state (AutoState state)
{
if (!ignore_state_request) {
+ _automatable->set_parameter_automation_state (_control->parameter(), state);
+#if 0
if (_route == _automatable) { // This is a time axis for route (not region) automation
_route->set_parameter_automation_state (_control->parameter(), state);
}
if (_control->list())
_control->alist()->set_automation_state(state);
+#endif
}
- if (_view)
+
+ if (_view) {
_view->set_automation_state (state);
+ }
}
void
}
void
-AutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item, GdkEvent* event, nframes_t when, double y)
+AutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* /*item*/, GdkEvent* /*event*/, nframes_t when, double y)
{
if (!_line)
return;
AutomationSelection::iterator p;
boost::shared_ptr<AutomationList> alist(line.the_list());
- for (p = selection.lines.begin(); p != selection.lines.end() && nth; ++p, --nth);
+ for (p = selection.lines.begin(); p != selection.lines.end() && nth; ++p, --nth) {}
if (p == selection.lines.end()) {
return false;