*/
+#ifdef WAF_BUILD
+#include "gtk2ardour-config.h"
+#endif
+
#include <libgnomecanvasmm/init.h>
#include <libgnomecanvasmm/pixbuf.h>
#include <jack/types.h>
#include "ardour_ui.h"
#include "editor.h"
+#include "global_signals.h"
#include "waveview.h"
#include "simplerect.h"
#include "simpleline.h"
#include "editor_routes.h"
#include "editor_summary.h"
#include "keyboard.h"
+#include "editor_cursors.h"
+#include "mouse_cursors.h"
#include "i18n.h"
playhead_cursor->set_length (_canvas_height);
}
- for (MarkerSelection::iterator x = selection->markers.begin(); x != selection->markers.end(); ++x) {
- (*x)->set_line_vpos (0, _canvas_height);
+ for (LocationMarkerMap::iterator i = location_markers.begin(); i != location_markers.end(); ++i) {
+ i->second->canvas_height_set (_canvas_height);
}
vertical_adjustment.set_page_size (_canvas_height);
framepos_t rightmost_frame = leftmost_frame + current_page_frames();
bool startit = false;
- double ty = _drags->current_pointer_y() - get_trackview_group_vertical_offset ();
+ double const ty = _drags->current_pointer_y() - get_trackview_group_vertical_offset ();
autoscroll_y = 0;
autoscroll_x = 0;
bool
Editor::left_track_canvas (GdkEventCrossing */*ev*/)
{
- DropDownKeys ();
+ DropDownKeys ();
set_entered_track (0);
set_entered_regionview (0);
reset_canvas_action_sensitivity (false);
_summary->set_overlays_dirty ();
}
+ HorizontalPositionChanged (); /* EMIT SIGNAL */
+
#ifndef GTKOSX
if (!autoscroll_active && !_stationary_playhead) {
/* force rulers and canvas to move in lock step */
void
Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save)
{
- if (save) {
- current_canvas_cursor = cursor;
- }
+ if (save) {
+ current_canvas_cursor = cursor;
+ }
if (is_drawable()) {
track_canvas->get_window()->set_cursor (*cursor);
{
/* XXX: event does not report the modifier key pressed down, AFAICS, so use the Keyboard object instead */
if (mouse_mode == Editing::MouseZoom && Keyboard::the_keyboard().key_is_down (GDK_Control_L)) {
- set_canvas_cursor (zoom_out_cursor);
+ set_canvas_cursor (_cursors->zoom_out);
}
return false;
Editor::track_canvas_key_release (GdkEventKey* event)
{
if (mouse_mode == Editing::MouseZoom && !Keyboard::the_keyboard().key_is_down (GDK_Control_L)) {
- set_canvas_cursor (zoom_in_cursor);
+ set_canvas_cursor (_cursors->zoom_in);
}
return false;