diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-18 22:17:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-18 22:17:59 +0000 |
commit | b4646bb4c0e03e1a31c862275bb331fa3de25e71 (patch) | |
tree | dcf73401740aab1b3fc4425a89dd4b96b03349c6 /gtk2_ardour/audio_clock.h | |
parent | 5770f26bc9aea867d8fcd62c38ccef70291034aa (diff) |
add a cursor (prototype) to audio clocks for editing, fix negative value display, and more
git-svn-id: svn://localhost/ardour2/branches/3.0@10692 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.h')
-rw-r--r-- | gtk2_ardour/audio_clock.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h index 9ad017055b..f4681c279c 100644 --- a/gtk2_ardour/audio_clock.h +++ b/gtk2_ardour/audio_clock.h @@ -135,11 +135,18 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr Field index_to_field (int index) const; + /* this maps the number of input characters/digits when editing + to a cursor position. insert_map[N] = index of character/digit + where the cursor should be after N chars/digits. it is + mode specific and so it is filled during set_mode(). + */ + + std::vector<int> insert_map; + bool editing; std::string edit_string; std::string pre_edit_string; std::string input_string; - std::string::size_type insert_max; framepos_t bbt_reference_time; framepos_t last_when; |