non/FL/About_Dialog.fl

114 lines
3.6 KiB
Plaintext
Raw Normal View History

2010-01-24 22:54:32 +01:00
# data file for the Fltk User Interface Designer (fluid)
2010-02-02 04:54:09 +01:00
version 1.0110
header_name {.H}
2010-01-24 22:54:32 +01:00
code_name {.C}
2010-02-02 04:54:09 +01:00
decl {\#include <FL/Fl.H>} {}
2010-01-24 22:54:32 +01:00
decl {\#include <FL/Fl_Shared_Image.H>} {}
2010-01-24 22:54:32 +01:00
decl {\#include <FL/filename.H>} {}
2010-01-24 22:54:32 +01:00
Function {open_url( const char *url )} {open return_type void
} {
code {\#if ! ( FL_MAJOR_VERSION >= 1 && FL_MINOR_VERSION >= 1 && FL_PATCH_VERSION >= 8 )
2010-01-24 22:54:32 +01:00
// FIXME: got a better idea?
char cmd[256];
snprintf( cmd, sizeof( cmd ), "x-www-browser '%s' &", url );
system( cmd );
\#else
fl_open_uri( url );
\#endif} {}
2010-02-02 04:54:09 +01:00
}
2010-01-24 22:54:32 +01:00
class About_Dialog {open
} {
Function {About_Dialog( const char *logo_filename )} {} {
2010-02-02 04:54:09 +01:00
code {make_window( logo_filename );} {}
2010-01-24 22:54:32 +01:00
}
Function {run()} {return_type void
} {
code {window->show();
while ( window->shown() )
Fl::wait();
2010-01-24 22:54:32 +01:00
delete window;} {}
}
Function {make_window( const char *logo_filename )} {open private
2010-01-24 22:54:32 +01:00
} {
Fl_Window window {
label About
callback {o->hide();
if ( logo_box->image() )
{
((Fl_Shared_Image*)logo_box->image())->release();
logo_box->image( 0 );
2010-02-02 04:54:09 +01:00
}} open
private xywh {382 210 495 655} type Double xclass {Non-DAW} visible
2010-01-24 22:54:32 +01:00
} {
Fl_Tabs {} {open
xywh {0 264 497 392}
} {
Fl_Group {} {
label Credits open
xywh {2 293 492 362}
} {
2010-02-02 04:54:09 +01:00
Fl_Box credits {
2010-01-24 22:54:32 +01:00
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.}
xywh {39 322 418 262} box ROUNDED_BOX color 46 labelsize 18
}
}
Fl_Group {} {
label License open
xywh {2 288 492 311} hide
} {
2010-02-02 04:54:09 +01:00
Fl_Box copyright {
label COPYRIGHT
2010-01-24 22:54:32 +01:00
xywh {43 302 410 37} labeltype SHADOW_LABEL labelfont 1 labelsize 18
}
Fl_Box {} {
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.
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.
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.}
xywh {10 351 475 233} box ROUNDED_BOX color 46 labelfont 1 labelsize 12 labelcolor 53 align 144
}
}
}
Fl_Box logo_box {
2010-02-02 04:54:09 +01:00
label VERSION selected
xywh {25 20 445 180} box ROUNDED_BOX color 48 labelfont 1 labelsize 18 align 16
code0 {Fl_Shared_Image *im = Fl_Shared_Image::get( logo_filename );
float iA = im->h() / im->w();
int oH = o->h() - 18;
2010-02-02 04:54:09 +01:00
o->image( Fl_Shared_Image::get( logo_filename, iA * oH, oH ) );}
2010-01-24 22:54:32 +01:00
code1 {o->label( VERSION );}
}
Fl_Return_Button {} {
label Rock
callback {o->window()->do_callback();}
xywh {400 614 76 30}
}
2010-02-02 04:54:09 +01:00
Fl_Button website_url {
2010-01-24 22:54:32 +01:00
label {http://non-daw.tuxfamily.org}
callback {open_url( o->label() );}
xywh {125 614 245 30} color 14 labeltype SHADOW_LABEL labelcolor 6
}
2010-02-02 04:54:09 +01:00
Fl_Box title {
label TITLE
2010-01-24 22:54:32 +01:00
xywh {32 221 430 29} labeltype SHADOW_LABEL labelfont 3 labelsize 17
}
}
}
2010-02-02 04:54:09 +01:00
}