Mixer: Show project name on menubar.

This commit is contained in:
Jonathan Moore Liles 2010-01-31 20:54:15 -06:00
parent 2a9939c8c8
commit 82b4555ecb
2 changed files with 9 additions and 0 deletions

View File

@ -227,6 +227,12 @@ Mixer::Mixer ( int X, int Y, int W, int H, const char *L ) :
o->add( "&Help/&About" );
o->callback( cb_menu, this );
}
{ Fl_Box *o = project_name = new Fl_Box( X + 150, Y, W, 24 );
o->labelfont( FL_HELVETICA_ITALIC );
o->label( 0 );
o->align( FL_ALIGN_INSIDE | FL_ALIGN_CENTER );
o->labeltype( FL_SHADOW_LABEL );
}
{ Fl_Scroll *o = scroll = new Fl_Scroll( X, Y + 24, W, H - 24 );
o->box( FL_NO_BOX );
// o->type( Fl_Scroll::HORIZONTAL_ALWAYS );
@ -493,6 +499,8 @@ Mixer::update_menu ( void )
((Fl_Menu_Item*)menubar->find_item( "&Project/&Save" ))->flags |= FL_MENU_INACTIVE;
mixer_strips->deactivate();
}
project_name->label( Project::name() );
}
int

View File

@ -50,6 +50,7 @@ private:
Fl_Menu_Bar *menubar;
Fl_Scroll *scroll;
Fl_Pack *pack;
Fl_Box *project_name;
Fl_Flowpack *mixer_strips;