#include "automation_time_axis.h"
#include "automation_line.h"
#include "public_editor.h"
-#include "canvas-simplerect.h"
-#include "canvas-waveview.h"
+#include "simplerect.h"
#include "selection.h"
#include "ghostregion.h"
#include "rgb_macros.h"
#include "automation_selectable.h"
#include "point_selection.h"
+#include "canvas_impl.h"
#include "i18n.h"
" ",
" "};
-AutomationTimeAxisView::AutomationTimeAxisView (Session& s, Route& r, PublicEditor& e, TimeAxisView& rent, Widget* p, std::string nom, std::string state_name, std::string nomparent)
+AutomationTimeAxisView::AutomationTimeAxisView (Session& s, Route& r, PublicEditor& e, TimeAxisView& rent,
+ ArdourCanvas::Canvas& canvas, const string & nom,
+ const string & state_name, const string & nomparent)
: AxisView (s),
- TimeAxisView (s, e, &rent, p),
+ TimeAxisView (s, e, &rent, canvas),
route (r),
_name (nom),
_state_name (state_name),
// "outline_what", (guint32) (0x1|0x2|0x8),
// "fill_color_rgba", color_map[cAutomationTrackFill],
// NULL);
- base_rect = new Gnome::Canvas::SimpleRect(*canvas_display);
- base_rect->set_property ("x1", 0.0);
- base_rect->set_property ("y1", 0.0);
- base_rect->set_property ("x2", 1000000.0);
- base_rect->set_property ("outline_color_rgba", color_map[cAutomationTrackOutline]);
+ base_rect = new SimpleRect(*canvas_display);
+ base_rect->property_x1() = 0.0;
+ base_rect->property_y1() = 0.0;
+ base_rect->property_x2() = 1000000.0;
+ base_rect->property_outline_color_rgba() = color_map[cAutomationTrackOutline];
/* outline ends and bottom */
- base_rect->set_property ("outline_what", (guint32) (0x1|0x2|0x8));
- base_rect->set_property ("fill_color_rgba", color_map[cAutomationTrackFill]);
+ base_rect->property_outline_what() = (guint32) (0x1|0x2|0x8);
+ base_rect->property_fill_color_rgba() = color_map[cAutomationTrackFill];
base_rect->set_data ("trackview", this);
life easier and remove them.
*/
- name_hbox.remove (name_entry);
+ hide_name_entry();
/* move the name label over a bit */
controls_table.show_all ();
TimeAxisView::set_height (h);
- gtk_object_set (GTK_OBJECT(base_rect), "y2", (double) h, NULL);
+ base_rect->property_y2() = h;
for (vector<AutomationLine*>::iterator i = lines.begin(); i != lines.end(); ++i) {
(*i)->set_height (h);
controls_table.attach (name_hbox, 1, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
}
controls_table.show_all ();
- name_label.show ();
+ hide_name_entry ();
+ show_name_label ();
break;
case Large:
controls_table.attach (name_hbox, 1, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
}
controls_table.show_all ();
- name_label.show ();
+ hide_name_entry ();
+ show_name_label ();
break;
case Larger:
controls_table.attach (name_hbox, 1, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
}
controls_table.show_all ();
- name_label.show ();
+ hide_name_entry ();
+ show_name_label ();
break;
case Normal:
controls_table.attach (name_hbox, 1, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
}
controls_table.show_all ();
- name_label.show ();
+ hide_name_entry ();
+ show_name_label ();
break;
case Smaller:
}
controls_table.attach (name_hbox, 1, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
controls_table.hide_all ();
+ hide_name_entry ();
+ show_name_label ();
name_hbox.show_all ();
controls_table.show ();
break;
}
controls_table.attach (name_hbox, 1, 6, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
controls_table.hide_all ();
+ hide_name_entry ();
+ show_name_label ();
name_hbox.show_all ();
controls_table.show ();
break;
hide ();
}
-
void
AutomationTimeAxisView::build_display_menu ()
{