Remove unnecessary system includes from public headers
Add includes of system headers in the implementation files where necessary.
This commit is contained in:
parent
bd52db0b95
commit
41266df7ae
1
FL/Fl.H
1
FL/Fl.H
@ -42,6 +42,7 @@
|
|||||||
# undef BSD
|
# undef BSD
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#include <string.h> // FIXME: Fl::is_scheme(): strcmp needs string.h
|
||||||
|
|
||||||
class Fl_Widget;
|
class Fl_Widget;
|
||||||
class Fl_Window;
|
class Fl_Window;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Definition of classes Fl_Surface_Device, Fl_Display_Device
|
// Definition of classes Fl_Surface_Device, Fl_Display_Device
|
||||||
// for the Fast Light Tool Kit (FLTK).
|
// for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 2010-2017 by Bill Spitzak and others.
|
// Copyright 2010-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include <FL/Fl_Plugin.H>
|
#include <FL/Fl_Plugin.H>
|
||||||
#include <FL/platform_types.h>
|
#include <FL/platform_types.h>
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
class Fl_Graphics_Driver;
|
class Fl_Graphics_Driver;
|
||||||
class Fl_RGB_Image;
|
class Fl_RGB_Image;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
|
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -27,9 +27,6 @@
|
|||||||
#define Fl_File_Chooser_H
|
#define Fl_File_Chooser_H
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <FL/Fl_Group.H>
|
#include <FL/Fl_Group.H>
|
||||||
#include <FL/Fl_Choice.H>
|
#include <FL/Fl_Choice.H>
|
||||||
#include <FL/Fl_Menu_Button.H>
|
#include <FL/Fl_Menu_Button.H>
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
#include <FL/Fl_Bitmap.H>
|
#include <FL/Fl_Bitmap.H>
|
||||||
#include <FL/Fl_Pixmap.H>
|
#include <FL/Fl_Pixmap.H>
|
||||||
#include <FL/Fl_RGB_Image.H>
|
#include <FL/Fl_RGB_Image.H>
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
class Fl_Graphics_Driver;
|
class Fl_Graphics_Driver;
|
||||||
class Fl_Font_Descriptor;
|
class Fl_Font_Descriptor;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#define Fl_Image_H
|
#define Fl_Image_H
|
||||||
|
|
||||||
#include "Enumerations.H"
|
#include "Enumerations.H"
|
||||||
#include <stdlib.h>
|
|
||||||
#include "Fl_Widget.H" // for fl_uintptr_t
|
#include "Fl_Widget.H" // for fl_uintptr_t
|
||||||
|
|
||||||
class Fl_Widget;
|
class Fl_Widget;
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
// | input area || \/ |
|
// | input area || \/ |
|
||||||
// |______________||____|
|
// |______________||____|
|
||||||
//
|
//
|
||||||
// Copyright 1998-2017 by Bill Spitzak and others.
|
|
||||||
// Copyright 2004 by Greg Ercolano.
|
// Copyright 2004 by Greg Ercolano.
|
||||||
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -30,13 +30,6 @@
|
|||||||
#include <FL/Fl_Input.H>
|
#include <FL/Fl_Input.H>
|
||||||
#include <FL/Fl_Menu_Button.H>
|
#include <FL/Fl_Menu_Button.H>
|
||||||
|
|
||||||
// Leaving these two headers so builds don't break if user includes this
|
|
||||||
// header and uses items from fl_draw or string (but doesn't include in src).
|
|
||||||
// Note: this would ensure compatibility with FLTK 1.3.x.
|
|
||||||
// Shall we? Currently not!
|
|
||||||
// #include <FL/fl_draw.H>
|
|
||||||
// #include <string.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
A combination of the input widget and a menu button.
|
A combination of the input widget and a menu button.
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Header file for Fl_Text_Buffer class.
|
// Header file for Fl_Text_Buffer class.
|
||||||
//
|
//
|
||||||
// Copyright 2001-2017 by Bill Spitzak and others.
|
// Copyright 2001-2021 by Bill Spitzak and others.
|
||||||
// Original code Copyright Mark Edel. Permission to distribute under
|
// Original code Copyright Mark Edel. Permission to distribute under
|
||||||
// the LGPL for the FLTK library granted by Mark Edel.
|
// the LGPL for the FLTK library granted by Mark Edel.
|
||||||
//
|
//
|
||||||
@ -22,7 +22,7 @@
|
|||||||
#ifndef FL_TEXT_BUFFER_H
|
#ifndef FL_TEXT_BUFFER_H
|
||||||
#define FL_TEXT_BUFFER_H
|
#define FL_TEXT_BUFFER_H
|
||||||
|
|
||||||
#include <stdarg.h> /* va_start/end */
|
#include <stdarg.h> /* va_list */
|
||||||
|
|
||||||
#undef ASSERT_UTF8
|
#undef ASSERT_UTF8
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Group.H>
|
#include <FL/Fl_Group.H>
|
||||||
#include <FL/Fl_Bitmap.H>
|
#include <FL/Fl_Bitmap.H>
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#define FL_WINDOW 0xF0 ///< window type id: all subclasses have type() >= this
|
#define FL_WINDOW 0xF0 ///< window type id: all subclasses have type() >= this
|
||||||
#define FL_DOUBLE_WINDOW 0xF1 ///< double window type id
|
#define FL_DOUBLE_WINDOW 0xF1 ///< double window type id
|
||||||
|
@ -29,9 +29,7 @@
|
|||||||
|
|
||||||
#include "Fl_Export.H"
|
#include "Fl_Export.H"
|
||||||
#include "fl_types.h"
|
#include "fl_types.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h> // FILE *fl_fopen()
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Tiny OpenGL v3 + glut demo program for the Fast Light Tool Kit (FLTK).
|
// Tiny OpenGL v3 + glut demo program for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -14,7 +14,6 @@
|
|||||||
// https://www.fltk.org/bugs.php
|
// https://www.fltk.org/bugs.php
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED 1
|
# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED 1
|
||||||
# include <OpenGL/gl3.h> // defines OpenGL 3.0+ functions
|
# include <OpenGL/gl3.h> // defines OpenGL 3.0+ functions
|
||||||
@ -25,7 +24,8 @@
|
|||||||
# include <GL/glew.h>
|
# include <GL/glew.h>
|
||||||
#endif
|
#endif
|
||||||
#include <FL/glut.H>
|
#include <FL/glut.H>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
// Globals
|
// Globals
|
||||||
// Real programs don't use globals :-D
|
// Real programs don't use globals :-D
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
//
|
//
|
||||||
// Note: This entire file Windows only.
|
// Note: This entire file Windows only.
|
||||||
|
|
||||||
#include <stdio.h> // snprintf()
|
|
||||||
|
|
||||||
#include <FL/Fl.H> // Fl_Timeout_Handler..
|
#include <FL/Fl.H> // Fl_Timeout_Handler..
|
||||||
#include <FL/fl_ask.H> // fl_alert()
|
#include <FL/fl_ask.H> // fl_alert()
|
||||||
#include <FL/fl_utf8.h> // fl_utf8fromwc()
|
#include <FL/fl_utf8.h> // fl_utf8fromwc()
|
||||||
@ -12,6 +10,9 @@
|
|||||||
|
|
||||||
#include "ExternalCodeEditor_WIN32.h"
|
#include "ExternalCodeEditor_WIN32.h"
|
||||||
|
|
||||||
|
#include <stdio.h> // snprintf()
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
extern int G_debug; // defined in fluid.cxx
|
extern int G_debug; // defined in fluid.cxx
|
||||||
|
|
||||||
// Static local data
|
// Static local data
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "Fluid_Image.h"
|
#include "Fluid_Image.h"
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "ExternalCodeEditor_WIN32.h"
|
#include "ExternalCodeEditor_WIN32.h"
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Widget.H>
|
#include <FL/Fl_Widget.H>
|
||||||
|
#include <FL/filename.H>
|
||||||
|
#include <FL/fl_string.h>
|
||||||
|
#include <FL/fl_utf8.h> // fl_fopen()
|
||||||
#include "Fl_Type.h"
|
#include "Fl_Type.h"
|
||||||
#include "Fluid_Image.h"
|
#include "Fluid_Image.h"
|
||||||
#include "../src/flstring.h"
|
#include "../src/flstring.h"
|
||||||
@ -23,8 +26,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <FL/filename.H>
|
|
||||||
#include <FL/fl_string.h>
|
|
||||||
|
|
||||||
extern void goto_source_dir(); // in fluid.cxx
|
extern void goto_source_dir(); // in fluid.cxx
|
||||||
extern void leave_source_dir(); // in fluid.cxx
|
extern void leave_source_dir(); // in fluid.cxx
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
|
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
|
@ -5,7 +5,7 @@ code_name {.cxx}
|
|||||||
comment {//
|
comment {//
|
||||||
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
|
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -77,12 +77,9 @@ class FL_EXPORT Fl_File_Chooser {open
|
|||||||
callback {fileName->value("");
|
callback {fileName->value("");
|
||||||
fileList->deselect();
|
fileList->deselect();
|
||||||
Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this);
|
Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this);
|
||||||
window->hide();} open
|
window->hide();} open selected
|
||||||
private xywh {1171 438 490 380} type Double hide resizable
|
private xywh {1171 438 490 380} type Double hide resizable
|
||||||
code0 {if (title) window->label(title);}
|
code0 {if (title) window->label(title);} modal
|
||||||
code1 {\#include <stdio.h>}
|
|
||||||
code2 {\#include <stdlib.h>}
|
|
||||||
code3 {\#include <string.h>} modal
|
|
||||||
} {
|
} {
|
||||||
Fl_Group {} {open
|
Fl_Group {} {open
|
||||||
private xywh {10 10 470 25}
|
private xywh {10 10 470 25}
|
||||||
@ -116,7 +113,7 @@ window->hide();} open
|
|||||||
code0 {\#include <FL/Fl_File_Browser.H>}
|
code0 {\#include <FL/Fl_File_Browser.H>}
|
||||||
}
|
}
|
||||||
Fl_Box errorBox {
|
Fl_Box errorBox {
|
||||||
label {dynamic error display} selected
|
label {dynamic error display}
|
||||||
private xywh {10 45 295 225} box DOWN_BOX color 7 labelsize 18 labelcolor 1 align 149 hide
|
private xywh {10 45 295 225} box DOWN_BOX color 7 labelsize 18 labelcolor 1 align 149 hide
|
||||||
}
|
}
|
||||||
Fl_Box previewBox {
|
Fl_Box previewBox {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// OpenGL visual selection code for the Fast Light Tool Kit (FLTK).
|
// OpenGL visual selection code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2018 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -22,11 +22,12 @@
|
|||||||
\addtogroup DriverDeveloper
|
\addtogroup DriverDeveloper
|
||||||
\{
|
\{
|
||||||
*/
|
*/
|
||||||
# include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
# include "Fl_Gl_Choice.H"
|
#include "Fl_Gl_Choice.H"
|
||||||
# include <FL/Fl_Gl_Window.H>
|
#include <FL/Fl_Gl_Window.H>
|
||||||
# include "Fl_Gl_Window_Driver.H"
|
#include "Fl_Gl_Window_Driver.H"
|
||||||
# include <FL/gl_draw.H>
|
#include <FL/gl_draw.H>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
GLContext *Fl_Gl_Window_Driver::context_list = 0;
|
GLContext *Fl_Gl_Window_Driver::context_list = 0;
|
||||||
int Fl_Gl_Window_Driver::nContext = 0;
|
int Fl_Gl_Window_Driver::nContext = 0;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Fl_Graphics_Driver class for the Fast Light Tool Kit (FLTK).
|
// Fl_Graphics_Driver class for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 2010-2020 by Bill Spitzak and others.
|
// Copyright 2010-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -29,6 +29,7 @@
|
|||||||
#include <FL/Fl_Image_Surface.H>
|
#include <FL/Fl_Image_Surface.H>
|
||||||
#include <FL/math.h>
|
#include <FL/math.h>
|
||||||
#include <FL/platform.H>
|
#include <FL/platform.H>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
FL_EXPORT Fl_Graphics_Driver *fl_graphics_driver; // the current driver of graphics operations
|
FL_EXPORT Fl_Graphics_Driver *fl_graphics_driver; // the current driver of graphics operations
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
|
@ -5,7 +5,7 @@ code_name {.cxx}
|
|||||||
comment {//
|
comment {//
|
||||||
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Draw-to-image code for the Fast Light Tool Kit (FLTK).
|
// Draw-to-image code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2017 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#include <FL/fl_draw.H> // necessary for FL_EXPORT fl_*_offscreen()
|
#include <FL/fl_draw.H> // necessary for FL_EXPORT fl_*_offscreen()
|
||||||
|
|
||||||
|
#include <stdlib.h> // realloc()
|
||||||
|
|
||||||
/** Constructor with optional high resolution.
|
/** Constructor with optional high resolution.
|
||||||
\param w,h Width and height of the resulting image. The value of the \p high_res
|
\param w,h Width and height of the resulting image. The value of the \p high_res
|
||||||
parameter controls whether \p w and \p h are interpreted as pixels or FLTK units.
|
parameter controls whether \p w and \p h are interpreted as pixels or FLTK units.
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include <FL/Fl_Table_Row.H>
|
#include <FL/Fl_Table_Row.H>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
// for debugging...
|
// for debugging...
|
||||||
// #define DEBUG 1
|
// #define DEBUG 1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Tab widget for the Fast Light Tool Kit (FLTK).
|
// Tab widget for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2018 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -20,12 +20,14 @@
|
|||||||
// Each child widget is a card, and its label() is printed on the card tab.
|
// Each child widget is a card, and its label() is printed on the card tab.
|
||||||
// Clicking the tab makes that card visible.
|
// Clicking the tab makes that card visible.
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Tabs.H>
|
#include <FL/Fl_Tabs.H>
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <FL/Fl_Tooltip.H>
|
#include <FL/Fl_Tooltip.H>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define BORDER 2
|
#define BORDER 2
|
||||||
#define EXTRASPACE 10
|
#define EXTRASPACE 10
|
||||||
#define SELECTION_BORDER 5
|
#define SELECTION_BORDER 5
|
||||||
|
@ -85,6 +85,7 @@
|
|||||||
#include <FL/Fl_Tile.H>
|
#include <FL/Fl_Tile.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
#include <FL/Fl_Rect.H>
|
#include <FL/Fl_Rect.H>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Drags the intersection at (\p oldx,\p oldy) to (\p newx,\p newy).
|
Drags the intersection at (\p oldx,\p oldy) to (\p newx,\p newy).
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Definition of classes Fl_Graphics_Driver, Fl_Surface_Device, Fl_Display_Device
|
// Definition of classes Fl_Graphics_Driver, Fl_Surface_Device, Fl_Display_Device
|
||||||
// for the Fast Light Tool Kit (FLTK).
|
// for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 2010-2018 by Bill Spitzak and others.
|
// Copyright 2010-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
#include <FL/Fl_Graphics_Driver.H>
|
#include <FL/Fl_Graphics_Driver.H>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief The Windows-specific graphics driver class.
|
\brief The Windows-specific graphics driver class.
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include <FL/Fl_Pixmap.H>
|
#include <FL/Fl_Pixmap.H>
|
||||||
#include <FL/Fl_Bitmap.H>
|
#include <FL/Fl_Bitmap.H>
|
||||||
#include <FL/fl_string.h>
|
#include <FL/fl_string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#if defined(HAVE_LIBPNG)
|
#if defined(HAVE_LIBPNG)
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <FL/platform.H>
|
#include <FL/platform.H>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
extern XIC fl_xim_ic;
|
extern XIC fl_xim_ic;
|
||||||
extern char fl_is_over_the_spot;
|
extern char fl_is_over_the_spot;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Line style code for the Fast Light Tool Kit (FLTK).
|
// Line style code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2018 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -23,8 +23,8 @@
|
|||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <FL/platform.H>
|
#include <FL/platform.H>
|
||||||
#include "../../flstring.h"
|
#include "../../flstring.h"
|
||||||
|
|
||||||
#include "Fl_Xlib_Graphics_Driver.H"
|
#include "Fl_Xlib_Graphics_Driver.H"
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
void Fl_Xlib_Graphics_Driver::line_style_unscaled(int style, int width, char* dashes) {
|
void Fl_Xlib_Graphics_Driver::line_style_unscaled(int style, int width, char* dashes) {
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Standard dialog functions for the Fast Light Tool Kit (FLTK).
|
// Standard dialog functions for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2020 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -24,14 +24,10 @@
|
|||||||
// mostly. In most cases it is easier to get a multi-line message
|
// mostly. In most cases it is easier to get a multi-line message
|
||||||
// by putting newlines in the message.
|
// by putting newlines in the message.
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include "flstring.h"
|
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/fl_string.h>
|
#include <FL/fl_string.h>
|
||||||
|
|
||||||
#include <FL/fl_ask.H>
|
#include <FL/fl_ask.H>
|
||||||
|
#include "flstring.h"
|
||||||
|
|
||||||
#include <FL/Fl_Box.H>
|
#include <FL/Fl_Box.H>
|
||||||
#include <FL/Fl_Button.H>
|
#include <FL/Fl_Button.H>
|
||||||
@ -43,6 +39,10 @@
|
|||||||
#include "Fl_Screen_Driver.H"
|
#include "Fl_Screen_Driver.H"
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static Fl_Window *message_form;
|
static Fl_Window *message_form;
|
||||||
static Fl_Box *message;
|
static Fl_Box *message;
|
||||||
static Fl_Box *icon;
|
static Fl_Box *icon;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "flstring.h"
|
#include "flstring.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
char fl_draw_shortcut; // set by fl_labeltypes.cxx
|
char fl_draw_shortcut; // set by fl_labeltypes.cxx
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// OpenGL text drawing support routines for the Fast Light Tool Kit (FLTK).
|
// OpenGL text drawing support routines for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2018 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -42,6 +42,7 @@
|
|||||||
#include <FL/Fl_Image_Surface.H>
|
#include <FL/Fl_Image_Surface.H>
|
||||||
#include <FL/glu.h> // for gluUnProject()
|
#include <FL/glu.h> // for gluUnProject()
|
||||||
#include <FL/glut.H> // for glutStrokeString() and glutStrokeLength()
|
#include <FL/glut.H> // for glutStrokeString() and glutStrokeLength()
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef GL_TEXTURE_RECTANGLE_ARB
|
#ifndef GL_TEXTURE_RECTANGLE_ARB
|
||||||
# define GL_TEXTURE_RECTANGLE_ARB 0x84F5
|
# define GL_TEXTURE_RECTANGLE_ARB 0x84F5
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||||
|
|
||||||
|
drivers/Cairo/Fl_Cairo_Graphics_Driver.o: ../config.h
|
||||||
drivers/OpenGL/Fl_OpenGL_Display_Device.o: ../config.h
|
drivers/OpenGL/Fl_OpenGL_Display_Device.o: ../config.h
|
||||||
drivers/OpenGL/Fl_OpenGL_Display_Device.o: ../FL/abi-version.h
|
drivers/OpenGL/Fl_OpenGL_Display_Device.o: ../FL/abi-version.h
|
||||||
drivers/OpenGL/Fl_OpenGL_Display_Device.o: ../FL/Enumerations.H
|
drivers/OpenGL/Fl_OpenGL_Display_Device.o: ../FL/Enumerations.H
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// File chooser test program.
|
// File chooser test program.
|
||||||
//
|
//
|
||||||
// Copyright 1999-2010 by Michael Sweet.
|
// Copyright 1999-2010 by Michael Sweet.
|
||||||
// Copyright 2011-2019 by Bill Spitzak and others.
|
// Copyright 2011-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -30,7 +30,6 @@
|
|||||||
// Include necessary headers...
|
// Include necessary headers...
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <FL/Fl_File_Chooser.H>
|
#include <FL/Fl_File_Chooser.H>
|
||||||
#include <FL/Fl_File_Icon.H>
|
#include <FL/Fl_File_Icon.H>
|
||||||
#include <FL/Fl_Shared_Image.H>
|
#include <FL/Fl_Shared_Image.H>
|
||||||
@ -38,7 +37,10 @@
|
|||||||
#include <FL/Fl_Light_Button.H>
|
#include <FL/Fl_Light_Button.H>
|
||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
#include <FL/Fl_Simple_Terminal.H>
|
#include <FL/Fl_Simple_Terminal.H>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h> // exit()
|
||||||
#include <locale.h> // setlocale()..
|
#include <locale.h> // setlocale()..
|
||||||
|
|
||||||
#define TERMINAL_HEIGHT 120
|
#define TERMINAL_HEIGHT 120
|
||||||
@ -300,7 +302,7 @@ pdf_check(const char *name, // I - Name of file
|
|||||||
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' "
|
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' "
|
||||||
"-dFirstPage=1 -dLastPage=1 \'%s\' 2>/dev/null", preview, name);
|
"-dFirstPage=1 -dLastPage=1 \'%s\' 2>/dev/null", preview, name);
|
||||||
|
|
||||||
if (system(command)) return 0;
|
if (fl_system(command)) return 0;
|
||||||
|
|
||||||
return new Fl_PNM_Image(preview);
|
return new Fl_PNM_Image(preview);
|
||||||
}
|
}
|
||||||
@ -363,7 +365,7 @@ ps_check(const char *name, // I - Name of file
|
|||||||
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' \'%s\' 2>/dev/null",
|
"-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' \'%s\' 2>/dev/null",
|
||||||
preview, outname);
|
preview, outname);
|
||||||
|
|
||||||
if (system(command)) return 0;
|
if (fl_system(command)) return 0;
|
||||||
|
|
||||||
return new Fl_PNM_Image(preview);
|
return new Fl_PNM_Image(preview);
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,6 @@
|
|||||||
// exercisetablerow -- Exercise all aspects of the Fl_Table_Row widget
|
// exercisetablerow -- Exercise all aspects of the Fl_Table_Row widget
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include <stdlib.h> // atoi
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Window.H>
|
#include <FL/Fl_Window.H>
|
||||||
#include <FL/Fl_Input.H>
|
#include <FL/Fl_Input.H>
|
||||||
@ -18,6 +12,10 @@
|
|||||||
#include <FL/Fl_Table_Row.H>
|
#include <FL/Fl_Table_Row.H>
|
||||||
#include <FL/Fl_Simple_Terminal.H>
|
#include <FL/Fl_Simple_Terminal.H>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h> // atoi
|
||||||
|
|
||||||
#define TERMINAL_HEIGHT 120
|
#define TERMINAL_HEIGHT 120
|
||||||
|
|
||||||
// Globals
|
// Globals
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Unit tests for the Fast Light Tool Kit (FLTK).
|
// Unit tests for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2017 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@ -27,8 +27,9 @@
|
|||||||
#include <FL/Fl_Help_View.H>
|
#include <FL/Fl_Help_View.H>
|
||||||
#include <FL/Fl_Group.H>
|
#include <FL/Fl_Group.H>
|
||||||
#include <FL/Fl_Box.H>
|
#include <FL/Fl_Box.H>
|
||||||
#include <FL/fl_draw.H> // fl_text_extents()
|
#include <FL/fl_draw.H> // fl_text_extents()
|
||||||
#include <FL/fl_string.h> // fl_strdup()
|
#include <FL/fl_string.h> // fl_strdup()
|
||||||
|
#include <stdlib.h> // malloc, free
|
||||||
|
|
||||||
// WINDOW/WIDGET SIZES
|
// WINDOW/WIDGET SIZES
|
||||||
#define MAINWIN_W 700 // main window w()
|
#define MAINWIN_W 700 // main window w()
|
||||||
|
Loading…
Reference in New Issue
Block a user