diff --git a/Track_Header.C b/Track_Header.C index fe0ebb5..051f4ce 100644 --- a/Track_Header.C +++ b/Track_Header.C @@ -61,15 +61,16 @@ Track_Header::Track_Header ( int X, int Y, int W, int H, const char *L ) : Fl_Button *o = record_button = new Fl_Button( 6, 38, 26, 27, "@circle" ); o->type( 1 ); - o->box( FL_ROUNDED_BOX ); + o->box( FL_THIN_UP_BOX ); o->color( FL_LIGHT1 ); + o->selection_color( FL_RED ); o->labelsize( 8 ); } { Fl_Button *o = mute_button = new Fl_Button( 35, 38, 26, 27, "m" ); o->type( 1 ); - o->box( FL_ROUNDED_BOX ); + o->box( FL_THIN_UP_BOX ); o->color( FL_LIGHT1 ); o->labelsize( 11 ); } @@ -77,14 +78,14 @@ Track_Header::Track_Header ( int X, int Y, int W, int H, const char *L ) : Fl_Button *o = solo_button = new Fl_Button( 66, 38, 26, 27, "s" ); o->type( 1 ); - o->box( FL_ROUNDED_BOX ); + o->box( FL_THIN_UP_BOX ); o->color( FL_LIGHT1 ); o->labelsize( 11 ); } { Fl_Menu_Button *o = take_menu = new Fl_Menu_Button( 97, 38, 47, 27, "T" ); - o->box( FL_ROUNDED_BOX ); + o->box( FL_THIN_UP_BOX ); o->color( FL_LIGHT1 ); o->align( FL_ALIGN_LEFT | FL_ALIGN_INSIDE ); } diff --git a/Track_Header.H b/Track_Header.H index 2fb0b31..5d63954 100644 --- a/Track_Header.H +++ b/Track_Header.H @@ -117,6 +117,29 @@ public: return sa; } + void + draw ( void ) + { + if ( _selected ) + { + Fl_Color c = color(); + + color( FL_RED ); + + Fl_Group::draw(); + + color( c ); + } + else + Fl_Group::draw(); + } + + const char * name ( void ) const { return _name; } + bool mute ( void ) const { return mute_button->value(); } + bool solo ( void ) const { return solo_button->value(); } + bool arm ( void ) const { return record_button->value(); } + bool selected ( void ) const { return _selected; } + static void cb_input_field ( Fl_Widget *w, void *v ); void cb_input_field ( void );