Remove DOS line endings from text files.

Make sure that all files have the proper MIME type and eol-style properties
set.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-11-02 19:06:55 +00:00
parent b128af1d4a
commit 5cdf984737
7 changed files with 1619 additions and 1619 deletions
File diff suppressed because it is too large Load Diff
+27 -27
View File
@@ -1,27 +1,27 @@
/* XPM */
static const char *flComment_xpm[] = {
/* width height ncolors chars_per_pixel */
"16 16 4 1",
/* colors */
". c none",
"a c #000000",
"b c #c0e0c0",
"c c #000000",
/* pixels */
"................",
"................",
".aaaaaaaaaaaaaa.",
".abbbbbbbbbbbbc.",
".abbbbbccbbccbc.",
".abbbbccbbccbbc.",
".abbbbccbbccbbc.",
".abbbccbbccbbbc.",
".abbbccbbccbbbc.",
".abbccbbccbbbbc.",
".abbccbbccbbbbc.",
".abccbbccbbbbbc.",
".abbbbbbbbbbbbc.",
".accccccccccccc.",
"................",
"................",
};
/* XPM */
static const char *flComment_xpm[] = {
/* width height ncolors chars_per_pixel */
"16 16 4 1",
/* colors */
". c none",
"a c #000000",
"b c #c0e0c0",
"c c #000000",
/* pixels */
"................",
"................",
".aaaaaaaaaaaaaa.",
".abbbbbbbbbbbbc.",
".abbbbbccbbccbc.",
".abbbbccbbccbbc.",
".abbbbccbbccbbc.",
".abbbccbbccbbbc.",
".abbbccbbccbbbc.",
".abbccbbccbbbbc.",
".abbccbbccbbbbc.",
".abccbbccbbbbbc.",
".abbbbbbbbbbbbc.",
".accccccccccccc.",
"................",
"................",
};
+591 -591
View File
File diff suppressed because it is too large Load Diff
+71 -71
View File
@@ -1,71 +1,71 @@
//
// "$Id$"
//
// FLUID print panel for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 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 on the following page:
//
// http://www.fltk.org/str.php
//
// generated by Fast Light User Interface Designer (fluid) version 1.0107
#ifndef print_panel_h
#define print_panel_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
extern Fl_Double_Window *print_panel;
#include <FL/Fl_Group.H>
extern Fl_Group *print_panel_controls;
#include <FL/Fl_Choice.H>
extern Fl_Choice *print_choice;
#include <FL/Fl_Button.H>
extern Fl_Button *print_properties;
#include <FL/Fl_Box.H>
extern Fl_Box *print_status;
#include <FL/Fl_Round_Button.H>
extern Fl_Round_Button *print_all;
extern Fl_Round_Button *print_pages;
extern Fl_Round_Button *print_selection;
#include <FL/Fl_Input.H>
extern Fl_Input *print_from;
extern Fl_Input *print_to;
#include <FL/Fl_Spinner.H>
extern Fl_Spinner *print_copies;
#include <FL/Fl_Check_Button.H>
extern Fl_Check_Button *print_collate_button;
extern Fl_Group *print_collate_group[2];
#include <FL/Fl_Return_Button.H>
extern void print_cb(Fl_Return_Button*, void*);
#include <FL/Fl_Progress.H>
extern Fl_Progress *print_progress;
extern Fl_Double_Window *print_properties_panel;
extern Fl_Choice *print_page_size;
extern Fl_Button *print_output_mode[4];
Fl_Double_Window* make_print_panel();
extern Fl_Menu_Item menu_print_page_size[];
extern void print_cb(Fl_Return_Button *, void *);
void print_load();
void print_update_status();
#endif
//
// End of "$Id$".
//
//
// "$Id$"
//
// FLUID print panel for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 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 on the following page:
//
// http://www.fltk.org/str.php
//
// generated by Fast Light User Interface Designer (fluid) version 1.0107
#ifndef print_panel_h
#define print_panel_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
extern Fl_Double_Window *print_panel;
#include <FL/Fl_Group.H>
extern Fl_Group *print_panel_controls;
#include <FL/Fl_Choice.H>
extern Fl_Choice *print_choice;
#include <FL/Fl_Button.H>
extern Fl_Button *print_properties;
#include <FL/Fl_Box.H>
extern Fl_Box *print_status;
#include <FL/Fl_Round_Button.H>
extern Fl_Round_Button *print_all;
extern Fl_Round_Button *print_pages;
extern Fl_Round_Button *print_selection;
#include <FL/Fl_Input.H>
extern Fl_Input *print_from;
extern Fl_Input *print_to;
#include <FL/Fl_Spinner.H>
extern Fl_Spinner *print_copies;
#include <FL/Fl_Check_Button.H>
extern Fl_Check_Button *print_collate_button;
extern Fl_Group *print_collate_group[2];
#include <FL/Fl_Return_Button.H>
extern void print_cb(Fl_Return_Button*, void*);
#include <FL/Fl_Progress.H>
extern Fl_Progress *print_progress;
extern Fl_Double_Window *print_properties_panel;
extern Fl_Choice *print_page_size;
extern Fl_Button *print_output_mode[4];
Fl_Double_Window* make_print_panel();
extern Fl_Menu_Item menu_print_page_size[];
extern void print_cb(Fl_Return_Button *, void *);
void print_load();
void print_update_status();
#endif
//
// End of "$Id$".
//
+260 -260
View File
File diff suppressed because it is too large Load Diff
+244 -244
View File
@@ -1,244 +1,244 @@
# data file for the Fltk User Interface Designer (fluid)
version 1.0107
header_name {.h}
code_name {.cxx}
comment {//
// "$Id$"
//
// FLUID template support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 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 on the following page:
//
// http://www.fltk.org/str.php
//
} {in_source in_header
}
decl {\#include <stdio.h>} {}
decl {\#include <stdlib.h>} {}
decl {\#include "../src/flstring.h"} {}
decl {\#include <errno.h>} {}
decl {\#include <FL/filename.H>} {}
decl {\#include <FL/fl_ask.H>} {}
decl {\#include <FL/Fl_Shared_Image.H>} {}
decl {\#include <FL/Fl_Preferences.H>} {}
declblock {\#if defined(WIN32) && !defined(__CYGWIN__)} {selected after {\#endif // WIN32 && !__CYGWIN__}
} {
decl {\#include <io.h>} {}
decl {\#else} {}
decl {\#include <unistd.h>} {}
}
decl {extern Fl_Preferences fluid_prefs;} {}
Function {make_template_panel()} {open
} {
Fl_Window template_panel {
label {New/Save Template}
callback {Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_browser->deselect();
template_name->value("");
template_instance->value("");
template_panel->hide();} open
xywh {340 237 460 355} type Double resizable modal visible
} {
Fl_Browser template_browser {
label {Available Templates:}
callback {if (Fl::event_clicks()) {
template_panel->hide();
return;
}
Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_preview->redraw();
int item = template_browser->value();
if (item <= 1) template_instance->deactivate();
else template_instance->activate();
if (item < 1) {
template_submit->deactivate();
template_delete->deactivate();
return;
}
template_submit->activate();
const char *flfile = (const char *)template_browser->data(item);
if (!flfile) {
template_delete->deactivate();
return;
}
template_name->value(template_browser->text(item));
template_delete->activate();
char pngfile[1024], *ext;
strlcpy(pngfile, flfile, sizeof(pngfile));
if ((ext = strrchr(pngfile, '.')) == NULL) return;
strcpy(ext, ".png");
img = Fl_Shared_Image::get(pngfile);
if (img) {
template_preview->image(img);
template_preview->redraw();
}}
xywh {10 28 180 250} type Hold labelfont 1 align 5 when 3
}
Fl_Box template_preview {
xywh {200 28 250 250} box THIN_DOWN_BOX align 85 resizable
}
Fl_Input template_name {
label {Template Name:}
callback {if (strlen(template_name->value())) {
template_submit->activate();
if (Fl::event_key() == FL_Enter) template_panel->hide();
} else template_submit->deactivate();}
xywh {124 288 326 25} labelfont 1 when 3 textfont 4
}
Fl_Input template_instance {
label {Instance Name:}
xywh {124 288 326 25} labelfont 1 textfont 4 hide
}
Fl_Group {} {
xywh {10 323 440 25}
} {
Fl_Button template_delete {
label {Delete Template}
callback template_delete_cb
xywh {10 323 133 25}
}
Fl_Box {} {
xywh {153 323 126 25} resizable
}
Fl_Button {} {
label Cancel
callback {Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_browser->deselect();
template_name->value("");
template_instance->value("");
template_panel->hide();}
xywh {289 323 72 25}
}
Fl_Return_Button template_submit {
label Save
callback {Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_panel->hide();}
xywh {371 323 79 25}
}
}
}
}
Function {template_clear()} {return_type void
} {
code {int i;
void *filename;
for (i = 1; i <= template_browser->size(); i ++) {
if ((filename = template_browser->data(i)) != NULL) free(filename);
}
template_browser->deselect();
template_browser->clear();} {}
}
Function {template_delete_cb(Fl_Button *, void *)} {return_type void
} {
code {int item = template_browser->value();
if (item < 1) return;
const char *name = template_browser->text(item);
const char *flfile = (const char *)template_browser->data(item);
if (!flfile) return;
if (!fl_choice("Are you sure you want to delete the template \\"%s\\"?",
"Cancel", "Delete", 0, name)) return;
if (unlink(flfile)) {
fl_alert("Unable to delete template \\"%s\\":\\n%s", name, strerror(errno));
return;
}
template_browser->remove(item);
template_browser->do_callback();} {}
}
Function {template_load()} {open return_type void
} {
code {int i;
char name[1024], filename[1024], path[1024], *ptr;
struct dirent **files;
int num_files;
fluid_prefs.getUserdataPath(path, sizeof(path));
strlcat(path, "templates", sizeof(path));
num_files = fl_filename_list(path, &files);
for (i = 0; i < num_files; i ++) {
if (fl_filename_match(files[i]->d_name, "*.fl")) {
// Format the name as the filename with "_" replaced with " "
// and without the trailing ".fl"...
strlcpy(name, files[i]->d_name, sizeof(name));
*strstr(name, ".fl") = '\\0';
for (ptr = name; *ptr; ptr ++) {
if (*ptr == '_') *ptr = ' ';
}
// Add the template to the browser...
snprintf(filename, sizeof(filename), "%s/%s", path, files[i]->d_name);
template_browser->add(name, strdup(filename));
}
free(files[i]);
}
if (num_files > 0) free(files);} {}
}
comment {
//
// End of "$Id$".
//} {in_source in_header
}
# data file for the Fltk User Interface Designer (fluid)
version 1.0107
header_name {.h}
code_name {.cxx}
comment {//
// "$Id$"
//
// FLUID template support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 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 on the following page:
//
// http://www.fltk.org/str.php
//
} {in_source in_header
}
decl {\#include <stdio.h>} {}
decl {\#include <stdlib.h>} {}
decl {\#include "../src/flstring.h"} {}
decl {\#include <errno.h>} {}
decl {\#include <FL/filename.H>} {}
decl {\#include <FL/fl_ask.H>} {}
decl {\#include <FL/Fl_Shared_Image.H>} {}
decl {\#include <FL/Fl_Preferences.H>} {}
declblock {\#if defined(WIN32) && !defined(__CYGWIN__)} {selected after {\#endif // WIN32 && !__CYGWIN__}
} {
decl {\#include <io.h>} {}
decl {\#else} {}
decl {\#include <unistd.h>} {}
}
decl {extern Fl_Preferences fluid_prefs;} {}
Function {make_template_panel()} {open
} {
Fl_Window template_panel {
label {New/Save Template}
callback {Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_browser->deselect();
template_name->value("");
template_instance->value("");
template_panel->hide();} open
xywh {340 237 460 355} type Double resizable modal visible
} {
Fl_Browser template_browser {
label {Available Templates:}
callback {if (Fl::event_clicks()) {
template_panel->hide();
return;
}
Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_preview->redraw();
int item = template_browser->value();
if (item <= 1) template_instance->deactivate();
else template_instance->activate();
if (item < 1) {
template_submit->deactivate();
template_delete->deactivate();
return;
}
template_submit->activate();
const char *flfile = (const char *)template_browser->data(item);
if (!flfile) {
template_delete->deactivate();
return;
}
template_name->value(template_browser->text(item));
template_delete->activate();
char pngfile[1024], *ext;
strlcpy(pngfile, flfile, sizeof(pngfile));
if ((ext = strrchr(pngfile, '.')) == NULL) return;
strcpy(ext, ".png");
img = Fl_Shared_Image::get(pngfile);
if (img) {
template_preview->image(img);
template_preview->redraw();
}}
xywh {10 28 180 250} type Hold labelfont 1 align 5 when 3
}
Fl_Box template_preview {
xywh {200 28 250 250} box THIN_DOWN_BOX align 85 resizable
}
Fl_Input template_name {
label {Template Name:}
callback {if (strlen(template_name->value())) {
template_submit->activate();
if (Fl::event_key() == FL_Enter) template_panel->hide();
} else template_submit->deactivate();}
xywh {124 288 326 25} labelfont 1 when 3 textfont 4
}
Fl_Input template_instance {
label {Instance Name:}
xywh {124 288 326 25} labelfont 1 textfont 4 hide
}
Fl_Group {} {
xywh {10 323 440 25}
} {
Fl_Button template_delete {
label {Delete Template}
callback template_delete_cb
xywh {10 323 133 25}
}
Fl_Box {} {
xywh {153 323 126 25} resizable
}
Fl_Button {} {
label Cancel
callback {Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_browser->deselect();
template_name->value("");
template_instance->value("");
template_panel->hide();}
xywh {289 323 72 25}
}
Fl_Return_Button template_submit {
label Save
callback {Fl_Shared_Image *img = (Fl_Shared_Image *)template_preview->image();
if (img) img->release();
template_preview->image(0);
template_panel->hide();}
xywh {371 323 79 25}
}
}
}
}
Function {template_clear()} {return_type void
} {
code {int i;
void *filename;
for (i = 1; i <= template_browser->size(); i ++) {
if ((filename = template_browser->data(i)) != NULL) free(filename);
}
template_browser->deselect();
template_browser->clear();} {}
}
Function {template_delete_cb(Fl_Button *, void *)} {return_type void
} {
code {int item = template_browser->value();
if (item < 1) return;
const char *name = template_browser->text(item);
const char *flfile = (const char *)template_browser->data(item);
if (!flfile) return;
if (!fl_choice("Are you sure you want to delete the template \\"%s\\"?",
"Cancel", "Delete", 0, name)) return;
if (unlink(flfile)) {
fl_alert("Unable to delete template \\"%s\\":\\n%s", name, strerror(errno));
return;
}
template_browser->remove(item);
template_browser->do_callback();} {}
}
Function {template_load()} {open return_type void
} {
code {int i;
char name[1024], filename[1024], path[1024], *ptr;
struct dirent **files;
int num_files;
fluid_prefs.getUserdataPath(path, sizeof(path));
strlcat(path, "templates", sizeof(path));
num_files = fl_filename_list(path, &files);
for (i = 0; i < num_files; i ++) {
if (fl_filename_match(files[i]->d_name, "*.fl")) {
// Format the name as the filename with "_" replaced with " "
// and without the trailing ".fl"...
strlcpy(name, files[i]->d_name, sizeof(name));
*strstr(name, ".fl") = '\\0';
for (ptr = name; *ptr; ptr ++) {
if (*ptr == '_') *ptr = ' ';
}
// Add the template to the browser...
snprintf(filename, sizeof(filename), "%s/%s", path, files[i]->d_name);
template_browser->add(name, strdup(filename));
}
free(files[i]);
}
if (num_files > 0) free(files);} {}
}
comment {
//
// End of "$Id$".
//} {in_source in_header
}
+56 -56
View File
@@ -1,56 +1,56 @@
//
// "$Id$"
//
// FLUID template support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 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 on the following page:
//
// http://www.fltk.org/str.php
//
// generated by Fast Light User Interface Designer (fluid) version 1.0107
#ifndef template_panel_h
#define template_panel_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
extern Fl_Double_Window *template_panel;
#include <FL/Fl_Browser.H>
extern Fl_Browser *template_browser;
#include <FL/Fl_Box.H>
extern Fl_Box *template_preview;
#include <FL/Fl_Input.H>
extern Fl_Input *template_name;
extern Fl_Input *template_instance;
#include <FL/Fl_Group.H>
#include <FL/Fl_Button.H>
extern void template_delete_cb(Fl_Button*, void*);
extern Fl_Button *template_delete;
#include <FL/Fl_Return_Button.H>
extern Fl_Return_Button *template_submit;
Fl_Double_Window* make_template_panel();
void template_clear();
void template_delete_cb(Fl_Button *, void *);
void template_load();
#endif
//
// End of "$Id$".
//
//
// "$Id$"
//
// FLUID template support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 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 on the following page:
//
// http://www.fltk.org/str.php
//
// generated by Fast Light User Interface Designer (fluid) version 1.0107
#ifndef template_panel_h
#define template_panel_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
extern Fl_Double_Window *template_panel;
#include <FL/Fl_Browser.H>
extern Fl_Browser *template_browser;
#include <FL/Fl_Box.H>
extern Fl_Box *template_preview;
#include <FL/Fl_Input.H>
extern Fl_Input *template_name;
extern Fl_Input *template_instance;
#include <FL/Fl_Group.H>
#include <FL/Fl_Button.H>
extern void template_delete_cb(Fl_Button*, void*);
extern Fl_Button *template_delete;
#include <FL/Fl_Return_Button.H>
extern Fl_Return_Button *template_submit;
Fl_Double_Window* make_template_panel();
void template_clear();
void template_delete_cb(Fl_Button *, void *);
void template_load();
#endif
//
// End of "$Id$".
//