#include <vector>
#include <list>
-#include <gtk--.h>
-#include <gtk-canvas.h>
+#include <gtkmm.h>
#include <ardour/types.h>
#include <ardour/region.h>
#include "axis_view.h"
#include "enums.h"
#include "editing.h"
+#include "canvas.h"
namespace ARDOUR {
class Session;
Small = 21
};
- TimeAxisView(ARDOUR::Session& sess, PublicEditor& ed, TimeAxisView* parent, Gtk::Widget *canvas);
+ TimeAxisView(ARDOUR::Session& sess, PublicEditor& ed, TimeAxisView* parent, ArdourCanvas::Canvas& canvas);
virtual ~TimeAxisView ();
/* public data: XXX create accessor/mutators for these ?? */
int order;
- GtkCanvasItem *canvas_display;
+ ArdourCanvas::Group *canvas_display;
Gtk::VBox *control_parent;
/* The Standard LHS Controls */
return 0;
}
- void order_selection_trims (GtkCanvasItem *item, bool put_start_on_top);
+ void order_selection_trims (ArdourCanvas::Item *item, bool put_start_on_top);
virtual void get_selectables (jack_nframes_t start, jack_nframes_t end, double top, double bot, list<Selectable*>& results);
virtual void get_inverted_selectables (Selection&, list<Selectable *>& results);
*
* @param ev the event
*/
- virtual gint name_entry_button_press (GdkEventButton *ev);
+ virtual bool name_entry_button_press (GdkEventButton *ev);
/**
* Handle mouse relaese on our LHS control name entry.
*
*@ param ev the event
*/
- virtual gint name_entry_button_release (GdkEventButton *ev);
+ virtual bool name_entry_button_release (GdkEventButton *ev);
/**
* Handle mouse relaese on our LHS control name ebox.
* Do anything that needs to be done to dynamically reset
* the LHS control menu.
*/
- virtual gint handle_display_menu_map_event (GdkEventAny *ev) { return FALSE; }
+ virtual bool handle_display_menu_map_event (GdkEventAny *ev) { return false; }
/**
* Build the standard LHS control size menu for the default TrackHeight options.
/* selection display */
- GtkCanvasItem *selection_group;
+ ArdourCanvas::Group *selection_group;
list<SelectionRect*> free_selection_rects;
list<SelectionRect*> used_selection_rects;