Update NTK.
[nondaw.git] / FL / About_Dialog.fl
blob994e3e2a6c50036608834d499d7e94903f44f9b2
1 # data file for the Fltk User Interface Designer (fluid)
2 version 1.0300 
3 header_name {.H} 
4 code_name {.C}
5 decl {\#include <FL/Fl.H>} {private local
6
8 decl {\#include <FL/Fl_Shared_Image.H>} {private local
9
11 decl {\#include <FL/filename.H>} {private local
12
14 Function {open_url( const char *url )} {open return_type void
15 } {
16   code {fl_open_uri( url );} {}
17
19 class About_Dialog {open
20 } {
21   Function {About_Dialog( const char *logo_filename )} {} {
22     code {make_window( logo_filename );} {}
23   }
24   Function {run()} {return_type void
25   } {
26     code {window->show();
28 while ( window->shown() )
29         Fl::wait();
31 delete window;} {}
32   }
33   Function {make_window( const char *logo_filename )} {open private
34   } {
35     Fl_Window window {
36       label About
37       callback {o->hide();
39 if ( logo_box->image() )
41         ((Fl_Shared_Image*)logo_box->image())->release();
42         logo_box->image( 0 );
43 }} open
44       private xywh {1183 305 560 695} type Double xclass {Non-DAW} visible
45     } {
46       Fl_Tabs {} {open
47         xywh {0 352 558 296}
48       } {
49         Fl_Group {} {
50           label Credits open
51           xywh {2 386 553 261}
52         } {
53           Fl_Box credits {
54             label {Non-DAW was written from scratch by
55  Jonathan Moore Liles for his own use
56  (see the manual).
58 Nobody planned. Nobody helped.
59  You can help now by donating time, money,
60 and/or replacing the rest of Linux Audio
61 with fast, light, reliable alternatives.}
62             xywh {5 389 545 249} box ROUNDED_BOX color 46 labelsize 18
63           }
64         }
65         Fl_Group {} {
66           label License open
67           xywh {2 378 553 268} hide
68         } {
69           Fl_Box copyright {
70             label COPYRIGHT
71             xywh {43 389 462 22} labeltype SHADOW_LABEL labelfont 1 labelsize 18
72           }
73           Fl_Box {} {
74             label {This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
76 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
78 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.}
79             xywh {10 414 535 225} box ROUNDED_BOX color 46 labelfont 1 labelsize 12 labelcolor 53 align 144
80           }
81         }
82       }
83       Fl_Box logo_box {
84         label VERSION selected
85         xywh {5 5 550 305} color 48 labelfont 1 labelsize 18 align 16
86         code0 {o->image( Fl_Shared_Image::get( logo_filename ) );}
87         code1 {o->label( VERSION );}
88       }
89       Fl_Return_Button {} {
90         label Rock
91         callback {o->window()->do_callback();}
92         xywh {400 660 76 30}
93       }
94       Fl_Button website_url {
95         label {http://non-daw.tuxfamily.org}
96         callback {open_url( o->label() );}
97         xywh {125 660 245 30} color 14 labeltype SHADOW_LABEL labelcolor 6
98       }
99       Fl_Box title {
100         label TITLE
101         xywh {5 317 545 29} labeltype SHADOW_LABEL labelfont 3 labelsize 17
102       }
103     }
104   }