summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_cursors.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-05-30 18:25:59 +0000
committerCarl Hetherington <carl@carlh.net>2009-05-30 18:25:59 +0000
commit962efaf05ed33ed12319eaf0e683df398b8bef05 (patch)
tree33e6824b740552e10a7891dacbb0aca348f88c82 /gtk2_ardour/editor_cursors.cc
parent139d62110369f17e97ee99fcc9ebb64784e44430 (diff)
Pull dragging code out of the Editor class into its own hierarchy.
git-svn-id: svn://localhost/ardour2/branches/3.0@5113 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_cursors.cc')
-rw-r--r--gtk2_ardour/editor_cursors.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_cursors.cc b/gtk2_ardour/editor_cursors.cc
index 93743f580e..0725ad0d12 100644
--- a/gtk2_ardour/editor_cursors.cc
+++ b/gtk2_ardour/editor_cursors.cc
@@ -30,7 +30,7 @@ using namespace ARDOUR;
using namespace PBD;
using namespace Gtk;
-Editor::Cursor::Cursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,ArdourCanvas::Item*))
+EditorCursor::EditorCursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,ArdourCanvas::Item*))
: editor (ed),
canvas_item (*editor.cursor_group),
length(1.0)
@@ -51,13 +51,13 @@ Editor::Cursor::Cursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,ArdourCanv
current_frame = 1; /* force redraw at 0 */
}
-Editor::Cursor::~Cursor ()
+EditorCursor::~EditorCursor ()
{
}
void
-Editor::Cursor::set_position (nframes64_t frame)
+EditorCursor::set_position (nframes64_t frame)
{
double new_pos = editor.frame_to_unit (frame);
@@ -72,7 +72,7 @@ Editor::Cursor::set_position (nframes64_t frame)
}
void
-Editor::Cursor::set_length (double units)
+EditorCursor::set_length (double units)
{
length = units;
points.back().set_y (points.front().get_y() + length);
@@ -80,7 +80,7 @@ Editor::Cursor::set_length (double units)
}
void
-Editor::Cursor::set_y_axis (double position)
+EditorCursor::set_y_axis (double position)
{
points.front().set_y (position);
points.back().set_y (position + length);