Minor cleanup.

This commit is contained in:
Jonathan Moore Liles 2013-04-13 21:41:39 -07:00
parent ae633840fb
commit 07e40513c6
5 changed files with 12 additions and 20 deletions

View File

@ -18,9 +18,9 @@ Function {open_url( const char *url )} {open return_type void
class About_Dialog {open
} {
Function {About_Dialog( const char *logo_filename, const char *xclass )} {open
Function {About_Dialog( const char *logo_filename )} {open
} {
code {make_window( logo_filename, xclass );} {}
code {make_window( logo_filename );} {}
}
Function {run()} {open return_type void
} {
@ -31,7 +31,7 @@ while ( window->shown() )
delete window;} {}
}
Function {make_window( const char *logo_filename, const char *xclass )} {open private
Function {make_window( const char *logo_filename )} {open private
} {
Fl_Window window {
label About
@ -43,7 +43,7 @@ if ( logo_box->image() )
logo_box->image( 0 );
}} open selected
private xywh {879 215 560 695} type Double
code0 {o->xclass( xclass );} visible
visible
} {
Fl_Tabs {} {open
xywh {0 352 558 296}
@ -53,14 +53,7 @@ if ( logo_box->image() )
xywh {2 386 553 261}
} {
Fl_Box credits {
label {Non-DAW was written from scratch by
Jonathan Moore Liles for his own use
(see the manual).
Nobody planned. Nobody helped.
You can help now by donating time, money,
and/or replacing the rest of Linux Audio
with fast, light, reliable alternatives.}
label {}
xywh {5 389 545 249} box ROUNDED_BOX color 46 labelsize 18
}
}

View File

@ -55,7 +55,7 @@ while ( _window->shown() )
} {
Fl_Window _window {
label {New Project} open
xywh {762 252 550 195} type Double hide modal xclass Non_DAW
xywh {762 252 550 195} type Double hide modal
} {
Fl_File_Input _name {
label {Named:}

View File

@ -313,7 +313,7 @@ void Mixer::cb_menu(Fl_Widget* o) {
}
else if ( ! strcmp( picked, "&Help/&About" ) )
{
About_Dialog ab( PIXMAP_PATH "/non-mixer/icon-256x256.png", APP_NAME );
About_Dialog ab( PIXMAP_PATH "/non-mixer/icon-256x256.png" );
ab.logo_box->label( VERSION );

View File

@ -1232,7 +1232,7 @@ config.follow_playhead = val ? true : false;}
}
MenuItem {} {
label {&About}
callback {About_Dialog ab( PIXMAP_PATH "/non-sequencer/icon-256x256.png", APP_NAME );
callback {About_Dialog ab( PIXMAP_PATH "/non-sequencer/icon-256x256.png" );
ab.logo_box->label( VERSION );

View File

@ -627,18 +627,17 @@ timeline->redraw();}
}
MenuItem {} {
label {&About}
callback {About_Dialog ab( PIXMAP_PATH "/non-timeline/icon-256x256.png", "Non-Timeline" );
callback {About_Dialog ab( PIXMAP_PATH "/non-timeline/icon-256x256.png" );
ab.logo_box->label( VERSION );
ab.title->label( "Non Timeline" );
ab.copyright->label( "Copyright (C) 2008-2010 Jonathan Moore Liles" );
ab.copyright->label( "Copyright (C) 2008-2013 Jonathan Moore Liles" );
ab.credits->label( "Non Timeline was written from scratch by\\nJonathan Moore Liles for his own use\\n(see the manual).\\n\\nNobody planned. Nobody helped.\\nYou can help now by donating time, money,\\nand/or replacing the rest of Linux Audio\\nwith fast, light, reliable alternatives.\\n" );
ab.website_url->label( "http://non.tuxfamily.org" );
ab.run();}
xywh {5 5 40 25}
}
@ -1006,7 +1005,7 @@ if ( logo_box->image() )
logo_box->image( NULL );
}} open
private xywh {1189 128 520 775} type Double
code0 {o->xclass( APP_NAME );} modal visible
modal visible
} {
Fl_Value_Output {} {
label {Sample Rate}
@ -1041,7 +1040,7 @@ if ( logo_box->image() )
Fl_Box logo_box {
label {<LOGO>}
private xywh {20 173 485 268} color 53 labelfont 1 labelsize 18 align 16
code0 {o->image( Fl_Shared_Image::get( PIXMAP_PATH "non-timeline/icon-256x256.png" ) );}
code0 {o->image( Fl_Shared_Image::get( PIXMAP_PATH "/non-timeline/icon-256x256.png" ) );}
code1 {o->label( NULL );}
}
Fl_Text_Editor notes_field {