Use text edit window widget for annotation region.
This commit is contained in:
parent
5985f12d11
commit
35bb316a02
|
@ -89,6 +89,7 @@ Annotation_Region::draw ( void )
|
||||||
draw_label( _label, (Fl_Align)(FL_ALIGN_LEFT | FL_ALIGN_INSIDE | FL_ALIGN_CLIP ) );
|
draw_label( _label, (Fl_Align)(FL_ALIGN_LEFT | FL_ALIGN_INSIDE | FL_ALIGN_CLIP ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "FL/Fl_Text_Edit_Window.H"
|
||||||
|
|
||||||
int
|
int
|
||||||
Annotation_Region::handle ( int m )
|
Annotation_Region::handle ( int m )
|
||||||
|
@ -97,11 +98,13 @@ Annotation_Region::handle ( int m )
|
||||||
|
|
||||||
if ( m == FL_PUSH && Fl::test_shortcut( FL_BUTTON3 ) && ! Fl::event_shift() )
|
if ( m == FL_PUSH && Fl::test_shortcut( FL_BUTTON3 ) && ! Fl::event_shift() )
|
||||||
{
|
{
|
||||||
const char *s = fl_input( "New name for mark:", name() );
|
char *s = fl_text_edit( "Annotation text:", "Save", name() );
|
||||||
|
|
||||||
if ( s )
|
if ( s )
|
||||||
name( s );
|
name( s );
|
||||||
|
|
||||||
|
free( s );
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ Timeline/Sequence.C \
|
||||||
Timeline/Sequence_Point.C \
|
Timeline/Sequence_Point.C \
|
||||||
Timeline/Sequence_Widget.C \
|
Timeline/Sequence_Widget.C \
|
||||||
Timeline/Sequence_Region.C \
|
Timeline/Sequence_Region.C \
|
||||||
|
Timeline/Annotation_Region.C \
|
||||||
Timeline/TLE.C \
|
Timeline/TLE.C \
|
||||||
Timeline/Tempo_Point.C \
|
Timeline/Tempo_Point.C \
|
||||||
Timeline/Time_Point.C \
|
Timeline/Time_Point.C \
|
||||||
|
|
Loading…
Reference in New Issue