Ticket #71 (assigned todo)
Time Code In Place Edit Control
| Reported by: | joelholdsworth | Owned by: | skangas |
|---|---|---|---|
| Priority: | normal | Milestone: | 1alpha |
| Component: | lumieraGui | Keywords: | |
| Cc: | Blocked By: | #750 | |
| Blocking: | #773 |
Description
Create a control that allows the user to both see and edit a time code. This needs to be slightly more than a plain text entry control, because the primare purpose of the timecode widget is to show the time not to edit the time. Ideally the control would consist of a button that shows the current time code. When clicked, the text can be edited in-place.
During in-place editing, the separators (colons etc.) should be enforced, so that the user only edits the HH:MM:SS:FF values.
Change History
comment:2 Changed 3 years ago by joelholdsworth
@ichthyo - hey sounds good to me! any work saved is good. Without have looked yet I should think this will be possible. There may be some need to tidy the code, and to adjust the functionality for our purposes, but still it might well save a lot of work.

Hi Joel,
would it be basically an option to re-use the repective widget from Ardour?
Ardour is gtkmm too, right?
As you know, I am working several hours every day with Ardour, and I especially like
this widget; it has exactly the behaviour you describe: You enter the edit mode by
clicking on any of the components of the TC. This component then gets the focus, which
is shown by changing the colour to red; after entering the new value (or hitting ENTER),
the focus changes to the next-lesser component, and after leaving the last component, the
new value is set. On right-click, you get an popup menu to choose the TC format (SMPTE, h:m:s.s, bars:beats, sample frames..); this choice is remembered in the session, at least for the major clocks.
Ardour uses this widget at various places, not only for the primary and secondary clock, but also for the edit point, zoom range and within the "Markers" popup to edit start, end and length of all markers, including the loop and punch range.
Maybe, even if it doesn't fit perfectly, we possibly could extract parts of their code? what's your opinion?