diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-26 23:43:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-26 23:43:04 +0000 |
commit | 0cc0c13444408163e5555a2a1deb32d8f79ec826 (patch) | |
tree | 252047abb98f62d9176bcec404087c6a63865522 /gtk2_ardour/editor.h | |
parent | b6e90314b0087e870ad21ce658b92bd23851fe29 (diff) |
provide accessors to Editor::snap_{type,mode} ; when nudging notes, use grid in preference to nudge clock
git-svn-id: svn://localhost/ardour2/branches/3.0@5934 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index e4cb5ec57d..030be68ec1 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -176,6 +176,9 @@ class Editor : public PublicEditor void set_snap_mode (Editing::SnapMode); void set_snap_threshold (double pixel_distance) {snap_threshold = pixel_distance;} + Editing::SnapMode snap_mode () const; + Editing::SnapType snap_type () const; + void undo (uint32_t n = 1); void redo (uint32_t n = 1); @@ -1285,8 +1288,8 @@ class Editor : public PublicEditor void extend_selection_to_end_of_region (bool next); void extend_selection_to_start_of_region (bool previous); - Editing::SnapType snap_type; - Editing::SnapMode snap_mode; + Editing::SnapType _snap_type; + Editing::SnapMode _snap_mode; /// Snap threshold in pixels double snap_threshold; |