diff options
Diffstat (limited to 'test')
55 files changed, 1627 insertions, 179 deletions
diff --git a/test/README b/test/README index ee63859aa..ce07c23a1 100644 --- a/test/README +++ b/test/README @@ -1,10 +1,13 @@ +test/README - 20 Oct 1998 +------------------------- + This directory contains tests and demos of FL. In most cases you can learn a lot about how to program FL by looking at the source code. Type "make" to compile them all. -The program "demo" is a graphical interface to run all the demos. -(you may recognize this as a rewrite of an XForms program). +The program "demo" is a graphical interface to run all the demos. (you +may recognize this as a rewrite of an XForms program). Some of the more interesting programs: @@ -25,8 +28,3 @@ shiny: Demo of drawing FL's controls using OpenGL forms: An XForms program to demonstrate emulation colbrowser: Another XForms program that is actually useful - -The program "fl_image" can be compiled if you have the jpeg library. -The makefile assummes that the jpeg distribution resides in -../../jpeg-6a/. Perhaps edit the Makefile to fix this, and type -"make fl_image" to make this jpeg file viewer. diff --git a/test/adjuster.cxx b/test/adjuster.cxx index 68e4c5d7d..e4602e3cc 100644 --- a/test/adjuster.cxx +++ b/test/adjuster.cxx @@ -1,4 +1,27 @@ -/* Test the adjuster */ +// +// "$Id" +// +// Adjuster test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <FL/Fl.H> @@ -35,3 +58,7 @@ int main(int, char ** argv) { window.show(); return Fl::run(); } + +// +// End of "$Id: adjuster.cxx,v 1.2 1998/10/20 13:24:48 mike Exp $". +// diff --git a/test/arc.cxx b/test/arc.cxx index 1c574cde5..164475d52 100755 --- a/test/arc.cxx +++ b/test/arc.cxx @@ -1,4 +1,27 @@ -// Test fl_arc +// +// "$Id" +// +// Arc drawing test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> @@ -68,3 +91,7 @@ int main(int argc, char** argv) { } +// +// End of "$Id: arc.cxx,v 1.2 1998/10/20 13:24:49 mike Exp $". +// + diff --git a/test/ask.cxx b/test/ask.cxx index 304ae1d71..1b93b9f2b 100644 --- a/test/ask.cxx +++ b/test/ask.cxx @@ -1,13 +1,34 @@ -/* ask.C - - Demonstrates how to use readqueue to see if a button has been - pushed, and to see if a window has been closed, thus avoiding - the need to define callbacks. - - This also demonstrates how to trap attempts by the user to - close the last window by overriding Fl::exit - -*/ +// +// "$Id" +// +// Standard dialog test program for the Fast Light Tool Kit (FLTK). +// +// Demonstrates how to use readqueue to see if a button has been +// pushed, and to see if a window has been closed, thus avoiding +// the need to define callbacks. +// +// This also demonstrates how to trap attempts by the user to +// close the last window by overriding Fl::exit +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdio.h> #include <string.h> @@ -88,3 +109,6 @@ int main(int argc, char **argv) { } +// +// End of "$Id: ask.cxx,v 1.2 1998/10/20 13:24:50 mike Exp $". +// diff --git a/test/bitmap.cxx b/test/bitmap.cxx index 245397843..3fa44dd8c 100644 --- a/test/bitmap.cxx +++ b/test/bitmap.cxx @@ -1,4 +1,27 @@ -// test how bitmap label type draws +// +// "$Id" +// +// Bitmap label test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -112,3 +135,7 @@ int main(int argc, char **argv) { window.show(argc, argv); return Fl::run(); } + +// +// End of "$Id: bitmap.cxx,v 1.2 1998/10/20 13:24:50 mike Exp $". +// diff --git a/test/boxtype.cxx b/test/boxtype.cxx index b358f228e..895771fd8 100644 --- a/test/boxtype.cxx +++ b/test/boxtype.cxx @@ -1,4 +1,27 @@ -// produce the diagram of boxtypes for the documentation +// +// "$Id" +// +// Boxtype test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <stdio.h> @@ -64,3 +87,7 @@ int main(int argc, char ** argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: boxtype.cxx,v 1.2 1998/10/20 13:24:51 mike Exp $". +// diff --git a/test/browser.cxx b/test/browser.cxx index 3a1510185..a5c97821a 100644 --- a/test/browser.cxx +++ b/test/browser.cxx @@ -1,3 +1,28 @@ +// +// "$Id" +// +// Browser test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// + /* This is a test of how the browser draws lines. This is a second line. @@ -68,4 +93,7 @@ int main(int argc, char **argv) { return Fl::run(); } +// +// End of "$Id: browser.cxx,v 1.2 1998/10/20 13:24:52 mike Exp $". +// diff --git a/test/browserop.cxx b/test/browserop.cxx index 19f920d2b..7f8e7bfdf 100644 --- a/test/browserop.cxx +++ b/test/browserop.cxx @@ -1,4 +1,27 @@ -/* This demo shows the different routines on browsers */ +// +// "$Id" +// +// Browser operation test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include "forms.h" @@ -79,3 +102,7 @@ main(int argc, char *argv[]) fl_hide_form(form); return 0; } + +// +// End of "$Id: browserop.cxx,v 1.2 1998/10/20 13:24:53 mike Exp $". +// diff --git a/test/button.cxx b/test/button.cxx index 78c8f135b..fd92f7e1c 100644 --- a/test/button.cxx +++ b/test/button.cxx @@ -1,4 +1,27 @@ -// Demonstration of how to do callbacks +// +// "$Id" +// +// Button/callback test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <stdio.h> @@ -25,3 +48,7 @@ int main(int argc, char ** argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: button.cxx,v 1.2 1998/10/20 13:24:54 mike Exp $". +// diff --git a/test/buttons.cxx b/test/buttons.cxx index 5dfb4f4e3..922f87957 100644 --- a/test/buttons.cxx +++ b/test/buttons.cxx @@ -1,4 +1,27 @@ -// produce image for the documentation +// +// "$Id" +// +// Another button test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <stdio.h> @@ -23,3 +46,7 @@ int main(int argc, char ** argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: buttons.cxx,v 1.2 1998/10/20 13:24:54 mike Exp $". +// diff --git a/test/checkers.cxx b/test/checkers.cxx index fd48f56d0..6c676a67c 100644 --- a/test/checkers.cxx +++ b/test/checkers.cxx @@ -1,5 +1,30 @@ +// +// "$Id" +// +// Checkers game for the Fast Light Tool Kit (FLTK). +// // Hours of fun: the FLTK checkers game! // Based on a very old algorithim, but it still works! +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// const char* copyright = "Checkers game\n" @@ -1339,3 +1364,7 @@ int main(int argc, char **argv) { return VT100main(); #endif } + +// +// End of "$Id: checkers.cxx,v 1.4 1998/10/20 13:24:55 mike Exp $". +// diff --git a/test/clock.cxx b/test/clock.cxx index 0210a4e2a..6d3d2bb32 100644 --- a/test/clock.cxx +++ b/test/clock.cxx @@ -1,4 +1,27 @@ -// produce images for documentation +// +// "$Id" +// +// Clock test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -22,3 +45,7 @@ int main(int argc, char **argv) { window2.show(); return Fl::run(); } + +// +// End of "$Id: clock.cxx,v 1.2 1998/10/20 13:24:56 mike Exp $". +// diff --git a/test/colbrowser.cxx b/test/colbrowser.cxx index 8ee56d3ee..7b068a511 100644 --- a/test/colbrowser.cxx +++ b/test/colbrowser.cxx @@ -1,7 +1,32 @@ +// +// "$Id" +// +// Forms test program for the Fast Light Tool Kit (FLTK). +// // This is an XForms program from the 0.86 distribution of XForms. // It has been modified as little as possible to work under fltk by -// using fltk's Forms emulation. -// Search for "fltk" to find all the changes +// using fltk's Forms emulation. Search for "fltk" to find all the +// changes +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/forms.H> // changed for fltk #include <stdlib.h> @@ -314,3 +339,7 @@ create_form_cl(void) fl_end_form(); fl_scale_form(cl, 1.1, 1.0); } + +// +// End of "$Id: colbrowser.cxx,v 1.2 1998/10/20 13:24:56 mike Exp $". +// diff --git a/test/color_chooser.cxx b/test/color_chooser.cxx index cc9c5cad5..e987d0035 100644 --- a/test/color_chooser.cxx +++ b/test/color_chooser.cxx @@ -1,8 +1,27 @@ -/* Test forcing fltk to draw in different visuals: - - This also tests fl_show_colormap and Fl_Color_Chooser - -*/ +// +// "$Id" +// +// Color chooser test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -125,3 +144,7 @@ int main(int argc, char ** argv) { window.show(argc,argv); return Fl::run(); } + +// +// End of "$Id: color_chooser.cxx,v 1.3 1998/10/20 13:24:57 mike Exp $". +// diff --git a/test/connect.cxx b/test/connect.cxx index 26fd02d07..3ce445994 100644 --- a/test/connect.cxx +++ b/test/connect.cxx @@ -1,10 +1,31 @@ -/* connect.C - - Program to make a button to turn a ppp connection on/off. - You must chmod +s /usr/sbin/pppd, and put all the options - into /etc/ppp/options. - -*/ +// +// "$Id" +// +// PPP example program for the Fast Light Tool Kit (FLTK). +// +// Program to make a button to turn a ppp connection on/off. +// You must chmod +s /usr/sbin/pppd, and put all the options +// into /etc/ppp/options. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <stdio.h> @@ -45,3 +66,7 @@ int main(int argc, char ** argv) { window.show(argc,argv); return Fl::run(); } + +// +// End of "$Id: connect.cxx,v 1.2 1998/10/20 13:24:58 mike Exp $". +// diff --git a/test/cube.cxx b/test/cube.cxx index ec8ed9892..d83e7c0b5 100644 --- a/test/cube.cxx +++ b/test/cube.cxx @@ -1,6 +1,29 @@ -/* demo08 rewritten to not use Forms compatability */ - +// +// "$Id" +// +// Another forms test program for the Fast Light Tool Kit (FLTK). +// // Modified to have 2 cubes to test multiple OpenGL contexts +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <config.h> #include <FL/Fl.H> @@ -145,3 +168,6 @@ main(int argc, char **argv) { return 0; } +// +// End of "$Id: cube.cxx,v 1.2 1998/10/20 13:24:58 mike Exp $". +// diff --git a/test/cursor.cxx b/test/cursor.cxx index 7eebe9da8..16547ad12 100644 --- a/test/cursor.cxx +++ b/test/cursor.cxx @@ -1,6 +1,27 @@ -// cursor.C - -// Test the cursor setting code +// +// "$Id" +// +// Cursor test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -136,3 +157,7 @@ int main(int argc, char **argv) { window.show(argc,argv); return Fl::run(); } + +// +// End of "$Id: cursor.cxx,v 1.2 1998/10/20 13:24:59 mike Exp $". +// diff --git a/test/curve.cxx b/test/curve.cxx index 15d25217c..1300a3a3c 100644 --- a/test/curve.cxx +++ b/test/curve.cxx @@ -1,4 +1,27 @@ -// Test fl_curve +// +// "$Id" +// +// Curve test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> @@ -85,4 +108,6 @@ int main(int argc, char** argv) { return Fl::run(); } - +// +// End of "$Id: curve.cxx,v 1.2 1998/10/20 13:25:00 mike Exp $". +// diff --git a/test/demo.cxx b/test/demo.cxx index 75b5dc821..a8ad9855a 100644 --- a/test/demo.cxx +++ b/test/demo.cxx @@ -1,10 +1,27 @@ -/* demo.C - - The Forms demo program, rewritten in fltk. - The original code compiled fine, but this version does not use - <forms.h> - -*/ +// +// "$Id" +// +// Main demo program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdio.h> #include <string.h> @@ -253,3 +270,7 @@ int main(int argc, char **argv) { Fl::run(); return 0; } + +// +// End of "$Id: demo.cxx,v 1.2 1998/10/20 13:25:00 mike Exp $". +// diff --git a/test/doublebuffer.cxx b/test/doublebuffer.cxx index b15bc02c3..a88bc2f0d 100644 --- a/test/doublebuffer.cxx +++ b/test/doublebuffer.cxx @@ -1,14 +1,37 @@ -// Double-buffering test. - +// +// "$Id" +// +// Double-buffering test program for the Fast Light Tool Kit (FLTK). +// // This demo shows how double buffering helps, by drawing the // window in a particularily bad way. - +// // The single-buffered window will blink as it updates. The // double buffered one will not. It will take just as long // (or longer) to update, but often it will appear to be faster. - +// // This demo should work for both the GL and X versions of Fl, // even though the double buffering mechanism is totally different. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Single_Window.H> @@ -97,3 +120,7 @@ int main() { w2.show(); return Fl::run(); } + +// +// End of "$Id: doublebuffer.cxx,v 1.2 1998/10/20 13:25:01 mike Exp $". +// diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index e2b366ce2..d9dad66c6 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -1,4 +1,27 @@ -/* Test fl_file_chooser() */ +// +// "$Id" +// +// File chooser test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Button.H> @@ -34,3 +57,7 @@ int main(int argc, char **argv) { fl_file_chooser_callback(thecb); return Fl::run(); } + +// +// End of "$Id: file_chooser.cxx,v 1.2 1998/10/20 13:25:02 mike Exp $". +// diff --git a/test/fl_jpeg_image.cxx b/test/fl_jpeg_image.cxx index 960c0515c..62efeca13 100644 --- a/test/fl_jpeg_image.cxx +++ b/test/fl_jpeg_image.cxx @@ -1,24 +1,44 @@ -/* Test fl_draw_image. - - Be sure to try every visual with the -v switch and try - -m (monochrome) on each of them. - - This program requires either the libjpeg.a library or - an internal DD library to read images (this is chosen - by the presence of the "DD" #define). - - To get the jpeg library: - -The "official" archive site for this software is ftp.uu.net (Internet -address 192.48.96.9). The most recent released version can always be found -there in directory graphics/jpeg. This particular version will be archived -as graphics/jpeg/jpegsrc.v6a.tar.gz. - - The makefile assummes you decompressed and build these - in a directory called "jpeg-6a" in the same location as the - "FL" directory. - -*/ +// +// "$Id" +// +// fl_draw_image test program for the Fast Light Tool Kit (FLTK). +// +// Be sure to try every visual with the -v switch and try -m (monochrome) +// on each of them. +// +// This program requires either the libjpeg.a library or an internal DD +// library to read images (this is chosen by the presence of the "DD" +// #define). +// +// To get the jpeg library: +// +// The "official" archive site for this software is ftp.uu.net (Internet +// address 192.48.96.9). The most recent released version can always be +// found there in directory graphics/jpeg. This particular version will +// be archived as graphics/jpeg/jpegsrc.v6a.tar.gz. +// +// The makefile assummes you decompressed and build these in a directory +// called "jpeg-6a" in the same location as the "FL" directory. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/fl_draw.H> @@ -176,3 +196,6 @@ void readtheimage(const char *name) { } #endif +// +// End of "$Id: fl_jpeg_image.cxx,v 1.2 1998/10/20 13:25:02 mike Exp $". +// diff --git a/test/fonts.cxx b/test/fonts.cxx index 0b3639ae2..dc3e6ccfa 100644 --- a/test/fonts.cxx +++ b/test/fonts.cxx @@ -1,4 +1,27 @@ -/* demo of Fl::set_fonts() */ +// +// "$Id" +// +// Font demo program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -125,3 +148,7 @@ int main(int argc, char **argv) { form->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: fonts.cxx,v 1.2 1998/10/20 13:25:03 mike Exp $". +// diff --git a/test/forms.cxx b/test/forms.cxx index 1ca2c965d..230ddddeb 100644 --- a/test/forms.cxx +++ b/test/forms.cxx @@ -1,9 +1,33 @@ +// +// "$Id" +// +// Another forms demo for the Fast Light Tool Kit (FLTK). +// // This is an XForms program with very few changes. // Search for "fltk" to find all changes necessary to port to fltk. - -/* This demo show the different boxtypes. Note that some - * boxtypes are not appropriate for some objects - */ +// +// This demo show the different boxtypes. Note that some +// boxtypes are not appropriate for some objects +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/forms.H> // changed for fltk @@ -203,3 +227,7 @@ main (int argc, char *argv[]) return 0; } + +// +// End of "$Id: forms.cxx,v 1.2 1998/10/20 13:25:04 mike Exp $". +// diff --git a/test/fractals.cxx b/test/fractals.cxx index 5eb783e51..1ab3f4c51 100644 --- a/test/fractals.cxx +++ b/test/fractals.cxx @@ -1,8 +1,31 @@ -/* Fractal drawing program - This is a GLUT demo program, with modifications to - demonstrate how to add fltk controls to a glut program. The glut - code is unchanged except for the end (search for fltk to find changes). -*/ +// +// "$Id" +// +// Fractal drawing demo for the Fast Light Tool Kit (FLTK). +// +// This is a GLUT demo program, with modifications to +// demonstrate how to add fltk controls to a glut program. The glut +// code is unchanged except for the end (search for fltk to find changes). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <config.h> #if !HAVE_GL @@ -777,3 +800,7 @@ int main(int argc, char** argv) return 0; } #endif + +// +// End of "$Id: fractals.cxx,v 1.2 1998/10/20 13:25:04 mike Exp $". +// diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx index 08317d315..5b4d91ba9 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -1,37 +1,58 @@ -/* fullscreen.C - - This demo shows how to do many of the window manipulations that - are popular on SGI programs, even though X does not really like - them. You can toggle the border on/off, change the visual to - switch between single/double buffer, and make the window take - over the screen. - - Normally the program makes a single window with a child GL window. - This simulates a program where the 3D display is surrounded by - control knobs. Running the program with an argument will - make it make a seperate GL window from the controls window. This - simulates a (older?) style program where the graphics display is - a different window than the controls. - - This program reports how many times it redraws the window to - stdout, so you can see how much time it is wasting. It appears - to be impossible to prevent X from sending redundant resize - events, so there are extra redraws. But the way I have the - code arranged here seems to be keeping that to a minimu. - - Apparently unavoidable bugs: - - Turning the border on causes an unnecessary redraw. - - Turning off full screen when the border is on causes an unnecessary - resize and redraw when the program turns the border on. - - If it is a seperate window, turning double buffering on and off - will cause the window to raise, deiconize, and possibly move. You - can avoid this by making the Fl_Gl_Window a child of a normal - window. - -*/ +// +// "$Id" +// +// Fullscreen test program for the Fast Light Tool Kit (FLTK). +// +// This demo shows how to do many of the window manipulations that +// are popular on SGI programs, even though X does not really like +// them. You can toggle the border on/off, change the visual to +// switch between single/double buffer, and make the window take +// over the screen. +// +// Normally the program makes a single window with a child GL window. +// This simulates a program where the 3D display is surrounded by +// control knobs. Running the program with an argument will +// make it make a seperate GL window from the controls window. This +// simulates a (older?) style program where the graphics display is +// a different window than the controls. +// +// This program reports how many times it redraws the window to +// stdout, so you can see how much time it is wasting. It appears +// to be impossible to prevent X from sending redundant resize +// events, so there are extra redraws. But the way I have the +// code arranged here seems to be keeping that to a minimu. +// +// Apparently unavoidable bugs: +// +// Turning the border on causes an unnecessary redraw. +// +// Turning off full screen when the border is on causes an unnecessary +// resize and redraw when the program turns the border on. +// +// If it is a seperate window, turning double buffering on and off +// will cause the window to raise, deiconize, and possibly move. You +// can avoid this by making the Fl_Gl_Window a child of a normal +// window. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <config.h> #include <FL/Fl.H> @@ -217,3 +238,7 @@ int main(int argc, char **argv) { return Fl::run(); } + +// +// End of "$Id: fullscreen.cxx,v 1.2 1998/10/20 13:25:05 mike Exp $". +// diff --git a/test/gl_overlay.cxx b/test/gl_overlay.cxx index db7c0e3d8..3324b9bd9 100644 --- a/test/gl_overlay.cxx +++ b/test/gl_overlay.cxx @@ -1,4 +1,27 @@ -/* The simple GL demo, modified to draw the GL overlay as well */ +// +// "$Id" +// +// OpenGL overlay test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <config.h> #include <FL/Fl.H> @@ -126,3 +149,7 @@ int main(int argc, char **argv) { return Fl::run(); } + +// +// End of "$Id: gl_overlay.cxx,v 1.2 1998/10/20 13:25:06 mike Exp $". +// diff --git a/test/glpuzzle.cxx b/test/glpuzzle.cxx index 78d515c35..8d881ac43 100644 --- a/test/glpuzzle.cxx +++ b/test/glpuzzle.cxx @@ -1,5 +1,30 @@ +// +// "$Id" +// +// OpenGL puzzle demo for the Fast Light Tool Kit (FLTK). +// // This is a GLUT demo program to demonstrate fltk's GLUT emulation. // Search for "fltk" to find all the changes +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// // this block added for fltk's distribtion so it will compile w/o OpenGL: #include <config.h> @@ -1453,3 +1478,6 @@ main(int argc, char **argv) #endif // added for fltk's distribution +// +// End of "$Id: glpuzzle.cxx,v 1.2 1998/10/20 13:25:06 mike Exp $". +// diff --git a/test/hello.cxx b/test/hello.cxx index eb6adb082..0d65b5b6e 100644 --- a/test/hello.cxx +++ b/test/hello.cxx @@ -1,4 +1,27 @@ -/* Example program from the documentation */ +// +// "$Id" +// +// Hello, World! program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -14,3 +37,7 @@ int main(int argc, char **argv) { window->show(argc, argv); return Fl::run(); } + +// +// End of "$Id: hello.cxx,v 1.2 1998/10/20 13:25:07 mike Exp $". +// diff --git a/test/iconize.cxx b/test/iconize.cxx index 5511ac66a..159eb4de6 100644 --- a/test/iconize.cxx +++ b/test/iconize.cxx @@ -1,4 +1,27 @@ -// Fl_Window::iconize() test +// +// "$Id" +// +// Iconize test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -52,3 +75,7 @@ int main(int argc, char **argv) { control.callback(window_cb); return Fl::run(); } + +// +// End of "$Id: iconize.cxx,v 1.2 1998/10/20 13:25:08 mike Exp $". +// diff --git a/test/image.cxx b/test/image.cxx index 41d4f5607..bb602b9a1 100644 --- a/test/image.cxx +++ b/test/image.cxx @@ -1,8 +1,31 @@ -// Test of class Fl_Image +// +// "$Id" +// +// Fl_Image test program for the Fast Light Tool Kit (FLTK). // // Notice that Fl_Image is for a static, multiple-reuse image, such // as an icon or postage stamp. Use fl_draw_image to go directly // from an buffered image that changes often. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -108,3 +131,7 @@ int main(int argc, char **argv) { window.show(argc, argv); return Fl::run(); } + +// +// End of "$Id: image.cxx,v 1.3 1998/10/20 13:25:09 mike Exp $". +// diff --git a/test/input.cxx b/test/input.cxx index a29d82b58..22a0f916d 100644 --- a/test/input.cxx +++ b/test/input.cxx @@ -1,4 +1,27 @@ -/* Test input fields */ +// +// "$Id" +// +// Input field test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdio.h> #include <FL/Fl.H> @@ -90,3 +113,7 @@ int main(int argc, char **argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: input.cxx,v 1.2 1998/10/20 13:25:09 mike Exp $". +// diff --git a/test/jpeg_image.cxx b/test/jpeg_image.cxx index c788250fb..12a74cab6 100644 --- a/test/jpeg_image.cxx +++ b/test/jpeg_image.cxx @@ -1,24 +1,44 @@ -/* Test fl_draw_image. - - Be sure to try every visual with the -v switch and try - -m (monochrome) on each of them. - - This program requires either the libjpeg.a library or - an internal DD library to read images (this is chosen - by the presence of the "DD" #define). - - To get the jpeg library: - -The "official" archive site for this software is ftp.uu.net (Internet -address 192.48.96.9). The most recent released version can always be found -there in directory graphics/jpeg. This particular version will be archived -as graphics/jpeg/jpegsrc.v6a.tar.gz. - - The makefile assummes you decompressed and build these - in a directory called "jpeg-6a" in the same location as the - "FL" directory. - -*/ +// +// "$Id" +// +// fl_draw_image test program for the Fast Light Tool Kit (FLTK). +// +// Be sure to try every visual with the -v switch and try -m (monochrome) +// on each of them. +// +// This program requires either the libjpeg.a library or an internal DD +// library to read images (this is chosen by the presence of the "DD" +// #define). +// +// To get the jpeg library: +// +// The "official" archive site for this software is ftp.uu.net (Internet +// address 192.48.96.9). The most recent released version can always be +// found there in directory graphics/jpeg. This particular version will +// be archived as graphics/jpeg/jpegsrc.v6a.tar.gz. +// +// The makefile assummes you decompressed and build these in a directory +// called "jpeg-6a" in the same location as the "FL" directory. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/fl_draw.H> @@ -177,3 +197,6 @@ void readtheimage(const char *name) { } #endif +// +// End of "$Id: jpeg_image.cxx,v 1.2 1998/10/20 13:25:10 mike Exp $". +// diff --git a/test/keyboard.cxx b/test/keyboard.cxx index 6f6fd58a3..cdee04518 100644 --- a/test/keyboard.cxx +++ b/test/keyboard.cxx @@ -1,16 +1,41 @@ +// +// "$Id" +// +// Keyboard/event test program for the Fast Light Tool Kit (FLTK). +// // Continuously display FLTK's event state. - +// // Known bugs: - +// // X insists on reporting the state *before* the shift key was // pressed, rather than after, on shift key events. I fixed this for // the mouse buttons, but it did not seem worth it for shift. - +// // X servers do not agree about any shift flags after except shift, ctrl, // lock, and alt. They may also not agree about the symbols for the extra // keys Micro$oft put on the keyboard. - -// On Irix the backslash key does not work. A bug in XKeysymToKeycode? +// +// On IRIX the backslash key does not work. A bug in XKeysymToKeycode? +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include "keyboard_ui.C" #include <stdio.h> @@ -100,3 +125,7 @@ int main(int argc, char** argv) { } return 0; } + +// +// End of "$Id: keyboard.cxx,v 1.2 1998/10/20 13:25:11 mike Exp $". +// diff --git a/test/label.cxx b/test/label.cxx index d1ca5be10..5bf643631 100644 --- a/test/label.cxx +++ b/test/label.cxx @@ -1,8 +1,27 @@ -/* Test all the built-in labeltypes, and fl_font - - This is also a good double-buffering test. - -*/ +// +// "$Id" +// +// Label test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> @@ -135,3 +154,7 @@ int main(int argc, char **argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: label.cxx,v 1.2 1998/10/20 13:25:11 mike Exp $". +// diff --git a/test/list_visuals.cxx b/test/list_visuals.cxx index 534fe3297..59ce2d8a1 100644 --- a/test/list_visuals.cxx +++ b/test/list_visuals.cxx @@ -1,3 +1,8 @@ +// +// "$Id" +// +// Visual list utility for the Fast Light Tool Kit (FLTK). +// // List all the visuals on the screen, and dumps anything interesting // about them to stdout. // @@ -5,6 +10,26 @@ // // This file may be #included in another program to make a function to // call to list the visuals. Fl.H must be included first to indicate this. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #ifdef WIN32 #include <FL/Fl.H> @@ -209,4 +234,6 @@ int main(int argc, char **argv) { } #endif -// end of list_visuals.C +// +// End of "$Id: list_visuals.cxx,v 1.3 1998/10/20 13:25:12 mike Exp $". +// diff --git a/test/mandelbrot.cxx b/test/mandelbrot.cxx index b325736b2..5f60480cb 100644 --- a/test/mandelbrot.cxx +++ b/test/mandelbrot.cxx @@ -1,3 +1,28 @@ +// +// "$Id" +// +// Mandelbrot set demo for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// + #include "mandelbrot_ui.C" #include <FL/fl_draw.H> #include <stdio.h> @@ -198,3 +223,7 @@ void w_callback(Fl_Input* o, Drawing_Window* s) { s->d->scale = v; s->d->new_display(); } + +// +// End of "$Id: mandelbrot.cxx,v 1.2 1998/10/20 13:25:12 mike Exp $". +// diff --git a/test/mandelbrot.h b/test/mandelbrot.h index fb1f25ddb..5d011fe17 100644 --- a/test/mandelbrot.h +++ b/test/mandelbrot.h @@ -1,3 +1,28 @@ +// +// "$Id" +// +// Mandelbrot set header file for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// + #include <FL/Fl.H> #include <FL/Fl_Box.H> #include <FL/Fl_Slider.H> @@ -52,3 +77,7 @@ public: Fl_Window *window; void update_label(); }; + +// +// End of "$Id: mandelbrot.h,v 1.2 1998/10/20 13:25:13 mike Exp $". +// diff --git a/test/menubar.cxx b/test/menubar.cxx index f1a8945e9..e03a7a829 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -1,3 +1,28 @@ +// +// "$Id" +// +// Menubar test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// + #include <FL/Fl.H> #include <FL/Fl_Box.H> #include <FL/Fl_Window.H> @@ -180,3 +205,7 @@ int main(int argc, char **argv) { window.show(argc, argv); return Fl::run(); } + +// +// End of "$Id: menubar.cxx,v 1.2 1998/10/20 13:25:14 mike Exp $". +// diff --git a/test/message.cxx b/test/message.cxx index 1f339320d..102cc305c 100644 --- a/test/message.cxx +++ b/test/message.cxx @@ -1,3 +1,28 @@ +// +// "$Id" +// +// Message test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// + #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/fl_ask.H> @@ -16,3 +41,7 @@ int main(int, char **) { fl_password("Enter your password:")); return 0; } + +// +// End of "$Id: message.cxx,v 1.2 1998/10/20 13:25:14 mike Exp $". +// diff --git a/test/minimum.cxx b/test/minimum.cxx index f946639a6..ab81ae337 100644 --- a/test/minimum.cxx +++ b/test/minimum.cxx @@ -1,19 +1,44 @@ +// +// "$Id" +// +// Minimal update test program for the Fast Light Tool Kit (FLTK). +// // This is a test of the minimal update code. The right slider has a // label that extends outside it's border, and the minimal update // assummes this does not happen. Thus there is *supposed* to be // display errors when you move the right-most or any other slider. // If you *don't* see these errors, then the minimal update is // broken!!! - +// // I cannot emphasize how important it is to test this and make sure // any changes have not broken the minimal update. These sort of bugs // are extremely hard to fix and must be detected right away! - +// // The reason it is important to fix this is that otherwise you will // swiftly end up with a toolkit that thinks it has to draw the window // 20 times each time the display changes. I don't care how fast the // machine is, this is an insane waste of resources, and should be // stopped! +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <FL/Fl.H> @@ -47,3 +72,7 @@ int main(int argc, char **argv) { window->show(argc, argv); return Fl::run(); } + +// +// End of "$Id: minimum.cxx,v 1.2 1998/10/20 13:25:15 mike Exp $". +// diff --git a/test/navigation.cxx b/test/navigation.cxx index e6477852c..b761f3d86 100644 --- a/test/navigation.cxx +++ b/test/navigation.cxx @@ -1,6 +1,30 @@ -/* Silly test of navigation keys. - This is not a recommended method of laying out your panels! -*/ +// +// "$Id" +// +// Navigation test program for the Fast Light Tool Kit (FLTK). +// +// Silly test of navigation keys. This is not a recommended method of +// laying out your panels! +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdio.h> #include <stdlib.h> @@ -40,3 +64,7 @@ int main(int argc, char **argv) { window.show(); return Fl::run(); } + +// +// End of "$Id: navigation.cxx,v 1.2 1998/10/20 13:25:16 mike Exp $". +// diff --git a/test/output.cxx b/test/output.cxx index 5158f6311..ef554938c 100644 --- a/test/output.cxx +++ b/test/output.cxx @@ -1,4 +1,27 @@ -// Test of Fl_Output and Fl_Multiline_Output +// +// "$Id" +// +// Output test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Value_Input.H> // necessary for bug in mingw32? @@ -72,3 +95,7 @@ int main(int argc, char **argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: output.cxx,v 1.2 1998/10/20 13:25:16 mike Exp $". +// diff --git a/test/overlay.cxx b/test/overlay.cxx index 0fd52315e..8201ac85a 100644 --- a/test/overlay.cxx +++ b/test/overlay.cxx @@ -1,4 +1,27 @@ -/* Test the Fl_Overlay_Window */ +// +// "$Id" +// +// Overlay window test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <stdio.h> @@ -55,3 +78,7 @@ int main(int argc, char **argv) { ovl->redraw_overlay(); return Fl::run(); } + +// +// End of "$Id: overlay.cxx,v 1.2 1998/10/20 13:25:17 mike Exp $". +// diff --git a/test/pack.cxx b/test/pack.cxx index 72c715a04..f75fc7bae 100644 --- a/test/pack.cxx +++ b/test/pack.cxx @@ -1,6 +1,31 @@ +// +// "$Id" +// +// Fl_Pack test program for the Fast Light Tool Kit (FLTK). +// // Rather crude test of the Fl_Pack object. // Changing the type() of an Fl_Pack after it is displayed is not supported // so I have to do a lot of resizing of things before that. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Button.H> @@ -87,3 +112,7 @@ int main(int argc, char **argv) { w->show(argc, argv); return Fl::run(); } + +// +// End of "$Id: pack.cxx,v 1.2 1998/10/20 13:25:18 mike Exp $". +// diff --git a/test/pixmap.cxx b/test/pixmap.cxx index d0ced9c4f..b0ff3df38 100644 --- a/test/pixmap.cxx +++ b/test/pixmap.cxx @@ -1,4 +1,27 @@ -// test how pixmap label type draws +// +// "$Id" +// +// Pixmap label test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -62,3 +85,7 @@ int main(int argc, char **argv) { window.show(argc,argv); return Fl::run(); } + +// +// End of "$Id: pixmap.cxx,v 1.2 1998/10/20 13:25:18 mike Exp $". +// diff --git a/test/pixmap_browser.cxx b/test/pixmap_browser.cxx index ae5e6345d..0ab4f7321 100644 --- a/test/pixmap_browser.cxx +++ b/test/pixmap_browser.cxx @@ -1,7 +1,30 @@ -// More complex and hacked pixmap demo. - +// +// "$Id" +// +// Another pixmap test program for the Fast Light Tool Kit (FLTK). +// // On purpose, I do NOT provide a fltk method to turn a file // into a pixmap. This program uses a rather simplistic one. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <FL/Fl.H> #include <FL/Fl_Box.H> @@ -139,3 +162,7 @@ int main(int argc, char **argv) { window.show(argc,argv); return Fl::run(); } + +// +// End of "$Id: pixmap_browser.cxx,v 1.2 1998/10/20 13:25:19 mike Exp $". +// diff --git a/test/resizebox.cxx b/test/resizebox.cxx index a8184e380..237f6c789 100644 --- a/test/resizebox.cxx +++ b/test/resizebox.cxx @@ -1,4 +1,27 @@ -// Test the position of the resizebox +// +// "$Id" +// +// Resize box test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #define W1 (big ? 60 : 40) #define B 0 @@ -72,3 +95,7 @@ int main(int argc, char **argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: resizebox.cxx,v 1.2 1998/10/20 13:25:20 mike Exp $". +// diff --git a/test/scroll.cxx b/test/scroll.cxx index d74321444..b5f6f274d 100644 --- a/test/scroll.cxx +++ b/test/scroll.cxx @@ -1,3 +1,28 @@ +// +// "$Id" +// +// Fl_Scroll test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// + #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> #include <FL/Fl_Scroll.H> @@ -110,3 +135,7 @@ int main(int argc, char** argv) { window.show(argc,argv); return Fl::run(); } + +// +// End of "$Id: scroll.cxx,v 1.2 1998/10/20 13:25:20 mike Exp $". +// diff --git a/test/shape.cxx b/test/shape.cxx index 1451c241e..289981661 100644 --- a/test/shape.cxx +++ b/test/shape.cxx @@ -1,4 +1,27 @@ -/* Tiny GL-drawing demo from documentation */ +// +// "$Id" +// +// Tiny OpenGL demo program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <config.h> #include <FL/Fl.H> @@ -89,3 +112,7 @@ int main(int argc, char **argv) { return Fl::run(); } + +// +// End of "$Id: shape.cxx,v 1.2 1998/10/20 13:25:21 mike Exp $". +// diff --git a/test/shiny.cxx b/test/shiny.cxx index 24846e218..76d481cd2 100644 --- a/test/shiny.cxx +++ b/test/shiny.cxx @@ -1,5 +1,27 @@ -// Test of gl_start() and gl_finish() -// Also sample code of using OpenGL to draw a boxtype. +// +// "$Id" +// +// OpenGL "shiny buttons" test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <config.h> #include "shiny_panel.C" @@ -279,3 +301,7 @@ int main(int argc, char **argv) { window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: shiny.cxx,v 1.2 1998/10/20 13:25:22 mike Exp $". +// diff --git a/test/style.C b/test/style.C index 9e8d24535..c12cc6e32 100644 --- a/test/style.C +++ b/test/style.C @@ -1,13 +1,36 @@ -// style.C - +// +// "$Id" +// +// Style demo for the Fast Light Tool Kit (FLTK). +// // Demo of a control panel for Fltk "style" changes. - +// // You can use this as-is, or modify it to your needs. - +// // To save & restore a style you should write the data to a file of // your own design. Most likely your program has it's own configuration // that you want to save as well, and it is user friendly to put all // this into the same file. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// //////////////////////////////////////////////////////////////// // This is the part you want to copy to another program. The @@ -139,3 +162,6 @@ void defaults_cb(Fl_Button*, void*) { fl_alert("Sorry, I didn't implement that"); } +// +// End of "$Id: style.C,v 1.2 1998/10/20 13:25:23 mike Exp $". +// diff --git a/test/subwindow.cxx b/test/subwindow.cxx index 9644b457d..9199694d7 100644 --- a/test/subwindow.cxx +++ b/test/subwindow.cxx @@ -1,7 +1,32 @@ +// +// "$Id" +// +// Nested window test program for the Fast Light Tool Kit (FLTK). +// // Test to make sure nested windows work. // Events should be reported for enter/exit and all mouse operations // Buttons and pop-up menu should work, indicating that mouse positions // are being correctly translated. +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <stdio.h> @@ -105,3 +130,7 @@ int main(int, char **) { window->show(); return Fl::run(); } + +// +// End of "$Id: subwindow.cxx,v 1.2 1998/10/20 13:25:24 mike Exp $". +// diff --git a/test/symbols.cxx b/test/symbols.cxx index b66e6e142..f20175108 100644 --- a/test/symbols.cxx +++ b/test/symbols.cxx @@ -1,4 +1,27 @@ -// produce diagram used in the documentation: +// +// "$Id" +// +// Symbol test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// #include <stdlib.h> #include <stdio.h> @@ -60,3 +83,7 @@ bt("@DnArrow"); window->show(argc,argv); return Fl::run(); } + +// +// End of "$Id: symbols.cxx,v 1.2 1998/10/20 13:25:24 mike Exp $". +// diff --git a/test/tile.cxx b/test/tile.cxx index e5364fe1b..d1f14811e 100755 --- a/test/tile.cxx +++ b/test/tile.cxx @@ -1,3 +1,28 @@ +// +// "$Id" +// +// Tile test program for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library 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 +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@easysw.com". +// + #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> #include <FL/Fl_Tile.H> @@ -59,3 +84,7 @@ int main(int argc, char** argv) { w1.show(); return Fl::run(); } + +// +// End of "$Id: tile.cxx,v 1.2 1998/10/20 13:25:25 mike Exp $". +// |
