Implement Module - Clip View
- Clip name display
The Clip View must store and display information about each audio clip.
Currently, for each clip it shows its number (sequentially), duration, and
time of creation.
- Audio View hint handler
The Clip View must handle receiving one type of hint, the "ID_HINT_CLIP_DONE"
hint which is sent from the Audio View upon completing a recording. That
hint is accompanied by a hintStruct structure (defined in hint.h),
containing the duration in seconds of the clip (a float) and the temporary
filename in which the audio information is stored (a CString).
The clip view is responsible for handling the reordering and possible
removal of clips from the list box. Using the promotion or demotion
buttons when a clip is selected will move that clip one position up or
down, respectively. The topmost clip cannot be promoted and the
bottommost cannot be demoted. Pressing the delete button when a clip is
highlighted removes that clip from the list. All three buttons will have
no effect if no clip is currently selected.
- Clip selection handler
The Clip View also sends one type of hint to the Audio View, the
"ID_HINT_CLIP_SELECTED" hint. This hint is sent when a new clip is
selected in the listbox control, and it is accompanied by a CString
containing the temporary filename associated with that clip.
- WAV serialization
When the project is to be saved or the WAV files are to be exported, the
Clip View must provide the temporary filenames for each clip.