Added common headings & CVS tags.

Added "unsigned char" fix from Darren Humphrey.


git-svn-id: file:///fltk/svn/fltk/trunk@30 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1998-10-21 16:29:01 +00:00
parent eada39df34
commit b2172ee88a
16 changed files with 489 additions and 81 deletions

View File

@ -1,8 +1,27 @@
/* Fl_Function_Type_Type.C //
// "$Id: Fl_Function_Type.cxx,v 1.5 1998/10/21 16:28:52 mike Exp $"
Type describing a C function output by Fluid. //
// C function type code 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.H>
#include "Fl_Type.H" #include "Fl_Type.H"
@ -667,3 +686,7 @@ void Fl_Class_Type::write_code2() {
write_h("};\n"); write_h("};\n");
current_class = parent_class; current_class = parent_class;
} }
//
// End of "$Id: Fl_Function_Type.cxx,v 1.5 1998/10/21 16:28:52 mike Exp $".
//

View File

@ -1,10 +1,32 @@
// Fl_Group_Type.C //
// "$Id: Fl_Group_Type.cxx,v 1.2 1998/10/21 16:28:52 mike Exp $"
//
// Fl_Group object code for the Fast Light Tool Kit (FLTK).
//
// Object describing an Fl_Group and links to Fl_Window_Type.C and
// the Fl_Tabs widget, with special stuff to select tab items and
// insure that only one is visible.
//
// 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".
//
// Object describing an Fl_Group
// Probably also links to Fl_Window_Type.C
// Also the Fl_Tabs widget, with special stuff to select tab items
// and insure that only one is visible.
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/Fl_Group.H> #include <FL/Fl_Group.H>
@ -243,3 +265,7 @@ public:
Fl_Widget_Type *_make() {return new Fl_Tile_Type();} Fl_Widget_Type *_make() {return new Fl_Tile_Type();}
}; };
Fl_Tile_Type Fl_Tile_type; // the "factory" Fl_Tile_Type Fl_Tile_type; // the "factory"
//
// End of "$Id: Fl_Group_Type.cxx,v 1.2 1998/10/21 16:28:52 mike Exp $".
//

View File

@ -1,10 +1,33 @@
// Fl_Menu_Type.C //
// "$Id: Fl_Menu_Type.cxx,v 1.2 1998/10/21 16:28:53 mike Exp $"
//
// Menu item code for the Fast Light Tool Kit (FLTK).
//
// Menu items are kludged by making a phony Fl_Box widget so the normal // Menu items are kludged by making a phony Fl_Box widget so the normal
// widget panel can be used to control them. // widget panel can be used to control them.
//
// This file also contains code to make Fl_Menu_Button, Fl_Menu_Bar, // This file also contains code to make Fl_Menu_Button, Fl_Menu_Bar,
// etc widgets. // etc widgets.
//
// 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.H>
#include "Fl_Widget_Type.H" #include "Fl_Widget_Type.H"
@ -485,3 +508,7 @@ void shortcut_in_cb(Shortcut_Button* i, void* v) {
} }
} }
} }
//
// End of "$Id: Fl_Menu_Type.cxx,v 1.2 1998/10/21 16:28:53 mike Exp $".
//

View File

@ -1,18 +1,39 @@
/* Fl_Type.C //
// "$Id: Fl_Type.cxx,v 1.3 1998/10/21 16:28:54 mike Exp $"
Each object described by Fluid is one of these objects. They //
are all stored in a double-linked list. // Widget type code for the Fast Light Tool Kit (FLTK).
//
They "type" of the object is covered by the virtual functions. // Each object described by Fluid is one of these objects. They
There will probably be a lot of these virtual functions. // are all stored in a double-linked list.
//
The type browser is also a list of these objects, but they // They "type" of the object is covered by the virtual functions.
are "factory" instances, not "real" ones. These objects exist // There will probably be a lot of these virtual functions.
only so the "make" method can be called on them. They are //
not in the linked list and are not written to files or // The type browser is also a list of these objects, but they
copied or otherwise examined. // are "factory" instances, not "real" ones. These objects exist
// only so the "make" method can be called on them. They are
*/ // not in the linked list and are not written to files or
// copied or otherwise examined.
//
// 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.H>
#include <FL/Fl_Browser_.H> #include <FL/Fl_Browser_.H>
@ -617,3 +638,7 @@ void Fl_Type::read_property(const char *c) {
} }
int Fl_Type::read_fdesign(const char*, const char*) {return 0;} int Fl_Type::read_fdesign(const char*, const char*) {return 0;}
//
// End of "$Id: Fl_Type.cxx,v 1.3 1998/10/21 16:28:54 mike Exp $".
//

View File

@ -1,13 +1,35 @@
// Fl_Type.H //
// "$Id: Fl_Type.h,v 1.4 1998/10/21 16:28:54 mike Exp $"
//
// Widget type header file for the Fast Light Tool Kit (FLTK).
//
// Each object described by Fluid is one of these objects. They // Each object described by Fluid is one of these objects. They
// are all stored in a double-linked list. // are all stored in a double-linked list.
//
// There is also a single "factory" instance of each type of this. // There is also a single "factory" instance of each type of this.
// The method "make()" is called on this factory to create a new // The method "make()" is called on this factory to create a new
// instance of this object. It could also have a "copy()" function, // instance of this object. It could also have a "copy()" function,
// but it was easier to implement this by using the file read/write // but it was easier to implement this by using the file read/write
// that is needed to save the setup anyways. // that is needed to save the setup anyways.
// 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_Widget.H> #include <FL/Fl_Widget.H>
#include <FL/Fl_Menu.H> #include <FL/Fl_Menu.H>
@ -142,3 +164,7 @@ const char *c_check(const char *c, int type = 0);
int storestring(const char *n, const char * & p, int nostrip=0); int storestring(const char *n, const char * & p, int nostrip=0);
extern int include_H_from_C; extern int include_H_from_C;
//
// End of "$Id: Fl_Type.h,v 1.4 1998/10/21 16:28:54 mike Exp $".
//

View File

@ -1,4 +1,27 @@
// Fl_Widget_Type.C //
// "$Id: Fl_Widget_Type.cxx,v 1.4 1998/10/21 16:28:55 mike Exp $"
//
// Widget type code 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.H>
#include <FL/Fl_Group.H> #include <FL/Fl_Group.H>
@ -1674,3 +1697,7 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) {
} }
return 1; return 1;
} }
//
// End of "$Id: Fl_Widget_Type.cxx,v 1.4 1998/10/21 16:28:55 mike Exp $".
//

View File

@ -1,8 +1,31 @@
// Fl_Widget_Type.H //
// "$Id: Fl_Widget_Type.h,v 1.2 1998/10/21 16:28:56 mike Exp $"
//
// Widget type header file for the Fast Light Tool Kit (FLTK).
//
// Type for creating all subclasses of Fl_Widget // Type for creating all subclasses of Fl_Widget
// This should have the widget pointer in it, but it is still in the // This should have the widget pointer in it, but it is still in the
// Fl_Type base class. // Fl_Type base class.
//
// 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_Type.H" #include "Fl_Type.H"
@ -65,3 +88,7 @@ public:
void* const LOAD = (void *)9831; void* const LOAD = (void *)9831;
extern Fl_Widget_Type *current_widget; // one of the selected ones extern Fl_Widget_Type *current_widget; // one of the selected ones
//
// End of "$Id: Fl_Widget_Type.h,v 1.2 1998/10/21 16:28:56 mike Exp $".
//

View File

@ -1,10 +1,31 @@
/* Fl_Window_Type.C //
// "$Id: Fl_Window_Type.cxx,v 1.6 1998/10/21 16:28:56 mike Exp $"
The widget describing an Fl_Window. This is also all the code //
for interacting with the overlay, which allows the user to // Window type code for the Fast Light Tool Kit (FLTK).
select, move, and resize the children widgets. //
// The widget describing an Fl_Window. This is also all the code
*/ // for interacting with the overlay, which allows the user to
// select, move, and resize the children widgets.
//
// 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.H>
#include <FL/Fl_Overlay_Window.H> #include <FL/Fl_Overlay_Window.H>
@ -670,3 +691,7 @@ int Fl_Window_Type::read_fdesign(const char* name, const char* value) {
} }
return 1; return 1;
} }
//
// End of "$Id: Fl_Window_Type.cxx,v 1.6 1998/10/21 16:28:56 mike Exp $".
//

View File

@ -1,6 +1,27 @@
// Fluid_Image.C //
// "$Id: Fluid_Image.cxx,v 1.2 1998/10/21 16:28:57 mike Exp $"
// For pixmap labels. //
// Pixmap label support 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.H>
#include <FL/Fl_Widget.H> #include <FL/Fl_Widget.H>
@ -50,7 +71,7 @@ void pixmap_image::write_static() {
write_c("#include <FL/Fl_Pixmap.H>\n"); write_c("#include <FL/Fl_Pixmap.H>\n");
pixmap_header_written = write_number; pixmap_header_written = write_number;
} }
write_c("static char *%s[] = {\n", write_c("static unsigned char *%s[] = {\n",
unique_id(this, "image", filename_name(name()), 0)); unique_id(this, "image", filename_name(name()), 0));
int l; int l;
for (l = 0; p->data[l]; l++) { for (l = 0; p->data[l]; l++) {
@ -218,7 +239,7 @@ void bitmap_image::write_static() {
write_c("#include <FL/Fl_Bitmap.H>\n"); write_c("#include <FL/Fl_Bitmap.H>\n");
bitmap_header_written = write_number; bitmap_header_written = write_number;
} }
write_c("static char %s[] = { \n", write_c("static unsigned char %s[] = { \n",
unique_id(this, "bits", filename_name(name()), 0)); unique_id(this, "bits", filename_name(name()), 0));
int n = ((p->w+7)/8)*p->h; int n = ((p->w+7)/8)*p->h;
for (int i = 0; i < n; i++) { for (int i = 0; i < n; i++) {
@ -382,3 +403,7 @@ Fluid_Image *ui_find_image(const char *oldname) {
leave_source_dir(); leave_source_dir();
return ret; return ret;
} }
//
// End of "$Id: Fluid_Image.cxx,v 1.2 1998/10/21 16:28:57 mike Exp $".
//

View File

@ -1,10 +1,33 @@
// Fluid_Image.H //
// "$Id: Fluid_Image.h,v 1.2 1998/10/21 16:28:57 mike Exp $"
//
// Pixmap image header file for the Fast Light Tool Kit (FLTK).
//
// This class stores the image labels for widgets in fluid. This is // This class stores the image labels for widgets in fluid. This is
// not a class in fltk itself, and this will produce different types of // not a class in fltk itself, and this will produce different types of
// code depending on what the image type is. There are private subclasses // code depending on what the image type is. There are private subclasses
// in Fluid_Image.C for each type of image format. Right now only xpm // in Fluid_Image.C for each type of image format. Right now only xpm
// files are supported. // files are supported.
//
// 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".
//
class Fluid_Image { class Fluid_Image {
const char *name_; const char *name_;
@ -26,3 +49,7 @@ public:
// pop up file chooser and return a legal image selected by user, // pop up file chooser and return a legal image selected by user,
// or zero for any errors: // or zero for any errors:
Fluid_Image *ui_find_image(const char *); Fluid_Image *ui_find_image(const char *);
//
// End of "$Id: Fluid_Image.h,v 1.2 1998/10/21 16:28:57 mike Exp $".
//

View File

@ -1,3 +1,28 @@
//
// "$Id: Shortcut_Button.h,v 1.2 1998/10/21 16:28:58 mike Exp $"
//
// Shortcut 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_Button.H> #include <FL/Fl_Button.H>
class Shortcut_Button : public Fl_Button { class Shortcut_Button : public Fl_Button {
@ -8,3 +33,7 @@ public:
Shortcut_Button(int x, int y, int w, int h, const char* l = 0) : Shortcut_Button(int x, int y, int w, int h, const char* l = 0) :
Fl_Button(x,y,w,h,l) {svalue = 0;} Fl_Button(x,y,w,h,l) {svalue = 0;}
}; };
//
// End of "$Id: Shortcut_Button.h,v 1.2 1998/10/21 16:28:58 mike Exp $".
//

View File

@ -1,8 +1,27 @@
/* code.C //
// "$Id: code.cxx,v 1.4 1998/10/21 16:28:58 mike Exp $"
Code to write .C files from Fluid //
// Code output routines 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 <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
@ -269,3 +288,7 @@ void Fl_Type::write_code1() {
write_c("// Code for %s\n", title()); write_c("// Code for %s\n", title());
} }
void Fl_Type::write_code2() {} void Fl_Type::write_code2() {}
//
// End of "$Id: code.cxx,v 1.4 1998/10/21 16:28:58 mike Exp $".
//

View File

@ -1,13 +1,35 @@
/* factory.C //
// "$Id: factory.cxx,v 1.2 1998/10/21 16:28:59 mike Exp $"
Type classes for most of the fltk widgets. Most of the work //
is done by code in Fl_Widget_Type.C. Also a factory instance // Widget factory code for the Fast Light Tool Kit (FLTK).
of each of these type classes. //
// Type classes for most of the fltk widgets. Most of the work
This file also contains the "new" menu, which has a pointer // is done by code in Fl_Widget_Type.C. Also a factory instance
to a factory instance for every class (both the ones defined // of each of these type classes.
here and ones in other files) //
*/ // This file also contains the "new" menu, which has a pointer
// to a factory instance for every class (both the ones defined
// here and ones in other files)
//
// 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.H>
#include <FL/Fl_Group.H> #include <FL/Fl_Group.H>
@ -649,3 +671,7 @@ int lookup_symbol(const char *name, int &v, int numberok) {
if (numberok && ((v = atoi(name)) || !strcmp(name,"0"))) return 1; if (numberok && ((v = atoi(name)) || !strcmp(name,"0"))) return 1;
return 0; return 0;
} }
//
// End of "$Id: factory.cxx,v 1.2 1998/10/21 16:28:59 mike Exp $".
//

View File

@ -1,13 +1,32 @@
/* file.C //
// "$Id: file.cxx,v 1.3 1998/10/21 16:29:00 mike Exp $"
Code to read and write Fluid .fl files //
// Fluid file routines for the Fast Light Tool Kit (FLTK).
You may find the basic read_* and write_* routines to //
be useful for other programs. I have used them many times. // You may find the basic read_* and write_* routines to
They are somewhat similar to tcl, using matching { and } // be useful for other programs. I have used them many times.
to quote strings. // They are somewhat similar to tcl, using matching { and }
// to quote strings.
*/ //
// 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 <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
@ -567,4 +586,6 @@ void read_fdesign() {
} }
} }
//
// End of "$Id: file.cxx,v 1.3 1998/10/21 16:29:00 mike Exp $".
//

View File

@ -1,11 +1,31 @@
// fluid.C //
// "$Id: fluid.cxx,v 1.4 1998/10/21 16:29:00 mike Exp $"
// Please see README for some information about the construction of this //
// rather nasty piece of code. // FLUID main entry 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".
//
const char *copyright = const char *copyright =
"The FLTK user interface designer version 0.99\n" "The FLTK user interface designer version 0.99\n"
"Copyright \xa9 1998 Bill Spitzak\n" "Copyright 1998 Bill Spitzak\n"
"\n" "\n"
"This library is free software; you can redistribute it and/or " "This library is free software; you can redistribute it and/or "
"modify it under the terms of the GNU Library General Public " "modify it under the terms of the GNU Library General Public "
@ -385,3 +405,7 @@ int main(int argc,char **argv) {
#endif #endif
return Fl::run(); return Fl::run();
} }
//
// End of "$Id: fluid.cxx,v 1.4 1998/10/21 16:29:00 mike Exp $".
//

View File

@ -1,4 +1,27 @@
// gif.C //
// "$Id: gif.cxx,v 1.2 1998/10/21 16:29:01 mike Exp $"
//
// GIF support 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".
//
// Read a .gif file and convert it to a "xpm" format (actually my // Read a .gif file and convert it to a "xpm" format (actually my
// modified one with compressed colormaps). // modified one with compressed colormaps).
@ -334,3 +357,7 @@ int gif2xpm(
data[Height+2] = 0; // null to end string array data[Height+2] = 0; // null to end string array
return 1; return 1;
} }
//
// End of "$Id: gif.cxx,v 1.2 1998/10/21 16:29:01 mike Exp $".
//