Change the appearance of track headers slightly.

This commit is contained in:
Jonathan Moore Liles 2008-02-29 22:38:24 -06:00
parent d2749e3397
commit d7902f7661
2 changed files with 28 additions and 4 deletions

View File

@ -61,15 +61,16 @@ Track_Header::Track_Header ( int X, int Y, int W, int H, const char *L ) :
Fl_Button *o = record_button = Fl_Button *o = record_button =
new Fl_Button( 6, 38, 26, 27, "@circle" ); new Fl_Button( 6, 38, 26, 27, "@circle" );
o->type( 1 ); o->type( 1 );
o->box( FL_ROUNDED_BOX ); o->box( FL_THIN_UP_BOX );
o->color( FL_LIGHT1 ); o->color( FL_LIGHT1 );
o->selection_color( FL_RED );
o->labelsize( 8 ); o->labelsize( 8 );
} }
{ {
Fl_Button *o = mute_button = Fl_Button *o = mute_button =
new Fl_Button( 35, 38, 26, 27, "m" ); new Fl_Button( 35, 38, 26, 27, "m" );
o->type( 1 ); o->type( 1 );
o->box( FL_ROUNDED_BOX ); o->box( FL_THIN_UP_BOX );
o->color( FL_LIGHT1 ); o->color( FL_LIGHT1 );
o->labelsize( 11 ); 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 = Fl_Button *o = solo_button =
new Fl_Button( 66, 38, 26, 27, "s" ); new Fl_Button( 66, 38, 26, 27, "s" );
o->type( 1 ); o->type( 1 );
o->box( FL_ROUNDED_BOX ); o->box( FL_THIN_UP_BOX );
o->color( FL_LIGHT1 ); o->color( FL_LIGHT1 );
o->labelsize( 11 ); o->labelsize( 11 );
} }
{ {
Fl_Menu_Button *o = take_menu = Fl_Menu_Button *o = take_menu =
new Fl_Menu_Button( 97, 38, 47, 27, "T" ); 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->color( FL_LIGHT1 );
o->align( FL_ALIGN_LEFT | FL_ALIGN_INSIDE ); o->align( FL_ALIGN_LEFT | FL_ALIGN_INSIDE );
} }

View File

@ -117,6 +117,29 @@ public:
return sa; 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 ); static void cb_input_field ( Fl_Widget *w, void *v );
void cb_input_field ( void ); void cb_input_field ( void );