Module_Parameter_Editor: Hide the module name label because it rarely fits in the window.

This commit is contained in:
Jonathan Moore Liles 2010-01-13 23:01:15 -06:00
parent adf2d11b5b
commit 352c930559
1 changed files with 12 additions and 6 deletions

View File

@ -60,14 +60,16 @@ Module_Parameter_Editor::Module_Parameter_Editor ( Module *module ) : Fl_Double_
{ Fl_Pack *o = main_pack = new Fl_Pack( 0, y(), w(), h() - 10 ); { Fl_Pack *o = main_pack = new Fl_Pack( 0, y(), w(), h() - 10 );
o->type( FL_VERTICAL ); o->type( FL_VERTICAL );
o->label( strdup( lab ) ); /* o->label( strdup( lab ) ); */
o->labeltype( FL_SHADOW_LABEL ); /* o->labeltype( FL_SHADOW_LABEL ); */
o->labelsize( 18 ); /* o->labelsize( 18 ); */
o->align( (Fl_Align)(FL_ALIGN_TOP | FL_ALIGN_RIGHT | FL_ALIGN_INSIDE ) ); /* o->align( FL_ALIGN_TOP | FL_ALIGN_RIGHT | FL_ALIGN_INSIDE ); */
{ Fl_Pack *o = new Fl_Pack( 0, 0, 50, 25 ); { Fl_Pack *o = new Fl_Pack( 0, 0, 50, 25 );
o->type( FL_HORIZONTAL ); o->type( FL_HORIZONTAL );
o->spacing( 20 ); o->spacing( 20 );
{ Fl_Menu_Button *o = mode_choice = new Fl_Menu_Button( 0, 0, 25, 25 ); { Fl_Menu_Button *o = mode_choice = new Fl_Menu_Button( 0, 0, 25, 25 );
o->add( "Knobs" ); o->add( "Knobs" );
o->add( "Horizontal Sliders" ); o->add( "Horizontal Sliders" );
@ -77,6 +79,7 @@ Module_Parameter_Editor::Module_Parameter_Editor ( Module *module ) : Fl_Double_
o->when( FL_WHEN_CHANGED ); o->when( FL_WHEN_CHANGED );
o->callback( cb_mode_handle, this ); o->callback( cb_mode_handle, this );
} }
/* { Fl_Box *o = new Fl_Box( 0, 0, 300, 25 ); */ /* { Fl_Box *o = new Fl_Box( 0, 0, 300, 25 ); */
/* o->box( FL_ROUNDED_BOX ); */ /* o->box( FL_ROUNDED_BOX ); */
/* o->color( FL_YELLOW ); */ /* o->color( FL_YELLOW ); */
@ -243,8 +246,11 @@ Module_Parameter_Editor::make_controls ( void )
} }
main_pack->size( control_pack->max_width() + 100, control_pack->h() + 50 ); int width = control_pack->max_width() + 100;
size( control_pack->max_width() + 100, control_pack->h() + 50 ); int height = control_pack->h() + 50;
main_pack->size( width, height );
size( width, height );
} }
void void