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
This commit is contained in:
Paul Davis 2011-11-18 22:17:59 +00:00
parent 5770f26bc9
commit b4646bb4c0
2 changed files with 119 additions and 28 deletions

View file

@ -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;