Reva GUI Library: Check-in [10435914ac]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:updated to fltk r7149
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 10435914acd954bfa27f28849653843f25fcfa5b
User & Date: ron 2010-03-01 11:52:30
Context
2010-03-01
20:44
no comment check-in: 329f4cd184 user: ron tags: trunk
11:52
updated to fltk r7149 check-in: 10435914ac user: ron tags: trunk
2010-02-15
08:57
fixed makefile check-in: 9e6b7eff3a user: ron tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to fltk-1.3/CHANGES.

1
2


























3
4
5
6
7
8
9
CHANGES IN FLTK 1.3.0



























	- Added template to generate new projects with Xcode.
	- Managing all Widget flags in a single location now (STR #2161)
	- Fixed all color related call to Fl_Color type (STR #2208)
	- File chooser preview now recognizes utf8 encoded 
	  text files (STR #2218)
	- Empty functions in Fluid no longer create an
	  implementation (STR #2259)


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
CHANGES IN FLTK 1.3.0

	- Removed redundant Fl_Group casts
	- Added indexing to Fl_Preferences
	- Integrated default menu into Demo test app
	- Added automated Xcode IDE file generation to Fluid
	- Fixed lost top item in Fluid's tree browser (STR #2233)
	- Fixed crash in test/Editor when freeing buffer 
	  too soon (STR #2294) 
	- Fixed Fl_Preferences Cygwin wide character bug (STR #2164)
	- Fixed sorting in Fl_Browser - last item would not 
	  be sorted (STR #2300)
	- Fixed window levels in OS X Cocoa (STR #2316)
	- Added jpeg support to Fluid image() element
	- Added loading jpeg images from memory
	- Added binary data type to Fluid
	- File chosser preview would hang if a device was choosen
	- Replaced _WIN32 symbols that had come with UTF-8 and the
	  new Fl_Table widget with WIN32
	- Fixed a buffer overflow in fl_utf8from_mb() (STR #2279)
	- Fixed a Windows GDI leak when testing alpha blending capabilities
	- Fixed a name conflict with new (VS 2008 Express) winsock2.h
	  versions and another conflict that produced compile errors
	  with VS 2008 Express (STR #2301)
	- Widgets now remove stale entries from the default callback
	  queue when they are deleted (STR #2302)
	- Moved OS X code base to the more moder Cocoa toolkit thanks
	  to the awesome work of Manolo Gouy (STR #2221)
	- Added template to generate new projects with Xcode.
	- Managing all Widget flags in a single location now (STR #2161)
	- Fixed all color related call to Fl_Color type (STR #2208)
	- File chooser preview now recognizes utf8 encoded 
	  text files (STR #2218)
	- Empty functions in Fluid no longer create an
	  implementation (STR #2259)

Changes to fltk-1.3/CMake/FLTKUse.cmake.




























1
2
3
4
5
6
7
..
62
63
64
65
66
67
68






























IF(NOT FLTK11_FOUND)
  MESSAGE(FATAL_ERROR "Something went wrong. You are including FLTKUse.cmake but FLTK was not found")
ENDIF(NOT FLTK11_FOUND)

# -------------------------------------------------------------
# This macro automates wrapping of Fluid files
# Specify the output variable name and the list of sources
................................................................................
# Add compiler flags needed to use FLTK.
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${FLTK_REQUIRED_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLTK_REQUIRED_CXX_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${FLTK_REQUIRED_EXE_LINKER_FLAGS}")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${FLTK_REQUIRED_SHARED_LINKER_FLAGS}")
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${FLTK_REQUIRED_MODULE_LINKER_FLAGS}")




>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
..
89
90
91
92
93
94
95
96
97
98
#
# "$Id$"
#
# CMake support file to build the FLTK project using CMake (www.cmake.org)
#
# Copyright 1998-2010 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
#

IF(NOT FLTK11_FOUND)
  MESSAGE(FATAL_ERROR "Something went wrong. You are including FLTKUse.cmake but FLTK was not found")
ENDIF(NOT FLTK11_FOUND)

# -------------------------------------------------------------
# This macro automates wrapping of Fluid files
# Specify the output variable name and the list of sources
................................................................................
# Add compiler flags needed to use FLTK.
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${FLTK_REQUIRED_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLTK_REQUIRED_CXX_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${FLTK_REQUIRED_EXE_LINKER_FLAGS}")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${FLTK_REQUIRED_SHARED_LINKER_FLAGS}")
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${FLTK_REQUIRED_MODULE_LINKER_FLAGS}")

#
# End of "$Id$".
#

Changes to fltk-1.3/CMake/PlatformTests.cxx.









































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52


53
54
55
56

57
58
59
60
61

62
63
64
65
66
67
68
69
70

71
72
73
74

75
76
77
78
79
80
81

























































#ifdef HAVE_LIBZ

#include <zlib.h>

int main()
{
	unsigned long compressedSize = 0;
	unsigned char cd[100];
	const unsigned char ud[100] = "";
	unsigned long uncompressedSize = 0;

	// Call zlib's compress function.
	if(compress(cd, &compressedSize, ud, uncompressedSize) != Z_OK)
		{
		return 0;
		}
	return 1;
}


#endif


#ifdef HAVE_LIBJPEG

#include <stdio.h>
#include <jpeglib.h>

int main()
{
	struct jpeg_decompress_struct cinfo;
	jpeg_create_decompress(&cinfo);
	jpeg_read_header(&cinfo, TRUE);
	return 1;
}

#endif


#ifdef HAVE_LIBPNG
#include <png.h>
int main()
{
	png_structp png_ptr = png_create_read_struct
		(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
		 NULL, NULL);
	png_infop info_ptr = png_create_info_struct(png_ptr);
	png_set_sig_bytes(png_ptr, 8);
	png_read_info(png_ptr, info_ptr);

	return 0;
}
#endif



#ifdef HAVE_PNG_H
#include <png.h>
int main() { retunr 0;}
#endif


#ifdef HAVE_PNG_GET_VALID
#include <png.h>
int main()
{

	png_structp png_ptr = png_create_read_struct
		(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
		 NULL, NULL);
	png_infop info_ptr = png_create_info_struct(png_ptr);
	png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS);
	return 0;
}
#endif


#ifdef HAVE_PNG_SET_TRNS_TO_ALPHA
#include <png.h>
int main()
{

	png_structp png_ptr = png_create_read_struct
		(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
		 NULL, NULL);
	png_set_tRNS_to_alpha(png_ptr);
	return 0;
}
#endif

















>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>




|
<
|
|
|
|

|
|
<
|
|
|


<

>






|
<
|
|
|
|



>





|
|
|
|
|
|

|



>
>


|

>



<
|
>
|
|
|
|
|
|



>


<
|
>
|
|
|
|
|


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

46
47
48
49
50
51
52

53
54
55
56
57

58
59
60
61
62
63
64
65
66

67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

101
102
103
104
105
106
107
108
109
110
111
112
113
114

115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
//
// "$Id: PlatformTests.cxx 7012 2010-01-16 14:18:18Z AlbrechtS $"
//
// CMake platform tests for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2010 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
//

//
// The platform tests in this file are invoked by the CMake macro
// PERFORM_CMAKE_TEST in CMakeLists.txt (or maybe other files).
//
// Each platform test in this file must begin and end with
//   #ifdef FOO
//     ...
//   #endif
// where FOO is the compiler macro to be tested/defined in config.h.
//
// It must contain a main() function and return 0 if the test succeeded.
//

#ifdef HAVE_LIBZ

#include <zlib.h>

int main() {

  unsigned long compressedSize = 0;
  unsigned char cd[100];
  const unsigned char ud[100] = "";
  unsigned long uncompressedSize = 0;

  // Call zlib's compress function.
  if (compress(cd, &compressedSize, ud, uncompressedSize) != Z_OK) {

    return 0;
  }
  return 1;
}


#endif


#ifdef HAVE_LIBJPEG

#include <stdio.h>
#include <jpeglib.h>

int main() {

  struct jpeg_decompress_struct cinfo;
  jpeg_create_decompress(&cinfo);
  jpeg_read_header(&cinfo, TRUE);
  return 1;
}

#endif


#ifdef HAVE_LIBPNG
#include <png.h>
int main()
{
  png_structp png_ptr = png_create_read_struct
	(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
	 NULL, NULL);
  png_infop info_ptr = png_create_info_struct(png_ptr);
  png_set_sig_bytes(png_ptr, 8);
  png_read_info(png_ptr, info_ptr);

  return 0;
}
#endif


// This one is probably not used:
#ifdef HAVE_PNG_H
#include <png.h>
int main() { return 0;}
#endif


#ifdef HAVE_PNG_GET_VALID
#include <png.h>


int main() {
  png_structp png_ptr = png_create_read_struct
	(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
	 NULL, NULL);
  png_infop info_ptr = png_create_info_struct(png_ptr);
  png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS);
  return 0;
}
#endif


#ifdef HAVE_PNG_SET_TRNS_TO_ALPHA
#include <png.h>


int main() {
  png_structp png_ptr = png_create_read_struct
	(PNG_LIBPNG_VER_STRING, (png_voidp)NULL,
	 NULL, NULL);
  png_set_tRNS_to_alpha(png_ptr);
  return 0;
}
#endif


#ifdef HAVE_SCANDIR_POSIX
#include <dirent.h>

int func (const char *d, dirent ***list, void *sort) {
  int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
}

int main() {
  return 0;
}
#endif

//
// End of "$Id: PlatformTests.cxx 7012 2010-01-16 14:18:18Z AlbrechtS $".
//

Changes to fltk-1.3/CMakeLists.txt.




1
2






















3
4
5
6
7
8
9
..
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
...
243
244
245
246
247
248
249



250
251
252
253
254
255
256
...
406
407
408
409
410
411
412







# Main CMakeLists.txt to build the FLTK project using CMake (www.cmake.org)
# Written by Andy Cedilnik and Julien Jomier























PROJECT(FLTK)
CMAKE_MINIMUM_REQUIRED(VERSION 2.0)

# The FLTK version
SET(FLTK_VERSION_MAJOR "1")
SET(FLTK_VERSION_MINOR "3")
................................................................................
  ENDIF(NOT FLTK_APPLE_X11)
ENDIF(APPLE)

IF(UNIX AND NOT APPLE)
  FIND_PACKAGE(X11)
  ADD_DEFINITIONS(-DUSE_X11)
  SET( FLTK_PLATFORM_DEPENDENT_LIBS ${X11_LIBRARIES} -lm)
ENDIF(UNIX)

IF(APPLE AND NOT FLTK_APPLE_X11)
  SET( FLTK_PLATFORM_DEPENDENT_LIBS
    "-framework Carbon -framework Cocoa -framework ApplicationServices -lz")
ENDIF(APPLE AND NOT FLTK_APPLE_X11)

IF(CYGWIN)
................................................................................
  SET(HAVE_LIBPNG 1)
  SET(HAVE_PNG_H 1)
  SET(FLTK_PNG_LIBRARIES fltk_png)
  SET(FLTK_LIBRARIES "${FLTK_LIBRARIES};fltk_png")
  INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/png")
ENDIF(FLTK_USE_SYSTEM_PNG)




SET(FLTK_DATADIR "${CMAKE_INSTALL_PREFIX}/share/FLTK")
SET(FLTK_DOCDIR  "${CMAKE_INSTALL_PREFIX}/share/doc/FLTK")

# Write out configuration header file
CONFIGURE_FILE(${FLTK_SOURCE_DIR}/configh.cmake.in
  ${FLTK_BINARY_DIR}/config.h)

................................................................................
  "${FLTK_BINARY_DIR}/CMake/fltk-config" @ONLY IMMEDIATE)

INSTALL_FILES(/include/FL FILES ${FLTK_HEADER_FILES})
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_SOURCE_DIR}/CMake/FLTKUse.cmake")
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_BINARY_DIR}/FLTKBuildSettings.cmake")
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_BINARY_DIR}/FLTKLibraryDepends.cmake")
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_BINARY_DIR}/CMake/FLTKConfig.cmake")




>
>
>


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







 







>
>
>







 







>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
..
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
...
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
...
434
435
436
437
438
439
440
441
442
443
444
#
# "$Id: CMakeLists.txt 7012 2010-01-16 14:18:18Z AlbrechtS $"
#
# Main CMakeLists.txt to build the FLTK project using CMake (www.cmake.org)
# Written by Andy Cedilnik and Julien Jomier
#
# Copyright 1998-2010 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
#

PROJECT(FLTK)
CMAKE_MINIMUM_REQUIRED(VERSION 2.0)

# The FLTK version
SET(FLTK_VERSION_MAJOR "1")
SET(FLTK_VERSION_MINOR "3")
................................................................................
  ENDIF(NOT FLTK_APPLE_X11)
ENDIF(APPLE)

IF(UNIX AND NOT APPLE)
  FIND_PACKAGE(X11)
  ADD_DEFINITIONS(-DUSE_X11)
  SET( FLTK_PLATFORM_DEPENDENT_LIBS ${X11_LIBRARIES} -lm)
ENDIF(UNIX AND NOT APPLE)

IF(APPLE AND NOT FLTK_APPLE_X11)
  SET( FLTK_PLATFORM_DEPENDENT_LIBS
    "-framework Carbon -framework Cocoa -framework ApplicationServices -lz")
ENDIF(APPLE AND NOT FLTK_APPLE_X11)

IF(CYGWIN)
................................................................................
  SET(HAVE_LIBPNG 1)
  SET(HAVE_PNG_H 1)
  SET(FLTK_PNG_LIBRARIES fltk_png)
  SET(FLTK_LIBRARIES "${FLTK_LIBRARIES};fltk_png")
  INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/png")
ENDIF(FLTK_USE_SYSTEM_PNG)

# Do we have the POSIX compatible scandir() prototype?
PERFORM_CMAKE_TEST(CMake/PlatformTests.cxx HAVE_SCANDIR_POSIX)

SET(FLTK_DATADIR "${CMAKE_INSTALL_PREFIX}/share/FLTK")
SET(FLTK_DOCDIR  "${CMAKE_INSTALL_PREFIX}/share/doc/FLTK")

# Write out configuration header file
CONFIGURE_FILE(${FLTK_SOURCE_DIR}/configh.cmake.in
  ${FLTK_BINARY_DIR}/config.h)

................................................................................
  "${FLTK_BINARY_DIR}/CMake/fltk-config" @ONLY IMMEDIATE)

INSTALL_FILES(/include/FL FILES ${FLTK_HEADER_FILES})
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_SOURCE_DIR}/CMake/FLTKUse.cmake")
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_BINARY_DIR}/FLTKBuildSettings.cmake")
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_BINARY_DIR}/FLTKLibraryDepends.cmake")
INSTALL_FILES(/lib/FLTK-${FLTK_VERSION} FILES "${FLTK_BINARY_DIR}/CMake/FLTKConfig.cmake")

#
# End of "$Id: CMakeLists.txt 7012 2010-01-16 14:18:18Z AlbrechtS $".
#

Changes to fltk-1.3/CREDITS.

35
36
37
38
39
40
41

42
43
44
45
46
47
48
	Paul Chambers
	Stephen Davies
	Yuri D'Elia
	Greg Ercolano
	Yuri Fedorchenko
	George Garvey
	Duncan Gibson

	Mikael Hultgren
	Stuart Levy
	Howard Lightstone
	Mike Lindner
	Alexander Mai
	Alexander Rabi
	James Roth







>







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
	Paul Chambers
	Stephen Davies
	Yuri D'Elia
	Greg Ercolano
	Yuri Fedorchenko
	George Garvey
	Duncan Gibson
	Manolo Gouy
	Mikael Hultgren
	Stuart Levy
	Howard Lightstone
	Mike Lindner
	Alexander Mai
	Alexander Rabi
	James Roth

Changes to fltk-1.3/FL/Fl.H.

1
2
3
4
5
6
7
8
9
...
775
776
777
778
779
780
781


782
783
784
785
786
787
788
....
1038
1039
1040
1041
1042
1043
1044
1045
1046
//
// "$Id: Fl.H 6903 2009-09-27 11:09:03Z matt $"
//
// Main header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................

  /** \addtogroup fl_events 
    @{ */
  /** Returns non-zero if the Shift key is pressed. */
  static int event_shift() {return e_state&FL_SHIFT;}
  /** Returns non-zero if the Control key is pressed. */
  static int event_ctrl() {return e_state&FL_CTRL;}


  /** Returns non-zero if the Alt key is pressed. */
  static int event_alt() {return e_state&FL_ALT;}
  /**
    Returns the mouse buttons state bits; if non-zero, then at least one
    button is pressed now.  This function returns the button state at the 
    time of the event. During an FL_RELEASE event, the state 
    of the released button will be 0. To find out, which button 
................................................................................
	fl global Unicode and UTF-8 handling functions
     @{ */
 /** @} */

#endif // !Fl_H

//
// End of "$Id: Fl.H 6903 2009-09-27 11:09:03Z matt $".
//

|







 







>
>







 







|

1
2
3
4
5
6
7
8
9
...
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
....
1040
1041
1042
1043
1044
1045
1046
1047
1048
//
// "$Id: Fl.H 6976 2009-12-22 14:17:22Z ianmacarthur $"
//
// Main header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................

  /** \addtogroup fl_events 
    @{ */
  /** Returns non-zero if the Shift key is pressed. */
  static int event_shift() {return e_state&FL_SHIFT;}
  /** Returns non-zero if the Control key is pressed. */
  static int event_ctrl() {return e_state&FL_CTRL;}
  /** Returns non-zero if the FL_COMMAND key is pressed, either FL_CTRL or on OSX FL_META. */
  static int event_command() {return e_state&FL_COMMAND;}
  /** Returns non-zero if the Alt key is pressed. */
  static int event_alt() {return e_state&FL_ALT;}
  /**
    Returns the mouse buttons state bits; if non-zero, then at least one
    button is pressed now.  This function returns the button state at the 
    time of the event. During an FL_RELEASE event, the state 
    of the released button will be 0. To find out, which button 
................................................................................
	fl global Unicode and UTF-8 handling functions
     @{ */
 /** @} */

#endif // !Fl_H

//
// End of "$Id: Fl.H 6976 2009-12-22 14:17:22Z ianmacarthur $".
//

Changes to fltk-1.3/FL/Fl_File_Chooser.H.

1
2
3
4
5
6
7
8
9
...
218
219
220
221
222
223
224

225
226
227
228
229
230
231
232
233
234
//
// "$Id: Fl_File_Chooser.H 6678 2009-03-13 23:36:09Z AlbrechtS $"
//
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
     the contents of a directory.
  */
  static Fl_File_Sort_F *sort; 
private:
  Fl_Widget* ext_group; 
public:
  Fl_Widget* add_extra(Fl_Widget* gr);

};
FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname,int relative=0);
FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname,int relative=0);
FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*));
FL_EXPORT void fl_file_chooser_ok_label(const char*l);
#endif

//
// End of "$Id: Fl_File_Chooser.H 6678 2009-03-13 23:36:09Z AlbrechtS $".
//

|







 







>








|

1
2
3
4
5
6
7
8
9
...
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
//
// "$Id: Fl_File_Chooser.H 7007 2010-01-14 23:08:06Z greg.ercolano $"
//
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
     the contents of a directory.
  */
  static Fl_File_Sort_F *sort; 
private:
  Fl_Widget* ext_group; 
public:
  Fl_Widget* add_extra(Fl_Widget* gr);
  Fl_File_Browser *browser(void) {return fileList; };
};
FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname,int relative=0);
FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname,int relative=0);
FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*));
FL_EXPORT void fl_file_chooser_ok_label(const char*l);
#endif

//
// End of "$Id: Fl_File_Chooser.H 7007 2010-01-14 23:08:06Z greg.ercolano $".
//

Changes to fltk-1.3/FL/Fl_Group.H.

1
2
3
4
5
6
7
8
9
...
172
173
174
175
176
177
178








179
180
181
182
183
184
185
...
218
219
220
221
222
223
224
225
226
//
// "$Id: Fl_Group.H 6907 2009-09-28 14:34:52Z matt $"
//
// Group header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................

    \return true, if clipping is enabled, false otherwise.

    \see void Fl_Group::clip_children(int c)
  */
  unsigned int clip_children() { return (flags() & CLIP_CHILDREN) != 0; }









  // back compatibility functions:

  /**
    \deprecated This is for backwards compatibility only. You should use
    \e W->%take_focus() instead.
    \sa Fl_Widget::take_focus();
  */
................................................................................
  /** All it does is calling Fl_Group::current()->end() */
  Fl_End() {Fl_Group::current()->end();}
};

#endif

//
// End of "$Id: Fl_Group.H 6907 2009-09-28 14:34:52Z matt $".
//

|







 







>
>
>
>
>
>
>
>







 







|

1
2
3
4
5
6
7
8
9
...
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
...
226
227
228
229
230
231
232
233
234
//
// "$Id: Fl_Group.H 7074 2010-02-13 12:25:58Z AlbrechtS $"
//
// Group header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................

    \return true, if clipping is enabled, false otherwise.

    \see void Fl_Group::clip_children(int c)
  */
  unsigned int clip_children() { return (flags() & CLIP_CHILDREN) != 0; }

  /** Returns an Fl_Group pointer if this widget is an Fl_Group.
  
      \retval NULL if this widget is not derived from Fl_Group.
      \note This method is provided to avoid dynamic_cast.
      \todo More documentation ...
   */
  virtual Fl_Group* as_group() const { return (Fl_Group*)this; }

  // back compatibility functions:

  /**
    \deprecated This is for backwards compatibility only. You should use
    \e W->%take_focus() instead.
    \sa Fl_Widget::take_focus();
  */
................................................................................
  /** All it does is calling Fl_Group::current()->end() */
  Fl_End() {Fl_Group::current()->end();}
};

#endif

//
// End of "$Id: Fl_Group.H 7074 2010-02-13 12:25:58Z AlbrechtS $".
//

Changes to fltk-1.3/FL/Fl_Help_View.H.

1
2
3
4
5
6
7
8
9
...
143
144
145
146
147
148
149




























































150
151
152
153
154
155
156
...
330
331
332
333
334
335
336
337
338
//
// "$Id: Fl_Help_View.H 6743 2009-04-07 17:33:22Z AlbrechtS $"
//
// Help Viewer widget definitions.
//
// Copyright 1997-2009 by Easy Software Products.
// Image support by Matthias Melcher, Copyright 2000-2009.
//
// This library is free software; you can redistribute it and/or
................................................................................
  int		y;		///< Y offset of target
};

/**
  The Fl_Help_View widget displays HTML text. Most HTML 2.0
  elements are supported, as well as a primitive implementation of tables.
  GIF, JPEG, and PNG images are displayed inline.




























































*/
class FL_EXPORT Fl_Help_View : public Fl_Group	// Help viewer widget
{
  enum { RIGHT = -1, CENTER, LEFT };	///< Alignments

  char		title_[1024];		///< Title string
  Fl_Color	defcolor_,		///< Default text color
................................................................................
      scrollbar_size_ = size;
  }   
};

#endif // !Fl_Help_View_H

//
// End of "$Id: Fl_Help_View.H 6743 2009-04-07 17:33:22Z AlbrechtS $".
//

|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

1
2
3
4
5
6
7
8
9
...
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
...
390
391
392
393
394
395
396
397
398
//
// "$Id: Fl_Help_View.H 7139 2010-02-23 15:55:22Z greg.ercolano $"
//
// Help Viewer widget definitions.
//
// Copyright 1997-2009 by Easy Software Products.
// Image support by Matthias Melcher, Copyright 2000-2009.
//
// This library is free software; you can redistribute it and/or
................................................................................
  int		y;		///< Y offset of target
};

/**
  The Fl_Help_View widget displays HTML text. Most HTML 2.0
  elements are supported, as well as a primitive implementation of tables.
  GIF, JPEG, and PNG images are displayed inline.

  Supported HTML tags:
     - A: HREF/NAME
     - B
     - BODY: BGCOLOR/TEXT/LINK
     - BR
     - CENTER
     - CODE
     - DD
     - DL
     - DT
     - EM
     - FONT: COLOR/SIZE/FACE=(helvetica/arial/sans/times/serif/symbol/courier)
     - H1/H2/H3/H4/H5/H6
     - HEAD
     - HR
     - I
     - IMG: SRC/WIDTH/HEIGHT/ALT
     - KBD
     - LI
     - OL
     - P
     - PRE
     - STRONG
     - TABLE: TH/TD/TR/BORDER/BGCOLOR/COLSPAN/ALIGN=CENTER|RIGHT|LEFT
     - TITLE
     - TT
     - U
     - UL
     - VAR

  Supported color names:
     - black,red,green,yellow,blue,magenta,fuchsia,cyan,aqua,white,gray,grey,lime,maroon,navy,olive,purple,silver,teal.

  Supported urls:
     - Internal: file:
     - External: http: ftp: https: ipp: mailto: news:

  Quoted char names:
     - Aacute aacute Acirc acirc acute AElig aelig Agrave agrave amp Aring aring Atilde atilde Auml auml
     - brvbar bull
     - Ccedil ccedil cedil cent copy curren
     - deg divide
     - Eacute eacute Ecirc ecirc Egrave egrave ETH eth Euml euml euro
     - frac12 frac14 frac34
     - gt
     - Iacute iacute Icirc icirc iexcl Igrave igrave iquest Iuml iuml
     - laquo lt
     - macr micro middot
     - nbsp not Ntilde ntilde
     - Oacute oacute Ocirc ocirc Ograve ograve ordf ordm Oslash oslash Otilde otilde Ouml ouml
     - para premil plusmn pound
     - quot
     - raquo reg
     - sect shy sup1 sup2 sup3 szlig
     - THORN thorn times trade
     - Uacute uacute Ucirc ucirc Ugrave ugrave uml Uuml uuml
     - Yacute yacute
     - yen Yuml yuml

*/
class FL_EXPORT Fl_Help_View : public Fl_Group	// Help viewer widget
{
  enum { RIGHT = -1, CENTER, LEFT };	///< Alignments

  char		title_[1024];		///< Title string
  Fl_Color	defcolor_,		///< Default text color
................................................................................
      scrollbar_size_ = size;
  }   
};

#endif // !Fl_Help_View_H

//
// End of "$Id: Fl_Help_View.H 7139 2010-02-23 15:55:22Z greg.ercolano $".
//

Changes to fltk-1.3/FL/Fl_Input_Choice.H.

1
2
3
4
5
6
7
8
9
..
72
73
74
75
76
77
78

79
80
81
82
83
84
85
..
88
89
90
91
92
93
94


95
96
97
98
99
100
101
102
103
104

105
106
107
108
109
110
111
112
113


114
115
116
117
118
119
120
...
208
209
210
211
212
213
214
215
216
//
// "$Id: Fl_Input_Choice.H 6614 2009-01-01 16:11:32Z matt $"
//
// An input/chooser widget.
//            ______________  ____
//           |              || __ |
//           | input area   || \/ |
//           |______________||____|
//
................................................................................
  };

  Fl_Input *inp_;
  InputMenuButton *menu_;

  static void menu_cb(Fl_Widget*, void *data) { 
    Fl_Input_Choice *o=(Fl_Input_Choice *)data;

    const Fl_Menu_Item *item = o->menubutton()->mvalue();
    if (item && item->flags & (FL_SUBMENU|FL_SUBMENU_POINTER)) return;	// ignore submenus
    if (!strcmp(o->inp_->value(), o->menu_->text()))
    {
      o->Fl_Widget::clear_changed();
      if (o->when() & FL_WHEN_NOT_CHANGED)
	o->do_callback();
................................................................................
    {
      o->inp_->value(o->menu_->text());
      o->inp_->set_changed();
      o->Fl_Widget::set_changed();
      if (o->when() & (FL_WHEN_CHANGED|FL_WHEN_RELEASE))
	o->do_callback();
    }



    if (o->callback() != default_callback)
    {
      o->Fl_Widget::clear_changed();
      o->inp_->clear_changed();
    }
  }

  static void inp_cb(Fl_Widget*, void *data) { 
    Fl_Input_Choice *o=(Fl_Input_Choice *)data;

    if (o->inp_->changed()) {
      o->Fl_Widget::set_changed();
      if (o->when() & (FL_WHEN_CHANGED|FL_WHEN_RELEASE))
	o->do_callback();
    } else {
      o->Fl_Widget::clear_changed();
      if (o->when() & FL_WHEN_NOT_CHANGED)
	o->do_callback();
    }



    if (o->callback() != default_callback)
      o->Fl_Widget::clear_changed();
  }

  // Custom resize behavior -- input stretches, menu button doesn't
  inline int inp_x() { return(x() + Fl::box_dx(box())); }
................................................................................
  */
  Fl_Input *input() { return inp_; }
};

#endif // !Fl_Input_Choice_H

//
// End of "$Id: Fl_Input_Choice.H 6614 2009-01-01 16:11:32Z matt $".
//

|







 







>







 







>
>










>









>
>







 







|

1
2
3
4
5
6
7
8
9
..
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
..
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
...
214
215
216
217
218
219
220
221
222
//
// "$Id: Fl_Input_Choice.H 7115 2010-02-20 17:40:07Z AlbrechtS $"
//
// An input/chooser widget.
//            ______________  ____
//           |              || __ |
//           | input area   || \/ |
//           |______________||____|
//
................................................................................
  };

  Fl_Input *inp_;
  InputMenuButton *menu_;

  static void menu_cb(Fl_Widget*, void *data) { 
    Fl_Input_Choice *o=(Fl_Input_Choice *)data;
    Fl_Widget_Tracker wp(o);
    const Fl_Menu_Item *item = o->menubutton()->mvalue();
    if (item && item->flags & (FL_SUBMENU|FL_SUBMENU_POINTER)) return;	// ignore submenus
    if (!strcmp(o->inp_->value(), o->menu_->text()))
    {
      o->Fl_Widget::clear_changed();
      if (o->when() & FL_WHEN_NOT_CHANGED)
	o->do_callback();
................................................................................
    {
      o->inp_->value(o->menu_->text());
      o->inp_->set_changed();
      o->Fl_Widget::set_changed();
      if (o->when() & (FL_WHEN_CHANGED|FL_WHEN_RELEASE))
	o->do_callback();
    }
    
    if (wp.deleted()) return;

    if (o->callback() != default_callback)
    {
      o->Fl_Widget::clear_changed();
      o->inp_->clear_changed();
    }
  }

  static void inp_cb(Fl_Widget*, void *data) { 
    Fl_Input_Choice *o=(Fl_Input_Choice *)data;
    Fl_Widget_Tracker wp(o);
    if (o->inp_->changed()) {
      o->Fl_Widget::set_changed();
      if (o->when() & (FL_WHEN_CHANGED|FL_WHEN_RELEASE))
	o->do_callback();
    } else {
      o->Fl_Widget::clear_changed();
      if (o->when() & FL_WHEN_NOT_CHANGED)
	o->do_callback();
    }
    
    if (wp.deleted()) return;

    if (o->callback() != default_callback)
      o->Fl_Widget::clear_changed();
  }

  // Custom resize behavior -- input stretches, menu button doesn't
  inline int inp_x() { return(x() + Fl::box_dx(box())); }
................................................................................
  */
  Fl_Input *input() { return inp_; }
};

#endif // !Fl_Input_Choice_H

//
// End of "$Id: Fl_Input_Choice.H 7115 2010-02-20 17:40:07Z AlbrechtS $".
//

Changes to fltk-1.3/FL/Fl_JPEG_Image.H.

1
2
3
4
5
6
7
8
9
..
36
37
38
39
40
41
42
43
44
45

46
47
48
49
50
51
52
//
// "$Id: Fl_JPEG_Image.H 6614 2009-01-01 16:11:32Z matt $"
//
// JPEG image header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
  The Fl_JPEG_Image class supports loading, caching,
  and drawing of Joint Photographic Experts Group (JPEG) File
  Interchange Format (JFIF) images. The class supports grayscale
  and color (RGB) JPEG image files.
*/
class FL_EXPORT Fl_JPEG_Image : public Fl_RGB_Image {

  public:

  Fl_JPEG_Image(const char* filename);

};

#endif

//
// End of "$Id: Fl_JPEG_Image.H 6614 2009-01-01 16:11:32Z matt $".
//

|







 







|

|
>





|

1
2
3
4
5
6
7
8
9
..
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// "$Id: Fl_JPEG_Image.H 7092 2010-02-18 11:38:42Z matt $"
//
// JPEG image header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
  The Fl_JPEG_Image class supports loading, caching,
  and drawing of Joint Photographic Experts Group (JPEG) File
  Interchange Format (JFIF) images. The class supports grayscale
  and color (RGB) JPEG image files.
*/
class FL_EXPORT Fl_JPEG_Image : public Fl_RGB_Image {

public:

  Fl_JPEG_Image(const char *filename);
  Fl_JPEG_Image(const char *name, const unsigned char *data);
};

#endif

//
// End of "$Id: Fl_JPEG_Image.H 7092 2010-02-18 11:38:42Z matt $".
//

Added fltk-1.3/FL/Fl_Native_File_Chooser.H.







































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// "$Id: Fl_Native_File_Chooser.H 7003 2010-01-14 20:47:59Z greg.ercolano $"
//
// FLTK native OS file chooser widget
//
// Copyright 1998-2009 by Bill Spitzak and others.
// Copyright 2004 Greg Ercolano.
//
// 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
//

#ifndef FL_NATIVE_FILE_CHOOSER_H
#define FL_NATIVE_FILE_CHOOSER_H

// Use Windows' chooser
#ifdef WIN32
#include <FL/Fl_Native_File_Chooser_WIN32.H>
#endif

// Use Apple's chooser
#ifdef __APPLE__
#include <FL/Fl_Native_File_Chooser_MAC.H>
#endif

// All else falls back to FLTK's own chooser
#if ! defined(__APPLE__) && !defined(WIN32)
#include <FL/Fl_Native_File_Chooser_FLTK.H>
#endif

#endif /*FL_NATIVE_FILE_CHOOSER_H*/

//
// End of "$Id: Fl_Native_File_Chooser.H 7003 2010-01-14 20:47:59Z greg.ercolano $".
//

Added fltk-1.3/FL/Fl_Native_File_Chooser_FLTK.H.





























































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
//
// "$Id: Fl_Native_File_Chooser_FLTK.H 7007 2010-01-14 23:08:06Z greg.ercolano $"
//
// FLTK native OS file chooser widget
//
// Copyright 1998-2009 by Bill Spitzak and others.
// Copyright 2005 by Nathan Vander Wilt.
//
// 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
//

/* \file
   Fl_Native_File_Chooser widget. */

#include <FL/Fl_File_Chooser.H>
#include <unistd.h>		// _POSIX_NAME_MAX

/**
  This class lets an FLTK application easily and consistently access 
  the operating system's native file chooser. Some operating systems 
  have very complex and specific file choosers that many users want 
  access to specifically, instead of FLTK's default file chooser(s). 
  <P>
  In cases where there is no native file browser, FLTK's own file browser
  is used instead.
  <P>
  \code
  // Create and post the local native file chooser
  #include <FL/Fl_Native_File_Chooser.H>
  [..]
  Fl_Native_File_Chooser fnfc;
  fnfc.title("Pick a file");
  fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE);
  fnfc.filter("Text\t*.txt\n"
              "C Files\t*.{cxx,h,c}");
  fnfc.directory("/var/tmp");
  // Show native chooser
  switch ( fnfc.show() ) {
    case -1: printf("ERROR: %s\n", fnfc.errmsg());    break;  // ERROR
    case  1: printf("CANCEL\n");                      break;  // CANCEL
    default: printf("PICKED: %s\n", fnfc.filename()); break;  // FILE CHOSEN
  }
  \endcode
  <P>
  <B>Platform Specific Caveats</B>
  <P>
  - Under X windows, it's best if you call Fl_File_Icon::load_system_icons()
    at the start of main(), to enable the nicer looking file browser widgets.
  - Some operating systems support certain OS specific options; see 
    Fl_Native_File_Chooser::options() for a list.
*/
class Fl_Native_File_Chooser {
public:
  enum Type {
    BROWSE_FILE = 0,			///< browse files (lets user choose one file)
    BROWSE_DIRECTORY,			///< browse directories (lets user choose one directory)
    BROWSE_MULTI_FILE,			///< browse files (lets user choose multiple files)
    BROWSE_MULTI_DIRECTORY,		///< browse directories (lets user choose multiple directories)
    BROWSE_SAVE_FILE,			///< browse to save a file
    BROWSE_SAVE_DIRECTORY		///< browse to save a directory
  };
  enum Option {
    NO_OPTIONS     = 0x0000,		///< no options enabled
    SAVEAS_CONFIRM = 0x0001,		///< Show native 'Save As' overwrite confirm dialog (if supported)
    NEW_FOLDER     = 0x0002,		///< Show 'New Folder' icon (if supported)
    PREVIEW        = 0x0004,		///< enable preview mode
  };
private:
  int   _btype;			// kind-of browser to show()
  int   _options;		// general options
  int   _nfilters;
  char *_filter;		// user supplied filter
  char *_parsedfilt;		// parsed filter
  int   _filtvalue;		// selected filter
  char *_preset_file;
  char *_prevvalue;		// Returned filename
  char *_directory;
  char *_errmsg;		// error message
  char *_old_dir;
  Fl_File_Chooser *_file_chooser;

  // added by MG
  Fl_File_Browser *my_fileList;
  Fl_Check_Button *show_hidden;
  int prev_filtervalue;
  static void show_hidden_cb(Fl_Check_Button *o, void *data);
  static void remove_hidden_files(Fl_File_Browser *my_fileList);

  // Private methods
  void errmsg(const char *msg);
  int type_fl_file(int);
  void parse_filter();
  void keeplocation();
  int exist_dialog();

public:
  Fl_Native_File_Chooser(int val=BROWSE_FILE);
  ~Fl_Native_File_Chooser();

  // Public methods
  void type(int);
  int type() const;
  void options(int);
  int options() const;
  int count() const;
  const char *filename() const;
  const char *filename(int i) const;
  void directory(const char *val);
  const char *directory() const;
  void title(const char *);
  const char* title() const;
  const char *filter() const;
  void filter(const char *);
  int filters() const;
  void filter_value(int i);
  int filter_value() const;
  void preset_file(const char*);
  const char* preset_file() const;
  const char *errmsg() const;
  int show();
};

//
// End of "$Id: Fl_Native_File_Chooser_FLTK.H 7007 2010-01-14 23:08:06Z greg.ercolano $".
//

Added fltk-1.3/FL/Fl_Native_File_Chooser_MAC.H.







































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
//
// "$Id: Fl_Native_File_Chooser_MAC.H 7014 2010-01-16 16:51:22Z greg.ercolano $"
//
// FLTK native OS file chooser widget
//
// Copyright 1998-2009 by Bill Spitzak and others.
// Copyright 2004 Greg Ercolano.
//
// 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
//

#ifndef FL_DOXYGEN		// PREVENT DOXYGEN'S USE OF THIS FILE

// OSX-SPECIFIC NATIVE BROWSER
#ifdef __APPLE_CC__
#include <Carbon/Carbon.h>
#else /*__APPLE_CC__*/
#include <Carbon.h>
#endif /*__APPLE_CC__*/
#include <config.h>

#undef check // necessary for use of Fl::check()

#include <FL/filename.H>
#define MAXFILTERS	80

class Fl_Native_File_Chooser {
public:
  enum Type {
    BROWSE_FILE = 0,
    BROWSE_DIRECTORY,
    BROWSE_MULTI_FILE,
    BROWSE_MULTI_DIRECTORY,
    BROWSE_SAVE_FILE,
    BROWSE_SAVE_DIRECTORY
  };
  enum Option {
    NO_OPTIONS     = 0x0000,		// no options enabled
    SAVEAS_CONFIRM = 0x0001,		// Show native 'Save As' overwrite confirm dialog (if supported)
    NEW_FOLDER     = 0x0002,		// Show 'New Folder' icon (if supported)
    PREVIEW        = 0x0004,		// enable preview mode
  };
#ifndef __APPLE_COCOA__
protected:
  NavDialogCreationOptions _opts;	// file navigation options
#endif
private:
  int             _btype;		// kind-of browser to show()
  int             _options;		// general options
#ifdef __APPLE_COCOA__
  void 	         *_panel;
#else
  NavDialogRef    _ref;		        // file navigation reference
  NavActionState  _keepstate;		// holds button permissions
  NavMenuItemSpec _tempitem;   	        // Popup menu selection
#endif
  char          **_pathnames;		// array of pathnames
  int             _tpathnames;	        // total pathnames
  char           *_directory;		// default pathname to use
  char           *_title;		// title for window
  char           *_preset_file;	        // the 'save as' filename

  char           *_filter;		// user-side search filter, eg:
					// C Files\t*.[ch]\nText Files\t*.txt"

  char           *_filt_names;		// filter names (tab delimited)
					// eg. "C Files\tText Files"

  char           *_filt_patt[MAXFILTERS];
					// array of filter patterns, eg:
					//     _filt_patt[0]="*.{cxx,h}"
					//     _filt_patt[1]="*.txt"

  int             _filt_total;		// parse_filter() # of filters loaded
  int             _filt_value;		// index of the selected filter
  char           *_errmsg;		// error message

#ifndef __APPLE_COCOA__
  // PRIVATE CLASS TO HANDLE NAVIGATION DIALOG REPLY STRUCT
  //     Class-ified, mainly to ensure proper cleanup.
  //
  class NavReply {
    int _valid_reply;
    NavReplyRecord _reply;
  public:
    NavReply();
    ~NavReply();
    int get_reply(NavDialogRef& ref);
    int get_saveas_basename(char *s, int slen);
    int get_dirname(char *s, int slen);
    int get_pathnames(char **&pathnames, int& tpathnames);
  };
#endif
  // Private methods
  void errmsg(const char *msg);
  void clear_pathnames();
  void set_single_pathname(const char *s);
#ifdef __APPLE_COCOA__
  int get_saveas_basename(void);
#else
  int get_saveas_basename(NavDialogRef& ref);
  int get_pathnames(NavDialogRef& ref);
  static void event_handler(NavEventCallbackMessage callBackSelector, 
			    NavCBRecPtr cbparm, void *data);
#endif
  void clear_filters();
  void add_filter(const char *, const char *);
  void parse_filter(const char *from);
#ifndef __APPLE_COCOA__
  static Boolean filter_proc_cb(AEDesc *, void *, void *, NavFilterModes);
  Boolean filter_proc_cb2(AEDesc*, void*, void*, NavFilterModes);
#endif
  int post();

public:
  Fl_Native_File_Chooser(int val = BROWSE_FILE);
  ~Fl_Native_File_Chooser();

  // Public methods
  void type(int);
  int type() const;
  void options(int);
  int options() const;
  int count() const;
  const char *filename() const;
  const char *filename(int i) const;
  void directory(const char *);
  const char *directory() const;
  void title(const char *);
  const char *title() const;
  const char *filter() const;
  void filter(const char *);
  void filter_value(int i) { _filt_value = i; }
  int filter_value() { return(_filt_value); }
  int filters() { return(_filt_total); }
  void preset_file(const char *);
  const char *preset_file();
  const char *errmsg() const;
  int show();
};

#endif /*!FL_DOXYGEN*/

//
// End of "$Id: Fl_Native_File_Chooser_MAC.H 7014 2010-01-16 16:51:22Z greg.ercolano $".
//

Added fltk-1.3/FL/Fl_Native_File_Chooser_WIN32.H.

















































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
//
// "$Id: Fl_Native_File_Chooser_WIN32.H 7003 2010-01-14 20:47:59Z greg.ercolano $"
//
// FLTK native OS file chooser widget
//
// Copyright 1998-2005 by Bill Spitzak and others.
// Copyright 2004 by Greg Ercolano.
// April 2005 - API changes, improved filter processing by Nathan Vander Wilt
//
// 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:
//
//     http://www.fltk.org/str.php
//

#ifndef FL_DOXYGEN		// PREVENT DOXYGEN'S USE OF THIS FILE

// #define _WIN32_WINNT	0x0501	// needed for OPENFILENAME's 'FlagsEx'
#include <stdio.h>
#include <stdlib.h>		// malloc
#include <windows.h>
#include <commdlg.h>		// OPENFILENAME, GetOpenFileName()
#include <shlobj.h>		// BROWSEINFO, SHBrowseForFolder()

class Fl_Native_File_Chooser {
public:
  enum Type {
    BROWSE_FILE = 0,
    BROWSE_DIRECTORY,
    BROWSE_MULTI_FILE,
    BROWSE_MULTI_DIRECTORY,
    BROWSE_SAVE_FILE,
    BROWSE_SAVE_DIRECTORY
  };
  enum Option {
    NO_OPTIONS     = 0x0000,	// no options enabled
    SAVEAS_CONFIRM = 0x0001,	// Show native 'Save As' overwrite confirm dialog (if supported)
    NEW_FOLDER     = 0x0002,	// Show 'New Folder' icon (if supported)
    PREVIEW        = 0x0004,	// enable preview mode
  };
private:
  int  _btype;			// kind-of browser to show()
  int  _options;		// general options
  OPENFILENAMEW _ofn;		// GetOpenFileName() & GetSaveFileName() struct
  BROWSEINFO   _binf;		// SHBrowseForFolder() struct
  char  **_pathnames;		// array of pathnames
  int     _tpathnames;		// total pathnames
  char   *_directory;		// default pathname to use
  char   *_title;		// title for window
  char   *_filter;		// user-side search filter
  char   *_parsedfilt;		// filter parsed for Windows dialog
  int     _nfilters;		// number of filters parse_filter counted
  char   *_preset_file;		// the file to preselect
  char   *_errmsg;		// error message

  // Private methods
  void errmsg(const char *msg);

  void clear_pathnames();
  void set_single_pathname(const char *s);
  void add_pathname(const char *s);

  void FreePIDL(ITEMIDLIST *pidl);
  void ClearOFN();
  void ClearBINF();
  void Win2Unix(char *s);
  void Unix2Win(char *s);
  int showfile();
  static int CALLBACK Dir_CB(HWND win, UINT msg, LPARAM param, LPARAM data);
  int showdir();

  void parse_filter(const char *);
  void clear_filters();
  void add_filter(const char *, const char *);

public:
  Fl_Native_File_Chooser(int val = BROWSE_FILE);
  ~Fl_Native_File_Chooser();

  // Public methods
  void type(int val);
  int type() const;
  void options(int);
  int options() const;
  int count() const;
  const char *filename() const;
  const char *filename(int i) const;
  void directory(const char *val);
  const char *directory() const;
  void title(const char *val);
  const char *title() const;
  const char *filter() const;
  void filter(const char *val);
  int filters() const { return _nfilters; }
  void filter_value(int i);
  int filter_value() const;
  void preset_file(const char *);
  const char *preset_file() const;
  const char *errmsg() const;
  int show();
};
#endif /*!FL_DOXYGEN*/

//
// End of "$Id: Fl_Native_File_Chooser_WIN32.H 7003 2010-01-14 20:47:59Z greg.ercolano $".
//

Added fltk-1.3/FL/Fl_Plugin.H.



















































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//
// "$Id: Fl_Plugin.H 6995 2010-01-12 08:48:55Z matt $"
//
// A Plugin system for FLTK, implemented in Fl_Preferences.cxx.
//
// Copyright 2002-2010 by Matthias Melcher.
//
// 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
//

/* \file
   Fl_Plugin class . */

#ifndef Fl_Plugin_H
#  define Fl_Plugin_H

#  include "Fl_Preferences.H"


/**
 \brief Fl_Plugin allows link-time and run-time integration of binary modules.
 
 Fl_Plugin and Fl_Plugin_Manager provide a small and simple solution for
 linking C++ classes at run-time, or optionally linking modules at compile
 time without the need to change the main application.

 Fl_Plugin_Manager uses static initialisation to create the plugin interface
 early during startup. Plugins are stored in a temporary database, organized
 in classes.
 
 Plugins should derive a new class from Fl_Plugin as a base:
 \code
 class My_Plugin : public Fl_Plugin {
 public:
   My_Plugin() : Fl_Plugin("effects", "blur") { }
   void do_something(...);
 };
 My_Plugin blur_plugin();
 \endcode
 
 Plugins can be put into modules and either linked befor distribution, or loaded
 from dynamically linkable files. An Fl_Plugin_Manager is used to list and 
 access all currently loaded plugins.
 \code
 Fl_Plugin_Manager mgr("effects");
 int i, n = mgr.plugins();
 for (i=0; i<n; i++) {
   My_Plugin *pin = (My_Plugin*)mgr.plugin(i);
   pin->do_something();
 }
 \endcode
 */
class FL_EXPORT Fl_Plugin 
{
  Fl_Preferences::ID id;
public:
  Fl_Plugin(const char *klass, const char *name);
  virtual ~Fl_Plugin();
};


/**
 \brief Fl_Plugin_Manager manages link-time and run-time plugin binaries.
 \see Fl_Plugin
 */
class FL_EXPORT Fl_Plugin_Manager : public Fl_Preferences
{
public:
  Fl_Plugin_Manager(const char *klass);
  ~Fl_Plugin_Manager();
  
  /** \brief Return the number of plugins in the klass.
   */
  int plugins() { return groups(); }
  Fl_Plugin *plugin(int index);
  Fl_Preferences::ID addPlugin(const char *name, Fl_Plugin *plugin);
  
  static void removePlugin(Fl_Preferences::ID id);
  static int load(const char *filename);
  static int loadAll(const char *filepath, const char *pattern=0);
};


#endif // !Fl_Preferences_H

//
// End of "$Id: Fl_Preferences.H 6995 2010-01-12 08:48:55Z matt $".
//

Changes to fltk-1.3/FL/Fl_Preferences.H.

1
2
3
4
5
6
7
8
9
..
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
..
75
76
77
78
79
80
81











82
83
84
85

86



87
88
















89
90
91
92

93
94
95
96
97



98
99
100
101
102
103
104
...
116
117
118
119
120
121
122


123
124
125
126
127
128
129
...
153
154
155
156
157
158
159
160
161
162
163
164
165


166


167
168
169




170


171










172
173
174

175
176


177
178

179
180
181


182
183

184
185
186
187
188
189
190
191
192
193
194
195
196

197
198
199
200
201
202
203
204
205
206
207

208
209
210
211
212
213
214


215
216
217
218
219
220
221
222
223
224
225
//
// "$Id: Fl_Preferences.H 6770 2009-04-18 18:52:59Z matt $"
//
// Preferences .
//
// Copyright 2002-2009 by Matthias Melcher.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
................................................................................
   comments in preference files are preserved. Filenames are unique
   for each application by using a vendor/application naming
   scheme. The user must provide default values for all entries to
   ensure proper operation should preferences be corrupted or not
   yet exist.
   
   Entries can be of any length. However, the size of each
   preferences file should be kept under 100k for performance
   reasons. One application can have multiple preferences files.
   Extensive binary data however should be stored in separate
   files: see getUserdataPath().

   \note Starting with FLTK 1.3, preference databases are expected to 
   be in utf8 encoding. Previous databases were stored in the 
   current chracter set or code page which renders them incompatible
   for text entries using international characters.
 */
class FL_EXPORT Fl_Preferences 
{
................................................................................
  /**
     Define the scope of the preferences.
   */
  enum Root { 
    SYSTEM=0,   ///< Preferences are used system-wide
    USER        ///< Preferences apply only to the current user
  };












  Fl_Preferences( Root root, const char *vendor, const char *application );
  Fl_Preferences( const char *path, const char *vendor, const char *application );
  Fl_Preferences( Fl_Preferences &parent, const char *group );

  Fl_Preferences( Fl_Preferences*, const char *group );



  ~Fl_Preferences();

















  int groups();
  const char *group( int num_group );
  char groupExists( const char *key );
  char deleteGroup( const char *group );


  int entries();
  const char *entry( int index );
  char entryExists( const char *key );
  char deleteEntry( const char *entry );




  char set( const char *entry, int value );
  char set( const char *entry, float value );
  char set( const char *entry, float value, int precision );
  char set( const char *entry, double value );
  char set( const char *entry, double value, int precision );
  char set( const char *entry, const char *value );
................................................................................

  char getUserdataPath( char *path, int pathlen );

  void flush();

  // char export( const char *filename, Type fileFormat );
  // char import( const char *filename );



  /**
     'Name' provides a simple method to create numerical or more complex 
     procedural names for entries and groups on the fly.
     
     Example: prefs.set(Fl_Preferences::Name("File%d",i),file[i]);. 
    
................................................................................
  struct Entry
  {
    char *name, *value;
  };

private:

  // make the following functions unavailable
  Fl_Preferences(); 
  Fl_Preferences(const Fl_Preferences&); 
  Fl_Preferences &operator=(const Fl_Preferences&);

  static char nameBuffer[128];





  class FL_EXPORT Node // a node contains a list to all its entries 
  {          // and all means to manage the tree structure
    Node *child_, *next_, *parent_;




    char *path_;


    char dirty_;










  public:
    Node( const char *path );
    ~Node();

    // node methods
    int write( FILE *f );


    Node *find( const char *path );
    Node *search( const char *path, int offset=0 );

    Node *addChild( const char *path );
    void setParent( Node *parent );
    Node *parent() { return parent_; }


    char remove();
    char dirty();

    // entry methods
    int nChildren();
    const char *child( int ix );
    void set( const char *name, const char *value );
    void set( const char *line );
    void add( const char *line );
    const char *get( const char *name );
    int getEntry( const char *name );
    char deleteEntry( const char *name );
    // public values
    Entry *entry;
    int nEntry, NEntry;
    static int lastEntrySet;

  };
  friend class Node;

  class FL_EXPORT RootNode  // the root node manages file paths and basic reading and writing
  {
    Fl_Preferences *prefs_;
    char *filename_;
    char *vendor_, *application_;
  public:
    RootNode( Fl_Preferences *, Root root, const char *vendor, const char *application );
    RootNode( Fl_Preferences *, const char *path, const char *vendor, const char *application );

    ~RootNode();
    int read();
    int write();
    char getPath( char *path, int pathlen );
  };
  friend class RootNode;



  Node *node;
  RootNode *rootNode;
  
};


#endif // !Fl_Preferences_H

//
// End of "$Id: Fl_Preferences.H 6770 2009-04-18 18:52:59Z matt $".
//

|







 







|



|







 







>
>
>
>
>
>
>
>
>
>
>




>
|
>
>
>

|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>




>





>
>
>







 







>
>







 







<
|
<



>
>

>
>


|
>
>
>
>

>
>
|
>
>
>
>
>
>
>
>
>
>



>


>
>


>


|
>
>


>









|
<
|
<
>











>







>
>


<






|

1
2
3
4
5
6
7
8
9
..
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
..
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
...
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
...
190
191
192
193
194
195
196

197

198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255

256

257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280

281
282
283
284
285
286
287
288
//
// "$Id: Fl_Preferences.H 7117 2010-02-20 21:14:47Z matt $"
//
// Preferences .
//
// Copyright 2002-2009 by Matthias Melcher.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
................................................................................
   comments in preference files are preserved. Filenames are unique
   for each application by using a vendor/application naming
   scheme. The user must provide default values for all entries to
   ensure proper operation should preferences be corrupted or not
   yet exist.
   
   Entries can be of any length. However, the size of each
   preferences file should be kept small for performance
   reasons. One application can have multiple preferences files.
   Extensive binary data however should be stored in separate
   files: see getUserdataPath().
 
   \note Starting with FLTK 1.3, preference databases are expected to 
   be in utf8 encoding. Previous databases were stored in the 
   current chracter set or code page which renders them incompatible
   for text entries using international characters.
 */
class FL_EXPORT Fl_Preferences 
{
................................................................................
  /**
     Define the scope of the preferences.
   */
  enum Root { 
    SYSTEM=0,   ///< Preferences are used system-wide
    USER        ///< Preferences apply only to the current user
  };
  
  /**
   Every Fl_Preferences-Group has a uniqe ID.
   
   ID's can be retrieved from an Fl_Preferences-Group and can then be used
   to create more Fl_Preference references to the same data set, as long as the 
   databse remains open.
   */
  typedef void *ID;
  
  static const char *newUUID();

  Fl_Preferences( Root root, const char *vendor, const char *application );
  Fl_Preferences( const char *path, const char *vendor, const char *application );
  Fl_Preferences( Fl_Preferences &parent, const char *group );
  Fl_Preferences( Fl_Preferences *parent, const char *group );
  Fl_Preferences( Fl_Preferences &parent, int groupIndex );
  Fl_Preferences( Fl_Preferences *parent, int groupIndex );
  Fl_Preferences(const Fl_Preferences&);
  Fl_Preferences( ID id );
  ~Fl_Preferences();
  
  /** Return an ID that can later be reused to open more references to this dataset.
   */
  ID id() { return (ID)node; }
  
  /** Remove the group with this ID from a databse.
   */
  static char remove(ID id) { return ((Node*)id)->remove(); }

  /** Return the name of this entry.
   */
  const char *name() { return node->name(); }
  
  /** Return the the full path to this entry.
   */
  const char *path() { return node->path(); }
  
  int groups();
  const char *group( int num_group );
  char groupExists( const char *key );
  char deleteGroup( const char *group );
  char deleteAllGroups();

  int entries();
  const char *entry( int index );
  char entryExists( const char *key );
  char deleteEntry( const char *entry );
  char deleteAllEntries();
  
  char clear();

  char set( const char *entry, int value );
  char set( const char *entry, float value );
  char set( const char *entry, float value, int precision );
  char set( const char *entry, double value );
  char set( const char *entry, double value, int precision );
  char set( const char *entry, const char *value );
................................................................................

  char getUserdataPath( char *path, int pathlen );

  void flush();

  // char export( const char *filename, Type fileFormat );
  // char import( const char *filename );
  
  char copyTo(class Fl_Tree*);

  /**
     'Name' provides a simple method to create numerical or more complex 
     procedural names for entries and groups on the fly.
     
     Example: prefs.set(Fl_Preferences::Name("File%d",i),file[i]);. 
    
................................................................................
  struct Entry
  {
    char *name, *value;
  };

private:


  Fl_Preferences() : node(0), rootNode(0) { }

  Fl_Preferences &operator=(const Fl_Preferences&);

  static char nameBuffer[128];
  static char uuidBuffer[40];
  static Fl_Preferences *runtimePrefs;

  class RootNode;
  
  class FL_EXPORT Node // a node contains a list to all its entries 
  {          // and all means to manage the tree structure
    Node *child_, *next_;
    union { // these two are mutually exclusive
      Node *parent_;    // top_ bit clear
      RootNode *root_;  // top_ bit set
    };
    char *path_;
    Entry *entry_;
    int nEntry_, NEntry_;
    unsigned char dirty_:1;
    unsigned char top_:1;
    unsigned char indexed_:1;
    // indexing routines
    Node **index_;
    int nIndex_, NIndex_;
    void createIndex();
    void updateIndex();
    void deleteIndex();
  public:
    static int lastEntrySet;
  public:
    Node( const char *path );
    ~Node();
    char copyTo(class Fl_Tree*, class Fl_Tree_Item*);
    // node methods
    int write( FILE *f );
    const char *name();
    const char *path() { return path_; }
    Node *find( const char *path );
    Node *search( const char *path, int offset=0 );
    Node *childNode( int ix );
    Node *addChild( const char *path );
    void setParent( Node *parent );
    Node *parent() { return top_?0L:parent_; }
    void setRoot(RootNode *r) { root_ = r; top_ = 1; }
    RootNode *findRoot();
    char remove();
    char dirty();
    void deleteAllChildren();
    // entry methods
    int nChildren();
    const char *child( int ix );
    void set( const char *name, const char *value );
    void set( const char *line );
    void add( const char *line );
    const char *get( const char *name );
    int getEntry( const char *name );
    char deleteEntry( const char *name );
    void deleteAllEntries();

    int nEntry() { return nEntry_; }

    Entry &entry(int i) { return entry_[i]; }
  };
  friend class Node;

  class FL_EXPORT RootNode  // the root node manages file paths and basic reading and writing
  {
    Fl_Preferences *prefs_;
    char *filename_;
    char *vendor_, *application_;
  public:
    RootNode( Fl_Preferences *, Root root, const char *vendor, const char *application );
    RootNode( Fl_Preferences *, const char *path, const char *vendor, const char *application );
    RootNode( Fl_Preferences * );
    ~RootNode();
    int read();
    int write();
    char getPath( char *path, int pathlen );
  };
  friend class RootNode;

protected:
  
  Node *node;
  RootNode *rootNode;

};


#endif // !Fl_Preferences_H

//
// End of "$Id: Fl_Preferences.H 7117 2010-02-20 21:14:47Z matt $".
//

Changes to fltk-1.3/FL/Fl_Scroll.H.

1
2
3
4
5
6
7
8
9
..
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
..
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
...
191
192
193
194
195
196
197
198
199
//
// "$Id: Fl_Scroll.H 6935 2009-11-14 17:17:18Z AlbrechtS $"
//
// Scroll header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#define Fl_Scroll_H

#include "Fl_Group.H"
#include "Fl_Scrollbar.H"

/**
  This container widget lets you maneuver around a set of widgets much
  larger than your window. If the child widgets are larger than the size
  of this object then scrollbars will appear so that you can scroll over
  to them:
  \image html Fl_Scroll.gif
  \image latex  Fl_Scroll.eps "Fl_Scroll" width=4cm

  If all of the child widgets are packed together into a solid
  rectangle then you want to set box() to FL_NO_BOX or
................................................................................

  If the FL_ALIGN_LEFT bit is on, the vertical scrollbar is on the left.
  If the FL_ALIGN_TOP bit is on, the horizontal scrollbar is on
  the top. Note that only the alignment flags in scrollbar are 
  considered. The flags in hscrollbar however are ignored.

  This widget can also be used to pan around a single child widget
  "canvas". This child widget should be of your own class, with a 
  draw() method that draws the contents. The scrolling is done by
  changing the x() and y() of the widget, so this child
  must use the x() and y() to position its drawing.
  To speed up drawing it should test fl_push_clip().

  Another very useful child is a single Fl_Pack, which is itself a group
  that packs its children together and changes size to surround them.
  Filling the Fl_Pack with Fl_Tabs groups (and then putting
  normal widgets inside those) gives you a very powerful scrolling list
  of individually-openable panels.

  Fluid lets you create these, but you can only lay out objects that
  fit inside the Fl_Scroll without scrolling. Be sure to leave
  space for the scrollbars, as Fluid won't show these either.

  <I>You cannot use Fl_Window as a child of this since the
  clipping is not conveyed to it when drawn, and it will draw over the
  scrollbars and neighboring objects.</I>
*/
class FL_EXPORT Fl_Scroll : public Fl_Group {
................................................................................
      scrollbar_size_ = size;
  }   
};

#endif

//
// End of "$Id: Fl_Scroll.H 6935 2009-11-14 17:17:18Z AlbrechtS $".
//

|







 







|







 







|
|











|







 







|

1
2
3
4
5
6
7
8
9
..
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
..
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
...
191
192
193
194
195
196
197
198
199
//
// "$Id: Fl_Scroll.H 6951 2009-12-06 22:21:55Z matt $"
//
// Scroll header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#define Fl_Scroll_H

#include "Fl_Group.H"
#include "Fl_Scrollbar.H"

/**
  This container widget lets you maneuver around a set of widgets much
  larger than your window.  If the child widgets are larger than the size
  of this object then scrollbars will appear so that you can scroll over
  to them:
  \image html Fl_Scroll.gif
  \image latex  Fl_Scroll.eps "Fl_Scroll" width=4cm

  If all of the child widgets are packed together into a solid
  rectangle then you want to set box() to FL_NO_BOX or
................................................................................

  If the FL_ALIGN_LEFT bit is on, the vertical scrollbar is on the left.
  If the FL_ALIGN_TOP bit is on, the horizontal scrollbar is on
  the top. Note that only the alignment flags in scrollbar are 
  considered. The flags in hscrollbar however are ignored.

  This widget can also be used to pan around a single child widget
  "canvas".  This child widget should be of your own class, with a 
  draw() method that draws the contents.  The scrolling is done by
  changing the x() and y() of the widget, so this child
  must use the x() and y() to position its drawing.
  To speed up drawing it should test fl_push_clip().

  Another very useful child is a single Fl_Pack, which is itself a group
  that packs its children together and changes size to surround them.
  Filling the Fl_Pack with Fl_Tabs groups (and then putting
  normal widgets inside those) gives you a very powerful scrolling list
  of individually-openable panels.

  Fluid lets you create these, but you can only lay out objects that
  fit inside the Fl_Scroll without scrolling.  Be sure to leave
  space for the scrollbars, as Fluid won't show these either.

  <I>You cannot use Fl_Window as a child of this since the
  clipping is not conveyed to it when drawn, and it will draw over the
  scrollbars and neighboring objects.</I>
*/
class FL_EXPORT Fl_Scroll : public Fl_Group {
................................................................................
      scrollbar_size_ = size;
  }   
};

#endif

//
// End of "$Id: Fl_Scroll.H 6951 2009-12-06 22:21:55Z matt $".
//

Changes to fltk-1.3/FL/Fl_Sys_Menu_Bar.H.

1
2
3
4
5
6
7
8
9
..
25
26
27
28
29
30
31

32
33
34
35
36
37
38
39
40
41

42
43









44
45
46
47
48
49
50
51
52
53
54
55
56
//
// "$Id: Fl_Sys_Menu_Bar.H 6614 2009-01-01 16:11:32Z matt $"
//
// MacOS system menu bar header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
//     http://www.fltk.org/str.php
//

#ifndef Fl_Sys_Menu_Bar_H
#define Fl_Sys_Menu_Bar_H

#include "Fl_Menu_Bar.H"


#ifdef __APPLE__

class FL_EXPORT Fl_Sys_Menu_Bar : public Fl_Menu_Bar {
protected:
  void draw();
public:
  Fl_Sys_Menu_Bar(int x,int y,int w,int h,const char *l=0)
      : Fl_Menu_Bar(x,y,w,h,l) {
	   deactivate();			// don't let the old area take events

	  }
  void menu(const Fl_Menu_Item *m);









};

#else

typedef Fl_Menu_Bar Fl_Sys_Menu_Bar;

#endif

#endif

//
// End of "$Id: Fl_Sys_Menu_Bar.H 6614 2009-01-01 16:11:32Z matt $".
//

|







 







>









|
>
|

>
>
>
>
>
>
>
>
>











|

1
2
3
4
5
6
7
8
9
..
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// "$Id: Fl_Sys_Menu_Bar.H 6975 2009-12-21 18:43:13Z matt $"
//
// MacOS system menu bar header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
//     http://www.fltk.org/str.php
//

#ifndef Fl_Sys_Menu_Bar_H
#define Fl_Sys_Menu_Bar_H

#include "Fl_Menu_Bar.H"
#include "x.H"

#ifdef __APPLE__

class FL_EXPORT Fl_Sys_Menu_Bar : public Fl_Menu_Bar {
protected:
  void draw();
public:
  Fl_Sys_Menu_Bar(int x,int y,int w,int h,const char *l=0)
      : Fl_Menu_Bar(x,y,w,h,l) {
    deactivate();			// don't let the old area take events
    fl_sys_menu_bar = this;
  }
  void menu(const Fl_Menu_Item *m);
#ifdef __APPLE_COCOA__
  int add(const char* label, int shortcut, Fl_Callback*, void *user_data=0, int flags=0);
  void remove(int n);
  void replace(int rank, const char *name);
  enum menuOrItemOperation { itemAtIndex, setKeyEquivalent, setKeyEquivalentModifierMask, setState, initWithTitle,
    numberOfItems, setSubmenu, setEnabled, addSeparatorItem, setTitle, removeItem, addNewItem, renameItem };
  // function doMenuOrItemOperation is in file Fl_cocoa.mm because it contains objective-c code
  static void *doMenuOrItemOperation( menuOrItemOperation operation, ...);
#endif
};

#else

typedef Fl_Menu_Bar Fl_Sys_Menu_Bar;

#endif

#endif

//
// End of "$Id: Fl_Sys_Menu_Bar.H 6975 2009-12-21 18:43:13Z matt $".
//

Changes to fltk-1.3/FL/Fl_Table.H.

1
2
3
4
5
6
7
8
9
..
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
...
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
....
1059
1060
1061
1062
1063
1064
1065
1066
1067
//
// "$Id: Fl_Table.H 6942 2009-11-18 12:22:51Z AlbrechtS $"
//
// Fl_Table -- A table widget
//
// Copyright 2002 by Greg Ercolano.
// Copyright (c) 2004 O'ksi'D
//
// This library is free software; you can redistribute it and/or
................................................................................
//

#ifndef _FL_TABLE_H
#define _FL_TABLE_H

#include <sys/types.h>
#include <string.h>		// memcpy
#ifdef _WIN32
#include <malloc.h>		// WINDOWS: malloc/realloc
#else /*_WIN32*/
#include <stdlib.h>		// UNIX: malloc/realloc
#endif /*_WIN32*/

#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Scrollbar.H>

................................................................................
    //       causing unnecessary flicker, even if its box() is FL_NO_BOX.
    //
    if ( table->children() > 2 ) {
      table->show();
    } else {
      table->hide();
    } 
    Fl_Group::current((Fl_Group*)(Fl_Group::parent()));
  }
  Fl_Widget * const *array() {
    return(table->array());
  }
  
  /**
   Returns the child widget by an index.
................................................................................
  void callback(Fl_Widget*, void*);
#endif
};

#endif /*_FL_TABLE_H*/

//
// End of "$Id: Fl_Table.H 6942 2009-11-18 12:22:51Z AlbrechtS $".
//

|







 







|

|

|







 







|







 







|

1
2
3
4
5
6
7
8
9
..
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
...
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
....
1059
1060
1061
1062
1063
1064
1065
1066
1067
//
// "$Id: Fl_Table.H 7117 2010-02-20 21:14:47Z matt $"
//
// Fl_Table -- A table widget
//
// Copyright 2002 by Greg Ercolano.
// Copyright (c) 2004 O'ksi'D
//
// This library is free software; you can redistribute it and/or
................................................................................
//

#ifndef _FL_TABLE_H
#define _FL_TABLE_H

#include <sys/types.h>
#include <string.h>		// memcpy
#ifdef WIN32
#include <malloc.h>		// WINDOWS: malloc/realloc
#else /*WIN32*/
#include <stdlib.h>		// UNIX: malloc/realloc
#endif /*WIN32*/

#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Scrollbar.H>

................................................................................
    //       causing unnecessary flicker, even if its box() is FL_NO_BOX.
    //
    if ( table->children() > 2 ) {
      table->show();
    } else {
      table->hide();
    } 
    Fl_Group::current(Fl_Group::parent());
  }
  Fl_Widget * const *array() {
    return(table->array());
  }
  
  /**
   Returns the child widget by an index.
................................................................................
  void callback(Fl_Widget*, void*);
#endif
};

#endif /*_FL_TABLE_H*/

//
// End of "$Id: Fl_Table.H 7117 2010-02-20 21:14:47Z matt $".
//

Changes to fltk-1.3/FL/Fl_Tree.H.

1
2
3
4
5
6
7
8
9
..
61
62
63
64
65
66
67


68
69
70
71
72
73
74
..
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
...
118
119
120
121
122
123
124

125
126
127
128
129
130
131
...
153
154
155
156
157
158
159

160

161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
...
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
...
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
...
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
...
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
...
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414

415
416
417
418
419
420
421
...
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
...
647
648
649
650
651
652
653
654
655
//
// "$Id: Fl_Tree.H 6942 2009-11-18 12:22:51Z AlbrechtS $"
//

#ifndef FL_TREE_H
#define FL_TREE_H

#include <FL/Fl.H>
#include <FL/Fl_Group.H>
................................................................................
///     added, deleted, inserted, sorted and re-ordered.
///
///     The tree items may also contain other FLTK widgets, like buttons, input fields,
///     or even "custom" widgets.
///
///     The simple way to define a tree:
/// \code


///    Fl_Tree tree(X,Y,W,H);
///    tree.begin();
///      tree.add("Flintstones/Fred");
///      tree.add("Flintstones/Wilma");
///      tree.add("Flintstones/Pebbles");
///      tree.add("Simpsons/Homer");
///      tree.add("Simpsons/Marge");
................................................................................
///
///     Parent nodes can be open/closed with open() and close(), icons can be assigned
///     or redefined with some or all items via 
///     Fl_Tree_Item::openicon(), 
///     Fl_Tree_Item::closeicon(),
///     Fl_Tree_Item::usericon().
///
///     Various default preferences can be manipulated vi Fl_Tree_Prefs, including
///     colors, margins, connection lines. 
///
///     \image html tree-elements.png
///

class Fl_Tree : public Fl_Group {
  Fl_Tree_Item  *_root;		// can be null!
  Fl_Tree_Item  *_item_clicked;
  Fl_Tree_Prefs  _prefs;		// all the tree's settings
  Fl_Scrollbar  *_vscroll;
  
protected:
  /// Find the item that was clicked.
  /// You probably want to use item_clicked() instead, which is fast.
  ///
  /// This method walks the entire tree looking for the first item that is
  /// under the mouse (ie. at Fl::event_x()/Fl:event_y().
  ///
  /// Use this method /only/ if you've subclassed Fl_Tree, and are receiving
................................................................................
  /// 
  /// \returns the item clicked, or 0 if no item was under the current event.
  ///
  const Fl_Tree_Item *find_clicked() const {
    if ( ! _root ) return(0);
    return(_root->find_clicked(_prefs));
  }

  /// Set the item that was last clicked.
  /// Should only be used by subclasses needing to change this value.
  /// Normally Fl_Tree manages this value.
  ///
  void item_clicked(Fl_Tree_Item* val) {
    _item_clicked = val;
  }
................................................................................
    return(_root);
  }
  
  ////////////////////////////////
  // Item creation/removal methods
  ////////////////////////////////
  Fl_Tree_Item *add(const char *path);

  Fl_Tree_Item *insert_above(Fl_Tree_Item *above, const char *name);

  
  /// Remove the specified 'item' from the tree.
  /// If it has children, all those are removed too.
  /// \returns 0 if done, -1 if 'item' not found.
  ///
  int remove(Fl_Tree_Item *item) {
    if ( !item ) return(0);
    if ( item == _root ) {
	    clear();
    } else {
	    Fl_Tree_Item *parent = item->parent();	// find item's parent
	    if ( ! parent ) return(-1);
	    parent->remove_child(item);			// remove child + children
    }
    return(0);
  } 
  /// Clear all children from the tree.
  /// The tree will be left completely empty.
  ///
  void clear() {
................................................................................
    if ( ! _root ) return;
    _root->clear_children();
    delete _root; _root = 0;
  } 
  /// Clear all the children of a particular node in the tree.
  void clear_children(Fl_Tree_Item *item) {
    if ( item->has_children() ) {
	    item->clear_children();
	    redraw();			// redraw only if there were children to clear
    }
  } 
  
  ////////////////////////
  // Item lookup methods
  ////////////////////////
  Fl_Tree_Item *find_item(const char *path);
................................................................................
  ///
  /// \returns last item in the tree, or 0 if none (tree empty).
  ///
  Fl_Tree_Item *last() {
    if ( ! _root ) return(0);
    Fl_Tree_Item *item = _root;
    while ( item->has_children() ) {
	    item = item->child(item->children()-1);
    }
    return(item);
  }
  
  //////////////////////////
  // Item open/close methods
  //////////////////////////
................................................................................
  
  /// Open the specified 'item'.
  /// This causes the item's children (if any) to be shown.
  /// Handles redrawing if anything was actually changed.
  ///
  void open(Fl_Tree_Item *item) {
    if ( ! item->is_open() ) {
	    item->open();
	    redraw();
    }
  }
  /// Opens the item specified by a 'menu item' style pathname (eg: "Parent/child/item").
  /// This causes the item's children (if any) to be shown.
  /// Handles redrawing if anything was actually changed.
  ///
  /// \returns
  ///     -   0 : OK
  ///     -  -1 : item was not found
  ///         
  int open(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
	    open(item);
	    return(0);
    }
    return(-1);
  }
  /// Closes the 'item'.
  /// Handles redrawing if anything was actually changed.
  ///
  void close(Fl_Tree_Item *item) {
    if ( ! item->is_close() ) {
	    item->close();
	    redraw();
    }
  }
  /// Closes the item specified by 'path', eg: "Parent/child/item".
  ///
  /// Handles redrawing if anything was actually changed.
  ///
  /// \returns
  ///     -   0 -- OK
  ///     -  -1 -- item was not found
  ///         
  int close(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
	    close(item);
	    return(0);
    }
    return(-1);
  }
  /// See if item is open.
  ///
  /// Items that are 'open' are themselves not necessarily visible;
  /// one of the item's parents might be closed.
................................................................................
  /////////////////////////
  
  /// Select the specified item. Use 'deselect()' to de-select it.
  /// Handles redrawing if anything was actually changed.
  ///
  void select(Fl_Tree_Item *item) {
    if ( ! item->is_selected() ) {
	    item->select();
	    redraw();
    }
  }
  /// Select an item specified by 'path' (eg: "Parent/child/item").
  /// Handles redrawing if anything was actually changed.
  ///
  /// \returns
  ///     -   0 : OK
  ///     -  -1 : item was not found
  ///
  int select(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
	    select(item);
	    return(0);
    }
    return(-1);
  }
  /// Toggle item's select state.
  /// Handles redrawing.
  ///
  void select_toggle(Fl_Tree_Item *item) {
................................................................................
    redraw();
  }
  /// De-select the specified item.
  /// Handles redrawing if anything was actually changed.
  ///
  void deselect(Fl_Tree_Item *item) {
    if ( item->is_selected() ) {
	    item->deselect();
	    redraw();
    }
  }
  /// De-select an item specified by 'path' (eg: "Parent/child/item").
  /// Handles redrawing if anything was actually changed.
  ///
  ///  \returns
  ///     -   0 : OK
  ///     -  -1 : item was not found
  ///
  int deselect(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
	    deselect(item);
	    return(0);
    }
    return(-1);
  }
  
  int deselect_all(Fl_Tree_Item *item=0);
  int select_only(Fl_Tree_Item *selitem);

  
  /// See if the specified item is selected.
  /// \return
  ///     -   1 : item selected
  ///     -   0 : item deselected
  ///
  int is_selected(Fl_Tree_Item *item) const {
................................................................................
  /// Sets the width of the horizontal connection lines (in pixels) 
  /// that appear to the left of each tree item's label.
  ///
  void connectorwidth(int val) {
    _prefs.connectorwidth(val);
    redraw();
  }
  /// Returns the Fl_Pixmap being used as the default user icon for newly created items.
  /// Returns zero if no icon has been set, which is the default.
  ///
  Fl_Pixmap *usericon() const {
    return(_prefs.usericon());
  }
  /// Sets the Fl_Pixmap to be used as the default user icon for all
  /// newly created items.
  ///
  /// If you want to specify user icons on a per-item basis,
  /// use Fl_Tree_Item::usericon() instead.
  ///
  /// \param[in] val -- The new pixmap to be used, or
  ///                   zero to disable user icons.
  ///
  void usericon(Fl_Pixmap *val) {
    _prefs.usericon(val);
    redraw();
  }
  /// Returns the icon to be used as the 'open' icon.
  /// If none was set, the internal default is returned,
  /// a simple '[+]' icon.
  ///
  Fl_Pixmap *openicon() const {
    return(_prefs.openicon());
  }
  /// Sets the icon to be used as the 'open' icon.
  /// This overrides the built in default '[+]' icon.
  ///
  /// \param[in] val -- The new pixmap, or zero to use the default [+] icon.
  ///
  void openicon(Fl_Pixmap *val) {
    _prefs.openicon(val);
    redraw();
  }
  /// Returns the icon to be used as the 'close' icon.
  /// If none was set, the internal default is returned,
  /// a simple '[-]' icon.
  ///
  Fl_Pixmap *closeicon() const {
    return(_prefs.closeicon());
  }
  /// Sets the icon to be used as the 'close' icon.
  /// This overrides the built in default '[-]' icon.
  ///
  /// \param[in] val -- The new pixmap, or zero to use the default [-] icon.
  ///
  void closeicon(Fl_Pixmap *val) {
    _prefs.closeicon(val);
    redraw();
  }
  /// Returns 1 if the collapse icon is enabled, 0 if not.
  int showcollapse() const {
    return(_prefs.showcollapse());
  }
................................................................................
    _prefs.selectmode(val);
  }
};

#endif /*FL_TREE_H*/

//
// End of "$Id: Fl_Tree.H 6942 2009-11-18 12:22:51Z AlbrechtS $".
//

|







 







>
>







 







|






|

|


|







 







>







 







>

>








|

|
|
|







 







|
|







 







|







 







|
|













|
|








|
|













|
|







 







|
|












|
|







 







|
|












|
|






>







 







|


|


|





|


|







|





|

|







|





|

|







 







|

1
2
3
4
5
6
7
8
9
..
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
..
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
...
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
...
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
...
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
...
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
...
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
...
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
...
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
...
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
...
653
654
655
656
657
658
659
660
661
//
// "$Id: Fl_Tree.H 7017 2010-01-17 21:54:48Z greg.ercolano $"
//

#ifndef FL_TREE_H
#define FL_TREE_H

#include <FL/Fl.H>
#include <FL/Fl_Group.H>
................................................................................
///     added, deleted, inserted, sorted and re-ordered.
///
///     The tree items may also contain other FLTK widgets, like buttons, input fields,
///     or even "custom" widgets.
///
///     The simple way to define a tree:
/// \code
///    #include <FL/Fl_Tree.H>
///    [..]
///    Fl_Tree tree(X,Y,W,H);
///    tree.begin();
///      tree.add("Flintstones/Fred");
///      tree.add("Flintstones/Wilma");
///      tree.add("Flintstones/Pebbles");
///      tree.add("Simpsons/Homer");
///      tree.add("Simpsons/Marge");
................................................................................
///
///     Parent nodes can be open/closed with open() and close(), icons can be assigned
///     or redefined with some or all items via 
///     Fl_Tree_Item::openicon(), 
///     Fl_Tree_Item::closeicon(),
///     Fl_Tree_Item::usericon().
///
///     Various default preferences can be manipulated via Fl_Tree_Prefs, including
///     colors, margins, connection lines. 
///
///     \image html tree-elements.png
///

class Fl_Tree : public Fl_Group {
  Fl_Tree_Item  *_root;					// can be null!
  Fl_Tree_Item  *_item_clicked;
  Fl_Tree_Prefs  _prefs;				// all the tree's settings
  Fl_Scrollbar  *_vscroll;
  
public:
  /// Find the item that was clicked.
  /// You probably want to use item_clicked() instead, which is fast.
  ///
  /// This method walks the entire tree looking for the first item that is
  /// under the mouse (ie. at Fl::event_x()/Fl:event_y().
  ///
  /// Use this method /only/ if you've subclassed Fl_Tree, and are receiving
................................................................................
  /// 
  /// \returns the item clicked, or 0 if no item was under the current event.
  ///
  const Fl_Tree_Item *find_clicked() const {
    if ( ! _root ) return(0);
    return(_root->find_clicked(_prefs));
  }
protected:
  /// Set the item that was last clicked.
  /// Should only be used by subclasses needing to change this value.
  /// Normally Fl_Tree manages this value.
  ///
  void item_clicked(Fl_Tree_Item* val) {
    _item_clicked = val;
  }
................................................................................
    return(_root);
  }
  
  ////////////////////////////////
  // Item creation/removal methods
  ////////////////////////////////
  Fl_Tree_Item *add(const char *path);
  Fl_Tree_Item* add(Fl_Tree_Item *item, const char *name);
  Fl_Tree_Item *insert_above(Fl_Tree_Item *above, const char *name);
  Fl_Tree_Item* insert(Fl_Tree_Item *item, const char *name, int pos);
  
  /// Remove the specified 'item' from the tree.
  /// If it has children, all those are removed too.
  /// \returns 0 if done, -1 if 'item' not found.
  ///
  int remove(Fl_Tree_Item *item) {
    if ( !item ) return(0);
    if ( item == _root ) {
      clear();
    } else {
      Fl_Tree_Item *parent = item->parent();		// find item's parent
      if ( ! parent ) return(-1);
      parent->remove_child(item);			// remove child + children
    }
    return(0);
  } 
  /// Clear all children from the tree.
  /// The tree will be left completely empty.
  ///
  void clear() {
................................................................................
    if ( ! _root ) return;
    _root->clear_children();
    delete _root; _root = 0;
  } 
  /// Clear all the children of a particular node in the tree.
  void clear_children(Fl_Tree_Item *item) {
    if ( item->has_children() ) {
      item->clear_children();
      redraw();						// redraw only if there were children to clear
    }
  } 
  
  ////////////////////////
  // Item lookup methods
  ////////////////////////
  Fl_Tree_Item *find_item(const char *path);
................................................................................
  ///
  /// \returns last item in the tree, or 0 if none (tree empty).
  ///
  Fl_Tree_Item *last() {
    if ( ! _root ) return(0);
    Fl_Tree_Item *item = _root;
    while ( item->has_children() ) {
      item = item->child(item->children()-1);
    }
    return(item);
  }
  
  //////////////////////////
  // Item open/close methods
  //////////////////////////
................................................................................
  
  /// Open the specified 'item'.
  /// This causes the item's children (if any) to be shown.
  /// Handles redrawing if anything was actually changed.
  ///
  void open(Fl_Tree_Item *item) {
    if ( ! item->is_open() ) {
      item->open();
      redraw();
    }
  }
  /// Opens the item specified by a 'menu item' style pathname (eg: "Parent/child/item").
  /// This causes the item's children (if any) to be shown.
  /// Handles redrawing if anything was actually changed.
  ///
  /// \returns
  ///     -   0 : OK
  ///     -  -1 : item was not found
  ///         
  int open(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
      open(item);
      return(0);
    }
    return(-1);
  }
  /// Closes the 'item'.
  /// Handles redrawing if anything was actually changed.
  ///
  void close(Fl_Tree_Item *item) {
    if ( ! item->is_close() ) {
      item->close();
      redraw();
    }
  }
  /// Closes the item specified by 'path', eg: "Parent/child/item".
  ///
  /// Handles redrawing if anything was actually changed.
  ///
  /// \returns
  ///     -   0 -- OK
  ///     -  -1 -- item was not found
  ///         
  int close(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
      close(item);
      return(0);
    }
    return(-1);
  }
  /// See if item is open.
  ///
  /// Items that are 'open' are themselves not necessarily visible;
  /// one of the item's parents might be closed.
................................................................................
  /////////////////////////
  
  /// Select the specified item. Use 'deselect()' to de-select it.
  /// Handles redrawing if anything was actually changed.
  ///
  void select(Fl_Tree_Item *item) {
    if ( ! item->is_selected() ) {
      item->select();
      redraw();
    }
  }
  /// Select an item specified by 'path' (eg: "Parent/child/item").
  /// Handles redrawing if anything was actually changed.
  ///
  /// \returns
  ///     -   0 : OK
  ///     -  -1 : item was not found
  ///
  int select(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
      select(item);
      return(0);
    }
    return(-1);
  }
  /// Toggle item's select state.
  /// Handles redrawing.
  ///
  void select_toggle(Fl_Tree_Item *item) {
................................................................................
    redraw();
  }
  /// De-select the specified item.
  /// Handles redrawing if anything was actually changed.
  ///
  void deselect(Fl_Tree_Item *item) {
    if ( item->is_selected() ) {
      item->deselect();
      redraw();
    }
  }
  /// De-select an item specified by 'path' (eg: "Parent/child/item").
  /// Handles redrawing if anything was actually changed.
  ///
  ///  \returns
  ///     -   0 : OK
  ///     -  -1 : item was not found
  ///
  int deselect(const char *path) {
    Fl_Tree_Item *item = find_item(path);
    if ( item ) {
      deselect(item);
      return(0);
    }
    return(-1);
  }
  
  int deselect_all(Fl_Tree_Item *item=0);
  int select_only(Fl_Tree_Item *selitem);
    int select_all(Fl_Tree_Item *item=0);
  
  /// See if the specified item is selected.
  /// \return
  ///     -   1 : item selected
  ///     -   0 : item deselected
  ///
  int is_selected(Fl_Tree_Item *item) const {
................................................................................
  /// Sets the width of the horizontal connection lines (in pixels) 
  /// that appear to the left of each tree item's label.
  ///
  void connectorwidth(int val) {
    _prefs.connectorwidth(val);
    redraw();
  }
  /// Returns the Fl_Image being used as the default user icon for newly created items.
  /// Returns zero if no icon has been set, which is the default.
  ///
  Fl_Image *usericon() const {
    return(_prefs.usericon());
  }
  /// Sets the Fl_Image to be used as the default user icon for all
  /// newly created items.
  ///
  /// If you want to specify user icons on a per-item basis,
  /// use Fl_Tree_Item::usericon() instead.
  ///
  /// \param[in] val -- The new image to be used, or
  ///                   zero to disable user icons.
  ///
  void usericon(Fl_Image *val) {
    _prefs.usericon(val);
    redraw();
  }
  /// Returns the icon to be used as the 'open' icon.
  /// If none was set, the internal default is returned,
  /// a simple '[+]' icon.
  ///
  Fl_Image *openicon() const {
    return(_prefs.openicon());
  }
  /// Sets the icon to be used as the 'open' icon.
  /// This overrides the built in default '[+]' icon.
  ///
  /// \param[in] val -- The new image, or zero to use the default [+] icon.
  ///
  void openicon(Fl_Image *val) {
    _prefs.openicon(val);
    redraw();
  }
  /// Returns the icon to be used as the 'close' icon.
  /// If none was set, the internal default is returned,
  /// a simple '[-]' icon.
  ///
  Fl_Image *closeicon() const {
    return(_prefs.closeicon());
  }
  /// Sets the icon to be used as the 'close' icon.
  /// This overrides the built in default '[-]' icon.
  ///
  /// \param[in] val -- The new image, or zero to use the default [-] icon.
  ///
  void closeicon(Fl_Image *val) {
    _prefs.closeicon(val);
    redraw();
  }
  /// Returns 1 if the collapse icon is enabled, 0 if not.
  int showcollapse() const {
    return(_prefs.showcollapse());
  }
................................................................................
    _prefs.selectmode(val);
  }
};

#endif /*FL_TREE_H*/

//
// End of "$Id: Fl_Tree.H 7017 2010-01-17 21:54:48Z greg.ercolano $".
//

Changes to fltk-1.3/FL/Fl_Tree_Item.H.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
..
66
67
68
69
70
71
72
73
74
75

76
77
78
79
80
81
82
83
84
85
86
87
88






89
90
91
92
93
94
95
...
205
206
207
208
209
210
211
212
213
214
215















216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
...
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
...
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
...
291
292
293
294
295
296
297
298
299
//
// "$Id: Fl_Tree_Item.H 6942 2009-11-18 12:22:51Z AlbrechtS $"
//

#ifndef FL_TREE_ITEM_H
#define FL_TREE_ITEM_H

#include <FL/Fl.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Pixmap.H>
#include <FL/fl_draw.H>

#include <FL/Fl_Tree_Item_Array.H>
#include <FL/Fl_Tree_Prefs.H>

//////////////////////
// FL/Fl_Tree_Item.H
................................................................................
  char                    _visible;		// item is visible?
  char                    _active;		// item activated?
  char                    _selected;		// item selected?
  int                     _xywh[4];		// xywh of this widget (if visible)
  int                     _collapse_xywh[4];	// xywh of collapse icon (if any)
  int                     _label_xywh[4];	// xywh of label
  Fl_Widget              *_widget;		// item's label widget (optional)
  Fl_Pixmap              *_usericon;		// item's user-specific icon (optional)
  Fl_Tree_Item_Array      _children;		// array of child items
  Fl_Tree_Item           *_parent;		// parent item (=0 if root)

protected:
  void show_widgets();
  void hide_widgets();
  void draw_vertical_connector(int x, int y1, int y2, const Fl_Tree_Prefs &prefs);
  void draw_horizontal_connector(int x1, int x2, int y, const Fl_Tree_Prefs &prefs);
public:
  Fl_Tree_Item(const Fl_Tree_Prefs &prefs);	// CTOR
  ~Fl_Tree_Item();				// DTOR
  Fl_Tree_Item(const Fl_Tree_Item *o);	// COPY CTOR
  void draw(int X, int &Y, int W, Fl_Widget *tree, const Fl_Tree_Prefs &prefs, int lastchild=1);
  void show_self(const char *indent = "") const;
  void label(const char *val);
  const char *label() const;






  
  /// Set item's label font face.
  void labelfont(int val) {
    _labelfont = val; 
  }
  /// Get item's label font face.
  int labelfont() const {
................................................................................
  ///
  void select(int val=1) {
    _selected = val;
  }
  /// Toggle the item's selection state.
  void select_toggle() {
    if ( is_selected() ) {
	    deselect();		// deselect if selected
    } else {
	    select();		// select if deselected
    }















  }
  /// Disable the item's selection state.
  void deselect() {
    _selected = 0;
  }
  /// Deselect self and all children
  ///     Returns count of how many items were in the 'selected' state,
  ///     ie. how many items were "changed".
  ///
  int deselect_all() {
    int count = 0;
    if ( is_selected() ) {
	    deselect();
	    ++count;
    }
    for ( int t=0; t<children(); t++ ) {
	    count += child(t)->deselect_all();
    }
    return(count);
  }
  /// See if the item is selected.
  char is_selected() const {
    return(_selected);
  }
................................................................................
  /// will be changed as well.
  ///
  /// If 'val' is not specified, the item will be activated.
  ///
  void activate(int val=1) {
    _active = val;
    if ( _widget && val != (int)_widget->active() ) {
	    if ( val ) {
        _widget->activate();
	    } else {
        _widget->deactivate();
	    }
	    _widget->redraw();
    }
  }
  /// Deactivate the item; the callback() won't be invoked when clicked.
  /// Same as activate(0)
  ///
  void deactivate() {
    activate(0);
................................................................................
  char is_activated() const {
    return(_active);
  }
  /// See if the item is activated.
  char is_active() const {
    return(_active);
  }
  /// Set the user icon's pixmap. '0' will disable.
  void usericon(Fl_Pixmap *val) {
    _usericon = val;
  }
  /// Get the user icon. Returns '0' if disabled.
  Fl_Pixmap *usericon() const {
    return(_usericon);
  }
  //////////////////
  // Events
  //////////////////
  const Fl_Tree_Item *find_clicked(const Fl_Tree_Prefs &prefs) const;
  Fl_Tree_Item *find_clicked(const Fl_Tree_Prefs &prefs);
................................................................................
    return(_parent==0?1:0);
  }
};

#endif /*FL_TREE_ITEM_H*/

//
// End of "$Id: Fl_Tree_Item.H 6942 2009-11-18 12:22:51Z AlbrechtS $".
//

|







|







 







|


>








|




>
>
>
>
>
>







 







|

|

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>












|
|


|







 







|
|
|
|
|
|







 







|
|



|







 







|

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
..
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
...
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
...
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
...
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
...
313
314
315
316
317
318
319
320
321
//
// "$Id: Fl_Tree_Item.H 6957 2009-12-08 08:39:31Z greg.ercolano $"
//

#ifndef FL_TREE_ITEM_H
#define FL_TREE_ITEM_H

#include <FL/Fl.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Image.H>
#include <FL/fl_draw.H>

#include <FL/Fl_Tree_Item_Array.H>
#include <FL/Fl_Tree_Prefs.H>

//////////////////////
// FL/Fl_Tree_Item.H
................................................................................
  char                    _visible;		// item is visible?
  char                    _active;		// item activated?
  char                    _selected;		// item selected?
  int                     _xywh[4];		// xywh of this widget (if visible)
  int                     _collapse_xywh[4];	// xywh of collapse icon (if any)
  int                     _label_xywh[4];	// xywh of label
  Fl_Widget              *_widget;		// item's label widget (optional)
  Fl_Image               *_usericon;		// item's user-specific icon (optional)
  Fl_Tree_Item_Array      _children;		// array of child items
  Fl_Tree_Item           *_parent;		// parent item (=0 if root)
  void                   *_userdata;    	// user data that can be associated with an item
protected:
  void show_widgets();
  void hide_widgets();
  void draw_vertical_connector(int x, int y1, int y2, const Fl_Tree_Prefs &prefs);
  void draw_horizontal_connector(int x1, int x2, int y, const Fl_Tree_Prefs &prefs);
public:
  Fl_Tree_Item(const Fl_Tree_Prefs &prefs);	// CTOR
  ~Fl_Tree_Item();				// DTOR
  Fl_Tree_Item(const Fl_Tree_Item *o);		// COPY CTOR
  void draw(int X, int &Y, int W, Fl_Widget *tree, const Fl_Tree_Prefs &prefs, int lastchild=1);
  void show_self(const char *indent = "") const;
  void label(const char *val);
  const char *label() const;

  /// Set a user-data value for the item.
  inline void user_data( void* data ) { _userdata = data; }

  /// Retrieve the user-data value that has been assigned to the item.
  inline void* user_data() const { return _userdata; }
  
  /// Set item's label font face.
  void labelfont(int val) {
    _labelfont = val; 
  }
  /// Get item's label font face.
  int labelfont() const {
................................................................................
  ///
  void select(int val=1) {
    _selected = val;
  }
  /// Toggle the item's selection state.
  void select_toggle() {
    if ( is_selected() ) {
      deselect();		// deselect if selected
    } else {
      select();		// select if deselected
    }
  }
  /// Select self and all children
  ///     Returns count of how many items were in the 'deselected' state,
  ///     ie. how many items were "changed".
  ///
  int select_all() {
    int count = 0;
    if ( ! is_selected() ) {
      select();
      ++count;
    }
    for ( int t=0; t<children(); t++ ) {
      count += child(t)->select_all();
    }
    return(count);
  }
  /// Disable the item's selection state.
  void deselect() {
    _selected = 0;
  }
  /// Deselect self and all children
  ///     Returns count of how many items were in the 'selected' state,
  ///     ie. how many items were "changed".
  ///
  int deselect_all() {
    int count = 0;
    if ( is_selected() ) {
      deselect();
      ++count;
    }
    for ( int t=0; t<children(); t++ ) {
      count += child(t)->deselect_all();
    }
    return(count);
  }
  /// See if the item is selected.
  char is_selected() const {
    return(_selected);
  }
................................................................................
  /// will be changed as well.
  ///
  /// If 'val' is not specified, the item will be activated.
  ///
  void activate(int val=1) {
    _active = val;
    if ( _widget && val != (int)_widget->active() ) {
      if ( val ) {
	_widget->activate();
      } else {
	_widget->deactivate();
      }
      _widget->redraw();
    }
  }
  /// Deactivate the item; the callback() won't be invoked when clicked.
  /// Same as activate(0)
  ///
  void deactivate() {
    activate(0);
................................................................................
  char is_activated() const {
    return(_active);
  }
  /// See if the item is activated.
  char is_active() const {
    return(_active);
  }
  /// Set the user icon's image. '0' will disable.
  void usericon(Fl_Image *val) {
    _usericon = val;
  }
  /// Get the user icon. Returns '0' if disabled.
  Fl_Image *usericon() const {
    return(_usericon);
  }
  //////////////////
  // Events
  //////////////////
  const Fl_Tree_Item *find_clicked(const Fl_Tree_Prefs &prefs) const;
  Fl_Tree_Item *find_clicked(const Fl_Tree_Prefs &prefs);
................................................................................
    return(_parent==0?1:0);
  }
};

#endif /*FL_TREE_ITEM_H*/

//
// End of "$Id: Fl_Tree_Item.H 6957 2009-12-08 08:39:31Z greg.ercolano $".
//

Changes to fltk-1.3/FL/Fl_Tree_Item_Array.H.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
..
80
81
82
83
84
85
86
87
88
//
// "$Id: Fl_Tree_Item_Array.H 6942 2009-11-18 12:22:51Z AlbrechtS $"
//

#ifndef _FL_TREE_ITEM_ARRAY_H
#define _FL_TREE_ITEM_ARRAY_H

class Fl_Tree_Item;		// forward decl must *precede* first doxygen comment block
// or doxygen will not document our class..

//////////////////////
// FL/Fl_Tree_Item_Array.H
//////////////////////
//
// Fl_Tree -- This file is part of the Fl_Tree widget for FLTK
// Copyright (C) 2009 by Greg Ercolano.
//
// 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
................................................................................
  void remove(int index);
  int  remove(Fl_Tree_Item *item);
};

#endif /*_FL_TREE_ITEM_ARRAY_H*/

//
// End of "$Id: Fl_Tree_Item_Array.H 6942 2009-11-18 12:22:51Z AlbrechtS $".
//

|






|

|

|







 







|

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
..
80
81
82
83
84
85
86
87
88
//
// "$Id: Fl_Tree_Item_Array.H 6956 2009-12-08 08:06:44Z greg.ercolano $"
//

#ifndef _FL_TREE_ITEM_ARRAY_H
#define _FL_TREE_ITEM_ARRAY_H

class Fl_Tree_Item;		// forward decl must *precede* first doxygen comment block
				// or doxygen will not document our class..

//////////////////////////
// FL/Fl_Tree_Item_Array.H
//////////////////////////
//
// Fl_Tree -- This file is part of the Fl_Tree widget for FLTK
// Copyright (C) 2009 by Greg Ercolano.
//
// 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
................................................................................
  void remove(int index);
  int  remove(Fl_Tree_Item *item);
};

#endif /*_FL_TREE_ITEM_ARRAY_H*/

//
// End of "$Id: Fl_Tree_Item_Array.H 6956 2009-12-08 08:06:44Z greg.ercolano $".
//

Changes to fltk-1.3/FL/Fl_Tree_Prefs.H.

1
2
3
4
5
6
7
8
9
..
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
...
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
...
353
354
355
356
357
358
359
360
361
//
// "$Id: Fl_Tree_Prefs.H 6942 2009-11-18 12:22:51Z AlbrechtS $"
//

#ifndef FL_TREE_PREFS_H
#define FL_TREE_PREFS_H

//////////////////////
// FL/Fl_Tree_Prefs.H
................................................................................
///
class Fl_Tree_Prefs {
  int _labelfont;			// label's font face
  int _labelsize;			// label's font size
  int _margintop;			// -- 
  int _marginleft;			//   |- tree's margins
  //int _marginright;			//   |
  //int _marginbottom;		// --
  int _openchild_marginbottom;	// extra space below an open child tree
  int _usericonmarginleft;		// space to left of user icon (if any)
  int _labelmarginleft;		// space to left of label
  int _connectorwidth;		// connector width (right of open/close icon)
  int _linespacing;			// vertical space between lines
  // Colors
  Fl_Color _fgcolor;			// label's foreground color
  Fl_Color _bgcolor;			// background color
  Fl_Color _selectcolor;		// selection color
  Fl_Color _inactivecolor;		// inactive color
  Fl_Color _connectorcolor;		// connector dotted line color
  Fl_Tree_Connector _connectorstyle;	// connector line style
  Fl_Pixmap *_openpixmap;		// the 'open' icon [+]
  Fl_Pixmap *_closepixmap;		// the 'close' icon [-]
  Fl_Pixmap *_userpixmap;		// user's own icon
  char _showcollapse;			// 1=show collapse icons, 0=don't
  char _showroot;			// show the root item as part of the tree
  Fl_Tree_Sort   _sortorder;		// none, ascening, descending, etc.
  Fl_Boxtype     _selectbox;		// selection box type
  Fl_Tree_Select _selectmode;		// selection mode
public:
  Fl_Tree_Prefs();
................................................................................
    _connectorwidth = val;
  }
  
  ////////////////////////////
  // Icons
  ////////////////////////////
  /// Get the current default 'open' icon.
  ///     Returns the Fl_Pixmap* of the icon, or 0 if none.
  ///
  inline Fl_Pixmap *openicon() const {
    return(_openpixmap);
  }
  void openicon(Fl_Pixmap *val);
  /// Gets the default 'close' icon
  ///     Returns the Fl_Pixmap* of the icon, or 0 if none.
  ///
  inline Fl_Pixmap *closeicon() const {
    return(_closepixmap);
  }
  void closeicon(Fl_Pixmap *val);
  /// Gets the default 'user icon' (default is 0)
  inline Fl_Pixmap *usericon() const {
    return(_userpixmap);
  }
  /// Sets the default 'user icon'
  ///     Returns the Fl_Pixmap* of the icon, or 0 if none (default).
  ///
  inline void usericon(Fl_Pixmap *val) {
    _userpixmap = val;
  }
  
  ////////////////////////////
  // Options
  ////////////////////////////
  /// Returns 1 if the collapse icon is enabled, 0 if not.
  inline char showcollapse() const {
................................................................................
    _selectmode = val;
  }
};

#endif /*FL_TREE_PREFS_H*/

//
// End of "$Id: Fl_Tree_Prefs.H 6942 2009-11-18 12:22:51Z AlbrechtS $".
//

|







 







|
|

|
|








|
|
|







 







|

|
|

|

|

|
|

|

|
|


|

|
|







 







|

1
2
3
4
5
6
7
8
9
..
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
...
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
...
353
354
355
356
357
358
359
360
361
//
// "$Id: Fl_Tree_Prefs.H 6956 2009-12-08 08:06:44Z greg.ercolano $"
//

#ifndef FL_TREE_PREFS_H
#define FL_TREE_PREFS_H

//////////////////////
// FL/Fl_Tree_Prefs.H
................................................................................
///
class Fl_Tree_Prefs {
  int _labelfont;			// label's font face
  int _labelsize;			// label's font size
  int _margintop;			// -- 
  int _marginleft;			//   |- tree's margins
  //int _marginright;			//   |
  //int _marginbottom;			// --
  int _openchild_marginbottom;		// extra space below an open child tree
  int _usericonmarginleft;		// space to left of user icon (if any)
  int _labelmarginleft;			// space to left of label
  int _connectorwidth;			// connector width (right of open/close icon)
  int _linespacing;			// vertical space between lines
  // Colors
  Fl_Color _fgcolor;			// label's foreground color
  Fl_Color _bgcolor;			// background color
  Fl_Color _selectcolor;		// selection color
  Fl_Color _inactivecolor;		// inactive color
  Fl_Color _connectorcolor;		// connector dotted line color
  Fl_Tree_Connector _connectorstyle;	// connector line style
  Fl_Image *_openimage;			// the 'open' icon [+]
  Fl_Image *_closeimage;		// the 'close' icon [-]
  Fl_Image *_userimage;			// user's own icon
  char _showcollapse;			// 1=show collapse icons, 0=don't
  char _showroot;			// show the root item as part of the tree
  Fl_Tree_Sort   _sortorder;		// none, ascening, descending, etc.
  Fl_Boxtype     _selectbox;		// selection box type
  Fl_Tree_Select _selectmode;		// selection mode
public:
  Fl_Tree_Prefs();
................................................................................
    _connectorwidth = val;
  }
  
  ////////////////////////////
  // Icons
  ////////////////////////////
  /// Get the current default 'open' icon.
  ///     Returns the Fl_Image* of the icon, or 0 if none.
  ///
  inline Fl_Image *openicon() const {
    return(_openimage);
  }
  void openicon(Fl_Image *val);
  /// Gets the default 'close' icon
  ///     Returns the Fl_Image* of the icon, or 0 if none.
  ///
  inline Fl_Image *closeicon() const {
    return(_closeimage);
  }
  void closeicon(Fl_Image *val);
  /// Gets the default 'user icon' (default is 0)
  inline Fl_Image *usericon() const {
    return(_userimage);
  }
  /// Sets the default 'user icon'
  ///     Returns the Fl_Image* of the icon, or 0 if none (default).
  ///
  inline void usericon(Fl_Image *val) {
    _userimage = val;
  }
  
  ////////////////////////////
  // Options
  ////////////////////////////
  /// Returns 1 if the collapse icon is enabled, 0 if not.
  inline char showcollapse() const {
................................................................................
    _selectmode = val;
  }
};

#endif /*FL_TREE_PREFS_H*/

//
// End of "$Id: Fl_Tree_Prefs.H 6956 2009-12-08 08:06:44Z greg.ercolano $".
//

Changes to fltk-1.3/FL/Fl_Widget.H.

1
2
3
4
5
6
7
8
9
..
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
..
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72





73
74
75
76
77
78
79
..
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
...
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
...
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
...
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
...
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
...
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
...
919
920
921
922
923
924
925
















926
927
928
929
930
931
932
...
940
941
942
943
944
945
946
947
948
//
// "$Id: Fl_Widget.H 6912 2009-10-02 19:08:55Z matt $"
//
// Widget header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
/** Default callback type pointer definition for all fltk widgets */
typedef Fl_Callback* Fl_Callback_p; // needed for BORLAND
/** One parameter callback type definition passing only the widget */
typedef void (Fl_Callback0)(Fl_Widget*);
/** Callback type definition passing the widget and a long data value */
typedef void (Fl_Callback1)(Fl_Widget*, long);


/** This struct stores all information for a text or mixed graphics label.

    \todo For FLTK 1.3, the Fl_Label type will become a widget by itself. That way
          we will be avoiding a lot of code duplication by handling labels in 
          a similar fashion to widgets containing text. We also provide an easy
          interface for very complex labels, containing html or vector graphics.
 */
................................................................................
struct FL_EXPORT Fl_Label {
  /** label text */
  const char* value;
  /** optional image for an active label */
  Fl_Image* image;
  /** optional image for a deactivated label */
  Fl_Image* deimage;
  /** type of label. \see Fl_Labeltype */
  uchar type;
  /** label font used in text */
  Fl_Font font;
  /** size of label font */
  Fl_Fontsize size;
  /** text color */
  Fl_Color color;





  /** Draws the label aligned to the given box */
  void draw(int,int,int,int, Fl_Align) const ;
  void measure(int &w, int &h) const ;
};


/** Fl_Widget is the base class for all widgets in FLTK.  
................................................................................
  Fl_Label label_;
  unsigned int flags_;
  Fl_Color color_;
  Fl_Color color2_;
  uchar type_;
  uchar damage_;
  uchar box_;
  Fl_Align align_:8;
  uchar when_;

  const char *tooltip_;

  /** unimplemented copy ctor */
  Fl_Widget(const Fl_Widget &);
  /** unimplemented assignment operator */
................................................................................
      matching public constructor. It takes a value for x(), y(), w(), h(), and 
      an optional value for label().
    
      \param[in] x, y the position of the widget relative to the enclosing window
      \param[in] w, h size of the widget in pixels
      \param[in] label optional text for the widget label
   */
  Fl_Widget(int x, int y, int w, int h, Fl_CString label=0L);

  /** Internal use only. Use position(int,int), size(int,int) or resize(int,int,int,int) instead. */
  void x(int v) {x_ = v;}
  /** Internal use only. Use position(int,int), size(int,int) or resize(int,int,int,int) instead. */
  void y(int v) {y_ = v;}
  /** Internal use only. Use position(int,int), size(int,int) or resize(int,int,int,int) instead. */
  void w(int v) {w_ = v;}
................................................................................
            Apart from the fact that uchar is too short with only 8 bits, 
	    it does not provide type safety (in which case we don't need 
	    to declare Fl_Align an enum to begin with).
	    *NOTE* The current (FLTK 1.3) implementation (Dec 2008) is such that
	    Fl_Align is (typedef'd to be) "unsigned" (int), but Fl_Widget's
	    "align_" member variable is a bit field of 8 bits only !
   */
  Fl_Align align() const {return align_;}

  /** Sets the label alignment.
      This controls how the label is displayed next to or inside the widget. 
      The default value is FL_ALIGN_CENTER, which centers the label inside 
      the widget.
      \param[in] alignment new label alignment
      \see align(), Fl_Align
   */
  void align(Fl_Align alignment) {align_ = alignment;}

  /** Gets the box type of the widget.
      \return the current box type
      \see box(Fl_Boxtype), Fl_Boxtype
   */
  Fl_Boxtype box() const {return (Fl_Boxtype)box_;}
  
................................................................................
      \param[in] sel selection color
      \see color(unsigned), selection_color(unsigned)
   */
  void color(Fl_Color bg, Fl_Color sel) {color_=bg; color2_=sel;}

  /** Gets the current label text.
      \return a pointer to the current label text
      \see label(Fl_CString), copy_label(Fl_CString)
   */
  const char* label() const {return label_.value;}

  /** Sets the current label pointer.

      The label is shown somewhere on or next to the widget. The passed pointer 
      is stored unchanged in the widget (the string is \em not copied), so if 
................................................................................

      The internal copy will automatically be freed whenever you assign
      a new label or when the widget is destroyed.

      \param[in] new_label the new label text
      \see label()
   */
  void copy_label(Fl_CString new_label);

  /** Shortcut to set the label text and type in one call.
      \see label(FL_CString), labeltype(Fl_Labeltype)
   */
  void label(Fl_Labeltype a, const char* b) {label_.type = a; label_.value = b;}

  /** Gets the label type.
      \return the current label type.
      \see Fl_Labeltype
   */
................................................................................
  // Causes a widget to invoke its callback function with arbitrary arguments.
  // Documentation and implementation in Fl_Widget.cxx
  void do_callback(Fl_Widget* o,void* arg=0);

  /** Internal use only. */
  int test_shortcut();
  /** Internal use only. */
  static Fl_Shortcut label_shortcut(const char *t);
  /** Internal use only. */
  static int test_shortcut(const char*);

  /** Checks if w is a child of this widget.
      \param[in] w potential child widget
      \return Returns 1 if \p w is a child of this widget, or is
      equal to this widget. Returns 0 if \p w is NULL.
................................................................................
  /** Returns a pointer to the primary Fl_Window widget.
      \retval  NULL if no window is associated with this widget.  
      \note for an Fl_Window widget, this returns its <I>parent</I> window 
            (if any), not <I>this</I> window.
   */
  Fl_Window* window() const ;

















  /** For back compatibility only.
      \deprecated Use selection_color() instead.
  */
  Fl_Color color2() const {return (Fl_Color)color2_;}

  /** For back compatibility only.
      \deprecated Use selection_color(unsigned) instead.
................................................................................
    number.
*/
#define FL_RESERVED_TYPE 100

#endif

//
// End of "$Id: Fl_Widget.H 6912 2009-10-02 19:08:55Z matt $".
//

|







 







<







 







<
<






>
>
>
>
>







 







<







 







|







 







|








|







 







|







 







|


|







 







|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

1
2
3
4
5
6
7
8
9
..
43
44
45
46
47
48
49

50
51
52
53
54
55
56
..
57
58
59
60
61
62
63


64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
...
100
101
102
103
104
105
106

107
108
109
110
111
112
113
...
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
...
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
...
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
...
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
...
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
...
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
...
957
958
959
960
961
962
963
964
965
//
// "$Id: Fl_Widget.H 7074 2010-02-13 12:25:58Z AlbrechtS $"
//
// Widget header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
/** Default callback type pointer definition for all fltk widgets */
typedef Fl_Callback* Fl_Callback_p; // needed for BORLAND
/** One parameter callback type definition passing only the widget */
typedef void (Fl_Callback0)(Fl_Widget*);
/** Callback type definition passing the widget and a long data value */
typedef void (Fl_Callback1)(Fl_Widget*, long);


/** This struct stores all information for a text or mixed graphics label.

    \todo For FLTK 1.3, the Fl_Label type will become a widget by itself. That way
          we will be avoiding a lot of code duplication by handling labels in 
          a similar fashion to widgets containing text. We also provide an easy
          interface for very complex labels, containing html or vector graphics.
 */
................................................................................
struct FL_EXPORT Fl_Label {
  /** label text */
  const char* value;
  /** optional image for an active label */
  Fl_Image* image;
  /** optional image for a deactivated label */
  Fl_Image* deimage;


  /** label font used in text */
  Fl_Font font;
  /** size of label font */
  Fl_Fontsize size;
  /** text color */
  Fl_Color color;
  /** alignment of label */
  Fl_Align align_;
  /** type of label. \see Fl_Labeltype */
  uchar type;

  /** Draws the label aligned to the given box */
  void draw(int,int,int,int, Fl_Align) const ;
  void measure(int &w, int &h) const ;
};


/** Fl_Widget is the base class for all widgets in FLTK.  
................................................................................
  Fl_Label label_;
  unsigned int flags_;
  Fl_Color color_;
  Fl_Color color2_;
  uchar type_;
  uchar damage_;
  uchar box_;

  uchar when_;

  const char *tooltip_;

  /** unimplemented copy ctor */
  Fl_Widget(const Fl_Widget &);
  /** unimplemented assignment operator */
................................................................................
      matching public constructor. It takes a value for x(), y(), w(), h(), and 
      an optional value for label().
    
      \param[in] x, y the position of the widget relative to the enclosing window
      \param[in] w, h size of the widget in pixels
      \param[in] label optional text for the widget label
   */
  Fl_Widget(int x, int y, int w, int h, const char *label=0L);

  /** Internal use only. Use position(int,int), size(int,int) or resize(int,int,int,int) instead. */
  void x(int v) {x_ = v;}
  /** Internal use only. Use position(int,int), size(int,int) or resize(int,int,int,int) instead. */
  void y(int v) {y_ = v;}
  /** Internal use only. Use position(int,int), size(int,int) or resize(int,int,int,int) instead. */
  void w(int v) {w_ = v;}
................................................................................
            Apart from the fact that uchar is too short with only 8 bits, 
	    it does not provide type safety (in which case we don't need 
	    to declare Fl_Align an enum to begin with).
	    *NOTE* The current (FLTK 1.3) implementation (Dec 2008) is such that
	    Fl_Align is (typedef'd to be) "unsigned" (int), but Fl_Widget's
	    "align_" member variable is a bit field of 8 bits only !
   */
  Fl_Align align() const {return label_.align_;}

  /** Sets the label alignment.
      This controls how the label is displayed next to or inside the widget. 
      The default value is FL_ALIGN_CENTER, which centers the label inside 
      the widget.
      \param[in] alignment new label alignment
      \see align(), Fl_Align
   */
  void align(Fl_Align alignment) {label_.align_ = alignment;}

  /** Gets the box type of the widget.
      \return the current box type
      \see box(Fl_Boxtype), Fl_Boxtype
   */
  Fl_Boxtype box() const {return (Fl_Boxtype)box_;}
  
................................................................................
      \param[in] sel selection color
      \see color(unsigned), selection_color(unsigned)
   */
  void color(Fl_Color bg, Fl_Color sel) {color_=bg; color2_=sel;}

  /** Gets the current label text.
      \return a pointer to the current label text
      \see label(const char *), copy_label(const char *)
   */
  const char* label() const {return label_.value;}

  /** Sets the current label pointer.

      The label is shown somewhere on or next to the widget. The passed pointer 
      is stored unchanged in the widget (the string is \em not copied), so if 
................................................................................

      The internal copy will automatically be freed whenever you assign
      a new label or when the widget is destroyed.

      \param[in] new_label the new label text
      \see label()
   */
  void copy_label(const char *new_label);

  /** Shortcut to set the label text and type in one call.
      \see label(const char *), labeltype(Fl_Labeltype)
   */
  void label(Fl_Labeltype a, const char* b) {label_.type = a; label_.value = b;}

  /** Gets the label type.
      \return the current label type.
      \see Fl_Labeltype
   */
................................................................................
  // Causes a widget to invoke its callback function with arbitrary arguments.
  // Documentation and implementation in Fl_Widget.cxx
  void do_callback(Fl_Widget* o,void* arg=0);

  /** Internal use only. */
  int test_shortcut();
  /** Internal use only. */
  static unsigned int label_shortcut(const char *t);
  /** Internal use only. */
  static int test_shortcut(const char*);

  /** Checks if w is a child of this widget.
      \param[in] w potential child widget
      \return Returns 1 if \p w is a child of this widget, or is
      equal to this widget. Returns 0 if \p w is NULL.
................................................................................
  /** Returns a pointer to the primary Fl_Window widget.
      \retval  NULL if no window is associated with this widget.  
      \note for an Fl_Window widget, this returns its <I>parent</I> window 
            (if any), not <I>this</I> window.
   */
  Fl_Window* window() const ;

  /** Returns an Fl_Group pointer if this widget is an Fl_Group.
  
      \retval NULL if this widget is not derived from Fl_Group.
      \note This method is provided to avoid dynamic_cast.
      \todo More documentation ...
   */
  virtual Fl_Group* as_group() const {return 0;}

  /** Returns an Fl_Window pointer if this widget is an Fl_Window.
  
      \retval NULL if this widget is not derived from Fl_Window.
      \note This method is provided to avoid dynamic_cast.
      \todo More documentation ...
   */
  virtual Fl_Window* as_window() const {return 0;}

  /** For back compatibility only.
      \deprecated Use selection_color() instead.
  */
  Fl_Color color2() const {return (Fl_Color)color2_;}

  /** For back compatibility only.
      \deprecated Use selection_color(unsigned) instead.
................................................................................
    number.
*/
#define FL_RESERVED_TYPE 100

#endif

//
// End of "$Id: Fl_Widget.H 7074 2010-02-13 12:25:58Z AlbrechtS $".
//

Changes to fltk-1.3/FL/Fl_Window.H.

1
2
3
4
5
6
7
8
9
..
39
40
41
42
43
44
45

46
47
48

49
50

51
52
53
54
55
56
57
58
59
60
61
..
73
74
75
76
77
78
79
80
81
82
83
84
85






















86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112


113
114
115

116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137

138
139
140

141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
...
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239

240
241
242
243




244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264

265
266
267
268
269
270
271
272
273
274
275
276

277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303

304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325

326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
...
349
350
351
352
353
354
355

356

357
358
359

360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375

376
377
378
379
380








381
382
383
384
385
386
387
388
389
390
391

392
393
394
395
396
397
398
399
400
401
402
403
404
//
// "$Id: Fl_Window.H 6907 2009-09-28 14:34:52Z matt $"
//
// Window header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
class Fl_X;

/**
  This widget produces an actual window.  This can either be a main
  window, with a border and title and all the window management controls,
  or a "subwindow" inside a window.  This is controlled by whether or not
  the window has a parent().

  <P>Once you create a window, you usually add children Fl_Widget
  's to it by using window-&gt;add(child) for each new widget.  See Fl_Group for more information
  on how to add and remove children. </P>

  <P>There are several subclasses of Fl_Window that provide
  double-buffering, overlay, menu, and OpenGL support. </P>

  <P>The window's callback is done if the user tries to close a window
  using the window manager and 
  Fl::modal() is zero or equal to the window. Fl_Window
  has a default callback that calls Fl_Window::hide().
*/
class FL_EXPORT Fl_Window : public Fl_Group {

  friend class Fl_X;
  Fl_X *i; // points at the system-specific stuff

  const char* iconlabel_;
................................................................................

  // unimplemented copy ctor and assignment operator
  Fl_Window(const Fl_Window&);
  Fl_Window& operator=(const Fl_Window&);

protected:

 /**  Stores the last window that was made current. See current() const */
  static Fl_Window *current_;
  virtual void draw();
  /** Forces the window to be drawn, this window is also made current and calls draw(). */
  virtual void flush();























public:

  /**
    Creates a window from the given size and title. 
    If Fl_Group::current() is not NULL, the window is created as a 
    subwindow of the parent window.</p>
    
    <p>The first form of the constructor creates a top-level window
    and asks the window manager to position the window. The second
    form of the constructor either creates a subwindow or a
    top-level window at the specified location (x,y) , subject to window
    manager configuration. If you do not specify the position of the
    window, the window manager will pick a place to show the window
    or allow the user to pick a location. Use position(x,y)
    or hotspot() before calling show() to request a
    position on the screen. See Fl_Window::resize() 
    for some more details on positioning windows.</p>
    
    <p>Top-level windows initially have visible() set to 0
    and parent() set to NULL. Subwindows initially
    have visible() set to 1 and parent() set to
    the parent window pointer.</p>
    
    <P>Fl_Widget::box() defaults to FL_FLAT_BOX. If you
    plan to completely fill the window with children widgets you should
    change this to FL_NO_BOX. If you turn the window border off
    you may want to change this to FL_UP_BOX.


  */
    Fl_Window(int w, int h, const char* title= 0);
  /** Creates a window from the given position, size and title. 

    See Fl_Window::Fl_Window(int w, int h, const char *title = 0)
  */
    Fl_Window(int x, int y, int w, int h, const char* title = 0);
  /**
    The destructor <I>also deletes all the children</I>. This allows a
    whole tree to be deleted at once, without having to keep a pointer to
    all the children in the user code. A kludge has been done so the 
    Fl_Window and all of it's children can be automatic (local)
    variables, but you must declare the Fl_Window <I>first</I> so
    that it is destroyed last.
  */
    virtual ~Fl_Window();

  virtual int handle(int);

  /**
    Changes the size and position of the window.  If shown() is
    true, these changes are communicated to the window server (which may
    refuse that size and cause a further resize).  If shown() is
    false, the size and position are used when show() is called.
    See Fl_Group for the effect
    of resizing on the child widgets.

    <P>You can also call the Fl_Widget methods size(x,y)
    and position(w,h), which are inline wrappers for this virtual
    function. </P>

    <P>A top-level window can not force, but merely suggest a position and 
    size to the operating system. The window manager may not be willing or 
    able to display a window at the desired position or with the given 
    dimensions. It is up to the application developer to verify window 
    parameters after the resize request.
  */
  virtual void resize(int,int,int,int);
  /**
    Gets or sets whether or not the window manager border is around the
    window.  The default value is true. border(n) can be used to
    turn the border on and off, and returns non-zero if the value has been
    changed. <I>Under most X window managers this does not work after 
    show() has been called, although SGI's 4DWM does work.</I>
  */
  void border(int b);
  /**
    Fast inline function to turn the border
    off. It only works before show() is called.
  */
  void clear_border()	{set_flag(NOBORDER);}
  /** See int Fl_Window::border(int) */
  unsigned int border() const	{return !(flags() & NOBORDER);}
  /** Activate the flags NOBORDER|FL_OVERRIDE */
  void set_override()	{set_flag(NOBORDER|OVERRIDE);}
  /** Returns non zero if FL_OVERRIDE flag is set, 0 otherwise. */
  unsigned int override() const  { return flags()&OVERRIDE; }
  /**
    A "modal" window, when shown(), will prevent any events from
    being delivered to other windows in the same program, and will also
    remain on top of the other windows (if the X window manager supports
    the "transient for" property).  Several modal windows may be shown at
    once, in which case only the last one shown gets events.  You can see
    which window (if any) is modal by calling 
    Fl::modal().
  */
  void set_modal()	{set_flag(MODAL);}
  /**  Returns true if this window is modal.  */
  unsigned int modal() const	{return flags() & MODAL;}
  /**
    A "non-modal" window (terminology borrowed from Microsoft Windows)
    acts like a modal() one in that it remains on top, but it has
................................................................................
  */
  void set_non_modal()	{set_flag(NON_MODAL);}
  /**  Returns true if this window is modal or non-modal. */
  unsigned int non_modal() const {return flags() & (NON_MODAL|MODAL);}

  /**
    Marks the window as a menu window.
    
    This is intended for internal use, but it can also be used if you
    write your own menu handling. However, this is not recommended.

    This flag is used for correct "parenting" of windows in communication
    with the windowing system. Modern X window managers can use different
    flags to distinguish menu and tooltip windows from normal windows.
    
    This must be called before the window is shown and cannot be changed
    later.
  */
  void set_menu_window()	{set_flag(MENU_WINDOW);}

  /**  Returns true if this window is a menu window. */
  unsigned int menu_window() const {return flags() & MENU_WINDOW;}

  /**
    Marks the window as a tooltip window.
    
    This is intended for internal use, but it can also be used if you
    write your own tooltip handling. However, this is not recommended.

    This flag is used for correct "parenting" of windows in communication
    with the windowing system. Modern X window managers can use different
    flags to distinguish menu and tooltip windows from normal windows.
    
    This must be called before the window is shown and cannot be changed
    later.

    \note Since Fl_Tooltip_Window is derived from Fl_Menu_Window, this
    also \b clears the menu_window() state.
  */
  void set_tooltip_window()	{ set_flag(TOOLTIP_WINDOW);
				  clear_flag(MENU_WINDOW); }
  /**  Returns true if this window is a tooltip window. */
  unsigned int tooltip_window() const {return flags() & TOOLTIP_WINDOW;}

  /**
    Position the window so that the mouse is pointing at the
    given position, or at the center of the given widget, which may be the
    window itself.  If the optional offscreen parameter is
    non-zero, then the window is allowed to extend off the screen (this
    does not work with some X window managers). \see position()
  */
  void hotspot(int x, int y, int offscreen = 0);
  /** See void Fl_Window::hotspot(int x, int y, int offscreen = 0) */
  void hotspot(const Fl_Widget*, int offscreen = 0);
  /** See void Fl_Window::hotspot(int x, int y, int offscreen = 0) */
  void hotspot(const Fl_Widget& p, int offscreen = 0) {hotspot(&p,offscreen);}

  /**
    Undoes the effect of a previous resize() or show()
    so that the next time show() is called the window manager is
    free to position the window.




  */
  void free_position()	{clear_flag(FORCE_POSITION);}
  /**
    Set the allowable range the user can resize this window to.  This only
    works for top-level windows.
    <UL>
    <LI>minw and minh are the smallest the window  can
    be. Either value must be greater than 0.</LI>
    <LI>maxw and maxh are the largest the window  can be.
    If either is <I>equal</I> to the minimum then you  cannot resize in
    that direction.  If either is zero  then FLTK picks a maximum size in
    that direction such that the  window will fill the screen. </LI>
    <LI>dw and dh are size increments.  The  window will
    be constrained to widths of minw + N * dw,  where N
    is any non-negative integer.  If these are  less or equal to 1 they
    are ignored.  (this is ignored on WIN32)</LI>
    <LI>aspect is a flag that indicates that the window should
    preserve it's aspect ratio.  This only works if both the maximum and
    minimum have the same aspect ratio.  (ignored on WIN32 and by many X
    window managers)</LI>
    </UL>

    If this function is not called, FLTK tries to figure out the range
    from the setting of resizable():
    <UL>
    <LI>If resizable() is NULL (this is the  default)
    then the window cannot be resized and the resize  border and max-size
    control will not be displayed for the  window. </LI>
    <LI>If either dimension of resizable() is less than  100,
    then that is considered the minimum size.  Otherwise the 
    resizable() has a minimum size of 100. </LI>
    <LI>If either dimension of resizable() is zero, then  that is
    also the maximum size (so the window cannot resize in  that direction). </LI>
    </UL>

    It is undefined what happens if the current size does not fit in the
    constraints passed to size_range().
  */
  void size_range(int a, int b, int c=0, int d=0, int e=0, int f=0, int g=0) {
    minw=a; minh=b; maxw=c; maxh=d; dw=e; dh=f; aspect=g; size_range_();}

  /** See void Fl_Window::label(const char*)   */
  const char* label() const	{return Fl_Widget::label();}
  /**  See void Fl_Window::iconlabel(const char*)   */
  const char* iconlabel() const	{return iconlabel_;}
  /** Sets the window title bar label.  */
  void label(const char*);
  /** Sets the icon label. */
  void iconlabel(const char*);
  /** Gets or sets the icon label. */
  void label(const char* label, const char* iconlabel); // platform dependent 
  void copy_label(const char* a);
  /** See void Fl_Window::xclass(const char*) */
  const char* xclass() const	{return xclass_;}
  /**
    A string used to tell the system what type of window this is. Mostly
    this identifies the picture to draw in the icon. <I>Under X, this is
    turned into a XA_WM_CLASS pair by truncating at the first
    non-alphanumeric character and capitalizing the first character, and
    the second one if the first is 'x'.  Thus "foo" turns into "foo, Foo",
    and "xprog.1" turns into "xprog, XProg".</I> This only works if called <I>
    before</I> calling show().

    <P>Under Microsoft Windows this string is used as the name of the
    WNDCLASS structure, though it is not clear if this can have any
    visible effect. The passed pointer is stored unchanged. The string 
    is not copied.
  */
  void xclass(const char* c)	{xclass_ = c;}
  /** Gets the current icon window target dependent data */
  const void* icon() const	{return icon_;}
  /** Sets the current icon window target dependent data */
  void icon(const void * ic)	{icon_ = ic;}

  /**
    Returns non-zero if show() has been called (but not hide()
    ). You can tell if a window is iconified with (w-&gt;shown()
    &!w-&gt;visible()).
  */
  int shown() {return i != 0;}
  /**
    Put the window on the screen.  Usually this has the side effect of
    opening the display. The second form is used for top-level
    windows and allow standard arguments to be parsed from the
    command-line.

    <P>If the window is already shown then it is restored and raised to the
    top.  This is really convenient because your program can call show()
    at any time, even if the window is already up.  It also means that 
    show() serves the purpose of raise() in other toolkits.
  */
  virtual void show();
  /**
    Remove the window from the screen.  If the window is already hidden or
    has not been shown then this does nothing and is harmless.
  */
  virtual void hide();
  /**
    See virtual void Fl_Window::show() 
  */
  void show(int, char**);
................................................................................
    resize(x,y,w,h).
  */
  void fullscreen_off(int,int,int,int);
  /**
    Iconifies the window.  If you call this when shown() is false
    it will show() it as an icon.  If the window is already
    iconified this does nothing.

    <P>Call show() to restore the window. </P>

    <P>When a window is iconified/restored (either by these calls or by the
    user) the handle() method is called with FL_HIDE and 
    FL_SHOW events and visible() is turned on and off. </P>

    <P>There is no way to control what is drawn in the icon except with the
    string passed to Fl_Window::xclass().  You should not rely on
    window managers displaying the icons.
  */
  void iconize();

  int x_root() const ;
  int y_root() const ;

 static Fl_Window *current();
  /**
    Sets things up so that the drawing functions in &lt;FL/fl_draw.H&gt; will go into this
    window. This is useful for incremental update of windows, such as in an
    idle callback, which will make your program behave much better if it
    draws a slow graphic. <B>Danger: incremental update is very hard to
    debug and maintain!</B>

    <P>This method only works for the Fl_Window and 
    Fl_Gl_Window derived classes.
  */
  void make_current();









  // for back-compatibility only:
  /**
    Changes the cursor for this window.  This always calls the system, if
    you are changing the cursor a lot you may want to keep track of how
    you set it in a static varaible and call this only if the new cursor
    is different. 

    <P>The type Fl_Cursor is an enumeration defined in  &lt;Enumerations.H&gt;.
    (Under X you can get any XC_cursor value by passing 
    Fl_Cursor((XC_foo/2)+1)).  The colors only work on X, they are
    not implemented on WIN32.

    <P> For back compatibility only. 
  */
  void cursor(Fl_Cursor, Fl_Color=FL_BLACK, Fl_Color=FL_WHITE); // platform dependent
  void default_cursor(Fl_Cursor, Fl_Color=FL_BLACK, Fl_Color=FL_WHITE);
  static void default_callback(Fl_Window*, void* v);

};

#endif

//
// End of "$Id: Fl_Window.H 6907 2009-09-28 14:34:52Z matt $".
//

|







 







>
|
|
|
>
|
|
>
|
|
<
|







 







|





>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>





|

|








|

|


|

|
|


>
>


|
>
|






|








|
|


<
|
>
|
|
<
>
|







|
|
|
|
|



|



|

|









|
<







 







|






|










|






|












|
|









>

|
|
<
>
>
>
>



|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|

>



|
|
|
|
|
|
|
|

>










|



|












>
|





|

|




|
|



|
|
|

>
|






|







 







>
|
>
|

|
>
|










|
|
|
|

>
|
<



>
>
>
>
>
>
>
>




|
|

|



>
|










|

1
2
3
4
5
6
7
8
9
..
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

56
57
58
59
60
61
62
63
..
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162

163
164
165
166

167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200

201
202
203
204
205
206
207
...
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269

270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
...
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414

415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
//
// "$Id: Fl_Window.H 7074 2010-02-13 12:25:58Z AlbrechtS $"
//
// Window header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
class Fl_X;

/**
  This widget produces an actual window.  This can either be a main
  window, with a border and title and all the window management controls,
  or a "subwindow" inside a window.  This is controlled by whether or not
  the window has a parent().

  Once you create a window, you usually add children Fl_Widget
  's to it by using window->add(child) for each new widget.
  See Fl_Group for more information on how to add and remove children.

  There are several subclasses of Fl_Window that provide
  double-buffering, overlay, menu, and OpenGL support.

  The window's callback is done if the user tries to close a window
  using the window manager and Fl::modal() is zero or equal to the

  window. Fl_Window has a default callback that calls Fl_Window::hide().
*/
class FL_EXPORT Fl_Window : public Fl_Group {

  friend class Fl_X;
  Fl_X *i; // points at the system-specific stuff

  const char* iconlabel_;
................................................................................

  // unimplemented copy ctor and assignment operator
  Fl_Window(const Fl_Window&);
  Fl_Window& operator=(const Fl_Window&);

protected:

  /** Stores the last window that was made current. See current() const */
  static Fl_Window *current_;
  virtual void draw();
  /** Forces the window to be drawn, this window is also made current and calls draw(). */
  virtual void flush();

  /**
    Sets an internal flag that tells FLTK and the window manager to
    honor position requests.

    This is used internally and should not be needed by user code.

    \param[in] force 1 to set the FORCE_POSITION flag, 0 to clear it
  */
  void force_position(int force) {
    if (force) set_flag(FORCE_POSITION);
    else clear_flag(FORCE_POSITION);
  }
  /**
    Returns the internal state of the window's FORCE_POSITION flag.

    \retval 1 if flag is set
    \retval 0 otherwise

    \see force_position(int)
  */
  int force_position() const { return ((flags() & FORCE_POSITION)?1:0); }

public:

  /**
    Creates a window from the given size and title. 
    If Fl_Group::current() is not NULL, the window is created as a 
    subwindow of the parent window.
    
    The first form of the constructor creates a top-level window
    and asks the window manager to position the window. The second
    form of the constructor either creates a subwindow or a
    top-level window at the specified location (x,y) , subject to window
    manager configuration. If you do not specify the position of the
    window, the window manager will pick a place to show the window
    or allow the user to pick a location. Use position(x,y)
    or hotspot() before calling show() to request a
    position on the screen. See Fl_Window::resize() 
    for some more details on positioning windows.
    
    Top-level windows initially have visible() set to 0
    and parent() set to NULL. Subwindows initially
    have visible() set to 1 and parent() set to
    the parent window pointer.
    
    Fl_Widget::box() defaults to FL_FLAT_BOX. If you plan to
    completely fill the window with children widgets you should
    change this to FL_NO_BOX. If you turn the window border off
    you may want to change this to FL_UP_BOX.

    \see Fl_Window(int x, int y, int w, int h, const char* title = 0)
  */
    Fl_Window(int w, int h, const char* title= 0);
  /** Creates a window from the given position, size and title.

    \see Fl_Window::Fl_Window(int w, int h, const char *title = 0)
  */
    Fl_Window(int x, int y, int w, int h, const char* title = 0);
  /**
    The destructor <I>also deletes all the children</I>. This allows a
    whole tree to be deleted at once, without having to keep a pointer to
    all the children in the user code. A kludge has been done so the 
    Fl_Window and all of its children can be automatic (local)
    variables, but you must declare the Fl_Window <I>first</I> so
    that it is destroyed last.
  */
    virtual ~Fl_Window();

  virtual int handle(int);

  /**
    Changes the size and position of the window.  If shown() is true,
    these changes are communicated to the window server (which may
    refuse that size and cause a further resize).  If shown() is
    false, the size and position are used when show() is called.

    See Fl_Group for the effect of resizing on the child widgets.

    You can also call the Fl_Widget methods size(x,y) and position(w,h),
    which are inline wrappers for this virtual function.


    A top-level window can not force, but merely suggest a position and 
    size to the operating system. The window manager may not be willing or 
    able to display a window at the desired position or with the given 
    dimensions. It is up to the application developer to verify window 
    parameters after the resize request.
  */
  virtual void resize(int,int,int,int);
  /**
    Sets whether or not the window manager border is around the
    window.  The default value is true. void border(int) can be
    used to turn the border on and off. <I>Under most X window
    managers this does not work after show() has been called,
    although SGI's 4DWM does work.</I>
  */
  void border(int b);
  /**
    Fast inline function to turn the window manager border
    off. It only works before show() is called.
  */
  void clear_border()	{set_flag(NOBORDER);}
  /** See void Fl_Window::border(int) */
  unsigned int border() const	{return !(flags() & NOBORDER);}
  /** Activates the flags NOBORDER|FL_OVERRIDE */
  void set_override()	{set_flag(NOBORDER|OVERRIDE);}
  /** Returns non zero if FL_OVERRIDE flag is set, 0 otherwise. */
  unsigned int override() const  { return flags()&OVERRIDE; }
  /**
    A "modal" window, when shown(), will prevent any events from
    being delivered to other windows in the same program, and will also
    remain on top of the other windows (if the X window manager supports
    the "transient for" property).  Several modal windows may be shown at
    once, in which case only the last one shown gets events.  You can see
    which window (if any) is modal by calling Fl::modal().

  */
  void set_modal()	{set_flag(MODAL);}
  /**  Returns true if this window is modal.  */
  unsigned int modal() const	{return flags() & MODAL;}
  /**
    A "non-modal" window (terminology borrowed from Microsoft Windows)
    acts like a modal() one in that it remains on top, but it has
................................................................................
  */
  void set_non_modal()	{set_flag(NON_MODAL);}
  /**  Returns true if this window is modal or non-modal. */
  unsigned int non_modal() const {return flags() & (NON_MODAL|MODAL);}

  /**
    Marks the window as a menu window.

    This is intended for internal use, but it can also be used if you
    write your own menu handling. However, this is not recommended.

    This flag is used for correct "parenting" of windows in communication
    with the windowing system. Modern X window managers can use different
    flags to distinguish menu and tooltip windows from normal windows.

    This must be called before the window is shown and cannot be changed
    later.
  */
  void set_menu_window()	{set_flag(MENU_WINDOW);}

  /**  Returns true if this window is a menu window. */
  unsigned int menu_window() const {return flags() & MENU_WINDOW;}

  /**
    Marks the window as a tooltip window.

    This is intended for internal use, but it can also be used if you
    write your own tooltip handling. However, this is not recommended.

    This flag is used for correct "parenting" of windows in communication
    with the windowing system. Modern X window managers can use different
    flags to distinguish menu and tooltip windows from normal windows.

    This must be called before the window is shown and cannot be changed
    later.

    \note Since Fl_Tooltip_Window is derived from Fl_Menu_Window, this
    also \b clears the menu_window() state.
  */
  void set_tooltip_window()	{ set_flag(TOOLTIP_WINDOW);
				  clear_flag(MENU_WINDOW); }
  /**  Returns true if this window is a tooltip window. */
  unsigned int tooltip_window() const {return flags() & TOOLTIP_WINDOW;}

  /**
    Positions the window so that the mouse is pointing at the given
    position, or at the center of the given widget, which may be the
    window itself.  If the optional offscreen parameter is
    non-zero, then the window is allowed to extend off the screen (this
    does not work with some X window managers). \see position()
  */
  void hotspot(int x, int y, int offscreen = 0);
  /** See void Fl_Window::hotspot(int x, int y, int offscreen = 0) */
  void hotspot(const Fl_Widget*, int offscreen = 0);
  /** See void Fl_Window::hotspot(int x, int y, int offscreen = 0) */
  void hotspot(const Fl_Widget& p, int offscreen = 0) {hotspot(&p,offscreen);}

  /**
    Undoes the effect of a previous resize() or show() so that the next time
    show() is called the window manager is free to position the window.


    This is for Forms compatibility only.

    \deprecated please use force_position(0) instead
  */
  void free_position()	{clear_flag(FORCE_POSITION);}
  /**
    Sets the allowable range the user can resize this window to.
    This only works for top-level windows.
    <UL>
    <LI>minw and minh are the smallest the window can be.
	Either value must be greater than 0.</LI>
    <LI>maxw and maxh are the largest the window can be. If either is
	<I>equal</I> to the minimum then you cannot resize in that direction.
	If either is zero  then FLTK picks a maximum size in that direction
	such that the window will fill the screen.</LI>
    <LI>dw and dh are size increments.  The  window will be constrained
	to widths of minw + N * dw,  where N is any non-negative integer.
	If these are less or equal to 1 they are ignored (this is ignored
	on WIN32).</LI>
    <LI>aspect is a flag that indicates that the window should preserve its
	aspect ratio.  This only works if both the maximum and minimum have
	the same aspect ratio (ignored on WIN32 and by many X window managers).
	</LI>
    </UL>

    If this function is not called, FLTK tries to figure out the range
    from the setting of resizable():
    <UL>
    <LI>If resizable() is NULL (this is the  default) then the window cannot
	be resized and the resize border and max-size control will not be
	displayed for the window.</LI>
    <LI>If either dimension of resizable() is less than 100, then that is
	considered the minimum size.  Otherwise the resizable() has a minimum
	size of 100.</LI>
    <LI>If either dimension of resizable() is zero, then that is also the
	maximum size (so the window cannot resize in that direction).</LI>
    </UL>

    It is undefined what happens if the current size does not fit in the
    constraints passed to size_range().
  */
  void size_range(int a, int b, int c=0, int d=0, int e=0, int f=0, int g=0) {
    minw=a; minh=b; maxw=c; maxh=d; dw=e; dh=f; aspect=g; size_range_();}

  /** See void Fl_Window::label(const char*)   */
  const char* label() const	{return Fl_Widget::label();}
  /**  See void Fl_Window::iconlabel(const char*)   */
  const char* iconlabel() const	{return iconlabel_;}
  /** Sets the window title bar label. */
  void label(const char*);
  /** Sets the icon label. */
  void iconlabel(const char*);
  /** Sets the icon label. */
  void label(const char* label, const char* iconlabel); // platform dependent 
  void copy_label(const char* a);
  /** See void Fl_Window::xclass(const char*) */
  const char* xclass() const	{return xclass_;}
  /**
    A string used to tell the system what type of window this is. Mostly
    this identifies the picture to draw in the icon. <I>Under X, this is
    turned into a XA_WM_CLASS pair by truncating at the first
    non-alphanumeric character and capitalizing the first character, and
    the second one if the first is 'x'.  Thus "foo" turns into "foo, Foo",
    and "xprog.1" turns into "xprog, XProg".</I> This only works if called <I>
    before</I> calling show().

    Under Microsoft Windows this string is used as the name of the
    WNDCLASS structure, though it is not clear if this can have any
    visible effect. The passed pointer is stored unchanged. The string 
    is not copied.
  */
  void xclass(const char* c)	{xclass_ = c;}
  /** Gets the current icon window target dependent data. */
  const void* icon() const	{return icon_;}
  /** Sets the current icon window target dependent data. */
  void icon(const void * ic)	{icon_ = ic;}

  /**
    Returns non-zero if show() has been called (but not hide()
    ). You can tell if a window is iconified with (w->shown()
    && !w->visible()).
  */
  int shown() {return i != 0;}
  /**
    Puts the window on the screen. Usually (on X) this has the side
    effect of opening the display. The second form is used for top-level
    windows and allows standard arguments to be parsed from the
    command-line.

    If the window is already shown then it is restored and raised to the
    top.  This is really convenient because your program can call show()
    at any time, even if the window is already up.  It also means that 
    show() serves the purpose of raise() in other toolkits.
  */
  virtual void show();
  /**
    Removes the window from the screen.  If the window is already hidden or
    has not been shown then this does nothing and is harmless.
  */
  virtual void hide();
  /**
    See virtual void Fl_Window::show() 
  */
  void show(int, char**);
................................................................................
    resize(x,y,w,h).
  */
  void fullscreen_off(int,int,int,int);
  /**
    Iconifies the window.  If you call this when shown() is false
    it will show() it as an icon.  If the window is already
    iconified this does nothing.

    Call show() to restore the window.

    When a window is iconified/restored (either by these calls or by the
    user) the handle() method is called with FL_HIDE and 
    FL_SHOW events and visible() is turned on and off.

    There is no way to control what is drawn in the icon except with the
    string passed to Fl_Window::xclass().  You should not rely on
    window managers displaying the icons.
  */
  void iconize();

  int x_root() const ;
  int y_root() const ;

 static Fl_Window *current();
  /**
    Sets things up so that the drawing functions in <FL/fl_draw.H> will go
    into this window. This is useful for incremental update of windows, such
    as in an idle callback, which will make your program behave much better
    if it draws a slow graphic. <B>Danger: incremental update is very hard to
    debug and maintain!</B>

    This method only works for the Fl_Window and Fl_Gl_Window derived classes.

  */
  void make_current();

  /** Returns an Fl_Window pointer if this widget is an Fl_Window.
  
      \retval NULL if this widget is not derived from Fl_Window.
      \note This method is provided to avoid dynamic_cast.
      \todo More documentation ...
   */
  virtual Fl_Window* as_window() const { return (Fl_Window*)this; }

  // for back-compatibility only:
  /**
    Changes the cursor for this window.  This always calls the system, if
    you are changing the cursor a lot you may want to keep track of how
    you set it in a static variable and call this only if the new cursor
    is different.

    The type Fl_Cursor is an enumeration defined in <FL/Enumerations.H>.
    (Under X you can get any XC_cursor value by passing 
    Fl_Cursor((XC_foo/2)+1)).  The colors only work on X, they are
    not implemented on WIN32.

    For back compatibility only.
  */
  void cursor(Fl_Cursor, Fl_Color=FL_BLACK, Fl_Color=FL_WHITE); // platform dependent
  void default_cursor(Fl_Cursor, Fl_Color=FL_BLACK, Fl_Color=FL_WHITE);
  static void default_callback(Fl_Window*, void* v);

};

#endif

//
// End of "$Id: Fl_Window.H 7074 2010-02-13 12:25:58Z AlbrechtS $".
//

Changes to fltk-1.3/FL/filename.H.

1
2
3
4
5
6
7
8
9
..
30
31
32
33
34
35
36













37

38
39
40
41
42
43
44
45
46
...
157
158
159
160
161
162
163
164
165
/*
 * "$Id: filename.H 6716 2009-03-24 01:40:44Z fabien $"
 *
 * Filename header file for the Fast Light Tool Kit (FLTK).
 *
 * Copyright 1998-2009 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
................................................................................

#  include "Fl_Export.H"

/** \addtogroup filenames File names and URI utility functions 
    @{ */

#  define FL_PATH_MAX 256 /**< all path buffers should use this length */













/** Gets the file name from a path. \return a pointer to the char after the last slash, or to \p filename if there is none. */

FL_EXPORT const char *fl_filename_name(const char * filename);
FL_EXPORT const char *fl_filename_ext(const char *);
FL_EXPORT char *fl_filename_setext(char *to, int tolen, const char *ext);
FL_EXPORT int fl_filename_expand(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_absolute(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_match(const char *name, const char *pattern);
FL_EXPORT int fl_filename_isdir(const char *name);

................................................................................


#endif /* FL_FILENAME_H */

/** @} */

/*
 * End of "$Id: filename.H 6716 2009-03-24 01:40:44Z fabien $".
 */

|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
|
>

|







 







|

1
2
3
4
5
6
7
8
9
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
...
171
172
173
174
175
176
177
178
179
/*
 * "$Id: filename.H 6986 2010-01-01 18:30:49Z greg.ercolano $"
 *
 * Filename header file for the Fast Light Tool Kit (FLTK).
 *
 * Copyright 1998-2009 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
................................................................................

#  include "Fl_Export.H"

/** \addtogroup filenames File names and URI utility functions 
    @{ */

#  define FL_PATH_MAX 256 /**< all path buffers should use this length */
/** Gets the file name from a path. 
    Similar to basename(3), exceptions shown below.
    \code
    #include <FL/filename.H>
    [..]
    const char *out;
    out = fl_filename_name("/usr/lib");     // out="lib"
    out = fl_filename_name("/usr/");        // out=""      (basename(3) returns "usr" instead)
    out = fl_filename_name("/usr");         // out="usr"
    out = fl_filename_name("/");            // out=""      (basename(3) returns "/" instead)
    out = fl_filename_name(".");            // out="."
    out = fl_filename_name("..");           // out=".."
    \endcode
    \return a pointer to the char after the last slash, or to \p filename if there is none.
 */
FL_EXPORT const char *fl_filename_name(const char * filename);
FL_EXPORT const char *fl_filename_ext(const char *buf);
FL_EXPORT char *fl_filename_setext(char *to, int tolen, const char *ext);
FL_EXPORT int fl_filename_expand(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_absolute(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_match(const char *name, const char *pattern);
FL_EXPORT int fl_filename_isdir(const char *name);

................................................................................


#endif /* FL_FILENAME_H */

/** @} */

/*
 * End of "$Id: filename.H 6986 2010-01-01 18:30:49Z greg.ercolano $".
 */

Changes to fltk-1.3/FL/fl_draw.H.

1
2
3
4
5
6
7
8
9
...
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
...
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
...
464
465
466
467
468
469
470
471
472
//
// "$Id: fl_draw.H 6878 2009-09-17 22:12:24Z matt $"
//
// Portable drawing function header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
/** Return the typographical width of a nul-terminated string */
FL_EXPORT double fl_width(const char* txt);
/** Return the typographical width of a sequence of \p n characters */
FL_EXPORT double fl_width(const char* txt, int n);
/** Return the typographical width of a single character :
    \note if a valid fl_gc is NOT found then it uses the first window gc,
    or the screen gc if no fltk window is available when called. */
FL_EXPORT double fl_width(Fl_Char);
/** Determine the minimum pixel dimensions of a nul-terminated string.

Usage: given a string "txt" drawn using fl_draw(txt, x, y) you would determine
its pixel extents on the display using fl_text_extents(txt, dx, dy, wo, ho)
such that a bounding box that exactly fits around the text could be drawn with
fl_rect(x+dx, y+dy, wo, ho). Note the dx, dy values hold the offset of the first
"colored in" pixel of the string, from the draw origin.
................................................................................
FL_EXPORT int fl_draw_pixmap(const char* const* cdata, int x,int y,Fl_Color=FL_GRAY);
FL_EXPORT int fl_measure_pixmap(/*const*/ char* const* data, int &w, int &h);
FL_EXPORT int fl_measure_pixmap(const char* const* cdata, int &w, int &h);

// other:
FL_EXPORT void fl_scroll(int X, int Y, int W, int H, int dx, int dy,
                         void (*draw_area)(void*, int,int,int,int), void* data);
FL_EXPORT const char* fl_shortcut_label(Fl_Shortcut shortcut);
FL_EXPORT const char* fl_shortcut_label(Fl_Shortcut shortcut, const char **eom);
FL_EXPORT void fl_overlay_rect(int x,int y,int w,int h);
FL_EXPORT void fl_overlay_clear();
FL_EXPORT void fl_cursor(Fl_Cursor, Fl_Color fg=FL_BLACK, Fl_Color bg=FL_WHITE);
FL_EXPORT const char* fl_expand_text(const char* from, char* buf, int maxbuf,
                                     double maxw, int& n, double &width,
                                     int wrap, int draw_symbols = 0);

................................................................................
FL_EXPORT int fl_draw_symbol(const char* label,int x,int y,int w,int h, Fl_Color);
FL_EXPORT int fl_add_symbol(const char* name, void (*drawit)(Fl_Color), int scalable);
/** @} */

#endif

//
// End of "$Id: fl_draw.H 6878 2009-09-17 22:12:24Z matt $".
//

|







 







|







 







|
|







 







|

1
2
3
4
5
6
7
8
9
...
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
...
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
...
464
465
466
467
468
469
470
471
472
//
// "$Id: fl_draw.H 6955 2009-12-07 22:04:55Z matt $"
//
// Portable drawing function header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
/** Return the typographical width of a nul-terminated string */
FL_EXPORT double fl_width(const char* txt);
/** Return the typographical width of a sequence of \p n characters */
FL_EXPORT double fl_width(const char* txt, int n);
/** Return the typographical width of a single character :
    \note if a valid fl_gc is NOT found then it uses the first window gc,
    or the screen gc if no fltk window is available when called. */
FL_EXPORT double fl_width(unsigned int);
/** Determine the minimum pixel dimensions of a nul-terminated string.

Usage: given a string "txt" drawn using fl_draw(txt, x, y) you would determine
its pixel extents on the display using fl_text_extents(txt, dx, dy, wo, ho)
such that a bounding box that exactly fits around the text could be drawn with
fl_rect(x+dx, y+dy, wo, ho). Note the dx, dy values hold the offset of the first
"colored in" pixel of the string, from the draw origin.
................................................................................
FL_EXPORT int fl_draw_pixmap(const char* const* cdata, int x,int y,Fl_Color=FL_GRAY);
FL_EXPORT int fl_measure_pixmap(/*const*/ char* const* data, int &w, int &h);
FL_EXPORT int fl_measure_pixmap(const char* const* cdata, int &w, int &h);

// other:
FL_EXPORT void fl_scroll(int X, int Y, int W, int H, int dx, int dy,
                         void (*draw_area)(void*, int,int,int,int), void* data);
FL_EXPORT const char* fl_shortcut_label(unsigned int shortcut);
FL_EXPORT const char* fl_shortcut_label(unsigned int shortcut, const char **eom);
FL_EXPORT void fl_overlay_rect(int x,int y,int w,int h);
FL_EXPORT void fl_overlay_clear();
FL_EXPORT void fl_cursor(Fl_Cursor, Fl_Color fg=FL_BLACK, Fl_Color bg=FL_WHITE);
FL_EXPORT const char* fl_expand_text(const char* from, char* buf, int maxbuf,
                                     double maxw, int& n, double &width,
                                     int wrap, int draw_symbols = 0);

................................................................................
FL_EXPORT int fl_draw_symbol(const char* label,int x,int y,int w,int h, Fl_Color);
FL_EXPORT int fl_add_symbol(const char* name, void (*drawit)(Fl_Color), int scalable);
/** @} */

#endif

//
// End of "$Id: fl_draw.H 6955 2009-12-07 22:04:55Z matt $".
//

Changes to fltk-1.3/FL/forms.H.

1
2
3
4
5
6
7
8
9
..
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
...
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
...
838
839
840
841
842
843
844
845
846
//
// "$Id: forms.H 6902 2009-09-27 11:06:56Z matt $"
//
// Forms emulation header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#define FL_AUTO		2
#define FL_WHEN_NEEDED	FL_AUTO
#define FL_OFF		0
#define FL_NONE		0
#define FL_CANCEL	0
#define FL_INVALID	0
#define FL_IGNORE	-1
#define FL_CLOSE	-2

#define FL_LCOL		FL_BLACK
#define FL_COL1		FL_GRAY
#define FL_MCOL		FL_LIGHT1
#define FL_LEFT_BCOL	FL_LIGHT3 // 53 is better match
#define FL_TOP_BCOL	FL_LIGHT2 // 51
#define FL_BOTTOM_BCOL	FL_DARK2  // 40
................................................................................
inline void fl_set_object_return(Fl_Widget* o, int v) {
  o->when((Fl_When)(v|FL_WHEN_RELEASE));}

inline void fl_redraw_object(Fl_Widget* o) {o->redraw();}
inline void fl_show_object(Fl_Widget* o) {o->show();}
inline void fl_hide_object(Fl_Widget* o) {o->hide();}
inline void fl_free_object(Fl_Widget* x) {delete x;}
inline void fl_delete_object(Fl_Widget* o) {((Fl_Group*)(o->parent()))->remove(*o);}
inline void fl_activate_object(Fl_Widget* o) {o->activate();}
inline void fl_deactivate_object(Fl_Widget* o) {o->deactivate();}

inline void fl_add_object(Fl_Window* f, Fl_Widget* x) {f->add(x);}
inline void fl_insert_object(Fl_Widget* o, Fl_Widget* b) {
    ((Fl_Group*)(b->parent()))->insert(*o,b);}

inline Fl_Window* FL_ObjWin(Fl_Widget* o) {return o->window();}

////////////////////////////////////////////////////////////////
// things that appered in the demos a lot that I don't emulate, but
// I did not want to edit out of all the demos...

................................................................................

inline int fl_double_click() {return Fl::event_clicks();}
inline void fl_draw() {Fl::flush();}

#endif	/* define __FORMS_H__ */

//
// End of "$Id: forms.H 6902 2009-09-27 11:06:56Z matt $".
//

|







 







|







 







|




|
<







 







|

1
2
3
4
5
6
7
8
9
..
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
...
235
236
237
238
239
240
241
242
243
244
245
246
247

248
249
250
251
252
253
254
...
837
838
839
840
841
842
843
844
845
//
// "$Id: forms.H 7117 2010-02-20 21:14:47Z matt $"
//
// Forms emulation header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#define FL_AUTO		2
#define FL_WHEN_NEEDED	FL_AUTO
#define FL_OFF		0
#define FL_NONE		0
#define FL_CANCEL	0
#define FL_INVALID	0
#define FL_IGNORE	-1
//#define FL_CLOSE	-2 // this variable is never used in FLTK Forms. It is removed becaus it conflicts with the window FL_CLOSE event

#define FL_LCOL		FL_BLACK
#define FL_COL1		FL_GRAY
#define FL_MCOL		FL_LIGHT1
#define FL_LEFT_BCOL	FL_LIGHT3 // 53 is better match
#define FL_TOP_BCOL	FL_LIGHT2 // 51
#define FL_BOTTOM_BCOL	FL_DARK2  // 40
................................................................................
inline void fl_set_object_return(Fl_Widget* o, int v) {
  o->when((Fl_When)(v|FL_WHEN_RELEASE));}

inline void fl_redraw_object(Fl_Widget* o) {o->redraw();}
inline void fl_show_object(Fl_Widget* o) {o->show();}
inline void fl_hide_object(Fl_Widget* o) {o->hide();}
inline void fl_free_object(Fl_Widget* x) {delete x;}
inline void fl_delete_object(Fl_Widget* o) {o->parent()->remove(*o);}
inline void fl_activate_object(Fl_Widget* o) {o->activate();}
inline void fl_deactivate_object(Fl_Widget* o) {o->deactivate();}

inline void fl_add_object(Fl_Window* f, Fl_Widget* x) {f->add(x);}
inline void fl_insert_object(Fl_Widget* o, Fl_Widget* b) {b->parent()->insert(*o,b);}


inline Fl_Window* FL_ObjWin(Fl_Widget* o) {return o->window();}

////////////////////////////////////////////////////////////////
// things that appered in the demos a lot that I don't emulate, but
// I did not want to edit out of all the demos...

................................................................................

inline int fl_double_click() {return Fl::event_clicks();}
inline void fl_draw() {Fl::flush();}

#endif	/* define __FORMS_H__ */

//
// End of "$Id: forms.H 7117 2010-02-20 21:14:47Z matt $".
//

Changes to fltk-1.3/FL/mac.H.

1
2
3
4
5
6
7
8
9
..
32
33
34
35
36
37
38




























39
40
41
42
43
44
45
46































47
48
49
50
51
52
53
54
55
56








57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72



73

74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89









90
91
92


93

94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
//
// "$Id: mac.H 6614 2009-01-01 16:11:32Z matt $"
//
// Mac header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................

#if !defined(Fl_X_H)
#  error "Never use <FL/mac.H> directly; include <FL/x.H> instead."
#endif // !Fl_X_H

// Standard MacOS Carbon API includes...
#include <Carbon/Carbon.h>





























// Now make some fixes to the headers...
#undef check			// Dunno where this comes from...

// Some random X equivalents
typedef WindowPtr Window;
struct XPoint { int x, y; };
struct XRectangle {int x, y, width, height;};































typedef RgnHandle Fl_Region;
void fl_clip_region(Fl_Region);
inline Fl_Region XRectangleRegion(int x, int y, int w, int h) {
  Fl_Region R = NewRgn();
  SetRectRgn(R, x, y, x+w, y+h);
  return R;
}
inline void XDestroyRegion(Fl_Region r) {
  DisposeRgn(r);
}









#  include "Fl_Window.H"

// This object contains all mac-specific stuff about a window:
// WARNING: this object is highly subject to change!
class Fl_X 
{
public:
  Window xid;              // Mac WindowPtr
  GWorldPtr other_xid;     // pointer for offscreen bitmaps (doublebuffer)
  Fl_Window *w;            // FLTK window for 
  Fl_Region region;
  Fl_Region subRegion;     // region for this specific subwindow
  Fl_X *next;              // linked tree to support subwindows
  Fl_X *xidChildren, *xidNext; // more subwindow tree
  int wait_for_expose;



  CursHandle cursor;

  static Fl_X* first;
  static Fl_X* i(const Fl_Window* w) {return w->i;}
  static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&);
  static void make(Fl_Window*);
  void flush();
  // Quartz additions:
  CGContextRef gc;                 // graphics context (NULL when using QD)
  static ATSUTextLayout atsu_layout; // windows share a global font
  static ATSUStyle      atsu_style;
  static void q_fill_context();    // fill a Quartz context with current FLTK state
  static void q_clear_clipping();  // remove all clipping from a Quartz context
  static void q_release_context(Fl_X *x=0); // free all resources associated with fl_gc
  static void q_begin_image(CGRect&, int x, int y, int w, int h);
  static void q_end_image();
};










extern void MacDestroyWindow(Fl_Window*,WindowPtr);
extern void MacMapWindow(Fl_Window*,WindowPtr);
extern void MacUnmapWindow(Fl_Window*,WindowPtr);


extern int MacUnlinkWindow(Fl_X*,Fl_X*start=0L);


inline Window fl_xid(const Fl_Window*w) 
{
  return Fl_X::i(w)->xid;
}

extern CursHandle fl_default_cursor;

extern struct Fl_XMap {
  RGBColor rgb;
  ulong pen;
} *fl_current_xmap;

extern FL_EXPORT void *fl_display;
extern FL_EXPORT Window fl_window;
extern FL_EXPORT CGContextRef fl_gc;
extern FL_EXPORT Handle fl_system_menu;
extern FL_EXPORT class Fl_Sys_Menu_Bar *fl_sys_menu_bar;

typedef GWorldPtr Fl_Offscreen;

extern Fl_Offscreen fl_create_offscreen(int w, int h);
extern void fl_copy_offscreen(int x,int y,int w,int h, Fl_Offscreen gWorld, int srcx,int srcy);
extern void fl_delete_offscreen(Fl_Offscreen gWorld);
extern void fl_begin_offscreen(Fl_Offscreen gWorld);
extern void fl_end_offscreen();

typedef GWorldPtr Fl_Bitmask; // Carbon requires a 1-bit GWorld instead of a BitMap

extern FL_EXPORT Fl_Bitmask fl_create_bitmask(int w, int h, const uchar *data);
extern FL_EXPORT Fl_Bitmask fl_create_alphamask(int w, int h, int d, int ld, const uchar *data);
extern FL_EXPORT void fl_delete_bitmask(Fl_Bitmask bm);

extern void fl_open_display();

// Register a function for opening files via the finder...
extern void fl_open_callback(void (*cb)(const char *));

extern FL_EXPORT int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b);
#endif // FL_DOXYGEN
//
// End of "$Id: mac.H 6614 2009-01-01 16:11:32Z matt $".
//


|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>





<


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

<








>
>
>
>
>
>
>
>








|
|






>
>
>

>







<
<







>
>
>
>
>
>
>
>
>



>
>

>






<
<








<


<







<













|


1
2
3
4
5
6
7
8
9
..
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105

106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149


150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178


179
180
181
182
183
184
185
186

187
188

189
190
191
192
193
194
195

196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
//
// "$Id: mac.H 7035 2010-01-29 21:16:20Z manolo $"
//
// Mac header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................

#if !defined(Fl_X_H)
#  error "Never use <FL/mac.H> directly; include <FL/x.H> instead."
#endif // !Fl_X_H

// Standard MacOS Carbon API includes...
#include <Carbon/Carbon.h>
#include <config.h>

#ifdef __APPLE_COCOA__
#ifndef MAC_OS_X_VERSION_10_3
#define MAC_OS_X_VERSION_10_3 1030
#endif
#ifndef MAC_OS_X_VERSION_10_4
#define MAC_OS_X_VERSION_10_4 1040
#endif
#ifndef MAC_OS_X_VERSION_10_5
#define MAC_OS_X_VERSION_10_5 1050
#endif
#ifndef MAC_OS_X_VERSION_10_6
#define MAC_OS_X_VERSION_10_6 1060
#endif
#ifndef MAC_OS_X_VERSION_MAX_ALLOWED
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_3
#endif
#endif // __APPLE_COCOA__

#ifndef CGFLOAT_DEFINED //appears with 10.5 in CGBase.h
#if defined(__LP64__) && __LP64__
typedef double CGFloat;
#else
typedef float CGFloat;
#endif
#endif // CGFLOAT_DEFINED


// Now make some fixes to the headers...
#undef check			// Dunno where this comes from...

// Some random X equivalents

struct XPoint { int x, y; };
struct XRectangle {int x, y, width, height;};

#ifdef __APPLE_COCOA__
// necessary so a CGRect matches exactly what is denoted x,y,w,h for clipping purposes
#define FL_CGRECTMAKE_COCOA(x,y,w,h)  CGRectMake(x, y, w > 0 ? w - 0.9 : 0, h > 0 ? h - 0.9 : 0)

typedef void *Window; // this is really a pter to the subclass FLWindow of NSWindow
typedef struct flCocoaRegion {
  int count;
  CGRect *rects;
} *Fl_Region;  // a region is the union of a series of rectangles
inline Fl_Region XRectangleRegion(int x, int y, int w, int h) {
  Fl_Region R = (Fl_Region)malloc(sizeof(*R));
  R->count = 1;
  R->rects = (CGRect *)malloc(sizeof(CGRect));
  *(R->rects) = FL_CGRECTMAKE_COCOA(x, y, w, h);
  return R;
}
inline void XDestroyRegion(Fl_Region r) {
  if(r) {
	free(r->rects);
	free(r);
	}
}
extern void *fl_default_cursor;
extern void *fl_system_menu;
typedef CGContextRef Fl_Offscreen;
typedef CGImageRef Fl_Bitmask;

#else

typedef WindowRef Window;
typedef RgnHandle Fl_Region;

inline Fl_Region XRectangleRegion(int x, int y, int w, int h) {
  Fl_Region R = NewRgn();
  SetRectRgn(R, x, y, x+w, y+h);
  return R;
}
inline void XDestroyRegion(Fl_Region r) {
  DisposeRgn(r);
}
extern CursHandle fl_default_cursor;
extern Handle fl_system_menu;
typedef GWorldPtr Fl_Offscreen;
typedef GWorldPtr Fl_Bitmask; // Carbon requires a 1-bit GWorld instead of a BitMap

#endif

void fl_clip_region(Fl_Region);

#  include "Fl_Window.H"

// This object contains all mac-specific stuff about a window:
// WARNING: this object is highly subject to change!
class Fl_X 
{
public:
  Window xid;              // Cocoa: FLWindow* ; Carbon: WindowRef
  Fl_Offscreen other_xid;  // pointer for offscreen bitmaps (doublebuffer)
  Fl_Window *w;            // FLTK window for 
  Fl_Region region;
  Fl_Region subRegion;     // region for this specific subwindow
  Fl_X *next;              // linked tree to support subwindows
  Fl_X *xidChildren, *xidNext; // more subwindow tree
  int wait_for_expose;
#ifdef __APPLE_COCOA__
  void *cursor;			  // is really NSCursor*
#else
  CursHandle cursor;
#endif
  static Fl_X* first;
  static Fl_X* i(const Fl_Window* w) {return w->i;}
  static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&);
  static void make(Fl_Window*);
  void flush();
  // Quartz additions:
  CGContextRef gc;                 // graphics context (NULL when using QD)


  static void q_fill_context();    // fill a Quartz context with current FLTK state
  static void q_clear_clipping();  // remove all clipping from a Quartz context
  static void q_release_context(Fl_X *x=0); // free all resources associated with fl_gc
  static void q_begin_image(CGRect&, int x, int y, int w, int h);
  static void q_end_image();
};

#ifdef __APPLE_COCOA__
extern void MacDestroyWindow(Fl_Window*,void *);
extern void MacMapWindow(Fl_Window*,void *);
extern void MacUnmapWindow(Fl_Window*,void *);
extern WindowRef MACwindowRef(Fl_Window *w);
extern Fl_Region MacRectRegionIntersect(Fl_Region current, int x,int y,int w, int h);
extern void MacCollapseWindow(Window w);
extern void fl_mac_set_about( Fl_Callback *cb, void *user_data, int shortcut = 0);
#else
extern void MacDestroyWindow(Fl_Window*,WindowPtr);
extern void MacMapWindow(Fl_Window*,WindowPtr);
extern void MacUnmapWindow(Fl_Window*,WindowPtr);
#endif

extern int MacUnlinkWindow(Fl_X*,Fl_X*start=0L);
extern void fl_open_callback(void (*cb)(const char *));

inline Window fl_xid(const Fl_Window*w) 
{
  return Fl_X::i(w)->xid;
}



extern struct Fl_XMap {
  RGBColor rgb;
  ulong pen;
} *fl_current_xmap;

extern FL_EXPORT void *fl_display;
extern FL_EXPORT Window fl_window;
extern FL_EXPORT CGContextRef fl_gc;

extern FL_EXPORT class Fl_Sys_Menu_Bar *fl_sys_menu_bar;



extern Fl_Offscreen fl_create_offscreen(int w, int h);
extern void fl_copy_offscreen(int x,int y,int w,int h, Fl_Offscreen gWorld, int srcx,int srcy);
extern void fl_delete_offscreen(Fl_Offscreen gWorld);
extern void fl_begin_offscreen(Fl_Offscreen gWorld);
extern void fl_end_offscreen();



extern FL_EXPORT Fl_Bitmask fl_create_bitmask(int w, int h, const uchar *data);
extern FL_EXPORT Fl_Bitmask fl_create_alphamask(int w, int h, int d, int ld, const uchar *data);
extern FL_EXPORT void fl_delete_bitmask(Fl_Bitmask bm);

extern void fl_open_display();

// Register a function for opening files via the finder...
extern void fl_open_callback(void (*cb)(const char *));

extern FL_EXPORT int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b);
#endif // FL_DOXYGEN
//
// End of "$Id: mac.H 7035 2010-01-29 21:16:20Z manolo $".
//

Changes to fltk-1.3/cairo/makedepend.







>
>
>
1
2
3
# DO NOT DELETE

Fl_Cairo.o: ../config.h ../FL/Fl_Export.H

Changes to fltk-1.3/config.h.

1
2
3

4
5
6
7
8
9
10
..
22
23
24
25
26
27
28


29
30
31
32
33
34
35
..
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
..
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
...
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
...
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
...
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
...
317
318
319
320
321
322
323
324
325
326
327
328
329

/* config.h.  Generated from configh.in by configure.  */
/*
 * "$Id: configh.in 6833 2009-07-23 22:51:56Z AlbrechtS $"

 *
 * Configuration file for the Fast Light Tool Kit (FLTK).
 * @configure_input@
 *
 * Copyright 1998-2009 by Bill Spitzak and others.
 *
 * This library is free software; you can redistribute it and/or
................................................................................
 * 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
 */



/*
 * Where to find files...
 */

#define FLTK_DATADIR "/usr/local/share/fltk"
#define FLTK_DOCDIR "/usr/local/share/doc/fltk"
................................................................................

/*
 * HAVE_GLXGETPROCADDRESSARB:
 *
 * Do you have the OpenGL glXGetProcAddressARB() function?
 */

#define HAVE_GLXGETPROCADDRESSARB 1

/*
 * USE_COLORMAP:
 *
 * Setting this to zero will save a good deal of code (especially for
 * fl_draw_image), but FLTK will only work on TrueColor visuals.
 */
................................................................................

/*
 * HAVE_XINERAMA
 *
 * Do we have the Xinerama library to support multi-head displays?
 */

#define HAVE_XINERAMA 1

/*
 * USE_XFT
 *
 * Use the new Xft library to draw anti-aliased text.
 */

#define USE_XFT 1

/*
 * HAVE_XDBE:
 *
 * Do we have the X double-buffer extension?
 */

#define HAVE_XDBE 1

/*
 * USE_XDBE:
 *
 * Actually try to use the double-buffer extension?
 */

#define USE_XDBE HAVE_XDBE

/*
 * USE_QUARTZ:
 *
 * Use Quartz instead of Quickdraw on Apple Mac OS X machines.
 * FLTK was originally ported to Quickdraw which is no longer 
 * supported by Apple. If USE_QUARTZ is defined, FLTK will be
 * compiled using Quartz instead. This flag has no meaning on
 * other operating systems.
 */

#define USE_QUARTZ 0
/* #undef __APPLE_QUARTZ__ */
/* #undef __APPLE_QD__ */


/*
 * USE_X11
 *
 * Should we use X11 for the current platform
 *
 */

#define USE_X11 1

/*
 * HAVE_OVERLAY:
 *
 * Use the X overlay extension?  FLTK will try to use an overlay
 * visual for Fl_Overlay_Window, the Gl_Window overlay, and for the
 * menus.  Setting this to zero will remove a substantial amount of
 * code from FLTK.  Overlays have only been tested on SGI servers!
................................................................................
 */

#define U16 unsigned short
#define U32 unsigned
/* #undef U64 */

/*
 * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H,
 * HAVE_SCANDIR, HAVE_SCANDIR_POSIX:
 *
 * Where is <dirent.h> (used only by fl_file_chooser and scandir).
 */

#define HAVE_DIRENT_H 1
/* #undef HAVE_SYS_NDIR_H */
/* #undef HAVE_SYS_DIR_H */
/* #undef HAVE_NDIR_H */
#define HAVE_SCANDIR 1
#define HAVE_SCANDIR_POSIX 1

/*
 * Possibly missing sprintf-style functions:
 */

#define HAVE_VSNPRINTF 1
#define HAVE_SNPRINTF 1
................................................................................

/*
 * HAVE_SYS_SELECT_H:
 *
 * Whether or not select() call has its own header file.
 */

#define HAVE_SYS_SELECT_H 1

/*
 * HAVE_SYS_STDTYPES_H:
 *
 * Whether or not we have the <sys/stdtypes.h> header file.
 */

................................................................................
 * Do we have various image libraries?
 */

#define HAVE_LIBPNG 1
#define HAVE_LIBZ 1
#define HAVE_LIBJPEG 1

/*
 * USE_CAIRO
 *
 * Do we have the cairo library available and want extended cairo use in fltk ?
 * will implies to link cairo.lib in all fltk based apps.
 */

/* #undef USE_CAIRO */

/*
 * HAVE_CAIRO
 *
 * Do we have the cairo library available?
 */

/* #undef HAVE_CAIRO */

/*
 * Which header file do we include for libpng?
 */

#define HAVE_PNG_H 1
/* #undef HAVE_LIBPNG_PNG_H */

/*
 * Do we have the png_xyz() functions?
 */

#define HAVE_PNG_GET_VALID 1
#define HAVE_PNG_SET_TRNS_TO_ALPHA 1

/*
 * Do we have POSIX threading?
 */

#define HAVE_PTHREAD 1
#define HAVE_PTHREAD_H 1

/*
 * Do we have the ALSA library?
 */

#define HAVE_ALSA_ASOUNDLIB_H 1

/*
 * Do we have the long long type?
 */

#define HAVE_LONG_LONG 1

................................................................................
#  define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
#endif /* !HAVE_STRTOLL */

/*
 * Do we have the dlsym() function and header?
 */

#define HAVE_DLFCN_H 1
#define HAVE_DLSYM 1

/*
 * End of "$Id: configh.in 6833 2009-07-23 22:51:56Z AlbrechtS $".
 */

<

<
>







 







>
>







 







|







 







|







|







|













|









<
<
<
<
<
<
<
<
<
<







 







|
<








|
<







 







|







 







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<











|
|





|
|





|







 







|
|


|

>

1

2
3
4
5
6
7
8
9
..
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
..
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
..
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134










135
136
137
138
139
140
141
...
168
169
170
171
172
173
174
175

176
177
178
179
180
181
182
183
184

185
186
187
188
189
190
191
...
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
...
234
235
236
237
238
239
240

















241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
...
289
290
291
292
293
294
295
296
297
298
299
300
301
302

/*

 * "$Id: config.mingw 6626 2009-01-12 14:52:45Z fabien $"
 *
 * Configuration file for the Fast Light Tool Kit (FLTK).
 * @configure_input@
 *
 * Copyright 1998-2009 by Bill Spitzak and others.
 *
 * This library is free software; you can redistribute it and/or
................................................................................
 * 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
 */

/* config.h.  Generated by configure.  */

/*
 * Where to find files...
 */

#define FLTK_DATADIR "/usr/local/share/fltk"
#define FLTK_DOCDIR "/usr/local/share/doc/fltk"
................................................................................

/*
 * HAVE_GLXGETPROCADDRESSARB:
 *
 * Do you have the OpenGL glXGetProcAddressARB() function?
 */

/* #undef HAVE_GLXGETPROCADDRESSARB */

/*
 * USE_COLORMAP:
 *
 * Setting this to zero will save a good deal of code (especially for
 * fl_draw_image), but FLTK will only work on TrueColor visuals.
 */
................................................................................

/*
 * HAVE_XINERAMA
 *
 * Do we have the Xinerama library to support multi-head displays?
 */

#define HAVE_XINERAMA 0

/*
 * USE_XFT
 *
 * Use the new Xft library to draw anti-aliased text.
 */

#define USE_XFT 0

/*
 * HAVE_XDBE:
 *
 * Do we have the X double-buffer extension?
 */

#define HAVE_XDBE 0

/*
 * USE_XDBE:
 *
 * Actually try to use the double-buffer extension?
 */

#define USE_XDBE HAVE_XDBE

/*
 * USE_QUARTZ:
 *
 * Use Quartz instead of Quickdraw on Apple Mac OS X machines.
 * FLTK was originally ported to Quickdraw which is no longer
 * supported by Apple. If USE_QUARTZ is defined, FLTK will be
 * compiled using Quartz instead. This flag has no meaning on
 * other operating systems.
 */

#define USE_QUARTZ 0
/* #undef __APPLE_QUARTZ__ */
/* #undef __APPLE_QD__ */











/*
 * HAVE_OVERLAY:
 *
 * Use the X overlay extension?  FLTK will try to use an overlay
 * visual for Fl_Overlay_Window, the Gl_Window overlay, and for the
 * menus.  Setting this to zero will remove a substantial amount of
 * code from FLTK.  Overlays have only been tested on SGI servers!
................................................................................
 */

#define U16 unsigned short
#define U32 unsigned
/* #undef U64 */

/*
 * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H, HAVE_SCANDIR:

 *
 * Where is <dirent.h> (used only by fl_file_chooser and scandir).
 */

#define HAVE_DIRENT_H 1
/* #undef HAVE_SYS_NDIR_H */
/* #undef HAVE_SYS_DIR_H */
/* #undef HAVE_NDIR_H */
/* #undef HAVE_SCANDIR */


/*
 * Possibly missing sprintf-style functions:
 */

#define HAVE_VSNPRINTF 1
#define HAVE_SNPRINTF 1
................................................................................

/*
 * HAVE_SYS_SELECT_H:
 *
 * Whether or not select() call has its own header file.
 */

/* #undef HAVE_SYS_SELECT_H */

/*
 * HAVE_SYS_STDTYPES_H:
 *
 * Whether or not we have the <sys/stdtypes.h> header file.
 */

................................................................................
 * Do we have various image libraries?
 */

#define HAVE_LIBPNG 1
#define HAVE_LIBZ 1
#define HAVE_LIBJPEG 1


















/*
 * Which header file do we include for libpng?
 */

#define HAVE_PNG_H 1
/* #undef HAVE_LIBPNG_PNG_H */

/*
 * Do we have the png_xyz() functions?
 */

/* #undef HAVE_PNG_GET_VALID */
/* #undef HAVE_PNG_SET_TRNS_TO_ALPHA */

/*
 * Do we have POSIX threading?
 */

/* #undef HAVE_PTHREAD */
/* #undef HAVE_PTHREAD_H */

/*
 * Do we have the ALSA library?
 */

/* #undef HAVE_ALSA_ASOUNDLIB_H */

/*
 * Do we have the long long type?
 */

#define HAVE_LONG_LONG 1

................................................................................
#  define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
#endif /* !HAVE_STRTOLL */

/*
 * Do we have the dlsym() function and header?
 */

/* #undef HAVE_DLFCN_H */
/* #undef HAVE_DLSYM */

/*
 * End of "$Id: config.mingw 6626 2009-01-12 14:52:45Z fabien $".
 */

Changes to fltk-1.3/config.log.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
..
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
...
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
...
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
...
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
...
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
...
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
...
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
...
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
...
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
...
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
...
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
....
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
....
1494
1495
1496
1497
1498
1499
1500






















This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = ronlap
uname -m = i686
uname -r = 2.6.31-fw3
uname -s = Linux
uname -v = #1 SMP PREEMPT Sun Oct 18 03:39:32 CEST 2009

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
................................................................................
PATH: /usr/local/texlive/2008/bin/i386-linux/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2215: checking for gcc
configure:2231: found /usr/bin/gcc
configure:2242: result: gcc
configure:2480: checking for C compiler version
configure:2487: gcc --version >&5
gcc (Frugalware Linux) 4.4.2
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2490: $? = 0
configure:2497: gcc -v >&5
Using built-in specs.
Target: i686-frugalware-linux
Configured with: ../gcc-4.4.2/configure --prefix=/usr --enable-java-awt=gtk --with-fastjar=/usr/bin/fastjar --enable-gtk-cairo --enable-plugin --disable-libjava-multilib --enable-hash-synchronization --with-ecj --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-languages=c,java,c++,objc,obj-c++,ada,fortran --enable-shared --enable-threads=posix --with-system-zlib --libdir=/usr/lib --disable-multilib --enable-target-optspace --enable-bootstrap --with-bugurl=http://bugs.frugalware.org/ --with-pkgversion='Frugalware Linux' --enable-linux-futex --disable-dependency-tracking --build=i686-frugalware-linux
Thread model: posix
gcc version 4.4.2 (Frugalware Linux) 
configure:2500: $? = 0
configure:2507: gcc -V >&5
gcc: '-V' option must have argument
configure:2510: $? = 1
configure:2533: checking for C compiler default output file name
configure:2560: gcc    conftest.c  >&5
configure:2563: $? = 0
configure:2601: result: a.out
configure:2618: checking whether the C compiler works
configure:2628: ./a.out
configure:2631: $? = 0
configure:2648: result: yes
configure:2655: checking whether we are cross compiling
configure:2657: result: no
configure:2660: checking for suffix of executables
configure:2667: gcc -o conftest    conftest.c  >&5
configure:2670: $? = 0
configure:2694: result: 
configure:2700: checking for suffix of object files
configure:2726: gcc -c   conftest.c >&5
configure:2729: $? = 0
configure:2752: result: o
configure:2756: checking whether we are using the GNU C compiler
configure:2785: gcc -c   conftest.c >&5
configure:2791: $? = 0
configure:2808: result: yes
configure:2813: checking whether gcc accepts -g
configure:2843: gcc -c -g  conftest.c >&5
configure:2849: $? = 0
configure:2948: result: yes
configure:2965: checking for gcc option to accept ISO C89
configure:3039: gcc  -c   conftest.c >&5
configure:3045: $? = 0
configure:3068: result: none needed
configure:3144: checking for g++
configure:3160: found /usr/bin/g++
configure:3171: result: g++
configure:3202: checking for C++ compiler version
configure:3209: g++ --version >&5
g++ (Frugalware Linux) 4.4.2
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3212: $? = 0
configure:3219: g++ -v >&5
Using built-in specs.
Target: i686-frugalware-linux
Configured with: ../gcc-4.4.2/configure --prefix=/usr --enable-java-awt=gtk --with-fastjar=/usr/bin/fastjar --enable-gtk-cairo --enable-plugin --disable-libjava-multilib --enable-hash-synchronization --with-ecj --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-languages=c,java,c++,objc,obj-c++,ada,fortran --enable-shared --enable-threads=posix --with-system-zlib --libdir=/usr/lib --disable-multilib --enable-target-optspace --enable-bootstrap --with-bugurl=http://bugs.frugalware.org/ --with-pkgversion='Frugalware Linux' --enable-linux-futex --disable-dependency-tracking --build=i686-frugalware-linux
Thread model: posix
gcc version 4.4.2 (Frugalware Linux) 
configure:3222: $? = 0
configure:3229: g++ -V >&5
g++: '-V' option must have argument
configure:3232: $? = 1
configure:3235: checking whether we are using the GNU C++ compiler
configure:3264: g++ -c   conftest.cpp >&5
configure:3270: $? = 0
configure:3287: result: yes
configure:3292: checking whether g++ accepts -g
configure:3322: g++ -c -g  conftest.cpp >&5
configure:3328: $? = 0
configure:3427: result: yes
configure:3494: checking for a BSD-compatible install
configure:3550: result: /usr/bin/ginstall -c
configure:3572: checking for nroff
configure:3590: found /usr/bin/nroff
configure:3602: result: /usr/bin/nroff
configure:3660: checking for htmldoc
configure:3693: result: no
configure:3700: checking for doxygen
configure:3733: result: no
configure:3782: checking for ranlib
configure:3798: found /usr/bin/ranlib
configure:3809: result: ranlib
configure:3837: checking for ar
configure:3855: found /usr/bin/ar
configure:3867: result: /usr/bin/ar
configure:3896: checking how to run the C preprocessor
configure:3936: gcc -E  conftest.c
configure:3942: $? = 0
configure:3973: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:3979: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4012: result: gcc -E
configure:4041: gcc -E  conftest.c
configure:4047: $? = 0
configure:4078: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:4084: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4122: checking for grep that handles long lines and -e
configure:4196: result: /usr/bin/grep
configure:4201: checking for egrep
configure:4279: result: /usr/bin/grep -E
configure:4284: checking for ANSI C header files
configure:4314: gcc -c   conftest.c >&5
configure:4320: $? = 0
configure:4419: gcc -o conftest    conftest.c  >&5
configure:4422: $? = 0
configure:4428: ./conftest
configure:4431: $? = 0
configure:4448: result: yes
configure:4472: checking for sys/types.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for sys/stat.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for stdlib.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for string.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for memory.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for strings.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for inttypes.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for stdint.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4472: checking for unistd.h
configure:4493: gcc -c   conftest.c >&5
configure:4499: $? = 0
configure:4515: result: yes
configure:4527: checking whether byte ordering is bigendian
configure:4560: gcc -c   conftest.c >&5
configure:4566: $? = 0
configure:4598: gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:25: error: 'not' undeclared (first use in this function)
conftest.c:25: error: (Each undeclared identifier is reported only once
conftest.c:25: error: for each function it appears in.)
conftest.c:25: error: expected ';' before 'big'
configure:4604: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #if BYTE_ORDER != BIG_ENDIAN
|  not big endian
| #endif
| 
|   ;
|   return 0;
| }
configure:4744: result: no
configure:4764: checking for short
configure:4794: gcc -c   conftest.c >&5
configure:4800: $? = 0
configure:4815: result: yes
configure:4822: checking size of short
configure:5124: gcc -o conftest    conftest.c  >&5
configure:5127: $? = 0
configure:5133: ./conftest
configure:5136: $? = 0
configure:5159: result: 2
configure:5169: checking for int
configure:5199: gcc -c   conftest.c >&5
configure:5205: $? = 0
configure:5220: result: yes
configure:5227: checking size of int
configure:5529: gcc -o conftest    conftest.c  >&5
configure:5532: $? = 0
configure:5538: ./conftest
configure:5541: $? = 0
configure:5564: result: 4
configure:5574: checking for long
configure:5604: gcc -c   conftest.c >&5
configure:5610: $? = 0
configure:5625: result: yes
configure:5632: checking size of long
configure:5934: gcc -o conftest    conftest.c  >&5
configure:5937: $? = 0
configure:5943: ./conftest
configure:5946: $? = 0
configure:5969: result: 4
configure:6013: checking whether the compiler recognizes bool as a built-in type
configure:6054: g++ -c   conftest.cpp >&5
configure:6060: $? = 0
configure:6082: result: yes
configure:6097: checking for dirent.h that defines DIR
configure:6126: gcc -c   conftest.c >&5
configure:6132: $? = 0
configure:6148: result: yes
configure:6161: checking for library containing opendir
configure:6202: gcc -o conftest    conftest.c  >&5
configure:6208: $? = 0
configure:6236: result: none required
configure:6340: checking sys/select.h usability
configure:6357: gcc -c   conftest.c >&5
configure:6363: $? = 0
configure:6377: result: yes
configure:6381: checking sys/select.h presence
configure:6396: gcc -E  conftest.c
configure:6402: $? = 0
configure:6416: result: yes
configure:6444: checking for sys/select.h
configure:6451: result: yes
configure:6473: checking sys/stdtypes.h usability
configure:6490: gcc -c   conftest.c >&5
conftest.c:58:26: error: sys/stdtypes.h: No such file or directory
configure:6496: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/stdtypes.h>
configure:6510: result: no
configure:6514: checking sys/stdtypes.h presence
configure:6529: gcc -E  conftest.c
conftest.c:25:26: error: sys/stdtypes.h: No such file or directory
configure:6535: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #define SIZEOF_LONG 4
| #define U16 unsigned short
| #define U32 unsigned
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_SELECT_H 1
| /* end confdefs.h.  */
| #include <sys/stdtypes.h>
configure:6549: result: no
configure:6577: checking for sys/stdtypes.h
configure:6584: result: no
configure:6596: checking for scandir
configure:6652: gcc -o conftest    conftest.c  >&5
configure:6658: $? = 0
configure:6675: result: yes
configure:6690: checking whether we have the POSIX compatible scandir() prototype
configure:6730: g++ -c   conftest.cpp >&5
configure:6736: $? = 0
configure:6758: result: yes
configure:6768: checking for vsnprintf
configure:6824: gcc -o conftest    conftest.c  >&5
conftest.c:50: warning: conflicting types for built-in function 'vsnprintf'
configure:6830: $? = 0
configure:6847: result: yes
configure:6885: checking for snprintf
configure:6941: gcc -o conftest    conftest.c  >&5
conftest.c:51: warning: conflicting types for built-in function 'snprintf'
configure:6947: $? = 0
configure:6964: result: yes
configure:7003: checking for strings.h
configure:7008: result: yes
configure:7141: checking for strcasecmp
configure:7197: gcc -o conftest    conftest.c  >&5
conftest.c:53: warning: conflicting types for built-in function 'strcasecmp'
configure:7203: $? = 0
configure:7221: result: yes
configure:7141: checking for strlcat
configure:7197: gcc -o conftest    conftest.c  >&5
/tmp/ccSvQSet.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `strlcat'
collect2: ld returned 1 exit status
configure:7203: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return strlcat ();
|   ;
|   return 0;
| }
configure:7221: result: no
configure:7141: checking for strlcpy
configure:7197: gcc -o conftest    conftest.c  >&5
/tmp/ccMlkGaY.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `strlcpy'
collect2: ld returned 1 exit status
configure:7203: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return strlcpy ();
|   ;
|   return 0;
| }
configure:7221: result: no
configure:7242: checking locale.h usability
configure:7259: gcc -c   conftest.c >&5
configure:7265: $? = 0
configure:7279: result: yes
configure:7283: checking locale.h presence
configure:7298: gcc -E  conftest.c
configure:7304: $? = 0
configure:7318: result: yes
configure:7346: checking for locale.h
configure:7353: result: yes
configure:7369: checking for localeconv
configure:7425: gcc -o conftest    conftest.c  >&5
configure:7431: $? = 0
configure:7449: result: yes
configure:7460: checking for library containing pow
configure:7501: gcc -o conftest    conftest.c  >&5
conftest.c:40: warning: conflicting types for built-in function 'pow'
/tmp/ccSwAZ7p.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `pow'
collect2: ld returned 1 exit status
configure:7507: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return pow ();
|   ;
|   return 0;
| }
configure:7501: gcc -o conftest    conftest.c -lm   >&5
conftest.c:40: warning: conflicting types for built-in function 'pow'
configure:7507: $? = 0
configure:7535: result: -lm
configure:7551: checking for special C compiler options needed for large files
configure:7644: result: no
configure:7650: checking for _FILE_OFFSET_BITS value needed for large files
configure:7685: gcc -c   conftest.c >&5
conftest.c:39: warning: left shift count >= width of type
conftest.c:39: warning: left shift count >= width of type
conftest.c:41: error: size of array 'off_t_is_large' is negative
configure:7691: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:7735: gcc -c   conftest.c >&5
configure:7741: $? = 0
configure:7759: result: 64
configure:7909: checking for long long int
configure:7960: result: yes
configure:7970: checking for strtoll
configure:8026: gcc -o conftest    conftest.c -lm  >&5
configure:8032: $? = 0
configure:8049: result: yes
configure:8059: checking for library containing dlsym
configure:8100: gcc -o conftest    conftest.c -lm  >&5
/tmp/ccWXWYUn.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `dlsym'
collect2: ld returned 1 exit status
configure:8106: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return dlsym ();
|   ;
|   return 0;
| }
configure:8100: gcc -o conftest    conftest.c -ldl  -lm  >&5
configure:8106: $? = 0
configure:8134: result: -ldl
configure:8155: checking dlfcn.h usability
configure:8172: gcc -c   conftest.c >&5
configure:8178: $? = 0
configure:8192: result: yes
configure:8196: checking dlfcn.h presence
configure:8211: gcc -E  conftest.c
configure:8217: $? = 0
configure:8231: result: yes
configure:8259: checking for dlfcn.h
configure:8266: result: yes
configure:8301: checking alsa/asoundlib.h usability
configure:8318: gcc -c   conftest.c >&5
configure:8324: $? = 0
configure:8338: result: yes
configure:8342: checking alsa/asoundlib.h presence
configure:8357: gcc -E  conftest.c
configure:8363: $? = 0
configure:8377: result: yes
configure:8405: checking for alsa/asoundlib.h
configure:8412: result: yes
configure:8449: checking for jpeg_CreateCompress in -ljpeg
configure:8484: gcc -o conftest    conftest.c -ljpeg  -ldl -lm  >&5
configure:8490: $? = 0
configure:8508: result: yes
configure:8521: checking jpeglib.h usability
configure:8538: gcc -c   conftest.c >&5
configure:8544: $? = 0
configure:8558: result: yes
configure:8562: checking jpeglib.h presence
configure:8577: gcc -E  conftest.c
configure:8583: $? = 0
configure:8597: result: yes
configure:8625: checking for jpeglib.h
configure:8632: result: yes
configure:8686: checking for gzgets in -lz
configure:8721: gcc -o conftest    conftest.c -lz  -ldl -lm  >&5
configure:8727: $? = 0
configure:8745: result: yes
configure:8758: checking zlib.h usability
configure:8775: gcc -c   conftest.c >&5
configure:8781: $? = 0
configure:8795: result: yes
configure:8799: checking zlib.h presence
configure:8814: gcc -E  conftest.c
configure:8820: $? = 0
configure:8834: result: yes
configure:8862: checking for zlib.h
configure:8869: result: yes
configure:8927: checking for png_read_info in -lpng
configure:8962: gcc -o conftest    conftest.c -lpng  -lz -ldl -lm  >&5
configure:8968: $? = 0
configure:8986: result: yes
configure:8999: checking png.h usability
configure:9016: gcc -c   conftest.c >&5
configure:9022: $? = 0
configure:9036: result: yes
configure:9040: checking png.h presence
configure:9055: gcc -E  conftest.c
configure:9061: $? = 0
configure:9075: result: yes
configure:9103: checking for png.h
configure:9110: result: yes
configure:9133: checking libpng/png.h usability
configure:9150: gcc -c   conftest.c >&5
conftest.c:75:24: error: libpng/png.h: No such file or directory
configure:9156: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <libpng/png.h>
configure:9170: result: no
configure:9174: checking libpng/png.h presence
configure:9189: gcc -E  conftest.c
conftest.c:42:24: error: libpng/png.h: No such file or directory
configure:9195: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #define HAVE_DLFCN_H 1
| #define HAVE_ALSA_ASOUNDLIB_H 1
| #define HAVE_LIBJPEG 1
| #define HAVE_LIBZ 1
| #define HAVE_PNG_H 1
| /* end confdefs.h.  */
| #include <libpng/png.h>
configure:9209: result: no
configure:9237: checking for libpng/png.h
configure:9244: result: no
configure:9300: checking for png_get_valid in -lpng
configure:9335: gcc -o conftest    conftest.c -lpng  -lz -ldl -lm  >&5
configure:9341: $? = 0
configure:9359: result: yes
configure:9368: checking for png_set_tRNS_to_alpha in -lpng
configure:9403: gcc -o conftest    conftest.c -lpng  -lz -ldl -lm  >&5
configure:9409: $? = 0
configure:9427: result: yes
configure:9463: checking pthread.h usability
configure:9480: gcc -c   conftest.c >&5
configure:9486: $? = 0
configure:9500: result: yes
configure:9504: checking pthread.h presence
configure:9519: gcc -E  conftest.c
configure:9525: $? = 0
configure:9539: result: yes
configure:9567: checking for pthread.h
configure:9574: result: yes
configure:9589: checking for pthread_create using -lpthreads
configure:9614: gcc -o conftest    conftest.c -lpthreads -ldl -lm  >&5
/usr/lib/gcc/i686-frugalware-linux/4.4.2/../../../../i686-frugalware-linux/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
configure:9620: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| pthread_create(0, 0, 0, 0);
|   ;
|   return 0;
| }
configure:9636: result: no
configure:9589: checking for pthread_create using -lpthread
configure:9614: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:9620: $? = 0
configure:9636: result: yes
configure:10037: checking for X
configure:10207: gcc -o conftest    conftest.c -lX11 -lpthread -ldl -lm  >&5
configure:10213: $? = 0
configure:10272: result: libraries , headers 
configure:10433: gcc -o conftest    conftest.c -lpthread -ldl -lm   -lX11 >&5
configure:10439: $? = 0
configure:10596: checking for gethostbyname
configure:10652: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:10658: $? = 0
configure:10675: result: yes
configure:10820: checking for connect
configure:10876: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:10882: $? = 0
configure:10899: result: yes
configure:10971: checking for remove
configure:11027: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:11033: $? = 0
configure:11050: result: yes
configure:11122: checking for shmat
configure:11178: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:11184: $? = 0
configure:11201: result: yes
configure:11282: checking for IceConnectionNumber in -lICE
configure:11317: gcc -o conftest    conftest.c -lICE  -lpthread -ldl -lm  >&5
configure:11323: $? = 0
configure:11341: result: yes
configure:11359: WARNING: Ignoring libraries " -lSM -lICE" requested by configure.
configure:11379: checking for library containing dlopen
configure:11420: gcc -o conftest      conftest.c -lpthread -ldl -lm  -lX11  >&5
configure:11426: $? = 0
configure:11454: result: none required
configure:11472: checking GL/gl.h usability
configure:11489: gcc -c    conftest.c >&5
configure:11495: $? = 0
configure:11509: result: yes
configure:11513: checking GL/gl.h presence
configure:11528: gcc -E  conftest.c
configure:11534: $? = 0
configure:11548: result: yes
configure:11576: checking for GL/gl.h
configure:11583: result: yes
configure:11588: checking for glXMakeCurrent in -lGL
configure:11623: gcc -o conftest      conftest.c -lGL -lm -lpthread -ldl -lm  -lX11  >&5
configure:11629: $? = 0
configure:11647: result: yes
configure:11725: checking for glXGetProcAddressARB in -lGL
configure:11760: gcc -o conftest      conftest.c -lGL -lm -lpthread -ldl -lm  -lX11  >&5
configure:11766: $? = 0
configure:11784: result: yes
configure:11807: checking GL/glu.h usability
configure:11824: gcc -c    conftest.c >&5
configure:11830: $? = 0
configure:11844: result: yes
configure:11848: checking GL/glu.h presence
configure:11863: gcc -E  conftest.c
configure:11869: $? = 0
configure:11883: result: yes
configure:11911: checking for GL/glu.h
configure:11918: result: yes
configure:11958: checking for XineramaIsActive in -lXinerama
configure:11993: gcc -o conftest      conftest.c -lXinerama  -lpthread -ldl -lm  -lX11  >&5
configure:11999: $? = 0
configure:12017: result: yes
configure:12038: checking for freetype-config
configure:12056: found /usr/bin/freetype-config
configure:12068: result: /usr/bin/freetype-config
configure:12082: checking for FcPatternCreate in -lfontconfig
configure:12117: gcc -o conftest   -I/usr/include/freetype2    conftest.c -lfontconfig  -lXinerama -lpthread -ldl -lm  -lX11  >&5
configure:12123: $? = 0
configure:12141: result: yes
configure:12162: checking X11/Xft/Xft.h usability
configure:12179: gcc -c   -I/usr/include/freetype2  conftest.c >&5
configure:12185: $? = 0
configure:12199: result: yes
configure:12203: checking X11/Xft/Xft.h presence
configure:12218: gcc -E -I/usr/include/freetype2  conftest.c
configure:12224: $? = 0
configure:12238: result: yes
configure:12266: checking for X11/Xft/Xft.h
configure:12273: result: yes
configure:12278: checking for XftDrawCreate in -lXft
configure:12313: gcc -o conftest   -I/usr/include/freetype2    conftest.c -lXft  -lfontconfig -lXinerama -lpthread -ldl -lm  -lX11  >&5
configure:12319: $? = 0
configure:12337: result: yes
configure:12360: checking for X11/extensions/Xdbe.h
configure:12381: gcc -c   -I/usr/include/freetype2  conftest.c >&5
configure:12387: $? = 0
configure:12402: result: yes
configure:12412: checking for XdbeQueryExtension in -lXext
configure:12447: gcc -o conftest   -I/usr/include/freetype2    conftest.c -lXext  -lXft -lfontconfig -lXinerama -lpthread -ldl -lm  -lX11  >&5
configure:12453: $? = 0
configure:12471: result: yes
configure:12481: checking for xprop
configure:12499: found /usr/bin/xprop
configure:12511: result: /usr/bin/xprop
configure:12519: checking for X overlay visuals
configure:12534: result: no
configure:12669: checking if GCC supports -fno-exceptions
configure:12694: gcc -c   -fno-exceptions -I/usr/include/freetype2  conftest.c >&5
configure:12700: $? = 0
configure:12706: result: yes
configure:12720: checking if GCC supports -fno-strict-aliasing
configure:12745: gcc -c   -fno-strict-aliasing -I/usr/include/freetype2  conftest.c >&5
configure:12751: $? = 0
configure:12757: result: yes
configure:13131: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on ronlap

config.status:678: creating makeinclude
config.status:678: creating fltk.list
config.status:678: creating fltk-config
config.status:678: creating fltk.spec
config.status:678: creating FL/Makefile
config.status:678: creating config.h
config.status:943: config.h is unchanged

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
................................................................................
#define HAVE_LIBFONTCONFIG 1
#define USE_XFT 1
#define HAVE_XDBE 1
#define FLTK_DOCDIR "/usr/local/share/doc/fltk"
#define FLTK_DATADIR "/usr/local/share/fltk"

configure: exit 0




























|







|

|







 







|
|
|
|
|
|
|



|
|


|

|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|



|
|


|

|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|









|
|
|
|

|









|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|





|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|







 







|
|
|

|







 







|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|
|
|

|
|
|
|
|


|







 







|
|
|
|


|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|


|







 







|

|
|
|
|
|
|



|







 







|
|
|
|
|
|
|
|
|
|
|
|


|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|







 







|
|
|

|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
..
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
...
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
...
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
...
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
...
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
...
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
...
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
...
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
...
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
...
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
...
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
....
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167























1168
1169
1170
1171
1172
1173
1174
....
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure --no-create --no-recursion

## --------- ##
## Platform. ##
## --------- ##

hostname = ronlap
uname -m = i686
uname -r = 2.6.32-fw3
uname -s = Linux
uname -v = #1 SMP PREEMPT Sat Feb 13 15:07:39 CET 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
................................................................................
PATH: /usr/local/texlive/2008/bin/i386-linux/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2219: checking for gcc
configure:2235: found /usr/bin/gcc
configure:2246: result: gcc
configure:2484: checking for C compiler version
configure:2491: gcc --version >&5
gcc (Frugalware Linux) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2494: $? = 0
configure:2501: gcc -v >&5
Using built-in specs.
Target: i686-frugalware-linux
Configured with: ../gcc-4.4.3/configure --prefix=/usr --enable-java-awt=gtk --with-fastjar=/usr/bin/fastjar --enable-gtk-cairo --enable-plugin --disable-libjava-multilib --enable-hash-synchronization --with-ecj --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-languages=c,java,c++,objc,obj-c++,ada,fortran --enable-shared --enable-threads=posix --with-system-zlib --libdir=/usr/lib --disable-multilib --enable-target-optspace --enable-bootstrap --with-bugurl=http://bugs.frugalware.org/ --with-pkgversion='Frugalware Linux' --enable-linux-futex --disable-dependency-tracking --build=i686-frugalware-linux
Thread model: posix
gcc version 4.4.3 (Frugalware Linux) 
configure:2504: $? = 0
configure:2511: gcc -V >&5
gcc: '-V' option must have argument
configure:2514: $? = 1
configure:2537: checking for C compiler default output file name
configure:2564: gcc    conftest.c  >&5
configure:2567: $? = 0
configure:2605: result: a.out
configure:2622: checking whether the C compiler works
configure:2632: ./a.out
configure:2635: $? = 0
configure:2652: result: yes
configure:2659: checking whether we are cross compiling
configure:2661: result: no
configure:2664: checking for suffix of executables
configure:2671: gcc -o conftest    conftest.c  >&5
configure:2674: $? = 0
configure:2698: result: 
configure:2704: checking for suffix of object files
configure:2730: gcc -c   conftest.c >&5
configure:2733: $? = 0
configure:2756: result: o
configure:2760: checking whether we are using the GNU C compiler
configure:2789: gcc -c   conftest.c >&5
configure:2795: $? = 0
configure:2812: result: yes
configure:2817: checking whether gcc accepts -g
configure:2847: gcc -c -g  conftest.c >&5
configure:2853: $? = 0
configure:2952: result: yes
configure:2969: checking for gcc option to accept ISO C89
configure:3043: gcc  -c   conftest.c >&5
configure:3049: $? = 0
configure:3072: result: none needed
configure:3148: checking for g++
configure:3164: found /usr/bin/g++
configure:3175: result: g++
configure:3206: checking for C++ compiler version
configure:3213: g++ --version >&5
g++ (Frugalware Linux) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3216: $? = 0
configure:3223: g++ -v >&5
Using built-in specs.
Target: i686-frugalware-linux
Configured with: ../gcc-4.4.3/configure --prefix=/usr --enable-java-awt=gtk --with-fastjar=/usr/bin/fastjar --enable-gtk-cairo --enable-plugin --disable-libjava-multilib --enable-hash-synchronization --with-ecj --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-languages=c,java,c++,objc,obj-c++,ada,fortran --enable-shared --enable-threads=posix --with-system-zlib --libdir=/usr/lib --disable-multilib --enable-target-optspace --enable-bootstrap --with-bugurl=http://bugs.frugalware.org/ --with-pkgversion='Frugalware Linux' --enable-linux-futex --disable-dependency-tracking --build=i686-frugalware-linux
Thread model: posix
gcc version 4.4.3 (Frugalware Linux) 
configure:3226: $? = 0
configure:3233: g++ -V >&5
g++: '-V' option must have argument
configure:3236: $? = 1
configure:3239: checking whether we are using the GNU C++ compiler
configure:3268: g++ -c   conftest.cpp >&5
configure:3274: $? = 0
configure:3291: result: yes
configure:3296: checking whether g++ accepts -g
configure:3326: g++ -c -g  conftest.cpp >&5
configure:3332: $? = 0
configure:3431: result: yes
configure:3498: checking for a BSD-compatible install
configure:3554: result: /usr/bin/ginstall -c
configure:3576: checking for nroff
configure:3594: found /usr/bin/nroff
configure:3606: result: /usr/bin/nroff
configure:3664: checking for htmldoc
configure:3697: result: no
configure:3704: checking for doxygen
configure:3737: result: no
configure:3786: checking for ranlib
configure:3802: found /usr/bin/ranlib
configure:3813: result: ranlib
configure:3841: checking for ar
configure:3859: found /usr/bin/ar
configure:3871: result: /usr/bin/ar
configure:3900: checking how to run the C preprocessor
configure:3940: gcc -E  conftest.c
configure:3946: $? = 0
configure:3977: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:3983: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4016: result: gcc -E
configure:4045: gcc -E  conftest.c
configure:4051: $? = 0
configure:4082: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:4088: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4126: checking for grep that handles long lines and -e
configure:4200: result: /usr/bin/grep
configure:4205: checking for egrep
configure:4283: result: /usr/bin/grep -E
configure:4288: checking for ANSI C header files
configure:4318: gcc -c   conftest.c >&5
configure:4324: $? = 0
configure:4423: gcc -o conftest    conftest.c  >&5
configure:4426: $? = 0
configure:4432: ./conftest
configure:4435: $? = 0
configure:4452: result: yes
configure:4476: checking for sys/types.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for sys/stat.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for stdlib.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for string.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for memory.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for strings.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for inttypes.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for stdint.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4476: checking for unistd.h
configure:4497: gcc -c   conftest.c >&5
configure:4503: $? = 0
configure:4519: result: yes
configure:4531: checking whether byte ordering is bigendian
configure:4564: gcc -c   conftest.c >&5
configure:4570: $? = 0
configure:4602: gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:25: error: 'not' undeclared (first use in this function)
conftest.c:25: error: (Each undeclared identifier is reported only once
conftest.c:25: error: for each function it appears in.)
conftest.c:25: error: expected ';' before 'big'
configure:4608: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #if BYTE_ORDER != BIG_ENDIAN
|  not big endian
| #endif
| 
|   ;
|   return 0;
| }
configure:4748: result: no
configure:4768: checking for short
configure:4798: gcc -c   conftest.c >&5
configure:4804: $? = 0
configure:4819: result: yes
configure:4826: checking size of short
configure:5128: gcc -o conftest    conftest.c  >&5
configure:5131: $? = 0
configure:5137: ./conftest
configure:5140: $? = 0
configure:5163: result: 2
configure:5173: checking for int
configure:5203: gcc -c   conftest.c >&5
configure:5209: $? = 0
configure:5224: result: yes
configure:5231: checking size of int
configure:5533: gcc -o conftest    conftest.c  >&5
configure:5536: $? = 0
configure:5542: ./conftest
configure:5545: $? = 0
configure:5568: result: 4
configure:5578: checking for long
configure:5608: gcc -c   conftest.c >&5
configure:5614: $? = 0
configure:5629: result: yes
configure:5636: checking size of long
configure:5938: gcc -o conftest    conftest.c  >&5
configure:5941: $? = 0
configure:5947: ./conftest
configure:5950: $? = 0
configure:5973: result: 4
configure:6017: checking whether the compiler recognizes bool as a built-in type
configure:6058: g++ -c   conftest.cpp >&5
configure:6064: $? = 0
configure:6086: result: yes
configure:6101: checking for dirent.h that defines DIR
configure:6130: gcc -c   conftest.c >&5
configure:6136: $? = 0
configure:6152: result: yes
configure:6165: checking for library containing opendir
configure:6206: gcc -o conftest    conftest.c  >&5
configure:6212: $? = 0
configure:6240: result: none required
configure:6344: checking sys/select.h usability
configure:6361: gcc -c   conftest.c >&5
configure:6367: $? = 0
configure:6381: result: yes
configure:6385: checking sys/select.h presence
configure:6400: gcc -E  conftest.c
configure:6406: $? = 0
configure:6420: result: yes
configure:6448: checking for sys/select.h
configure:6455: result: yes
configure:6477: checking sys/stdtypes.h usability
configure:6494: gcc -c   conftest.c >&5
conftest.c:58:26: error: sys/stdtypes.h: No such file or directory
configure:6500: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/stdtypes.h>
configure:6514: result: no
configure:6518: checking sys/stdtypes.h presence
configure:6533: gcc -E  conftest.c
conftest.c:25:26: error: sys/stdtypes.h: No such file or directory
configure:6539: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #define SIZEOF_LONG 4
| #define U16 unsigned short
| #define U32 unsigned
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_SELECT_H 1
| /* end confdefs.h.  */
| #include <sys/stdtypes.h>
configure:6553: result: no
configure:6581: checking for sys/stdtypes.h
configure:6588: result: no
configure:6600: checking for scandir
configure:6656: gcc -o conftest    conftest.c  >&5
configure:6662: $? = 0
configure:6679: result: yes
configure:6694: checking whether we have the POSIX compatible scandir() prototype
configure:6734: g++ -c   conftest.cpp >&5
configure:6740: $? = 0
configure:6762: result: yes
configure:6772: checking for vsnprintf
configure:6828: gcc -o conftest    conftest.c  >&5
conftest.c:50: warning: conflicting types for built-in function 'vsnprintf'
configure:6834: $? = 0
configure:6851: result: yes
configure:6889: checking for snprintf
configure:6945: gcc -o conftest    conftest.c  >&5
conftest.c:51: warning: conflicting types for built-in function 'snprintf'
configure:6951: $? = 0
configure:6968: result: yes
configure:7007: checking for strings.h
configure:7012: result: yes
configure:7145: checking for strcasecmp
configure:7201: gcc -o conftest    conftest.c  >&5
conftest.c:53: warning: conflicting types for built-in function 'strcasecmp'
configure:7207: $? = 0
configure:7225: result: yes
configure:7145: checking for strlcat
configure:7201: gcc -o conftest    conftest.c  >&5
/tmp/ccSRuaUI.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `strlcat'
collect2: ld returned 1 exit status
configure:7207: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return strlcat ();
|   ;
|   return 0;
| }
configure:7225: result: no
configure:7145: checking for strlcpy
configure:7201: gcc -o conftest    conftest.c  >&5
/tmp/ccvwalMO.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `strlcpy'
collect2: ld returned 1 exit status
configure:7207: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return strlcpy ();
|   ;
|   return 0;
| }
configure:7225: result: no
configure:7246: checking locale.h usability
configure:7263: gcc -c   conftest.c >&5
configure:7269: $? = 0
configure:7283: result: yes
configure:7287: checking locale.h presence
configure:7302: gcc -E  conftest.c
configure:7308: $? = 0
configure:7322: result: yes
configure:7350: checking for locale.h
configure:7357: result: yes
configure:7373: checking for localeconv
configure:7429: gcc -o conftest    conftest.c  >&5
configure:7435: $? = 0
configure:7453: result: yes
configure:7464: checking for library containing pow
configure:7505: gcc -o conftest    conftest.c  >&5
conftest.c:40: warning: conflicting types for built-in function 'pow'
/tmp/ccOnrSFB.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `pow'
collect2: ld returned 1 exit status
configure:7511: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return pow ();
|   ;
|   return 0;
| }
configure:7505: gcc -o conftest    conftest.c -lm   >&5
conftest.c:40: warning: conflicting types for built-in function 'pow'
configure:7511: $? = 0
configure:7539: result: -lm
configure:7555: checking for special C compiler options needed for large files
configure:7648: result: no
configure:7654: checking for _FILE_OFFSET_BITS value needed for large files
configure:7689: gcc -c   conftest.c >&5
conftest.c:39: warning: left shift count >= width of type
conftest.c:39: warning: left shift count >= width of type
conftest.c:41: error: size of array 'off_t_is_large' is negative
configure:7695: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:7739: gcc -c   conftest.c >&5
configure:7745: $? = 0
configure:7763: result: 64
configure:7913: checking for long long int
configure:7964: result: yes
configure:7974: checking for strtoll
configure:8030: gcc -o conftest    conftest.c -lm  >&5
configure:8036: $? = 0
configure:8053: result: yes
configure:8063: checking for library containing dlsym
configure:8104: gcc -o conftest    conftest.c -lm  >&5
/tmp/ccjW85al.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `dlsym'
collect2: ld returned 1 exit status
configure:8110: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| return dlsym ();
|   ;
|   return 0;
| }
configure:8104: gcc -o conftest    conftest.c -ldl  -lm  >&5
configure:8110: $? = 0
configure:8138: result: -ldl
configure:8159: checking dlfcn.h usability
configure:8176: gcc -c   conftest.c >&5
configure:8182: $? = 0
configure:8196: result: yes
configure:8200: checking dlfcn.h presence
configure:8215: gcc -E  conftest.c
configure:8221: $? = 0
configure:8235: result: yes
configure:8263: checking for dlfcn.h
configure:8270: result: yes
configure:8305: checking alsa/asoundlib.h usability
configure:8322: gcc -c   conftest.c >&5
configure:8328: $? = 0
configure:8342: result: yes
configure:8346: checking alsa/asoundlib.h presence
configure:8361: gcc -E  conftest.c
configure:8367: $? = 0
configure:8381: result: yes
configure:8409: checking for alsa/asoundlib.h
configure:8416: result: yes
configure:8453: checking for jpeg_CreateCompress in -ljpeg
configure:8488: gcc -o conftest    conftest.c -ljpeg  -ldl -lm  >&5
configure:8494: $? = 0
configure:8512: result: yes
configure:8525: checking jpeglib.h usability
configure:8542: gcc -c   conftest.c >&5
configure:8548: $? = 0
configure:8562: result: yes
configure:8566: checking jpeglib.h presence
configure:8581: gcc -E  conftest.c
configure:8587: $? = 0
configure:8601: result: yes
configure:8629: checking for jpeglib.h
configure:8636: result: yes
configure:8690: checking for gzgets in -lz
configure:8725: gcc -o conftest    conftest.c -lz  -ldl -lm  >&5
configure:8731: $? = 0
configure:8749: result: yes
configure:8762: checking zlib.h usability
configure:8779: gcc -c   conftest.c >&5
configure:8785: $? = 0
configure:8799: result: yes
configure:8803: checking zlib.h presence
configure:8818: gcc -E  conftest.c
configure:8824: $? = 0
configure:8838: result: yes
configure:8866: checking for zlib.h
configure:8873: result: yes
configure:8931: checking for png_read_info in -lpng
configure:8966: gcc -o conftest    conftest.c -lpng  -lz -ldl -lm  >&5
configure:8972: $? = 0
configure:8990: result: yes
configure:9003: checking png.h usability
configure:9020: gcc -c   conftest.c >&5
configure:9026: $? = 0
configure:9040: result: yes
configure:9044: checking png.h presence
configure:9059: gcc -E  conftest.c
configure:9065: $? = 0
configure:9079: result: yes
configure:9107: checking for png.h
configure:9114: result: yes
configure:9137: checking libpng/png.h usability
configure:9154: gcc -c   conftest.c >&5
conftest.c:75:24: error: libpng/png.h: No such file or directory
configure:9160: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <libpng/png.h>
configure:9174: result: no
configure:9178: checking libpng/png.h presence
configure:9193: gcc -E  conftest.c
conftest.c:42:24: error: libpng/png.h: No such file or directory
configure:9199: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| #define HAVE_DLFCN_H 1
| #define HAVE_ALSA_ASOUNDLIB_H 1
| #define HAVE_LIBJPEG 1
| #define HAVE_LIBZ 1
| #define HAVE_PNG_H 1
| /* end confdefs.h.  */
| #include <libpng/png.h>
configure:9213: result: no
configure:9241: checking for libpng/png.h
configure:9248: result: no
configure:9304: checking for png_get_valid in -lpng
configure:9339: gcc -o conftest    conftest.c -lpng  -lz -ldl -lm  >&5
configure:9345: $? = 0
configure:9363: result: yes
configure:9372: checking for png_set_tRNS_to_alpha in -lpng
configure:9407: gcc -o conftest    conftest.c -lpng  -lz -ldl -lm  >&5
configure:9413: $? = 0
configure:9431: result: yes
configure:9467: checking pthread.h usability
configure:9484: gcc -c   conftest.c >&5
configure:9490: $? = 0
configure:9504: result: yes
configure:9508: checking pthread.h presence
configure:9523: gcc -E  conftest.c
configure:9529: $? = 0
configure:9543: result: yes
configure:9571: checking for pthread.h
configure:9578: result: yes
configure:9593: checking for pthread_create using -lpthreads
configure:9618: gcc -o conftest    conftest.c -lpthreads -ldl -lm  >&5
/usr/lib/gcc/i686-frugalware-linux/4.4.3/../../../../i686-frugalware-linux/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
configure:9624: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
................................................................................
| int
| main ()
| {
| pthread_create(0, 0, 0, 0);
|   ;
|   return 0;
| }
configure:9640: result: no
configure:9593: checking for pthread_create using -lpthread
configure:9618: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:9624: $? = 0
configure:9640: result: yes
configure:10041: checking for X
configure:10211: gcc -o conftest    conftest.c -lX11 -lpthread -ldl -lm  >&5
configure:10217: $? = 0
configure:10276: result: libraries , headers 
configure:10437: gcc -o conftest    conftest.c -lpthread -ldl -lm   -lX11 >&5
configure:10443: $? = 0
configure:10600: checking for gethostbyname
configure:10656: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:10662: $? = 0
configure:10679: result: yes
configure:10824: checking for connect
configure:10880: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:10886: $? = 0
configure:10903: result: yes
configure:10975: checking for remove
configure:11031: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:11037: $? = 0
configure:11054: result: yes
configure:11126: checking for shmat
configure:11182: gcc -o conftest    conftest.c -lpthread -ldl -lm  >&5
configure:11188: $? = 0
configure:11205: result: yes
configure:11286: checking for IceConnectionNumber in -lICE
configure:11321: gcc -o conftest    conftest.c -lICE  -lpthread -ldl -lm  >&5
configure:11327: $? = 0
configure:11345: result: yes
configure:11363: WARNING: Ignoring libraries " -lSM -lICE" requested by configure.
configure:11383: checking for library containing dlopen
configure:11424: gcc -o conftest      conftest.c -lpthread -ldl -lm  -lX11  >&5
configure:11430: $? = 0
configure:11458: result: none required
configure:11476: checking GL/gl.h usability
configure:11493: gcc -c    conftest.c >&5
configure:11499: $? = 0
configure:11513: result: yes
configure:11517: checking GL/gl.h presence
configure:11532: gcc -E  conftest.c
configure:11538: $? = 0
configure:11552: result: yes
configure:11580: checking for GL/gl.h
configure:11587: result: yes
configure:11592: checking for glXMakeCurrent in -lGL
configure:11627: gcc -o conftest      conftest.c -lGL -lm -lpthread -ldl -lm  -lX11  >&5
configure:11633: $? = 0
configure:11651: result: yes
configure:11729: checking for glXGetProcAddressARB in -lGL
configure:11764: gcc -o conftest      conftest.c -lGL -lm -lpthread -ldl -lm  -lX11  >&5
configure:11770: $? = 0
configure:11788: result: yes
configure:11811: checking GL/glu.h usability
configure:11828: gcc -c    conftest.c >&5
configure:11834: $? = 0
configure:11848: result: yes
configure:11852: checking GL/glu.h presence
configure:11867: gcc -E  conftest.c
configure:11873: $? = 0
configure:11887: result: yes
configure:11915: checking for GL/glu.h
configure:11922: result: yes
configure:11962: checking for XineramaIsActive in -lXinerama
configure:11997: gcc -o conftest      conftest.c -lXinerama  -lpthread -ldl -lm  -lX11  >&5
configure:12003: $? = 0
configure:12021: result: yes
configure:12042: checking for freetype-config
configure:12060: found /usr/bin/freetype-config
configure:12072: result: /usr/bin/freetype-config
configure:12086: checking for FcPatternCreate in -lfontconfig
configure:12121: gcc -o conftest   -I/usr/include/freetype2    conftest.c -lfontconfig  -lXinerama -lpthread -ldl -lm  -lX11  >&5
configure:12127: $? = 0
configure:12145: result: yes
configure:12166: checking X11/Xft/Xft.h usability
configure:12183: gcc -c   -I/usr/include/freetype2  conftest.c >&5
configure:12189: $? = 0
configure:12203: result: yes
configure:12207: checking X11/Xft/Xft.h presence
configure:12222: gcc -E -I/usr/include/freetype2  conftest.c
configure:12228: $? = 0
configure:12242: result: yes
configure:12270: checking for X11/Xft/Xft.h
configure:12277: result: yes
configure:12282: checking for XftDrawCreate in -lXft
configure:12317: gcc -o conftest   -I/usr/include/freetype2    conftest.c -lXft  -lfontconfig -lXinerama -lpthread -ldl -lm  -lX11  >&5
configure:12323: $? = 0
configure:12341: result: yes
configure:12364: checking for X11/extensions/Xdbe.h
configure:12385: gcc -c   -I/usr/include/freetype2  conftest.c >&5
configure:12391: $? = 0
configure:12406: result: yes
configure:12416: checking for XdbeQueryExtension in -lXext
configure:12451: gcc -o conftest   -I/usr/include/freetype2    conftest.c -lXext  -lXft -lfontconfig -lXinerama -lpthread -ldl -lm  -lX11  >&5
configure:12457: $? = 0
configure:12475: result: yes
configure:12485: checking for xprop
configure:12503: found /usr/bin/xprop
configure:12515: result: /usr/bin/xprop
configure:12523: checking for X overlay visuals
configure:12538: result: no
configure:12673: checking if GCC supports -fno-exceptions
configure:12698: gcc -c   -fno-exceptions -I/usr/include/freetype2  conftest.c >&5
configure:12704: $? = 0
configure:12710: result: yes
configure:12724: checking if GCC supports -fno-strict-aliasing
configure:12749: gcc -c   -fno-strict-aliasing -I/usr/include/freetype2  conftest.c >&5
configure:12755: $? = 0
configure:12761: result: yes
configure:13135: creating ./config.status
























## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
................................................................................
#define HAVE_LIBFONTCONFIG 1
#define USE_XFT 1
#define HAVE_XDBE 1
#define FLTK_DOCDIR "/usr/local/share/doc/fltk"
#define FLTK_DATADIR "/usr/local/share/fltk"

configure: exit 0

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on ronlap

config.status:678: creating makeinclude
config.status:678: creating fltk.list
config.status:678: creating fltk-config
config.status:678: creating fltk.spec
config.status:678: creating FL/Makefile
config.status:678: creating config.h

Changes to fltk-1.3/config.status.

333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
configured by ./configure, generated by GNU Autoconf 2.61,
  with options \"\"

Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='/home/ron/proj/reva/fltk/fltk-1.3'
srcdir='.'
INSTALL='/usr/bin/ginstall -c'
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do







|







333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
configured by ./configure, generated by GNU Autoconf 2.61,
  with options \"\"

Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='/home/ron/proj/revagui/fltk-1.3'
srcdir='.'
INSTALL='/usr/bin/ginstall -c'
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do

Changes to fltk-1.3/configh.cmake.in.

1
2
3
4
5
6
7
8
9
...
158
159
160
161
162
163
164
165

166
167
168
169
170
171
172
173
174

175
176
177
178
179
180
181
...
257
258
259
260
261
262
263
264
265
/*
 * "$Id: configh.cmake.in 6614 2009-01-01 16:11:32Z matt $"
 *
 * Configuration file for the Fast Light Tool Kit (FLTK).
 * @configure_input@
 *
 * Copyright 1998-2009 by Bill Spitzak and others.
 *
 * This library is free software; you can redistribute it and/or
................................................................................
 */

#cmakedefine U16 @U16@
#cmakedefine U32 @U32@
#cmakedefine U64 @U64@

/*
 * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H, HAVE_SCANDIR:

 *
 * Where is <dirent.h> (used only by fl_file_chooser and scandir).
 */

#cmakedefine HAVE_DIRENT_H @HAVE_DIRENT_H@
#cmakedefine HAVE_SYS_NDIR_H @HAVE_SYS_NDIR_H@
#cmakedefine HAVE_SYS_DIR_H @HAVE_SYS_DIR_H@
#cmakedefine HAVE_NDIR_H @HAVE_NDIR_H@
#cmakedefine HAVE_SCANDIR @HAVE_SCANDIR@


/*
 * Possibly missing sprintf-style functions:
 */

#cmakedefine HAVE_VSNPRINTF @HAVE_VSNPRINTF@
#cmakedefine HAVE_SNPRINTF @HAVE_SNPRINTF@
................................................................................
#ifdef CMAKE_HAVE_PTHREAD_H
#define HAVE_PTHREAD_H 1
#else
#define HAVE_PTHREAD_H 0
#endif

/*
 * End of "$Id: configh.cmake.in 6614 2009-01-01 16:11:32Z matt $".
 */

|







 







|
>









>







 







|

1
2
3
4
5
6
7
8
9
...
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
...
259
260
261
262
263
264
265
266
267
/*
 * "$Id: configh.cmake.in 7012 2010-01-16 14:18:18Z AlbrechtS $"
 *
 * Configuration file for the Fast Light Tool Kit (FLTK).
 * @configure_input@
 *
 * Copyright 1998-2009 by Bill Spitzak and others.
 *
 * This library is free software; you can redistribute it and/or
................................................................................
 */

#cmakedefine U16 @U16@
#cmakedefine U32 @U32@
#cmakedefine U64 @U64@

/*
 * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H,
 * HAVE_SCANDIR, HAVE_SCANDIR_POSIX:
 *
 * Where is <dirent.h> (used only by fl_file_chooser and scandir).
 */

#cmakedefine HAVE_DIRENT_H @HAVE_DIRENT_H@
#cmakedefine HAVE_SYS_NDIR_H @HAVE_SYS_NDIR_H@
#cmakedefine HAVE_SYS_DIR_H @HAVE_SYS_DIR_H@
#cmakedefine HAVE_NDIR_H @HAVE_NDIR_H@
#cmakedefine HAVE_SCANDIR @HAVE_SCANDIR@
#cmakedefine HAVE_SCANDIR_POSIX @HAVE_SCANDIR_POSIX@

/*
 * Possibly missing sprintf-style functions:
 */

#cmakedefine HAVE_VSNPRINTF @HAVE_VSNPRINTF@
#cmakedefine HAVE_SNPRINTF @HAVE_SNPRINTF@
................................................................................
#ifdef CMAKE_HAVE_PTHREAD_H
#define HAVE_PTHREAD_H 1
#else
#define HAVE_PTHREAD_H 0
#endif

/*
 * End of "$Id: configh.cmake.in 7012 2010-01-16 14:18:18Z AlbrechtS $".
 */

Changes to fltk-1.3/configh.in.

1
2
3
4
5
6
7
8
9
...
124
125
126
127
128
129
130

131
132
133
134
135
136
137
...
320
321
322
323
324
325
326
327
328
/*
 * "$Id: configh.in 6833 2009-07-23 22:51:56Z AlbrechtS $"
 *
 * Configuration file for the Fast Light Tool Kit (FLTK).
 * @configure_input@
 *
 * Copyright 1998-2009 by Bill Spitzak and others.
 *
 * This library is free software; you can redistribute it and/or
................................................................................
 * supported by Apple. If USE_QUARTZ is defined, FLTK will be
 * compiled using Quartz instead. This flag has no meaning on
 * other operating systems.
 */

#define USE_QUARTZ 0
#undef __APPLE_QUARTZ__

#undef __APPLE_QD__


/*
 * USE_X11
 *
 * Should we use X11 for the current platform
................................................................................
 * Do we have the dlsym() function and header?
 */

#undef HAVE_DLFCN_H
#undef HAVE_DLSYM

/*
 * End of "$Id: configh.in 6833 2009-07-23 22:51:56Z AlbrechtS $".
 */

|







 







>







 







|

1
2
3
4
5
6
7
8
9
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
...
321
322
323
324
325
326
327
328
329
/*
 * "$Id: configh.in 6951 2009-12-06 22:21:55Z matt $"
 *
 * Configuration file for the Fast Light Tool Kit (FLTK).
 * @configure_input@
 *
 * Copyright 1998-2009 by Bill Spitzak and others.
 *
 * This library is free software; you can redistribute it and/or
................................................................................
 * supported by Apple. If USE_QUARTZ is defined, FLTK will be
 * compiled using Quartz instead. This flag has no meaning on
 * other operating systems.
 */

#define USE_QUARTZ 0
#undef __APPLE_QUARTZ__
#undef __APPLE_COCOA__
#undef __APPLE_QD__


/*
 * USE_X11
 *
 * Should we use X11 for the current platform
................................................................................
 * Do we have the dlsym() function and header?
 */

#undef HAVE_DLFCN_H
#undef HAVE_DLSYM

/*
 * End of "$Id: configh.in 6951 2009-12-06 22:21:55Z matt $".
 */

Changes to fltk-1.3/configure.

2157
2158
2159
2160
2161
2162
2163




2164
2165
2166
2167
2168
2169
2170
....
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
#define USE_QUARTZ 1
_ACEOF

	cat >>confdefs.h <<\_ACEOF
#define __APPLE_QUARTZ__ 1
_ACEOF





	;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
................................................................................
	if test "x$with_links" != xyes; then
		HLINKS="#"
	fi
	;;

    Darwin*)
        # MacOS X uses Carbon for graphics...
        LIBS="$LIBS -framework Carbon -framework ApplicationServices"

	if test x$have_pthread = xyes; then
	    cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD 1
_ACEOF

	    THREADS="threads$EXEEXT"







>
>
>
>







 







|







2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
....
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
#define USE_QUARTZ 1
_ACEOF

	cat >>confdefs.h <<\_ACEOF
#define __APPLE_QUARTZ__ 1
_ACEOF

	cat >>confdefs.h <<\_ACEOF
#define __APPLE_COCOA__ 1
_ACEOF

	;;
esac

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
................................................................................
	if test "x$with_links" != xyes; then
		HLINKS="#"
	fi
	;;

    Darwin*)
        # MacOS X uses Carbon for graphics...
        LIBS="$LIBS -framework Carbon -framework Cocoa -framework ApplicationServices"

	if test x$have_pthread = xyes; then
	    cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD 1
_ACEOF

	    THREADS="threads$EXEEXT"

Changes to fltk-1.3/configure.in.

1
2
3
4
5
6
7
8
9
10
11
...
360
361
362
363
364
365
366

367
368
369
370
371
372
373
...
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1336
1337
1338
1339
1340
1341
1342
1343
1344
dnl -*- sh -*-
dnl the "configure" script is made from this by running GNU "autoconf"
dnl
dnl "$Id: configure.in 6883 2009-09-19 07:37:38Z matt $"
dnl
dnl Configuration script for the Fast Light Tool Kit (FLTK).
dnl
dnl Copyright 1998-2009 by Bill Spitzak and others.
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
................................................................................
                          use custom architecture flags],
    ARCHFLAGS="$withval")
case $uname in
    Darwin*)
# QD is not supported anymore since 1.3
	AC_DEFINE(USE_QUARTZ, 1)
	AC_DEFINE(__APPLE_QUARTZ__)

	;;
esac

dnl Find commands...
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
................................................................................
	if test "x$with_links" != xyes; then
		HLINKS="#"
	fi
	;;

    Darwin*)
        # MacOS X uses Carbon for graphics...
        LIBS="$LIBS -framework Carbon -framework ApplicationServices"

	if test x$have_pthread = xyes; then
	    AC_DEFINE(HAVE_PTHREAD)
	    THREADS="threads$EXEEXT"
	fi

	if test x$enable_gl != xno; then
................................................................................
AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude fltk.list fltk-config fltk.spec FL/Makefile)

dnl Make sure the fltk-config script is executable...
chmod +x fltk-config

dnl
dnl End of "$Id: configure.in 6883 2009-09-19 07:37:38Z matt $".
dnl



|







 







>







 







|







 







|

1
2
3
4
5
6
7
8
9
10
11
...
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
...
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
....
1337
1338
1339
1340
1341
1342
1343
1344
1345
dnl -*- sh -*-
dnl the "configure" script is made from this by running GNU "autoconf"
dnl
dnl "$Id: configure.in 6951 2009-12-06 22:21:55Z matt $"
dnl
dnl Configuration script for the Fast Light Tool Kit (FLTK).
dnl
dnl Copyright 1998-2009 by Bill Spitzak and others.
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
................................................................................
                          use custom architecture flags],
    ARCHFLAGS="$withval")
case $uname in
    Darwin*)
# QD is not supported anymore since 1.3
	AC_DEFINE(USE_QUARTZ, 1)
	AC_DEFINE(__APPLE_QUARTZ__)
	AC_DEFINE(__APPLE_COCOA__)
	;;
esac

dnl Find commands...
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
................................................................................
	if test "x$with_links" != xyes; then
		HLINKS="#"
	fi
	;;

    Darwin*)
        # MacOS X uses Carbon for graphics...
        LIBS="$LIBS -framework Carbon -framework Cocoa -framework ApplicationServices"

	if test x$have_pthread = xyes; then
	    AC_DEFINE(HAVE_PTHREAD)
	    THREADS="threads$EXEEXT"
	fi

	if test x$enable_gl != xno; then
................................................................................
AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude fltk.list fltk-config fltk.spec FL/Makefile)

dnl Make sure the fltk-config script is executable...
chmod +x fltk-config

dnl
dnl End of "$Id: configure.in 6951 2009-12-06 22:21:55Z matt $".
dnl

Changes to fltk-1.3/fluid/Fl_Function_Type.cxx.

1
2
3
4
5
6
7
8
9
..
26
27
28
29
30
31
32

33
34
35
36
37
38
39
40
41
42
43


44


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
...
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
...
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
...
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
...
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
...
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
...
568
569
570
571
572
573
574

575
576
577



578
579
580
581
582
583


584
585


586
587
588
589
590
591
592
...
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
...
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
...
712
713
714
715
716
717
718












































































































































































































719
720
721
722
723
724
725
...
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
...
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
...
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
....
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
....
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
....
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
....
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
....
1242
1243
1244
1245
1246
1247
1248
1249
1250
//
// "$Id: Fl_Function_Type.cxx 6897 2009-09-23 20:08:30Z matt $"
//
// C function type code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
//

#include <FL/Fl.H>
#include <FL/Fl_Preferences.H>
#include <FL/Fl_File_Chooser.H>
#include "Fl_Type.h"
#include <FL/fl_show_input.H>

#include "../src/flstring.h"
#include <stdio.h>
#include <stdlib.h>

extern int i18n_type;
extern const char* i18n_include;
extern const char* i18n_function;
extern const char* i18n_file;
extern const char* i18n_set;
extern char i18n_program[];



extern void redraw_browser();



////////////////////////////////////////////////////////////////
// quick check of any C code for legality, returns an error message

static char buffer[128]; // for error messages

// check a quoted string ending in either " or ' or >:
const char *_q_check(const char * & c, int type) {
  for (;;) switch (*c++) {
  case '\0':
    sprintf(buffer,"missing %c",type);
    return buffer;
  case '\\':
    if (*c) c++;
    break;
  default:
    if (*(c-1) == type) return 0;
  }
}

// check normal code, match braces and parenthesis:
const char *_c_check(const char * & c, int type) {
  const char *d;
  for (;;) switch (*c++) {
  case 0:
    if (!type) return 0;
    sprintf(buffer, "missing %c", type);
    return buffer;
  case '/':
    // Skip comments as needed...
    if (*c == '/') {
      while (*c != '\n' && *c) c++;
    } else if (*c == '*') {
      c++;
      while ((*c != '*' || c[1] != '/') && *c) c++;
      if (*c == '*') c+=2;
      else {
        return "missing '*/'";
      }
    }
    break;
  case '#':
    // treat cpp directives as a comment:
    while (*c != '\n' && *c) c++;
    break;
  case '{':
    if (type==')') goto UNEXPECTED;
    d = _c_check(c,'}');
    if (d) return d;
    break;
  case '(':
    d = _c_check(c,')');
    if (d) return d;
    break;
  case '\"':
    d = _q_check(c,'\"');
    if (d) return d;
    break;
  case '\'':
    d = _q_check(c,'\'');
    if (d) return d;
    break;
  case '}':
  case ')':
  UNEXPECTED:
    if (type == *(c-1)) return 0;
    sprintf(buffer, "unexpected %c", *(c-1));
    return buffer;
  }
}

const char *c_check(const char *c, int type) {
  return _c_check(c,type);
}

................................................................................
      if (comment()) redraw_browser();
      comment(0);
    }
    if (c) free((void*)c);
    if (mod) set_modflag(1);
    break;
  }
 BREAK2:
  function_panel->hide();
}

Fl_Function_Type Fl_Function_type;

extern const char* subclassname(Fl_Type*);

................................................................................
  Fl_Type *child;
  const char *var = "w";
  char havechildren = 0;
  for (child = next; child && child->level > level; child = child->next) {
    havechildren = 1;
    if (child->is_window() && child->name()) var = child->name();
  }

  if (ismain()) {
    if (havewidgets) write_c("  %s->show(argc, argv);\n", var);
    if (havechildren) write_c("  return Fl::run();\n");
  } else if (havewidgets && !constructor && !return_type) {
    write_c("  return %s;\n", var);
  }
  if (havechildren)
................................................................................
    }
    char*c = code_input->buffer()->text();
    message = c_check(c); if (message) continue;
    name(c);
    free(c);
    break;
  }
 BREAK2:
  code_panel->hide();
}

Fl_Code_Type Fl_Code_type;

void Fl_Code_Type::write_code1() {
  const char* c = name();
................................................................................
    message = c_check(c); if (message) continue;
    name(c);
    c = code_after_input->value();
    message = c_check(c); if (message) continue;
    storestring(c, after);
    break;
  }
 BREAK2:
  codeblock_panel->hide();
}

Fl_CodeBlock_Type Fl_CodeBlock_type;

void Fl_CodeBlock_Type::write_code1() {
  const char* c = name();
................................................................................
  else write_c("%s}\n", indent());
}

////////////////////////////////////////////////////////////////

int Fl_Decl_Type::is_public() const 
{
 Fl_Type *p = parent;
 while (p && !p->is_decl_block()) p = p->parent;
 if(p && p->is_public() && public_)
   return public_;
 else if(!p)
   return public_;
 return 0;
}

Fl_Type *Fl_Decl_Type::make() {
  Fl_Type *p = Fl_Type::current;
  while (p && !p->is_decl_block()) p = p->parent;
  Fl_Decl_Type *o = new Fl_Decl_Type();
  o->public_ = 0;
................................................................................
  o->factory = this;
  return o;
}

void Fl_Decl_Type::write_properties() {
  Fl_Type::write_properties();
  switch (public_) {

    case 1: write_string("public"); break;
    case 2: write_string("protected"); break;
  }



  if (!static_) write_string("global");
}

void Fl_Decl_Type::read_property(const char *c) {
  if (!strcmp(c,"public")) {
    public_ = 1;


  } else if (!strcmp(c,"protected")) {
    public_ = 2;


  } else if (!strcmp(c,"global")) {
    static_ = 0;
  } else {
    Fl_Type::read_property(c);
  }
}

................................................................................
    } else {
      if (comment()) redraw_browser();
      comment(0);
    }
    if (c) free((void*)c);
    break;
  }
 BREAK2:
  decl_panel->hide();
}

Fl_Decl_Type Fl_Decl_type;

void Fl_Decl_Type::write_code1() {
  const char* c = name();
  if (!c) return;
  // handle a few keywords differently if inside a class
  if (is_in_class() && (
         !strncmp(c,"class",5) && isspace(c[5])
      || !strncmp(c,"typedef",7) && isspace(c[7])
      || !strncmp(c,"FL_EXPORT",9) && isspace(c[9])
      || !strncmp(c,"struct",6) && isspace(c[6])
      ) ) {
    write_public(public_);
    write_comment_h("  ");
    write_h("  %s\n", c);
    return;
  }
  // handle putting #include, extern, using or typedef into decl:
  if (!isalpha(*c) && *c != '~'
      || !strncmp(c,"extern",6) && isspace(c[6])
      || !strncmp(c,"class",5) && isspace(c[5])
      || !strncmp(c,"typedef",7) && isspace(c[7])
      || !strncmp(c,"using",5) && isspace(c[5])
      || !strncmp(c,"FL_EXPORT",9) && isspace(c[9])
//    || !strncmp(c,"struct",6) && isspace(c[6])
      ) {
    if (public_) {
      write_comment_h();
      write_h("%s\n", c);
    } else {
      write_comment_c();
      write_c("%s\n", c);
................................................................................
    }
    return;
  }
  // find the first C++ style comment
  const char* e = c+strlen(c), *csc = c;
  while (csc<e && (csc[0]!='/' || csc[1]!='/')) csc++;
  if (csc!=e) e = csc; // comment found
  // lose all trailing semicolons so I can add one:
  while (e>c && e[-1]==' ') e--;
  while (e>c && e[-1]==';') e--;
  if (class_name(1)) {
    write_public(public_);
    write_comment_h("  ");
    write_h("  %.*s; %s\n", (int)(e-c), c, csc);
  } else {
................................................................................
        write_c("static ");
      write_c("%.*s; %s\n", (int)(e-c), c, csc);
    }
  }
}

void Fl_Decl_Type::write_code2() {}













































































































































































































////////////////////////////////////////////////////////////////

int Fl_DeclBlock_Type::is_public() const {return public_;}

Fl_Type *Fl_DeclBlock_Type::make() {
  Fl_Type *p = Fl_Type::current;
................................................................................
    if (public_ != declblock_public_choice->value()) {
      set_modflag(1);
      public_ = declblock_public_choice->value();
      redraw_browser();
    }
    break;
  }
 BREAK2:
  declblock_panel->hide();
}

Fl_DeclBlock_Type Fl_DeclBlock_type;

void Fl_DeclBlock_Type::write_code1() {
  const char* c = name();
  if (public_)
     write_h("%s\n", c);
  write_c("%s\n", c);
}

void Fl_DeclBlock_Type::write_code2() {
  const char* c = after;
  if (public_)
     write_h("%s\n", c);
  write_c("%s\n", c);
}

////////////////////////////////////////////////////////////////

Fl_Type *Fl_Comment_Type::make() {
  Fl_Type *p = Fl_Type::current;
................................................................................
      Fl_Widget* w = Fl::readqueue();
      if (w == comment_panel_cancel) goto BREAK2;
      else if (w == comment_panel_ok) break;
      else if (w == comment_predefined) {
        if (comment_predefined->value()==1) {
          // add the current comment to the database
          const char *xname = fl_input(
            "Please enter a name to reference the current\ncomment in your database.\n\n"
            "Use forward slashes '/' to create submenus.", 
            "My Comment");
          if (xname) {
            char *name = strdup(xname);
            for (char*s=name;*s;s++) if (*s==':') *s = ';';
            int n;
            Fl_Preferences db(Fl_Preferences::USER, "fltk.org", "fluid_comments");
            db.set(name, comment_input->buffer()->text());
            Fl_Preferences menu(Fl_Preferences::USER, "fltk.org", "fluid_comments_menu");
................................................................................
    if (in_h_ != comment_in_header->value()) {
      in_h_ = comment_in_header->value();
      mod = 1;
    }
    if (mod) set_modflag(1);
    break;
  }
 BREAK2:
  title_buf[0] = 0;
  comment_panel->hide();
}

const char *Fl_Comment_Type::title() {
  const char* n = name(); 
  if (!n || !*n) return type_name();
................................................................................
  c_name_input->static_value(fullname);
  c_subclass_input->static_value(subclass_of);
  c_public_button->value(public_);
  const char *c = comment();
  c_comment_input->buffer()->text(c?c:"");
  class_panel->show();
  const char* message = 0;

  char *na=0,*pr=0,*p=0; // name and prefix substrings

  for (;;) { // repeat as long as there are errors
    if (message) fl_alert(message);
    for (;;) {
      Fl_Widget* w = Fl::readqueue();
      if (w == c_panel_cancel) goto BREAK2;
      else if (w == c_panel_ok) break;
      else if (!w) Fl::wait();
................................................................................
    size_t len = strlen(s);
    if (!*s) goto OOPS;
    p = (char*) (s+len-1);
    while (p>=s && isspace(*p)) *(p--)='\0';
    if (p<s) goto OOPS;
    while (p>=s && is_id(*p)) p--;
    if ( (p<s && !is_id(*(p+1))) || !*(p+1) ) {
      OOPS: message = "class name must be C++ identifier";
      free((void*)s);
      continue;
    }
    na=p+1; // now we have the name
    if(p>s) *p--='\0';
    while (p>=s && isspace(*p)) *(p--)='\0';
    while (p>=s && is_id(*p))   p--;
................................................................................
    } else {
      if (comment()) redraw_browser();
      comment(0);
    }
    if (c) free((void*)c);
    break;
  }
 BREAK2:
  class_panel->hide();
}

Fl_Class_Type Fl_Class_type;

Fl_Class_Type *current_class;
extern Fl_Widget_Class_Type *current_widget_class;
................................................................................
void Fl_Class_Type::write_code1() {
  parent_class = current_class;
  current_class = this;
  write_public_state = 0;
  write_h("\n");
  write_comment_h();
  if (prefix() && strlen(prefix()))
      write_h("class %s %s ", prefix(), name());
  else
      write_h("class %s ", name());
  if (subclass_of) write_h(": %s ", subclass_of);
  write_h("{\n");
}

void Fl_Class_Type::write_code2() {
  write_h("};\n");
  current_class = parent_class;
................................................................................
        return 1;
    }
  }
  return 0;
}

//
// End of "$Id: Fl_Function_Type.cxx 6897 2009-09-23 20:08:30Z matt $".
//

|







 







>











>
>

>
>









|
|
|
|
|
|
|
|







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|







 







|







 







|







 







|







 







|







 







|
|
|
|
|
|
|







 







>



>
>
>
|





>
>


>
>







 







|










|
|
|
|
|












|







 







|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|








|






|







 







|
|
|







 







|







 







|

|







 







|







 







|







 







|

|







 







|

1
2
3
4
5
6
7
8
9
..
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
...
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
...
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
...
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
...
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
...
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
...
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
...
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
...
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
...
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
....
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
....
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
....
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
....
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
....
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
....
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
....
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
....
1459
1460
1461
1462
1463
1464
1465
1466
1467
//
// "$Id: Fl_Function_Type.cxx 7147 2010-02-25 23:29:42Z matt $"
//
// C function type code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
//

#include <FL/Fl.H>
#include <FL/Fl_Preferences.H>
#include <FL/Fl_File_Chooser.H>
#include "Fl_Type.h"
#include <FL/fl_show_input.H>
#include <FL/Fl_File_Chooser.H>
#include "../src/flstring.h"
#include <stdio.h>
#include <stdlib.h>

extern int i18n_type;
extern const char* i18n_include;
extern const char* i18n_function;
extern const char* i18n_file;
extern const char* i18n_set;
extern char i18n_program[];

extern int compile_only;

extern void redraw_browser();
extern void goto_source_dir();
extern void leave_source_dir();

////////////////////////////////////////////////////////////////
// quick check of any C code for legality, returns an error message

static char buffer[128]; // for error messages

// check a quoted string ending in either " or ' or >:
const char *_q_check(const char * & c, int type) {
  for (;;) switch (*c++) {
    case '\0':
      sprintf(buffer,"missing %c",type);
      return buffer;
    case '\\':
      if (*c) c++;
      break;
    default:
      if (*(c-1) == type) return 0;
  }
}

// check normal code, match braces and parenthesis:
const char *_c_check(const char * & c, int type) {
  const char *d;
  for (;;) switch (*c++) {
    case 0:
      if (!type) return 0;
      sprintf(buffer, "missing %c", type);
      return buffer;
    case '/':
      // Skip comments as needed...
      if (*c == '/') {
        while (*c != '\n' && *c) c++;
      } else if (*c == '*') {
        c++;
        while ((*c != '*' || c[1] != '/') && *c) c++;
        if (*c == '*') c+=2;
        else {
          return "missing '*/'";
        }
      }
      break;
    case '#':
      // treat cpp directives as a comment:
      while (*c != '\n' && *c) c++;
      break;
    case '{':
      if (type==')') goto UNEXPECTED;
      d = _c_check(c,'}');
      if (d) return d;
      break;
    case '(':
      d = _c_check(c,')');
      if (d) return d;
      break;
    case '\"':
      d = _q_check(c,'\"');
      if (d) return d;
      break;
    case '\'':
      d = _q_check(c,'\'');
      if (d) return d;
      break;
    case '}':
    case ')':
    UNEXPECTED:
      if (type == *(c-1)) return 0;
      sprintf(buffer, "unexpected %c", *(c-1));
      return buffer;
  }
}

const char *c_check(const char *c, int type) {
  return _c_check(c,type);
}

................................................................................
      if (comment()) redraw_browser();
      comment(0);
    }
    if (c) free((void*)c);
    if (mod) set_modflag(1);
    break;
  }
BREAK2:
  function_panel->hide();
}

Fl_Function_Type Fl_Function_type;

extern const char* subclassname(Fl_Type*);

................................................................................
  Fl_Type *child;
  const char *var = "w";
  char havechildren = 0;
  for (child = next; child && child->level > level; child = child->next) {
    havechildren = 1;
    if (child->is_window() && child->name()) var = child->name();
  }
  
  if (ismain()) {
    if (havewidgets) write_c("  %s->show(argc, argv);\n", var);
    if (havechildren) write_c("  return Fl::run();\n");
  } else if (havewidgets && !constructor && !return_type) {
    write_c("  return %s;\n", var);
  }
  if (havechildren)
................................................................................
    }
    char*c = code_input->buffer()->text();
    message = c_check(c); if (message) continue;
    name(c);
    free(c);
    break;
  }
BREAK2:
  code_panel->hide();
}

Fl_Code_Type Fl_Code_type;

void Fl_Code_Type::write_code1() {
  const char* c = name();
................................................................................
    message = c_check(c); if (message) continue;
    name(c);
    c = code_after_input->value();
    message = c_check(c); if (message) continue;
    storestring(c, after);
    break;
  }
BREAK2:
  codeblock_panel->hide();
}

Fl_CodeBlock_Type Fl_CodeBlock_type;

void Fl_CodeBlock_Type::write_code1() {
  const char* c = name();
................................................................................
  else write_c("%s}\n", indent());
}

////////////////////////////////////////////////////////////////

int Fl_Decl_Type::is_public() const 
{
  Fl_Type *p = parent;
  while (p && !p->is_decl_block()) p = p->parent;
  if(p && p->is_public() && public_)
    return public_;
  else if(!p)
    return public_;
  return 0;
}

Fl_Type *Fl_Decl_Type::make() {
  Fl_Type *p = Fl_Type::current;
  while (p && !p->is_decl_block()) p = p->parent;
  Fl_Decl_Type *o = new Fl_Decl_Type();
  o->public_ = 0;
................................................................................
  o->factory = this;
  return o;
}

void Fl_Decl_Type::write_properties() {
  Fl_Type::write_properties();
  switch (public_) {
    case 0: write_string("private"); break;
    case 1: write_string("public"); break;
    case 2: write_string("protected"); break;
  }
  if (static_) 
    write_string("local");
  else
    write_string("global");
}

void Fl_Decl_Type::read_property(const char *c) {
  if (!strcmp(c,"public")) {
    public_ = 1;
  } else if (!strcmp(c,"private")) {
    public_ = 0;
  } else if (!strcmp(c,"protected")) {
    public_ = 2;
  } else if (!strcmp(c,"local")) {
    static_ = 1;
  } else if (!strcmp(c,"global")) {
    static_ = 0;
  } else {
    Fl_Type::read_property(c);
  }
}

................................................................................
    } else {
      if (comment()) redraw_browser();
      comment(0);
    }
    if (c) free((void*)c);
    break;
  }
BREAK2:
  decl_panel->hide();
}

Fl_Decl_Type Fl_Decl_type;

void Fl_Decl_Type::write_code1() {
  const char* c = name();
  if (!c) return;
  // handle a few keywords differently if inside a class
  if (is_in_class() && (
                        !strncmp(c,"class",5) && isspace(c[5])
                        || !strncmp(c,"typedef",7) && isspace(c[7])
                        || !strncmp(c,"FL_EXPORT",9) && isspace(c[9])
                        || !strncmp(c,"struct",6) && isspace(c[6])
                        ) ) {
    write_public(public_);
    write_comment_h("  ");
    write_h("  %s\n", c);
    return;
  }
  // handle putting #include, extern, using or typedef into decl:
  if (!isalpha(*c) && *c != '~'
      || !strncmp(c,"extern",6) && isspace(c[6])
      || !strncmp(c,"class",5) && isspace(c[5])
      || !strncmp(c,"typedef",7) && isspace(c[7])
      || !strncmp(c,"using",5) && isspace(c[5])
      || !strncmp(c,"FL_EXPORT",9) && isspace(c[9])
      //    || !strncmp(c,"struct",6) && isspace(c[6])
      ) {
    if (public_) {
      write_comment_h();
      write_h("%s\n", c);
    } else {
      write_comment_c();
      write_c("%s\n", c);
................................................................................
    }
    return;
  }
  // find the first C++ style comment
  const char* e = c+strlen(c), *csc = c;
  while (csc<e && (csc[0]!='/' || csc[1]!='/')) csc++;
  if (csc!=e) e = csc; // comment found
                       // lose all trailing semicolons so I can add one:
  while (e>c && e[-1]==' ') e--;
  while (e>c && e[-1]==';') e--;
  if (class_name(1)) {
    write_public(public_);
    write_comment_h("  ");
    write_h("  %.*s; %s\n", (int)(e-c), c, csc);
  } else {
................................................................................
        write_c("static ");
      write_c("%.*s; %s\n", (int)(e-c), c, csc);
    }
  }
}

void Fl_Decl_Type::write_code2() {}

////////////////////////////////////////////////////////////////

Fl_Type *Fl_Data_Type::make() {
  Fl_Type *p = Fl_Type::current;
  while (p && !p->is_decl_block()) p = p->parent;
  Fl_Data_Type *o = new Fl_Data_Type();
  o->public_ = 1;
  o->static_ = 1;
  o->filename_ = 0;
  o->name("myBinaryData");
  o->add(p);
  o->factory = this;
  return o;
}

void Fl_Data_Type::write_properties() {
  Fl_Decl_Type::write_properties();
  if (filename_) {
    write_string("filename");
    write_word(filename_);
  }
}

void Fl_Data_Type::read_property(const char *c) {
  if (!strcmp(c,"filename")) {
    storestring(read_word(), filename_, 1);
  } else {
    Fl_Decl_Type::read_property(c);
  }
}

void Fl_Data_Type::open() {
  if (!data_panel) make_data_panel();
  data_input->static_value(name());
  if (is_in_class()) {
    data_class_choice->value(public_);
    data_class_choice->show();
    data_choice->hide();
  } else {
    data_choice->value((public_&1)|((static_&1)<<1));
    data_choice->show();
    data_class_choice->hide();
  }
  data_filename->value(filename_?filename_:"");
  const char *c = comment();
  data_comment_input->buffer()->text(c?c:"");
  data_panel->show();
  const char* message = 0;
  for (;;) { // repeat as long as there are errors
    if (message) fl_alert(message);
    for (;;) {
      Fl_Widget* w = Fl::readqueue();
      if (w == data_panel_cancel) goto BREAK2;
      else if (w == data_panel_ok) break;
      else if (w == data_filebrowser) {
        goto_source_dir();
        const char *fn = fl_file_chooser("Load Binary Data", 0L, data_filename->value(), 1);
        leave_source_dir();
        if (fn) {
          if (strcmp(fn, data_filename->value()))
            set_modflag(1); 
          data_filename->value(fn);
        }
      }
      else if (!w) Fl::wait();
    }
    // store the variable name:
    const char*c = data_input->value();
    char *s = strdup(c), *p = s, *q, *n;
    for (;;++p) {
      if (!isspace((unsigned char)(*p))) break;
    }
    n = p;
    if ( (!isalpha((unsigned char)(*p))) && ((*p)!='_') && ((*p)!=':') ) goto OOPS;
    ++p;
    for (;;++p) {
      if ( (!isalnum((unsigned char)(*p))) && ((*p)!='_') && ((*p)!=':') ) break;
    }
    q = p;
    for (;;++q) {
      if (!*q) break;
      if (!isspace((unsigned char)(*q))) goto OOPS;
    }		
    if (n==q) {
    OOPS: message = "variable name must be a C identifier";
      free((void*)s);
      continue;
    }
    *p = 0;
    name(n);
    free(s);
    // store flags
    if (is_in_class()) {
      if (public_!=data_class_choice->value()) {
        set_modflag(1);
        public_ = data_class_choice->value();
      }
    } else {
      if (public_!=(data_choice->value()&1)) {
        set_modflag(1);
        public_ = (data_choice->value()&1);
      }
      if (static_!=((data_choice->value()>>1)&1)) {
        set_modflag(1);
        static_ = ((data_choice->value()>>1)&1);
      }
    }
    // store the filename
    c = data_filename->value();
    if (filename_ && strcmp(filename_, data_filename->value()))
      set_modflag(1); 
    else if (!filename_ && *c)
      set_modflag(1);
    if (filename_) { free((void*)filename_); filename_ = 0L; }
    if (c && *c) filename_ = strdup(c);
    // store the comment
    c = data_comment_input->buffer()->text();
    if (c && *c) {
      if (!comment() || strcmp(c, comment())) redraw_browser();
      comment(c);
    } else {
      if (comment()) redraw_browser();
      comment(0);
    }
    if (c) free((void*)c);
    break;
  }
BREAK2:
  data_panel->hide();
}

Fl_Data_Type Fl_Data_type;

void Fl_Data_Type::write_code1() {
  const char *message = 0;
  const char *c = name();
  if (!c) return;
  const char *fn = filename_;
  char *data = 0;
  int nData = -1;
  // path should be set correctly already
  if (filename_ && !write_sourceview) {
    FILE *f = fopen(filename_, "rb");
    if (!f) {
      message = "Can't include binary file. Can't open";
    } else {
      fseek(f, 0, SEEK_END);
      nData = ftell(f);
      fseek(f, 0, SEEK_SET);
      if (nData) {
        data = (char*)calloc(nData, 1);
        fread(data, nData, 1, f);
      }
      fclose(f);
    }
  } else {
    fn = "<no filename>";
  }
  if (is_in_class()) {
    write_public(public_);
    write_comment_h("  ");
    write_h("  static unsigned char %s[];\n", c);
    write_c("unsigned char %s::%s[] = /* binary data included from %s */\n", class_name(1), c, fn);
    if (message) write_c("#error %s %s\n", message, fn);
    write_cdata(data, nData);
    write_c(";\n");
  } else {
    // the "header only" option does not apply here!
    if (public_) {
      if (static_) {
        write_h("extern unsigned char %s[];\n", c);
        write_comment_c();
        write_c("unsigned char %s[] = /* binary data included from %s */\n", c, fn);
        if (message) write_c("#error %s %s\n", message, fn);
        write_cdata(data, nData);
        write_c(";\n");
      } else {
        write_comment_h();
        write_h("#error Unsupported declaration loading binary data %s\n", fn);
        write_h("unsigned char %s[] = { 1, 2, 3 };\n", c);
      }
    } else {
      write_comment_c();
      if (static_) 
        write_c("static ");
      write_c("unsigned char %s[] = /* binary data included from %s */\n", c, fn);
      if (message) write_c("#error %s %s\n", message, fn);
      write_cdata(data, nData);
      write_c(";\n");
    }
  }
  // if we are in interactive mode, we pop up a warning dialog 
  // giving the error: (compile_only && !write_sourceview)
  if (message && !write_sourceview) {
    if (compile_only)
      fprintf(stderr, "FLUID ERROR: %s %s\n", message, fn);
    else
      fl_alert("%s\n%s\n", message, fn);
  }
  if (data) free(data);
}

void Fl_Data_Type::write_code2() {}

////////////////////////////////////////////////////////////////

int Fl_DeclBlock_Type::is_public() const {return public_;}

Fl_Type *Fl_DeclBlock_Type::make() {
  Fl_Type *p = Fl_Type::current;
................................................................................
    if (public_ != declblock_public_choice->value()) {
      set_modflag(1);
      public_ = declblock_public_choice->value();
      redraw_browser();
    }
    break;
  }
BREAK2:
  declblock_panel->hide();
}

Fl_DeclBlock_Type Fl_DeclBlock_type;

void Fl_DeclBlock_Type::write_code1() {
  const char* c = name();
  if (public_)
    write_h("%s\n", c);
  write_c("%s\n", c);
}

void Fl_DeclBlock_Type::write_code2() {
  const char* c = after;
  if (public_)
    write_h("%s\n", c);
  write_c("%s\n", c);
}

////////////////////////////////////////////////////////////////

Fl_Type *Fl_Comment_Type::make() {
  Fl_Type *p = Fl_Type::current;
................................................................................
      Fl_Widget* w = Fl::readqueue();
      if (w == comment_panel_cancel) goto BREAK2;
      else if (w == comment_panel_ok) break;
      else if (w == comment_predefined) {
        if (comment_predefined->value()==1) {
          // add the current comment to the database
          const char *xname = fl_input(
                                       "Please enter a name to reference the current\ncomment in your database.\n\n"
                                       "Use forward slashes '/' to create submenus.", 
                                       "My Comment");
          if (xname) {
            char *name = strdup(xname);
            for (char*s=name;*s;s++) if (*s==':') *s = ';';
            int n;
            Fl_Preferences db(Fl_Preferences::USER, "fltk.org", "fluid_comments");
            db.set(name, comment_input->buffer()->text());
            Fl_Preferences menu(Fl_Preferences::USER, "fltk.org", "fluid_comments_menu");
................................................................................
    if (in_h_ != comment_in_header->value()) {
      in_h_ = comment_in_header->value();
      mod = 1;
    }
    if (mod) set_modflag(1);
    break;
  }
BREAK2:
  title_buf[0] = 0;
  comment_panel->hide();
}

const char *Fl_Comment_Type::title() {
  const char* n = name(); 
  if (!n || !*n) return type_name();
................................................................................
  c_name_input->static_value(fullname);
  c_subclass_input->static_value(subclass_of);
  c_public_button->value(public_);
  const char *c = comment();
  c_comment_input->buffer()->text(c?c:"");
  class_panel->show();
  const char* message = 0;
  
  char *na=0,*pr=0,*p=0; // name and prefix substrings
  
  for (;;) { // repeat as long as there are errors
    if (message) fl_alert(message);
    for (;;) {
      Fl_Widget* w = Fl::readqueue();
      if (w == c_panel_cancel) goto BREAK2;
      else if (w == c_panel_ok) break;
      else if (!w) Fl::wait();
................................................................................
    size_t len = strlen(s);
    if (!*s) goto OOPS;
    p = (char*) (s+len-1);
    while (p>=s && isspace(*p)) *(p--)='\0';
    if (p<s) goto OOPS;
    while (p>=s && is_id(*p)) p--;
    if ( (p<s && !is_id(*(p+1))) || !*(p+1) ) {
    OOPS: message = "class name must be C++ identifier";
      free((void*)s);
      continue;
    }
    na=p+1; // now we have the name
    if(p>s) *p--='\0';
    while (p>=s && isspace(*p)) *(p--)='\0';
    while (p>=s && is_id(*p))   p--;
................................................................................
    } else {
      if (comment()) redraw_browser();
      comment(0);
    }
    if (c) free((void*)c);
    break;
  }
BREAK2:
  class_panel->hide();
}

Fl_Class_Type Fl_Class_type;

Fl_Class_Type *current_class;
extern Fl_Widget_Class_Type *current_widget_class;
................................................................................
void Fl_Class_Type::write_code1() {
  parent_class = current_class;
  current_class = this;
  write_public_state = 0;
  write_h("\n");
  write_comment_h();
  if (prefix() && strlen(prefix()))
    write_h("class %s %s ", prefix(), name());
  else
    write_h("class %s ", name());
  if (subclass_of) write_h(": %s ", subclass_of);
  write_h("{\n");
}

void Fl_Class_Type::write_code2() {
  write_h("};\n");
  current_class = parent_class;
................................................................................
        return 1;
    }
  }
  return 0;
}

//
// End of "$Id: Fl_Function_Type.cxx 7147 2010-02-25 23:29:42Z matt $".
//

Changes to fltk-1.3/fluid/Fl_Type.cxx.

1
2
3
4
5
6
7
8
9
..
62
63
64
65
66
67
68

69
70
71
72
73
74
75
...
149
150
151
152
153
154
155

156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
...
771
772
773
774
775
776
777


778
779
780
781
782
783
784
....
1009
1010
1011
1012
1013
1014
1015
1016
1017
//
// "$Id: Fl_Type.cxx 6727 2009-03-27 20:05:03Z engelsman $"
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
// Each object described by Fluid is one of these objects.  They
// are all stored in a double-linked list.
//
// They "type" of the object is covered by the virtual functions.
................................................................................
#include "pixmaps/flRoundButton.xpm"
#include "pixmaps/flBox.xpm"
#include "pixmaps/flGroup.xpm"
#include "pixmaps/flFunction.xpm"
#include "pixmaps/flCode.xpm"
#include "pixmaps/flCodeBlock.xpm"
#include "pixmaps/flComment.xpm"

#include "pixmaps/flDeclaration.xpm"
#include "pixmaps/flDeclarationBlock.xpm"
#include "pixmaps/flClass.xpm"
#include "pixmaps/flTabs.xpm"
#include "pixmaps/flInput.xpm"
#include "pixmaps/flChoice.xpm"
#include "pixmaps/flMenuitem.xpm"
................................................................................
static Fl_Pixmap	counter_pixmap(flCounter_xpm);
static Fl_Pixmap	dial_pixmap(flDial_xpm);
static Fl_Pixmap	roller_pixmap(flRoller_xpm);
static Fl_Pixmap	valueinput_pixmap(flValueInput_xpm);
static Fl_Pixmap	valueoutput_pixmap(flValueOutput_xpm);
static Fl_Pixmap	spinner_pixmap(flSpinner_xpm);
static Fl_Pixmap	widgetclass_pixmap(flWidgetClass_xpm);


Fl_Pixmap *pixmap[] = { 0, &window_pixmap, &button_pixmap, &checkbutton_pixmap, &roundbutton_pixmap, /* 0..4 */
 &box_pixmap, &group_pixmap, &function_pixmap, &code_pixmap, &codeblock_pixmap, &declaration_pixmap, /* 5..10 */ 
 &declarationblock_pixmap, &class_pixmap, &tabs_pixmap, &input_pixmap, &choice_pixmap,               /* 11..15 */
 &menuitem_pixmap, &menubar_pixmap, &submenu_pixmap, &scroll_pixmap, &tile_pixmap, &wizard_pixmap,   /* 16..21 */
 &pack_pixmap, &returnbutton_pixmap, &lightbutton_pixmap, &repeatbutton_pixmap, &menubutton_pixmap,  /* 22..26 */
 &output_pixmap, &textdisplay_pixmap, &textedit_pixmap, &fileinput_pixmap, &browser_pixmap,          /* 27..32 */
 &checkbrowser_pixmap, &filebrowser_pixmap, &clock_pixmap, &help_pixmap, &progress_pixmap,	     /* 33..36 */
 &slider_pixmap, &scrollbar_pixmap, &valueslider_pixmap, &adjuster_pixmap, &counter_pixmap,          /* 37..41 */
 &dial_pixmap, &roller_pixmap, &valueinput_pixmap, &valueoutput_pixmap, &comment_pixmap,             /* 42..46 */
 &spinner_pixmap, &widgetclass_pixmap /* 47..48 */ };

extern int show_comments;

////////////////////////////////////////////////////////////////

class Widget_Browser : public Fl_Browser_ {
  friend class Fl_Type;
................................................................................
  prev->next = n;
  if (n) n->prev = prev; else Fl_Type::last = prev;
  prev = g->prev;
  l->next = g;
  if (prev) prev->next = this; else Fl_Type::first = this;
  g->prev = l;
  if (parent && is_widget()) parent->move_child(this,g);


  widget_browser->redraw();
}

// move selected widgets in their parent's list:
void earlier_cb(Fl_Widget*,void*) {
  Fl_Type *f;
  int mod = 0;
................................................................................
        if (p->name()[strlen(cbname)] == '(')
          return 1;
  return 0;
}


//
// End of "$Id: Fl_Type.cxx 6727 2009-03-27 20:05:03Z engelsman $".
//

|







 







>







 







>







|


|







 







>
>







 







|

1
2
3
4
5
6
7
8
9
..
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
...
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
...
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
....
1013
1014
1015
1016
1017
1018
1019
1020
1021
//
// "$Id: Fl_Type.cxx 7108 2010-02-19 21:29:09Z matt $"
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
// Each object described by Fluid is one of these objects.  They
// are all stored in a double-linked list.
//
// They "type" of the object is covered by the virtual functions.
................................................................................
#include "pixmaps/flRoundButton.xpm"
#include "pixmaps/flBox.xpm"
#include "pixmaps/flGroup.xpm"
#include "pixmaps/flFunction.xpm"
#include "pixmaps/flCode.xpm"
#include "pixmaps/flCodeBlock.xpm"
#include "pixmaps/flComment.xpm"
#include "pixmaps/flData.xpm"
#include "pixmaps/flDeclaration.xpm"
#include "pixmaps/flDeclarationBlock.xpm"
#include "pixmaps/flClass.xpm"
#include "pixmaps/flTabs.xpm"
#include "pixmaps/flInput.xpm"
#include "pixmaps/flChoice.xpm"
#include "pixmaps/flMenuitem.xpm"
................................................................................
static Fl_Pixmap	counter_pixmap(flCounter_xpm);
static Fl_Pixmap	dial_pixmap(flDial_xpm);
static Fl_Pixmap	roller_pixmap(flRoller_xpm);
static Fl_Pixmap	valueinput_pixmap(flValueInput_xpm);
static Fl_Pixmap	valueoutput_pixmap(flValueOutput_xpm);
static Fl_Pixmap	spinner_pixmap(flSpinner_xpm);
static Fl_Pixmap	widgetclass_pixmap(flWidgetClass_xpm);
static Fl_Pixmap	data_pixmap(flData_xpm);

Fl_Pixmap *pixmap[] = { 0, &window_pixmap, &button_pixmap, &checkbutton_pixmap, &roundbutton_pixmap, /* 0..4 */
 &box_pixmap, &group_pixmap, &function_pixmap, &code_pixmap, &codeblock_pixmap, &declaration_pixmap, /* 5..10 */ 
 &declarationblock_pixmap, &class_pixmap, &tabs_pixmap, &input_pixmap, &choice_pixmap,               /* 11..15 */
 &menuitem_pixmap, &menubar_pixmap, &submenu_pixmap, &scroll_pixmap, &tile_pixmap, &wizard_pixmap,   /* 16..21 */
 &pack_pixmap, &returnbutton_pixmap, &lightbutton_pixmap, &repeatbutton_pixmap, &menubutton_pixmap,  /* 22..26 */
 &output_pixmap, &textdisplay_pixmap, &textedit_pixmap, &fileinput_pixmap, &browser_pixmap,          /* 27..32 */
 &checkbrowser_pixmap, &filebrowser_pixmap, &clock_pixmap, &help_pixmap, &progress_pixmap,	         /* 33..36 */
 &slider_pixmap, &scrollbar_pixmap, &valueslider_pixmap, &adjuster_pixmap, &counter_pixmap,          /* 37..41 */
 &dial_pixmap, &roller_pixmap, &valueinput_pixmap, &valueoutput_pixmap, &comment_pixmap,             /* 42..46 */
 &spinner_pixmap, &widgetclass_pixmap, &data_pixmap };                                               /* 47..49 */

extern int show_comments;

////////////////////////////////////////////////////////////////

class Widget_Browser : public Fl_Browser_ {
  friend class Fl_Type;
................................................................................
  prev->next = n;
  if (n) n->prev = prev; else Fl_Type::last = prev;
  prev = g->prev;
  l->next = g;
  if (prev) prev->next = this; else Fl_Type::first = this;
  g->prev = l;
  if (parent && is_widget()) parent->move_child(this,g);
  widget_browser->inserting(g, this);
  widget_browser->display(this);
  widget_browser->redraw();
}

// move selected widgets in their parent's list:
void earlier_cb(Fl_Widget*,void*) {
  Fl_Type *f;
  int mod = 0;
................................................................................
        if (p->name()[strlen(cbname)] == '(')
          return 1;
  return 0;
}


//
// End of "$Id: Fl_Type.cxx 7108 2010-02-19 21:29:09Z matt $".
//

Changes to fltk-1.3/fluid/Fl_Type.h.

1
2
3
4
5
6
7
8
9
..
32
33
34
35
36
37
38

39
40
41
42
43
44
45
...
208
209
210
211
212
213
214

215
216
217
218
219
220
221
222
223
224
225
226
227













228
229
230
231
232
233
234
...
787
788
789
790
791
792
793
794





















795
796
797
//
// "$Id: Fl_Type.h 6912 2009-10-02 19:08:55Z matt $"
//
// Widget type header file for the Fast Light Tool Kit (FLTK).
//
// Each object described by Fluid is one of these objects.  They
// are all stored in a double-linked list.
//
// There is also a single "factory" instance of each type of this.
................................................................................
// Please report all bugs and problems on the following page:
//
//     http://www.fltk.org/str.php
//

#include <FL/Fl_Widget.H>
#include <FL/Fl_Menu.H>

#include "Fluid_Image.h"
#include <FL/fl_draw.H>

void set_modflag(int mf);

class Fl_Type {

................................................................................
  virtual int is_public() const;
  int pixmapID() { return 9; }
  void write_properties();
  void read_property(const char *);
};

class Fl_Decl_Type : public Fl_Type {

  char public_;
  char static_;
public:
  Fl_Type *make();
  void write_code1();
  void write_code2();
  void open();
  virtual const char *type_name() {return "decl";}
  void write_properties();
  void read_property(const char *);
  virtual int is_public() const;
  int pixmapID() { return 10; }
};














class Fl_DeclBlock_Type : public Fl_Type {
  const char* after;
  char public_;
public:
  Fl_Type *make();
  void write_code1();
................................................................................
const char *c_check(const char *c, int type = 0);

// replace a string pointer with new value, strips leading/trailing blanks:
int storestring(const char *n, const char * & p, int nostrip=0);

extern int include_H_from_C;
extern int use_FL_COMMAND;






















//
// End of "$Id: Fl_Type.h 6912 2009-10-02 19:08:55Z matt $".
//

|







 







>







 







>













>
>
>
>
>
>
>
>
>
>
>
>
>







 








>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

|

1
2
3
4
5
6
7
8
9
..
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
...
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
...
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
//
// "$Id: Fl_Type.h 7117 2010-02-20 21:14:47Z matt $"
//
// Widget type header file for the Fast Light Tool Kit (FLTK).
//
// Each object described by Fluid is one of these objects.  They
// are all stored in a double-linked list.
//
// There is also a single "factory" instance of each type of this.
................................................................................
// Please report all bugs and problems on the following page:
//
//     http://www.fltk.org/str.php
//

#include <FL/Fl_Widget.H>
#include <FL/Fl_Menu.H>
#include <FL/Fl_Plugin.H>
#include "Fluid_Image.h"
#include <FL/fl_draw.H>

void set_modflag(int mf);

class Fl_Type {

................................................................................
  virtual int is_public() const;
  int pixmapID() { return 9; }
  void write_properties();
  void read_property(const char *);
};

class Fl_Decl_Type : public Fl_Type {
protected:
  char public_;
  char static_;
public:
  Fl_Type *make();
  void write_code1();
  void write_code2();
  void open();
  virtual const char *type_name() {return "decl";}
  void write_properties();
  void read_property(const char *);
  virtual int is_public() const;
  int pixmapID() { return 10; }
};

class Fl_Data_Type : public Fl_Decl_Type {
	const char *filename_;
public:
  Fl_Type *make();
  void write_code1();
  void write_code2();
  void open();
  virtual const char *type_name() {return "data";}
  void write_properties();
  void read_property(const char *);
  int pixmapID() { return 49; }
};

class Fl_DeclBlock_Type : public Fl_Type {
  const char* after;
  char public_;
public:
  Fl_Type *make();
  void write_code1();
................................................................................
const char *c_check(const char *c, int type = 0);

// replace a string pointer with new value, strips leading/trailing blanks:
int storestring(const char *n, const char * & p, int nostrip=0);

extern int include_H_from_C;
extern int use_FL_COMMAND;

/*
 * This class is needed for additional command line plugins.
 */
class Fl_Commandline_Plugin : public Fl_Plugin {
public:
  Fl_Commandline_Plugin(const char *name)
  : Fl_Plugin(klass(), name) { }
  virtual const char *klass() { return "commandline"; }
  // return a unique name for this plugin
  virtual const char *name() = 0;
  // return a help text for all supported commands
  virtual const char *help() = 0;
  // handle a command and return the number of args used, or 0
  virtual int arg(int argc, char **argv, int &i) = 0;
  // optional test the plugin
  virtual int test(const char *a1=0L, const char *a2=0L, const char *a3=0L) { 
    return 0;
  }
};


//
// End of "$Id: Fl_Type.h 7117 2010-02-20 21:14:47Z matt $".
//

Changes to fltk-1.3/fluid/Fluid_Image.cxx.

1
2
3
4
5
6
7
8
9
..
45
46
47
48
49
50
51

52
53
54
55
56
57
58
..
96
97
98
99
100
101
102































103
104
105
106
107
108
109
...
221
222
223
224
225
226
227
228
229
//
// "$Id: Fluid_Image.cxx 6614 2009-01-01 16:11:32Z matt $"
//
// Pixmap label support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
void Fluid_Image::deimage(Fl_Widget *o) {
  if (o->window() != o) o->deimage(img);
}

static int pixmap_header_written = 0;
static int bitmap_header_written = 0;
static int image_header_written = 0;


void Fluid_Image::write_static() {
  if (!img) return;
  if (img->count() > 1) {
    // Write Pixmap data...
    write_c("\n");
    if (pixmap_header_written != write_number) {
................................................................................
	    unique_id(this, "idata", fl_filename_name(name()), 0));
    write_cdata(img->data()[0], ((img->w() + 7) / 8) * img->h());
    write_c(";\n");
    write_c("static Fl_Bitmap %s(%s, %d, %d);\n",
	    unique_id(this, "image", fl_filename_name(name()), 0),
	    unique_id(this, "idata", fl_filename_name(name()), 0),
	    img->w(), img->h());































  } else {
    // Write image data...
    write_c("\n");
    if (image_header_written != write_number) {
      write_c("#include <FL/Fl_Image.H>\n");
      image_header_written = write_number;
    }
................................................................................
  Fluid_Image *ret = (name && *name) ? Fluid_Image::find(name) : 0;
  leave_source_dir();
  return ret;
}


//
// End of "$Id: Fluid_Image.cxx 6614 2009-01-01 16:11:32Z matt $".
//

|







 







>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

1
2
3
4
5
6
7
8
9
..
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
..
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
...
253
254
255
256
257
258
259
260
261
//
// "$Id: Fluid_Image.cxx 7092 2010-02-18 11:38:42Z matt $"
//
// Pixmap label support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
void Fluid_Image::deimage(Fl_Widget *o) {
  if (o->window() != o) o->deimage(img);
}

static int pixmap_header_written = 0;
static int bitmap_header_written = 0;
static int image_header_written = 0;
static int jpeg_header_written = 0;

void Fluid_Image::write_static() {
  if (!img) return;
  if (img->count() > 1) {
    // Write Pixmap data...
    write_c("\n");
    if (pixmap_header_written != write_number) {
................................................................................
	    unique_id(this, "idata", fl_filename_name(name()), 0));
    write_cdata(img->data()[0], ((img->w() + 7) / 8) * img->h());
    write_c(";\n");
    write_c("static Fl_Bitmap %s(%s, %d, %d);\n",
	    unique_id(this, "image", fl_filename_name(name()), 0),
	    unique_id(this, "idata", fl_filename_name(name()), 0),
	    img->w(), img->h());
  } else if (strcmp(fl_filename_ext(name()), ".jpg")==0) {
    // Write jpeg image data...
    write_c("\n");
    if (jpeg_header_written != write_number) {
      write_c("#include <FL/Fl_JPEG_Image.H>\n");
      jpeg_header_written = write_number;
    }
    write_c("static unsigned char %s[] =\n",
	    unique_id(this, "idata", fl_filename_name(name()), 0));
        
    FILE *f = fopen(name(), "rb");
    if (!f) {
      // message = "Can't include binary file. Can't open";
    } else {
      fseek(f, 0, SEEK_END);
      size_t nData = ftell(f);
      fseek(f, 0, SEEK_SET);
      if (nData) {
        char *data = (char*)calloc(nData, 1);
        fread(data, nData, 1, f);
        write_cdata(data, nData);
        free(data);
      }
      fclose(f);
    }
    
    write_c(";\n");
    write_c("static Fl_JPEG_Image %s(\"%s\", %s);\n",
	    unique_id(this, "image", fl_filename_name(name()), 0),
	    fl_filename_name(name()),
	    unique_id(this, "idata", fl_filename_name(name()), 0));
  } else {
    // Write image data...
    write_c("\n");
    if (image_header_written != write_number) {
      write_c("#include <FL/Fl_Image.H>\n");
      image_header_written = write_number;
    }
................................................................................
  Fluid_Image *ret = (name && *name) ? Fluid_Image::find(name) : 0;
  leave_source_dir();
  return ret;
}


//
// End of "$Id: Fluid_Image.cxx 7092 2010-02-18 11:38:42Z matt $".
//

Changes to fltk-1.3/fluid/code.cxx.

1
2
3
4
5
6
7
8
9
...
230
231
232
233
234
235
236











237
238
239
240
241
242
243
...
584
585
586
587
588
589
590
591
592
//
// "$Id: code.cxx 6614 2009-01-01 16:11:32Z matt $"
//
// Code output routines for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
void write_cstring(const char *w) {write_cstring(w,strlen(w));}

// write an array of C binary data (does not add a null):
void write_cdata(const char *s, int length) {
  if (varused_test) {
    varused = 1;
    return;











  }
  const unsigned char *w = (const unsigned char *)s;
  const unsigned char *e = w+length;
  int linelength = 1;
  putc('{', code_file);
  for (; w < e;) {
    unsigned char c = *w++;
................................................................................
void Fl_Type::write_code1() {
  write_h("// Header for %s\n", title());
  write_c("// Code for %s\n", title());
}
void Fl_Type::write_code2() {}

//
// End of "$Id: code.cxx 6614 2009-01-01 16:11:32Z matt $".
//

|







 







>
>
>
>
>
>
>
>
>
>
>







 







|

1
2
3
4
5
6
7
8
9
...
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
...
595
596
597
598
599
600
601
602
603
//
// "$Id: code.cxx 7119 2010-02-20 21:43:18Z matt $"
//
// Code output routines for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
void write_cstring(const char *w) {write_cstring(w,strlen(w));}

// write an array of C binary data (does not add a null):
void write_cdata(const char *s, int length) {
  if (varused_test) {
    varused = 1;
    return;
  }
  if (write_sourceview) {
    if (length>=0)
      fprintf(code_file, "{ /* ... %d bytes of binary data... */ }", length);
    else
      fprintf(code_file, "{ /* ... binary data... */ }");
    return;
  }
  if (length==-1) {
    fprintf(code_file, "{ /* ... undefined size binary data... */ }");
    return;
  }
  const unsigned char *w = (const unsigned char *)s;
  const unsigned char *e = w+length;
  int linelength = 1;
  putc('{', code_file);
  for (; w < e;) {
    unsigned char c = *w++;
................................................................................
void Fl_Type::write_code1() {
  write_h("// Header for %s\n", title());
  write_c("// Code for %s\n", title());
}
void Fl_Type::write_code2() {}

//
// End of "$Id: code.cxx 7119 2010-02-20 21:43:18Z matt $".
//

Changes to fltk-1.3/fluid/factory.cxx.

1
2
3
4
5
6
7
8
9
...
911
912
913
914
915
916
917

918
919
920
921
922
923
924
...
984
985
986
987
988
989
990

991
992
993
994
995
996
997
....
1237
1238
1239
1240
1241
1242
1243
1244
1245
//
// "$Id: factory.cxx 6912 2009-10-02 19:08:55Z matt $"
//
// Widget factory code for the Fast Light Tool Kit (FLTK).
//
// 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
// of each of these type classes.
//
................................................................................
}

////////////////////////////////////////////////////////////////

extern class Fl_Function_Type Fl_Function_type;
extern class Fl_Code_Type Fl_Code_type;
extern class Fl_CodeBlock_Type Fl_CodeBlock_type;

extern class Fl_Decl_Type Fl_Decl_type;
extern class Fl_DeclBlock_Type Fl_DeclBlock_type;
extern class Fl_Comment_Type Fl_Comment_type;
extern class Fl_Class_Type Fl_Class_type;
extern class Fl_Window_Type Fl_Window_type;
extern class Fl_Widget_Class_Type Fl_Widget_Class_type;
extern class Fl_Group_Type Fl_Group_type;
................................................................................
  {"Code",0,cb,(void*)&Fl_Code_type},
  {"Code Block",0,cb,(void*)&Fl_CodeBlock_type},
  {"Declaration",0,cb,(void*)&Fl_Decl_type},
  {"Declaration Block",0,cb,(void*)&Fl_DeclBlock_type},
  {"Class",0,cb,(void*)&Fl_Class_type},
  {"Widget Class",0,cb,(void*)&Fl_Widget_Class_type},
  {"Comment",0,cb,(void*)&Fl_Comment_type},

{0},
{"Group",0,0,0,FL_SUBMENU},
  {0,0,cb,(void*)&Fl_Window_type},
  {0,0,cb,(void*)&Fl_Group_type},
  {0,0,cb,(void*)&Fl_Pack_type},
  {0,0,cb,(void*)&Fl_Tabs_type},
  {0,0,cb,(void*)&Fl_Scroll_type},
................................................................................
  for (int i=0; i < int(sizeof(table)/sizeof(*table)); i++)
    if (!strcasecmp(name,table[i].name)) {v = table[i].value; return 1;}
  if (numberok && ((v = atoi(name)) || !strcmp(name,"0"))) return 1;
  return 0;
}

//
// End of "$Id: factory.cxx 6912 2009-10-02 19:08:55Z matt $".
//

|







 







>







 







>







 







|

1
2
3
4
5
6
7
8
9
...
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
...
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
....
1239
1240
1241
1242
1243
1244
1245
1246
1247
//
// "$Id: factory.cxx 7084 2010-02-15 16:43:51Z matt $"
//
// Widget factory code for the Fast Light Tool Kit (FLTK).
//
// 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
// of each of these type classes.
//
................................................................................
}

////////////////////////////////////////////////////////////////

extern class Fl_Function_Type Fl_Function_type;
extern class Fl_Code_Type Fl_Code_type;
extern class Fl_CodeBlock_Type Fl_CodeBlock_type;
extern class Fl_Data_Type Fl_Data_type;
extern class Fl_Decl_Type Fl_Decl_type;
extern class Fl_DeclBlock_Type Fl_DeclBlock_type;
extern class Fl_Comment_Type Fl_Comment_type;
extern class Fl_Class_Type Fl_Class_type;
extern class Fl_Window_Type Fl_Window_type;
extern class Fl_Widget_Class_Type Fl_Widget_Class_type;
extern class Fl_Group_Type Fl_Group_type;
................................................................................
  {"Code",0,cb,(void*)&Fl_Code_type},
  {"Code Block",0,cb,(void*)&Fl_CodeBlock_type},
  {"Declaration",0,cb,(void*)&Fl_Decl_type},
  {"Declaration Block",0,cb,(void*)&Fl_DeclBlock_type},
  {"Class",0,cb,(void*)&Fl_Class_type},
  {"Widget Class",0,cb,(void*)&Fl_Widget_Class_type},
  {"Comment",0,cb,(void*)&Fl_Comment_type},
  {"Binary Data",0,cb,(void*)&Fl_Data_type},
{0},
{"Group",0,0,0,FL_SUBMENU},
  {0,0,cb,(void*)&Fl_Window_type},
  {0,0,cb,(void*)&Fl_Group_type},
  {0,0,cb,(void*)&Fl_Pack_type},
  {0,0,cb,(void*)&Fl_Tabs_type},
  {0,0,cb,(void*)&Fl_Scroll_type},
................................................................................
  for (int i=0; i < int(sizeof(table)/sizeof(*table)); i++)
    if (!strcasecmp(name,table[i].name)) {v = table[i].value; return 1;}
  if (numberok && ((v = atoi(name)) || !strcmp(name,"0"))) return 1;
  return 0;
}

//
// End of "$Id: factory.cxx 7084 2010-02-15 16:43:51Z matt $".
//

Changes to fltk-1.3/fluid/fluid.cxx.

1
2
3
4
5
6
7
8
9
..
30
31
32
33
34
35
36

37
38
39
40
41
42
43
...
628
629
630
631
632
633
634

635
636
637
638
639
640
641
....
1565
1566
1567
1568
1569
1570
1571







































1572
1573
1574
1575
1576
1577
1578
....
1660
1661
1662
1663
1664
1665
1666



1667
1668
1669
1670
1671
1672
1673
....
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
....
2244
2245
2246
2247
2248
2249
2250







2251
2252
2253
2254
2255
2256
2257
....
2268
2269
2270
2271
2272
2273
2274

2275
2276
2277

2278

2279
2280
2281
2282
2283
2284







2285
2286



2287
2288
2289
2290
2291
2292
2293
....
2340
2341
2342
2343
2344
2345
2346
2347
2348
//
// "$Id: fluid.cxx 6896 2009-09-23 19:24:34Z matt $"
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_File_Icon.H>
#include <FL/Fl_Help_Dialog.H>
#include <FL/Fl_Hold_Browser.H>
#include <FL/Fl_Menu_Bar.H>
#include <FL/Fl_Input.H>

#include <FL/fl_ask.H>
#include <FL/fl_draw.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/fl_message.H>
#include <FL/filename.H>
#include <stdio.h>
#include <stdlib.h>
................................................................................
    }
  }

  set_modflag(0);
  undo_clear();
}


int compile_only = 0;
int compile_strings = 0;
int header_file_set = 0;
int code_file_set = 0;
const char* header_file_name = ".h";
const char* code_file_name = ".cxx";
int i18n_type = 0;
................................................................................

  // Hide progress, activate controls, hide print panel...
  print_panel_controls->activate();
  print_progress->hide();
  print_panel->hide();
}
#endif // WIN32 && !__CYGWIN__








































////////////////////////////////////////////////////////////////

extern Fl_Menu_Item New_Menu[];

void toggle_widgetbin_cb(Fl_Widget *, void *);
void toggle_sourceview_cb(Fl_Double_Window *, void *);
................................................................................
    {"&Huge",FL_ALT+'6',(Fl_Callback *)widget_size_cb,(void*)32,0,FL_NORMAL_LABEL,FL_HELVETICA,32},
    {0},
  {"&Grid and Size Settings...",FL_COMMAND+'g',show_grid_cb},
  {0},
{"&Shell",0,0,0,FL_SUBMENU},
  {"Execute &Command...",FL_ALT+'x',(Fl_Callback *)show_shell_window},
  {"Execute &Again...",FL_ALT+'g',(Fl_Callback *)do_shell_command},



  {0},
{"&Help",0,0,0,FL_SUBMENU},
  {"&About FLUID...",0,about_cb},
  {"&On FLUID...",0,help_cb},
  {"&Manual...",0,manual_cb},
  {0},
{0}};
................................................................................

  fluid_prefs.set("scheme", scheme_choice->value());
}

void toggle_widgetbin_cb(Fl_Widget *, void *) {
  if (!widgetbin_panel) {
    make_widgetbin();
    widgetbin_panel->callback(toggle_widgetbin_cb);
    if (!position_window(widgetbin_panel,"widgetbin_pos", 1, 320, 30)) return;
  }

  if (widgetbin_panel->visible()) {
    widgetbin_panel->hide();
    Main_Menu[WIDGETBIN_ITEM].label("Show Widget &Bin...");
  } else {
................................................................................
  }
  if (argv[i][1] == 'h' && !argv[i][2]) {
    header_file_name = argv[i+1];
    header_file_set  = 1;
    i += 2;
    return 2;
  }







  return 0;
}

#if ! (defined(WIN32) && !defined (__CYGWIN__))

int quit_flag = 0;
#include <signal.h>
................................................................................
extern "C" {
static void sigint(SIGARG) {
  signal(SIGINT,sigint);
  quit_flag = 1;
}
}
#endif


int main(int argc,char **argv) {
  int i = 1;

  if (!Fl::args(argc,argv,i,arg) || i < argc-1) {

    fprintf(stderr,"usage: %s <switches> name.fl\n"
" -c : write .cxx and .h and exit\n"
" -cs : write .cxx and .h and strings and exit\n"
" -o <name> : .cxx output filename, or extension if <name> starts with '.'\n"
" -h <name> : .h output filename, or extension if <name> starts with '.'\n"
"%s\n", argv[0], Fl::help);







    return 1;
  }



  const char *c = argv[i];

  fl_register_images();

  make_main_window();

#ifdef __APPLE__
................................................................................

  undo_clear();

  return (0);
}

//
// End of "$Id: fluid.cxx 6896 2009-09-23 19:24:34Z matt $".
//

|







 







>







 







>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>







 







<







 







>
>
>
>
>
>
>







 







>



>

>
|




|
>
>
>
>
>
>
>


>
>
>







 







|

1
2
3
4
5
6
7
8
9
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
...
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
....
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
....
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
....
1745
1746
1747
1748
1749
1750
1751

1752
1753
1754
1755
1756
1757
1758
....
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
....
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
....
2403
2404
2405
2406
2407
2408
2409
2410
2411
//
// "$Id: fluid.cxx 7147 2010-02-25 23:29:42Z matt $"
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_File_Icon.H>
#include <FL/Fl_Help_Dialog.H>
#include <FL/Fl_Hold_Browser.H>
#include <FL/Fl_Menu_Bar.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Plugin.H>
#include <FL/fl_ask.H>
#include <FL/fl_draw.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/fl_message.H>
#include <FL/filename.H>
#include <stdio.h>
#include <stdlib.h>
................................................................................
    }
  }

  set_modflag(0);
  undo_clear();
}

int exit_early = 0;
int compile_only = 0;
int compile_strings = 0;
int header_file_set = 0;
int code_file_set = 0;
const char* header_file_name = ".h";
const char* code_file_name = ".cxx";
int i18n_type = 0;
................................................................................

  // Hide progress, activate controls, hide print panel...
  print_panel_controls->activate();
  print_progress->hide();
  print_panel->hide();
}
#endif // WIN32 && !__CYGWIN__

void fltkdb_cb(Fl_Widget*, void*)
{
  int i;
  Fl_Plugin_Manager pm("commandline");  
  for (i=0; i<pm.plugins(); i++) {
    Fl_Commandline_Plugin *pi = (Fl_Commandline_Plugin*)pm.plugin(i);
    if (strcmp(pi->name(), "FltkDB.fluid.fltk.org")==0) {
      pi->test("/Users/matt/dev/fltk-1.3.0/fltk.db");
      break;
    }
  }
}

void dbxcode_cb(Fl_Widget*, void*)
{
  int i;
  Fl_Plugin_Manager pm("commandline");  
  for (i=0; i<pm.plugins(); i++) {
    Fl_Commandline_Plugin *pi = (Fl_Commandline_Plugin*)pm.plugin(i);
    if (strcmp(pi->name(), "ideXcode.fluid.fltk.org")==0) {
      pi->test("/Users/matt/dev/fltk-1.3.0/fltk.db", "/Users/matt/dev/fltk-test");
      break;
    }
  }
}

void dbvisualc_cb(Fl_Widget*, void*)
{
  int i;
  Fl_Plugin_Manager pm("commandline");  
  for (i=0; i<pm.plugins(); i++) {
    Fl_Commandline_Plugin *pi = (Fl_Commandline_Plugin*)pm.plugin(i);
    if (strcmp(pi->name(), "ideVisualC.fluid.fltk.org")==0) {
      pi->test("/Users/matt/dev/fltk-1.3.0/fltk.db", "/Users/matt/dev/fltk-1.3.0");
      break;
    }
  }
}

////////////////////////////////////////////////////////////////

extern Fl_Menu_Item New_Menu[];

void toggle_widgetbin_cb(Fl_Widget *, void *);
void toggle_sourceview_cb(Fl_Double_Window *, void *);
................................................................................
    {"&Huge",FL_ALT+'6',(Fl_Callback *)widget_size_cb,(void*)32,0,FL_NORMAL_LABEL,FL_HELVETICA,32},
    {0},
  {"&Grid and Size Settings...",FL_COMMAND+'g',show_grid_cb},
  {0},
{"&Shell",0,0,0,FL_SUBMENU},
  {"Execute &Command...",FL_ALT+'x',(Fl_Callback *)show_shell_window},
  {"Execute &Again...",FL_ALT+'g',(Fl_Callback *)do_shell_command},
  {"--fltkdb",0,(Fl_Callback *)fltkdb_cb,0,FL_MENU_INVISIBLE},
  {"--dbxcode3",0,(Fl_Callback *)dbxcode_cb,0,FL_MENU_INVISIBLE},
  {"--dbvisualc6",0,(Fl_Callback *)dbvisualc_cb,0,FL_MENU_INVISIBLE},
  {0},
{"&Help",0,0,0,FL_SUBMENU},
  {"&About FLUID...",0,about_cb},
  {"&On FLUID...",0,help_cb},
  {"&Manual...",0,manual_cb},
  {0},
{0}};
................................................................................

  fluid_prefs.set("scheme", scheme_choice->value());
}

void toggle_widgetbin_cb(Fl_Widget *, void *) {
  if (!widgetbin_panel) {
    make_widgetbin();

    if (!position_window(widgetbin_panel,"widgetbin_pos", 1, 320, 30)) return;
  }

  if (widgetbin_panel->visible()) {
    widgetbin_panel->hide();
    Main_Menu[WIDGETBIN_ITEM].label("Show Widget &Bin...");
  } else {
................................................................................
  }
  if (argv[i][1] == 'h' && !argv[i][2]) {
    header_file_name = argv[i+1];
    header_file_set  = 1;
    i += 2;
    return 2;
  }
  Fl_Plugin_Manager pm("commandline");
  int j, n = pm.plugins();
  for (j=0; j<n; j++) {
    Fl_Commandline_Plugin *pi = (Fl_Commandline_Plugin*)pm.plugin(j);
    int r = pi->arg(argc, argv, i);
    if (r) return r;
  }
  return 0;
}

#if ! (defined(WIN32) && !defined (__CYGWIN__))

int quit_flag = 0;
#include <signal.h>
................................................................................
extern "C" {
static void sigint(SIGARG) {
  signal(SIGINT,sigint);
  quit_flag = 1;
}
}
#endif


int main(int argc,char **argv) {
  int i = 1;
  
  if (!Fl::args(argc,argv,i,arg) || i < argc-1) {
    fprintf(stderr,
"usage: %s <switches> name.fl\n"
" -c : write .cxx and .h and exit\n"
" -cs : write .cxx and .h and strings and exit\n"
" -o <name> : .cxx output filename, or extension if <name> starts with '.'\n"
" -h <name> : .h output filename, or extension if <name> starts with '.'\n"
            , argv[0]);
    Fl_Plugin_Manager pm("commandline");
    int i, n = pm.plugins();
    for (i=0; i<n; i++) {
      Fl_Commandline_Plugin *pi = (Fl_Commandline_Plugin*)pm.plugin(i);
      if (pi) puts(pi->help());
    }
    fprintf(stderr, "%s\n", Fl::help);
    return 1;
  }
  if (exit_early)
    exit(0);
  
  const char *c = argv[i];

  fl_register_images();

  make_main_window();

#ifdef __APPLE__
................................................................................

  undo_clear();

  return (0);
}

//
// End of "$Id: fluid.cxx 7147 2010-02-25 23:29:42Z matt $".
//

Changes to fltk-1.3/fluid/function_panel.cxx.

1
2
3
4
5
6
7
8
9
..
30
31
32
33
34
35
36


37
38
39
40
41
42
43
...
413
414
415
416
417
418
419










































































































420
421
422
423
424
425
426
...
590
591
592
593
594
595
596







597
598
599

600
601
602
603
604
605
606
...
642
643
644
645
646
647
648






649
650
651
652
653
654
655
....
1007
1008
1009
1010
1011
1012
1013
1014
1015
//
// "$Id: function_panel.cxx 6614 2009-01-01 16:11:32Z matt $"
//
// Code dialogs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#include "function_panel.h"
#include <FL/Fl_Pixmap.H>
#include "Fl_Type.h"
#include "undo.h"
extern class Fl_Pixmap *pixmap[];
extern class Fl_Type *Fl_Type_make(const char*);
extern void select_only(Fl_Type*);



Fl_Double_Window *function_panel=(Fl_Double_Window *)0;

Fl_Choice *f_public_member_choice=(Fl_Choice *)0;

Fl_Menu_Item menu_f_public_member_choice[] = {
 {"private", 0,  0, (void*)(0), 0, FL_NORMAL_LABEL, 0, 11, 0},
................................................................................
      decl_comment_input->buffer(new Fl_Text_Buffer());
    } // Fl_Text_Editor* decl_comment_input
    decl_panel->size_range(343, 237);
    decl_panel->end();
  } // Fl_Double_Window* decl_panel
  return decl_panel;
}











































































































Fl_Double_Window *class_panel=(Fl_Double_Window *)0;

Fl_Light_Button *c_public_button=(Fl_Light_Button *)0;

Fl_Input *c_name_input=(Fl_Input *)0;

................................................................................
  } else {
    undo_current --;
    undo_last --;
  }
}

Fl_Window *widgetbin_panel=(Fl_Window *)0;








Fl_Window* make_widgetbin() {
  { widgetbin_panel = new Fl_Window(550, 85, "Widget Bin");

    widgetbin_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
    { Fl_Group* o = new Fl_Group(3, 3, 79, 79);
      { Fl_Button* o = new Fl_Button(5, 5, 24, 24);
        o->tooltip("Function");
        o->box(FL_THIN_UP_BOX);
        o->callback((Fl_Callback*)type_make_cb, (void*)("Function"));
        o->image(pixmap[7]);
................................................................................
        o->image(pixmap[10]);
      } // Fl_Button* o
      { Fl_Button* o = new Fl_Button(30, 55, 24, 24);
        o->tooltip("Declaration Block");
        o->box(FL_THIN_UP_BOX);
        o->callback((Fl_Callback*)type_make_cb, (void*)("declblock"));
        o->image(pixmap[11]);






      } // Fl_Button* o
      o->end();
    } // Fl_Group* o
    { Fl_Group* o = new Fl_Group(87, 3, 79, 79);
      { Fl_Button* o = new Fl_Button(89, 5, 24, 24);
        o->tooltip("Window");
        o->box(FL_THIN_UP_BOX);
................................................................................
    sourceview_panel->size_range(384, 120);
    sourceview_panel->end();
  } // Fl_Double_Window* sourceview_panel
  return sourceview_panel;
}

//
// End of "$Id: function_panel.cxx 6614 2009-01-01 16:11:32Z matt $".
//

|







 







>
>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>
>
>
>



>







 







>
>
>
>
>
>







 







|

1
2
3
4
5
6
7
8
9
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
...
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
...
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
...
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
....
1129
1130
1131
1132
1133
1134
1135
1136
1137
//
// "$Id: function_panel.cxx 7084 2010-02-15 16:43:51Z matt $"
//
// Code dialogs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
#include "function_panel.h"
#include <FL/Fl_Pixmap.H>
#include "Fl_Type.h"
#include "undo.h"
extern class Fl_Pixmap *pixmap[];
extern class Fl_Type *Fl_Type_make(const char*);
extern void select_only(Fl_Type*);
extern void exit_cb(Fl_Widget*, void*);
extern void toggle_widgetbin_cb(Fl_Widget*, void*);

Fl_Double_Window *function_panel=(Fl_Double_Window *)0;

Fl_Choice *f_public_member_choice=(Fl_Choice *)0;

Fl_Menu_Item menu_f_public_member_choice[] = {
 {"private", 0,  0, (void*)(0), 0, FL_NORMAL_LABEL, 0, 11, 0},
................................................................................
      decl_comment_input->buffer(new Fl_Text_Buffer());
    } // Fl_Text_Editor* decl_comment_input
    decl_panel->size_range(343, 237);
    decl_panel->end();
  } // Fl_Double_Window* decl_panel
  return decl_panel;
}

Fl_Double_Window *data_panel=(Fl_Double_Window *)0;

Fl_Choice *data_choice=(Fl_Choice *)0;

Fl_Menu_Item menu_data_choice[] = {
 {"in source file only", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0},
 {"in header file only", 0,  0, 0, 16, FL_NORMAL_LABEL, 0, 11, 0},
 {"\"static\" in source file", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0},
 {"in source and \"extern\" in header", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0},
 {0,0,0,0,0,0,0,0,0}
};

Fl_Choice *data_class_choice=(Fl_Choice *)0;

Fl_Menu_Item menu_data_class_choice[] = {
 {"private", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0},
 {"public", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0},
 {"protected", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0},
 {0,0,0,0,0,0,0,0,0}
};

Fl_Input *data_input=(Fl_Input *)0;

Fl_Input *data_filename=(Fl_Input *)0;

Fl_Button *data_filebrowser=(Fl_Button *)0;

Fl_Return_Button *data_panel_ok=(Fl_Return_Button *)0;

Fl_Button *data_panel_cancel=(Fl_Button *)0;

Fl_Text_Editor *data_comment_input=(Fl_Text_Editor *)0;

Fl_Double_Window* make_data_panel() {
  { data_panel = new Fl_Double_Window(343, 237, "Binary Data Properties");
    data_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
    { Fl_Group* o = new Fl_Group(10, 10, 270, 20);
      { Fl_Box* o = new Fl_Box(200, 10, 80, 20);
        Fl_Group::current()->resizable(o);
      } // Fl_Box* o
      { data_choice = new Fl_Choice(10, 10, 185, 20);
        data_choice->down_box(FL_BORDER_BOX);
        data_choice->labelsize(11);
        data_choice->textsize(11);
        data_choice->menu(menu_data_choice);
      } // Fl_Choice* data_choice
      { data_class_choice = new Fl_Choice(10, 10, 75, 20);
        data_class_choice->down_box(FL_BORDER_BOX);
        data_class_choice->labelsize(11);
        data_class_choice->textsize(11);
        data_class_choice->menu(menu_data_class_choice);
      } // Fl_Choice* data_class_choice
      o->end();
    } // Fl_Group* o
    { data_input = new Fl_Input(10, 52, 320, 20, "Variable Name:");
      data_input->tooltip("Binary Data variables are declared \"const unsigned char []\".");
      data_input->labelfont(1);
      data_input->labelsize(11);
      data_input->textfont(4);
      data_input->textsize(11);
      data_input->align(Fl_Align(133));
      data_input->when(FL_WHEN_NEVER);
    } // Fl_Input* data_input
    { data_filename = new Fl_Input(10, 90, 280, 20, "Filename:");
      data_filename->tooltip("Name and path of binary file that will be included.");
      data_filename->labelfont(1);
      data_filename->labelsize(11);
      data_filename->textfont(4);
      data_filename->textsize(11);
      data_filename->align(Fl_Align(133));
      data_filename->when(FL_WHEN_NEVER);
    } // Fl_Input* data_filename
    { data_filebrowser = new Fl_Button(290, 90, 40, 20, "@fileopen");
      data_filebrowser->labelcolor((Fl_Color)134);
    } // Fl_Button* data_filebrowser
    { Fl_Group* o = new Fl_Group(10, 205, 320, 20);
      { data_panel_ok = new Fl_Return_Button(200, 205, 60, 20, "OK");
        data_panel_ok->labelsize(11);
        data_panel_ok->window()->hotspot(data_panel_ok);
      } // Fl_Return_Button* data_panel_ok
      { data_panel_cancel = new Fl_Button(270, 205, 60, 20, "Cancel");
        data_panel_cancel->shortcut(0xff1b);
        data_panel_cancel->labelsize(11);
      } // Fl_Button* data_panel_cancel
      { Fl_Box* o = new Fl_Box(10, 205, 185, 20);
        Fl_Group::current()->resizable(o);
      } // Fl_Box* o
      o->end();
    } // Fl_Group* o
    { data_comment_input = new Fl_Text_Editor(10, 130, 320, 65, "Comment:");
      data_comment_input->tooltip("Declaration comment in Doxygen format");
      data_comment_input->box(FL_DOWN_BOX);
      data_comment_input->labelfont(1);
      data_comment_input->labelsize(11);
      data_comment_input->textfont(4);
      data_comment_input->textsize(11);
      data_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
      Fl_Group::current()->resizable(data_comment_input);
      data_comment_input->buffer(new Fl_Text_Buffer());
    } // Fl_Text_Editor* data_comment_input
    data_panel->size_range(343, 237);
    data_panel->end();
  } // Fl_Double_Window* data_panel
  return data_panel;
}

Fl_Double_Window *class_panel=(Fl_Double_Window *)0;

Fl_Light_Button *c_public_button=(Fl_Light_Button *)0;

Fl_Input *c_name_input=(Fl_Input *)0;

................................................................................
  } else {
    undo_current --;
    undo_last --;
  }
}

Fl_Window *widgetbin_panel=(Fl_Window *)0;

static void cb_widgetbin_panel(Fl_Window* o, void* v) {
  if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape)
  exit_cb((Fl_Widget*)o, v);
else  
  toggle_widgetbin_cb((Fl_Widget*)o, v);
}

Fl_Window* make_widgetbin() {
  { widgetbin_panel = new Fl_Window(550, 85, "Widget Bin");
    widgetbin_panel->callback((Fl_Callback*)cb_widgetbin_panel);
    widgetbin_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
    { Fl_Group* o = new Fl_Group(3, 3, 79, 79);
      { Fl_Button* o = new Fl_Button(5, 5, 24, 24);
        o->tooltip("Function");
        o->box(FL_THIN_UP_BOX);
        o->callback((Fl_Callback*)type_make_cb, (void*)("Function"));
        o->image(pixmap[7]);
................................................................................
        o->image(pixmap[10]);
      } // Fl_Button* o
      { Fl_Button* o = new Fl_Button(30, 55, 24, 24);
        o->tooltip("Declaration Block");
        o->box(FL_THIN_UP_BOX);
        o->callback((Fl_Callback*)type_make_cb, (void*)("declblock"));
        o->image(pixmap[11]);
      } // Fl_Button* o
      { Fl_Button* o = new Fl_Button(55, 55, 24, 24);
        o->tooltip("Binary Data");
        o->box(FL_THIN_UP_BOX);
        o->callback((Fl_Callback*)type_make_cb, (void*)("data"));
        o->image(pixmap[49]);
      } // Fl_Button* o
      o->end();
    } // Fl_Group* o
    { Fl_Group* o = new Fl_Group(87, 3, 79, 79);
      { Fl_Button* o = new Fl_Button(89, 5, 24, 24);
        o->tooltip("Window");
        o->box(FL_THIN_UP_BOX);
................................................................................
    sourceview_panel->size_range(384, 120);
    sourceview_panel->end();
  } // Fl_Double_Window* sourceview_panel
  return sourceview_panel;
}

//
// End of "$Id: function_panel.cxx 7084 2010-02-15 16:43:51Z matt $".
//

Changes to fltk-1.3/fluid/function_panel.fl.

1
2
3
4
5
6
7
8
9
10
11
12
13
..
27
28
29
30
31
32
33
34
35

36
37

38
39

40
41

42
43

44







45
46
47
48
49
50
51
...
311
312
313
314
315
316
317




















































































318
319
320
321
322
323
324
...
428
429
430
431
432
433
434




435
436
437
438
439
440
441
442
...
481
482
483
484
485
486
487






488
489
490
491
492
493
494
...
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
...
822
823
824
825
826
827
828
829
830
831
# data file for the Fltk User Interface Designer (fluid)
version 1.0300 
header_name {.h} 
code_name {.cxx}
comment {//
// "$Id: function_panel.fl 6614 2009-01-01 16:11:32Z matt $"
//
// Code dialogs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
// Please report all bugs and problems on the following page:
//
//     http://www.fltk.org/str.php
//
} {in_source in_header
} 

decl {\#include <FL/Fl_Pixmap.H>} {} 


decl {\#include "Fl_Type.h"} {} 


decl {\#include "undo.h"} {} 


decl {extern class Fl_Pixmap *pixmap[];} {} 


decl {extern class Fl_Type *Fl_Type_make(const char*);} {} 


decl {extern void select_only(Fl_Type*);} {} 








Function {make_function_panel()} {} {
  Fl_Window function_panel {
    label {Function/Method Properties} open
    xywh {394 671 343 232} type Double resizable modal visible
  } {
    Fl_Group {} {open
................................................................................
    Fl_Text_Editor decl_comment_input {
      label {Comment:}
      tooltip {Declaration comment in Doxygen format} xywh {10 130 320 65} box DOWN_BOX labelfont 1 labelsize 11 align 5 textfont 4 textsize 11 resizable
      code0 {decl_comment_input->buffer(new Fl_Text_Buffer());}
    }
  }
} 





















































































Function {make_class_panel()} {} {
  Fl_Window class_panel {
    label {Class Properties} open
    xywh {395 191 342 196} type Double labelsize 11 resizable modal size_range {343 188 0 0} visible
  } {
    Fl_Group {} {open
................................................................................
    undo_last --;
  }} {}
} 

Function {make_widgetbin()} {} {
  Fl_Window widgetbin_panel {
    label {Widget Bin}




    xywh {411 171 550 85} type Single align 80 non_modal visible
  } {
    Fl_Group {} {
      xywh {3 3 79 79}
    } {
      Fl_Button {} {
        user_data {"Function"}
        callback type_make_cb
................................................................................
      }
      Fl_Button {} {
        user_data {"declblock"}
        callback type_make_cb
        tooltip {Declaration Block} xywh {30 55 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[11]);}
      }






    }
    Fl_Group {} {
      xywh {87 3 79 79}
    } {
      Fl_Button {} {
        user_data {"Fl_Window"}
        callback type_make_cb
................................................................................
        tooltip Progress xywh {493 55 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[36]);}
      }
    }
  }
} 

Function {make_sourceview()} {selected
} {
  Fl_Window sourceview_panel {
    label {Code View}
    callback toggle_sourceview_cb
    xywh {430 273 520 490} type Double align 80 resizable size_range {384 120 0 0} visible
  } {
    Fl_Tabs sv_tab {
      callback update_sourceview_position_cb
................................................................................
      }
    }
  }
} 

comment {
//
// End of "$Id: function_panel.fl 6614 2009-01-01 16:11:32Z matt $".
//} {in_source in_header
} 





|







 







|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
>
>
>
>
>
>
>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>
|







 







>
>
>
>
>
>







 







|
<







 







|


1
2
3
4
5
6
7
8
9
10
11
12
13
..
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
...
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
...
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
...
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
...
865
866
867
868
869
870
871
872

873
874
875
876
877
878
879
...
927
928
929
930
931
932
933
934
935
936
# data file for the Fltk User Interface Designer (fluid)
version 1.0300 
header_name {.h} 
code_name {.cxx}
comment {//
// "$Id: function_panel.fl 7084 2010-02-15 16:43:51Z matt $"
//
// Code dialogs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
// Please report all bugs and problems on the following page:
//
//     http://www.fltk.org/str.php
//
} {in_source in_header
} 

decl {\#include <FL/Fl_Pixmap.H>} {private local
} 

decl {\#include "Fl_Type.h"} {private local
} 

decl {\#include "undo.h"} {private local
} 

decl {extern class Fl_Pixmap *pixmap[];} {private local
} 

decl {extern class Fl_Type *Fl_Type_make(const char*);} {private local
} 

decl {extern void select_only(Fl_Type*);} {private local
} 

decl {extern void exit_cb(Fl_Widget*, void*);} {private global
} 

decl {extern void toggle_widgetbin_cb(Fl_Widget*, void*);} {private global
} 

Function {make_function_panel()} {} {
  Fl_Window function_panel {
    label {Function/Method Properties} open
    xywh {394 671 343 232} type Double resizable modal visible
  } {
    Fl_Group {} {open
................................................................................
    Fl_Text_Editor decl_comment_input {
      label {Comment:}
      tooltip {Declaration comment in Doxygen format} xywh {10 130 320 65} box DOWN_BOX labelfont 1 labelsize 11 align 5 textfont 4 textsize 11 resizable
      code0 {decl_comment_input->buffer(new Fl_Text_Buffer());}
    }
  }
} 

Function {make_data_panel()} {open
} {
  Fl_Window data_panel {
    label {Binary Data Properties} open
    xywh {414 355 343 237} type Double align 80 resizable size_range {343 237 0 0} visible
  } {
    Fl_Group {} {open
      xywh {10 10 270 20}
    } {
      Fl_Box {} {
        xywh {200 10 80 20} resizable
      }
      Fl_Choice data_choice {open
        xywh {10 10 185 20} down_box BORDER_BOX labelsize 11 textsize 11
      } {
        MenuItem {} {
          label {in source file only}
          xywh {0 0 100 20} labelsize 11
        }
        MenuItem {} {
          label {in header file only}
          xywh {0 0 100 20} labelsize 11 hide
        }
        MenuItem {} {
          label {"static" in source file}
          xywh {0 0 100 20} labelsize 11
        }
        MenuItem {} {
          label {in source and "extern" in header}
          xywh {0 0 100 20} labelsize 11
        }
      }
      Fl_Choice data_class_choice {open
        xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 textsize 11
      } {
        MenuItem {} {
          label private
          xywh {10 10 100 20} labelsize 11
        }
        MenuItem {} {
          label public
          xywh {10 10 100 20} labelsize 11
        }
        MenuItem {} {
          label protected
          xywh {10 10 100 20} labelsize 11
        }
      }
    }
    Fl_Input data_input {
      label {Variable Name:}
      tooltip {Binary Data variables are declared "const unsigned char []".} xywh {10 52 320 20} labelfont 1 labelsize 11 align 133 when 0 textfont 4 textsize 11
    }
    Fl_Input data_filename {
      label {Filename:}
      tooltip {Name and path of binary file that will be included.} xywh {10 90 280 20} labelfont 1 labelsize 11 align 133 when 0 textfont 4 textsize 11
    }
    Fl_Button data_filebrowser {
      label {@fileopen}
      xywh {290 90 40 20} labelcolor 134
    }
    Fl_Group {} {open
      xywh {10 205 320 20}
    } {
      Fl_Return_Button data_panel_ok {
        label OK selected
        xywh {200 205 60 20} labelsize 11 hotspot
      }
      Fl_Button data_panel_cancel {
        label Cancel
        xywh {270 205 60 20} shortcut 0xff1b labelsize 11
      }
      Fl_Box {} {
        xywh {10 205 185 20} resizable
      }
    }
    Fl_Text_Editor data_comment_input {
      label {Comment:}
      tooltip {Declaration comment in Doxygen format} xywh {10 130 320 65} box DOWN_BOX labelfont 1 labelsize 11 align 5 textfont 4 textsize 11 resizable
      code0 {data_comment_input->buffer(new Fl_Text_Buffer());}
    }
  }
} 

Function {make_class_panel()} {} {
  Fl_Window class_panel {
    label {Class Properties} open
    xywh {395 191 342 196} type Double labelsize 11 resizable modal size_range {343 188 0 0} visible
  } {
    Fl_Group {} {open
................................................................................
    undo_last --;
  }} {}
} 

Function {make_widgetbin()} {} {
  Fl_Window widgetbin_panel {
    label {Widget Bin}
    callback {if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape)
  exit_cb((Fl_Widget*)o, v);
else  
  toggle_widgetbin_cb((Fl_Widget*)o, v);}
    xywh {410 171 550 85} type Single align 80 non_modal visible
  } {
    Fl_Group {} {
      xywh {3 3 79 79}
    } {
      Fl_Button {} {
        user_data {"Function"}
        callback type_make_cb
................................................................................
      }
      Fl_Button {} {
        user_data {"declblock"}
        callback type_make_cb
        tooltip {Declaration Block} xywh {30 55 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[11]);}
      }
      Fl_Button {} {
        user_data {"data"}
        callback type_make_cb
        tooltip {Binary Data} xywh {55 55 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[49]);}
      }
    }
    Fl_Group {} {
      xywh {87 3 79 79}
    } {
      Fl_Button {} {
        user_data {"Fl_Window"}
        callback type_make_cb
................................................................................
        tooltip Progress xywh {493 55 24 24} box THIN_UP_BOX
        code0 {o->image(pixmap[36]);}
      }
    }
  }
} 

Function {make_sourceview()} {} {

  Fl_Window sourceview_panel {
    label {Code View}
    callback toggle_sourceview_cb
    xywh {430 273 520 490} type Double align 80 resizable size_range {384 120 0 0} visible
  } {
    Fl_Tabs sv_tab {
      callback update_sourceview_position_cb
................................................................................
      }
    }
  }
} 

comment {
//
// End of "$Id: function_panel.fl 7084 2010-02-15 16:43:51Z matt $".
//} {in_source in_header
} 

Changes to fltk-1.3/fluid/function_panel.h.

1
2
3
4
5
6
7
8
9
..
78
79
80
81
82
83
84












85
86
87
88
89
90
91
...
115
116
117
118
119
120
121
122
123
//
// "$Id: function_panel.h 6626 2009-01-12 14:52:45Z fabien $"
//
// Code dialogs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
extern Fl_Input *decl_input;
extern Fl_Return_Button *decl_panel_ok;
extern Fl_Button *decl_panel_cancel;
extern Fl_Text_Editor *decl_comment_input;
Fl_Double_Window* make_decl_panel();
extern Fl_Menu_Item menu_decl_choice[];
extern Fl_Menu_Item menu_decl_class_choice[];












extern Fl_Double_Window *class_panel;
extern Fl_Light_Button *c_public_button;
extern Fl_Input *c_name_input;
extern Fl_Input *c_subclass_input;
extern Fl_Text_Editor *c_comment_input;
extern Fl_Return_Button *c_panel_ok;
extern Fl_Button *c_panel_cancel;
................................................................................
extern Fl_Light_Button *sv_autorefresh;
extern Fl_Light_Button *sv_autoposition;
extern void toggle_sourceview_b_cb(Fl_Button*, void*);
Fl_Double_Window* make_sourceview();
#endif

//
// End of "$Id: function_panel.h 6626 2009-01-12 14:52:45Z fabien $".
//

|







 







>
>
>
>
>
>
>
>
>
>
>
>







 







|

1
2
3
4
5
6
7
8
9
..
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
...
127
128
129
130
131
132
133
134
135
//
// "$Id: function_panel.h 7084 2010-02-15 16:43:51Z matt $"
//
// Code dialogs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 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
................................................................................
extern Fl_Input *decl_input;
extern Fl_Return_Button *decl_panel_ok;
extern Fl_Button *decl_panel_cancel;
extern Fl_Text_Editor *decl_comment_input;
Fl_Double_Window* make_decl_panel();
extern Fl_Menu_Item menu_decl_choice[];
extern Fl_Menu_Item menu_decl_class_choice[];
extern Fl_Double_Window *data_panel;
extern Fl_Choice *data_choice;
extern Fl_Choice *data_class_choice;
extern Fl_Input *data_input;
extern Fl_Input *data_filename;
extern Fl_Button *data_filebrowser;
extern Fl_Return_Button *data_panel_ok;
extern Fl_Button *data_panel_cancel;
extern Fl_Text_Editor *data_comment_input;
Fl_Double_Window* make_data_panel();
extern Fl_Menu_Item menu_data_choice[];
extern Fl_Menu_Item menu_data_class_choice[];
extern Fl_Double_Window *class_panel;
extern Fl_Light_Button *c_public_button;
extern Fl_Input *c_name_input;
extern Fl_Input *c_subclass_input;
extern Fl_Text_Editor *c_comment_input;
extern Fl_Return_Button *c_panel_ok;
extern Fl_Button *c_panel_cancel;
................................................................................
extern Fl_Light_Button *sv_autorefresh;
extern Fl_Light_Button *sv_autoposition;
extern void toggle_sourceview_b_cb(Fl_Button*, void*);
Fl_Double_Window* make_sourceview();
#endif

//
// End of "$Id: function_panel.h 7084 2010-02-15 16:43:51Z matt $".
//

Added fltk-1.3/fluid/ide_support.cxx.





























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
//
// "$Id: ide_support.cxx 7147 2010-02-25 23:29:42Z matt $"
//
// IDE and Build File generation for the Fast Light Tool Kit (FLTK).
//
// Copyright 2010 by Matthias Melcher.
//
// 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
//

/*
 IDE SUPPORT IN FLUID
 
 One of the biggest issues in maintaining FLTK has been the maintenance of build 
 environments. Users are confused when new features of FLTK ar not available
 yet for their platform, and may never be unless a volunteer updates and 
 maintains the corresponding IDE support. 
 
 "ide support" will generate sets of IDE files for all supported build 
 environments, including Makefiles and CMake. Ading a new source file to the 
 FLTK build tree is as easy as adding the file to the database and 
 running Fluid.
 
 This module will give Fluid the power to create a database for FLTK based 
 projects. By linking further IDE support modules, the database can be used
 to create IDE build files for many platforms, compilers, and development 
 environments.
 
 This module creates a database specifically for the FLTK project itself. A
 user interface shold be created to create databases for arbitrary projects.
 
 > fluid -fltkdb <filename>     # creates the fltk database
 
 
 DATABASE FORMAT
 
 The database is constructed using Fl_Preferences. Objects in the database are
 defined by using a UUID as the group name. References to objects are done using 
 the same UUID as a value. The mandatory structure is defined in the first block
 below. When writing IDE files, additional optional key/value pairs may be 
 generated. Their key should be marked by a unique prefix.
 
 Standard database format:
 
 /projectName:                  # name of the project (FLTK)
 
 /ide/                          # contains IDE specific data
 /targets/                      # contains various groups for differen target types
 /./libs/                       # targets that will be buildt as libraries
 /././UUID/                     # [multiple] description of a library target
 /./././sources/                # all source files required to build the library
 /././././UUID/                 # [multiple] description of this dependency
 /./././././refUUID:            # reference to file definitin in /files/
 /./././libs/                   # all libraries required to build the library
 /././././....                  # see /targets/libs/UUID/sources/...
 /./././fluid/                  # all Fluid UI defs required to build the library
 /././././....                  # see /targets/libs/UUID/sources/...
 /./././externals/              # all external libraries required to build the library
 /././././....                  # see /targets/libs/UUID/sources/...
 /./././deps/                   # all dependencies on other targets in this project
 /././././....                  # see /targets/libs/UUID/sources/...
 /./apps/                       # full blown applications
 /././UUID/                     # [multiple] description of a application target
 /./././...                     # see /targets/libs/UUID/...
 /./tests/                      # smaller test applications
 /././UUID/                     # [multiple] description of a test app target
 /./././...                     # see /targets/libs/UUID/...
 /files/                        # more information on al referenced files
 /./UUID/                       # [multiple] description of a file
 /././pathAndName:              # path and file name relative to the archive root
 
 Xcode3 IDE FILES: see ide_xcode.cxx
 
 VISUALC 2005 IDE FILES: not yet implemented
 
 VISUALC 2008 IDE FILES: not yet implemented
 
 VISUALC 2010 IDE FILES: not yet implemented
 
 CMAKE FILES: not yet implemented
 
 MAKEFILE SYSTEM: not yet implemented
 
 others: not yet implemented
 
 */

#include "ide_support.h"

#include <FL/Fl.H>
#include <FL/fl_ask.H>
#include <FL/Fl_Widget.H>
#include <FL/filename.H>

#include "Fl_Type.h"

/* 
 * Read a UUID from a database entry. If none exists, create one in the database. 
 */
void getUUID(Fl_Preferences &db, const char *key, char *buffer) {
  db.get(key, buffer, "", 37);
  if (buffer[0]==0) {
    strcpy(buffer, Fl_Preferences::newUUID());
    db.set(key, buffer);
  }
}

/* 
 * Read an Xcode ID from a database entry. If none exists, create one in the database. 
 * The Xcode ID contains 24 bytes of hexadecimal chracters.
 */
void getXCID(Fl_Preferences &db, const char *key, char *buffer) {
  db.get(key, buffer, "", 25);
  if (buffer[0]==0) {
    const char *uuid = Fl_Preferences::newUUID();
    // A UUID comes in blocks of 8, 4, 4, 4, and 12 characters
    unsigned int i0, i1, i2, i3, i4, i5;
    sscanf(uuid, "%8x-%4x-%4x-%4x-%4x%8x", &i0, &i1, &i2, &i3, &i4, &i5);
    sprintf(buffer, "%8.8X%4.4X%4.4X%8.8X", i0, i1^i2, i3^i4, i5);
    db.set(key, buffer);
  }
}

/* A preferences node with some additional functionality */
Fl_IDE_Prefs::Fl_IDE_Prefs(Fl_Preferences &parent, const char *name) 
: Fl_Preferences(parent, name) { 
}

Fl_IDE_Prefs::Fl_IDE_Prefs(Fl_Preferences &parent, int ix) 
: Fl_Preferences(parent, ix) { 
}

Fl_IDE_Prefs::Fl_IDE_Prefs(Fl_Preferences::ID id) 
: Fl_Preferences(id) { 
}

Fl_Preferences::ID Fl_IDE_Prefs::find_by_name(const char *name) {
  int i, n = groups();
  for (i=0; i<n; i++) {
    Fl_Preferences p(this, i);
    if (strcmp(name, p.name())==0) return p.id();
  }
  return 0;
}

Fl_Preferences::ID Fl_IDE_Prefs::find_by_key(const char *key, const char *value) {
  int i, n = groups();
  for (i=0; i<n; i++) {
    Fl_Preferences p(this, i);
    char *v;
    p.get(key, v, "");
    if (strcmp(value, v)==0) { free(v); return p.id(); }
    free(v);
  }
  return 0;
}

Fl_Preferences::ID Fl_IDE_Prefs::add_with_key(const char *key, const char *value, const char *uuid) {
  Fl_Preferences::ID ret = find_by_key(key, value);
  if (!ret) {
    if (!uuid) uuid = Fl_Preferences::newUUID();
    Fl_Preferences p(this, uuid);
    p.set(key, value);
    ret = p.id();
  }
  return ret;
}


Fl_Target_Prefs::Fl_Target_Prefs(Fl_Preferences::ID id) 
: Fl_IDE_Prefs(id) { 
}

Fl_Preferences::ID Fl_Target_Prefs::add_source(Fl_IDE_Prefs &fdb, const char *pathAndName) {
  Fl_IDE_Prefs file(fdb.add_with_key("pathAndName", pathAndName));
  Fl_IDE_Prefs p(*this, "sources");
  return p.add_with_key("refUUID", file.name());
}

Fl_Preferences::ID Fl_Target_Prefs::add_fl(Fl_IDE_Prefs &fdb, const char *pathAndName) {
  Fl_IDE_Prefs file(fdb.add_with_key("pathAndName", pathAndName));
  Fl_IDE_Prefs p(*this, "fl");
  return p.add_with_key("refUUID", file.name());
}

Fl_Preferences::ID Fl_Target_Prefs::depends_on(Fl_IDE_Prefs &dep) {
  Fl_IDE_Prefs p(*this, "deps");
  return p.add_with_key("refUUID", dep.name());
}

Fl_Preferences::ID Fl_Target_Prefs::add_lib(Fl_IDE_Prefs &lib) {
  this->depends_on(lib);
  Fl_IDE_Prefs p(*this, "libs");
  return p.add_with_key("refUUID", lib.name());
}

Fl_Preferences::ID Fl_Target_Prefs::add_external_lib(Fl_IDE_Prefs &fdb, const char *pathAndName) {
  Fl_IDE_Prefs file(fdb.add_with_key("pathAndName", pathAndName));
  Fl_IDE_Prefs p(*this, "externals");
  return p.add_with_key("refUUID", file.name());
}


Fl_File_Prefs::Fl_File_Prefs(Fl_Preferences &parent, const char *name) 
: Fl_Preferences(parent, name) { 
}

Fl_File_Prefs::Fl_File_Prefs(Fl_Preferences &parent, int ix) 
: Fl_Preferences(parent, ix) { 
}

Fl_File_Prefs::Fl_File_Prefs(Fl_Preferences::ID id) 
: Fl_Preferences(id) { 
}

const char *Fl_File_Prefs::filePath() { 
  char pan[1024]; get("pathAndName", pan, "DBERROR/DBERROR.DBERR", 1024);
  strcpy(pPath, pan);
  char *name = (char*)fl_filename_name(pPath);
  if (name) *name = 0;
  return pPath;
}

const char *Fl_File_Prefs::fileName() { 
  char pan[1024]; get("pathAndName", pan, "DBERROR/DBERROR.DBERR", 1024);
  char *name = (char*)fl_filename_name(pan);
  if (name) {
    strcpy(pName, name);
  } else {
    strcpy(pName, pan);
  }
  char *ext = (char*)fl_filename_ext(pName);
  if (ext) *ext = 0;
  return pName;
}

const char *Fl_File_Prefs::fullName() { 
  char pan[1024]; get("pathAndName", pan, "DBERROR/DBERROR.DBERR", 1024);
  char *name = (char*)fl_filename_name(pan);
  if (name) {
    strcpy(pFullName, name);
  } else {
    strcpy(pFullName, pan);
  }
  return pFullName;
}

const char *Fl_File_Prefs::fileExt() { 
  char pan[1024]; get("pathAndName", pan, "DBERROR/DBERROR.DBERR", 1024);
  char *ext = (char*)fl_filename_ext(pan);
  if (ext) strcpy(pExt, ext);
  else pExt[0] = 0;
  return pExt;
}

void xcode_only(Fl_Preferences::ID id) {
  Fl_Preferences p(id);
  p.set("only", "xcode");
}

char with_xcode(Fl_Preferences::ID id) {
  Fl_Preferences p(id);
  if (p.entryExists("only")) {
    char os[16];
    p.get("only", os, "xcode", 15);
    return (strcmp(os, "xcode")==0);
  } else {
    return 1;
  }
}

void visualc_only(Fl_Preferences::ID id) {
  Fl_Preferences p(id);
  p.set("only", "visualc");
}

char with_visualc(Fl_Preferences::ID id) {
  Fl_Preferences p(id);
  if (p.entryExists("only")) {
    char os[16];
    p.get("only", os, "visualc", 15);
    return (strcmp(os, "visualc")==0);
  } else {
    return 1;
  }
}

void makefile_only(Fl_Preferences::ID id) {
  Fl_Preferences p(id);
  p.set("only", "makefile");
}

char with_makefile(Fl_Preferences::ID id) {
  Fl_Preferences p(id);
  if (p.entryExists("only")) {
    char os[16];
    p.get("only", os, "makefile", 15);
    return (strcmp(os, "makefile")==0);
  } else {
    return 1;
  }
}


//==============================================================================


int create_new_database(const char *filename)
{
  Fl_Preferences *db = new Fl_Preferences(filename, "fltk.org", 0);
  db->clear();
  
  db->set("projectName", "fltk");
  
  Fl_Preferences targets_db(db, "targets");
  Fl_IDE_Prefs files_db(*db, "files");
  
  // --- create libraries
  Fl_IDE_Prefs libs_db(targets_db, "libs"); 
  
  Fl_Target_Prefs fltk_lib(libs_db.add_with_key("name", "fltk")); {
    fltk_lib.add_source(files_db, "src/Fl.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Adjuster.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Bitmap.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Box.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Browser.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Browser_.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Browser_load.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Button.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Chart.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Check_Browser.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Check_Button.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Choice.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Clock.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Color_Chooser.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Counter.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Dial.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Double_Window.cxx");
    fltk_lib.add_source(files_db, "src/Fl_File_Browser.cxx");
    fltk_lib.add_source(files_db, "src/Fl_File_Chooser.cxx");
    fltk_lib.add_source(files_db, "src/Fl_File_Chooser2.cxx");
    fltk_lib.add_source(files_db, "src/Fl_File_Icon.cxx");
    fltk_lib.add_source(files_db, "src/Fl_File_Input.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Group.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Help_View.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Image.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Input.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Input_.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Light_Button.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Menu.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Menu_.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Menu_Bar.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Menu_Button.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Menu_Window.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Menu_add.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Menu_global.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Multi_Label.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Native_File_Chooser.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Overlay_Window.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Pack.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Pixmap.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Positioner.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Preferences.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Progress.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Repeat_Button.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Return_Button.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Roller.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Round_Button.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Scroll.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Scrollbar.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Shared_Image.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Single_Window.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Slider.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Sys_Menu_Bar.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Table.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Table_Row.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tabs.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Text_Buffer.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Text_Display.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Text_Editor.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tile.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tiled_Image.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tooltip.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tree.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tree_Item.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tree_Item_Array.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Tree_Prefs.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Valuator.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Value_Input.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Value_Output.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Value_Slider.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Widget.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Window.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Window_fullscreen.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Window_hotspot.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Window_iconize.cxx");
    fltk_lib.add_source(files_db, "src/Fl_Wizard.cxx");
    fltk_lib.add_source(files_db, "src/Fl_XBM_Image.cxx");
    fltk_lib.add_source(files_db, "src/Fl_XPM_Image.cxx");
    fltk_lib.add_source(files_db, "src/Fl_abort.cxx");
    fltk_lib.add_source(files_db, "src/Fl_add_idle.cxx");
    fltk_lib.add_source(files_db, "src/Fl_arg.cxx");
    fltk_lib.add_source(files_db, "src/Fl_compose.cxx");
    fltk_lib.add_source(files_db, "src/Fl_display.cxx");
    fltk_lib.add_source(files_db, "src/Fl_get_key.cxx");
    fltk_lib.add_source(files_db, "src/Fl_get_system_colors.cxx");
    fltk_lib.add_source(files_db, "src/Fl_grab.cxx");
    fltk_lib.add_source(files_db, "src/Fl_lock.cxx");
    fltk_lib.add_source(files_db, "src/Fl_own_colormap.cxx");
    fltk_lib.add_source(files_db, "src/Fl_visual.cxx");
    fltk_lib.add_source(files_db, "src/Fl_x.cxx");
    fltk_lib.add_source(files_db, "src/cmap.cxx");
    fltk_lib.add_source(files_db, "src/filename_absolute.cxx");
    fltk_lib.add_source(files_db, "src/filename_expand.cxx");
    fltk_lib.add_source(files_db, "src/filename_ext.cxx");
    fltk_lib.add_source(files_db, "src/filename_isdir.cxx");
    fltk_lib.add_source(files_db, "src/filename_list.cxx");
    fltk_lib.add_source(files_db, "src/filename_match.cxx");
    fltk_lib.add_source(files_db, "src/filename_setext.cxx");
    fltk_lib.add_source(files_db, "src/fl_arc.cxx");
    fltk_lib.add_source(files_db, "src/fl_arci.cxx");
    fltk_lib.add_source(files_db, "src/fl_ask.cxx");
    fltk_lib.add_source(files_db, "src/fl_boxtype.cxx");
    fltk_lib.add_source(files_db, "src/fl_call_main.c");
    fltk_lib.add_source(files_db, "src/fl_color.cxx");
    fltk_lib.add_source(files_db, "src/fl_cursor.cxx");
    fltk_lib.add_source(files_db, "src/fl_curve.cxx");
    fltk_lib.add_source(files_db, "src/fl_diamond_box.cxx");
    fltk_lib.add_source(files_db, "src/fl_dnd.cxx");
    fltk_lib.add_source(files_db, "src/fl_draw.cxx");
    fltk_lib.add_source(files_db, "src/fl_draw_image.cxx");
    fltk_lib.add_source(files_db, "src/fl_draw_pixmap.cxx");
    fltk_lib.add_source(files_db, "src/fl_encoding_latin1.cxx");
    fltk_lib.add_source(files_db, "src/fl_encoding_mac_roman.cxx");
    fltk_lib.add_source(files_db, "src/fl_engraved_label.cxx");
    fltk_lib.add_source(files_db, "src/fl_file_dir.cxx");
    fltk_lib.add_source(files_db, "src/fl_font.cxx");
    fltk_lib.add_source(files_db, "src/fl_gtk.cxx");
    fltk_lib.add_source(files_db, "src/fl_labeltype.cxx");
    fltk_lib.add_source(files_db, "src/fl_line_style.cxx");
    fltk_lib.add_source(files_db, "src/fl_open_uri.cxx");
    fltk_lib.add_source(files_db, "src/fl_oval_box.cxx");
    fltk_lib.add_source(files_db, "src/fl_overlay.cxx");
    fltk_lib.add_source(files_db, "src/fl_overlay_visual.cxx");
    fltk_lib.add_source(files_db, "src/fl_plastic.cxx");
    fltk_lib.add_source(files_db, "src/fl_read_image.cxx");
    fltk_lib.add_source(files_db, "src/fl_rect.cxx");
    fltk_lib.add_source(files_db, "src/fl_round_box.cxx");
    fltk_lib.add_source(files_db, "src/fl_rounded_box.cxx");
    fltk_lib.add_source(files_db, "src/fl_scroll_area.cxx");
    fltk_lib.add_source(files_db, "src/fl_set_font.cxx");
    fltk_lib.add_source(files_db, "src/fl_set_fonts.cxx");
    fltk_lib.add_source(files_db, "src/fl_shadow_box.cxx");
    fltk_lib.add_source(files_db, "src/fl_shortcut.cxx");
    fltk_lib.add_source(files_db, "src/fl_show_colormap.cxx");
    fltk_lib.add_source(files_db, "src/fl_symbols.cxx");
    fltk_lib.add_source(files_db, "src/fl_utf.c");
    fltk_lib.add_source(files_db, "src/fl_utf8.cxx");
    fltk_lib.add_source(files_db, "src/fl_vertex.cxx");
    fltk_lib.add_source(files_db, "src/flstring.c");
    fltk_lib.add_source(files_db, "src/numericsort.c");
    fltk_lib.add_source(files_db, "src/scandir.c");
    fltk_lib.add_source(files_db, "src/screen_xywh.cxx");
    fltk_lib.add_source(files_db, "src/vsnprintf.c");
    fltk_lib.add_source(files_db, "src/xutf8/case.c");
    fltk_lib.add_source(files_db, "src/xutf8/is_right2left.c");
    fltk_lib.add_source(files_db, "src/xutf8/is_spacing.c");
  }
  
  Fl_Target_Prefs fltk_gl_lib(libs_db.add_with_key("name", "fltkgl")); {
    fltk_gl_lib.add_source(files_db, "src/Fl_Gl_Choice.cxx");
    fltk_gl_lib.add_source(files_db, "src/Fl_Gl_Overlay.cxx");
    fltk_gl_lib.add_source(files_db, "src/Fl_Gl_Window.cxx");
    fltk_gl_lib.add_source(files_db, "src/freeglut_geometry.cxx");
    fltk_gl_lib.add_source(files_db, "src/freeglut_stroke_mono_roman.cxx");
    fltk_gl_lib.add_source(files_db, "src/freeglut_stroke_roman.cxx");
    fltk_gl_lib.add_source(files_db, "src/freeglut_teapot.cxx");
    fltk_gl_lib.add_source(files_db, "src/gl_draw.cxx");
    fltk_gl_lib.add_source(files_db, "src/glut_compatability.cxx");
    fltk_gl_lib.add_source(files_db, "src/glut_font.cxx");
    xcode_only(fltk_gl_lib.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(fltk_gl_lib.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    fltk_gl_lib.add_lib(fltk_lib);
  }
  
  Fl_Target_Prefs fltk_images_lib(libs_db.add_with_key("name", "fltkimages")); {
    fltk_images_lib.add_source(files_db, "src/Fl_BMP_Image.cxx");
    fltk_images_lib.add_source(files_db, "src/Fl_File_Icon2.cxx");
    fltk_images_lib.add_source(files_db, "src/Fl_GIF_Image.cxx");
    fltk_images_lib.add_source(files_db, "src/Fl_Help_Dialog.cxx");
    fltk_images_lib.add_source(files_db, "src/Fl_JPEG_Image.cxx");
    fltk_images_lib.add_source(files_db, "src/Fl_PNG_Image.cxx");
    fltk_images_lib.add_source(files_db, "src/Fl_PNM_Image.cxx");
    fltk_images_lib.add_source(files_db, "src/fl_images_core.cxx");
    fltk_images_lib.add_lib(fltk_lib);
  }
  
  Fl_Target_Prefs fltk_png_lib(libs_db.add_with_key("name", "fltkpng")); {
    fltk_png_lib.add_source(files_db, "png/png.c");
    fltk_png_lib.add_source(files_db, "png/pngerror.c");
    fltk_png_lib.add_source(files_db, "png/pngget.c");
    fltk_png_lib.add_source(files_db, "png/pngmem.c");
    fltk_png_lib.add_source(files_db, "png/pngpread.c");
    fltk_png_lib.add_source(files_db, "png/pngread.c");
    fltk_png_lib.add_source(files_db, "png/pngrio.c");
    fltk_png_lib.add_source(files_db, "png/pngrtran.c");
    fltk_png_lib.add_source(files_db, "png/pngrutil.c");
    fltk_png_lib.add_source(files_db, "png/pngset.c");
    fltk_png_lib.add_source(files_db, "png/pngtrans.c");
    fltk_png_lib.add_source(files_db, "png/pngwio.c");
    fltk_png_lib.add_source(files_db, "png/pngwrite.c");
    fltk_png_lib.add_source(files_db, "png/pngwtran.c");
    fltk_png_lib.add_source(files_db, "png/pngwutil.c");
    xcode_only(fltk_png_lib.add_external_lib(files_db, "/usr/lib/libz.dylib"));
    fltk_images_lib.add_lib(fltk_png_lib);
  }
  
  Fl_Target_Prefs fltk_jpeg_lib(libs_db.add_with_key("name", "fltkjpeg")); {
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcapimin.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcapistd.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jccoefct.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jccolor.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcdctmgr.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jchuff.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcinit.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcmainct.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcmarker.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcmaster.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcomapi.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcparam.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcphuff.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcprepct.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jcsample.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jctrans.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdapimin.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdapistd.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdatadst.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdatasrc.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdcoefct.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdcolor.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jddctmgr.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdhuff.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdinput.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdmainct.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdmarker.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdmaster.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdmerge.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdphuff.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdpostct.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdsample.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jdtrans.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jerror.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jfdctflt.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jfdctfst.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jfdctint.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jidctflt.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jidctfst.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jidctint.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jidctred.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jmemmgr.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jmemnobs.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jquant1.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jquant2.c");
    fltk_jpeg_lib.add_source(files_db, "jpeg/jutils.c");
    fltk_jpeg_lib.add_lib(fltk_lib);
    fltk_images_lib.add_lib(fltk_jpeg_lib);
  }
  
  Fl_Target_Prefs fltk_forms_lib(libs_db.add_with_key("name", "fltkforms")); {
    fltk_forms_lib.add_source(files_db, "src/forms_bitmap.cxx");
    fltk_forms_lib.add_source(files_db, "src/forms_compatability.cxx");
    fltk_forms_lib.add_source(files_db, "src/forms_free.cxx");
    fltk_forms_lib.add_source(files_db, "src/forms_fselect.cxx");
    fltk_forms_lib.add_source(files_db, "src/forms_pixmap.cxx");
    fltk_forms_lib.add_source(files_db, "src/forms_timer.cxx");
    fltk_forms_lib.add_lib(fltk_lib);
  }
  
  Fl_Target_Prefs fltk_z_lib(libs_db.add_with_key("name", "zlib")); {
    fltk_z_lib.add_source(files_db, "zlib/adler32.c");
    fltk_z_lib.add_source(files_db, "zlib/compress.c");
    fltk_z_lib.add_source(files_db, "zlib/crc32.c");
    fltk_z_lib.add_source(files_db, "zlib/deflate.c");
    fltk_z_lib.add_source(files_db, "zlib/gzio.c");
    fltk_z_lib.add_source(files_db, "zlib/inffast.c");
    fltk_z_lib.add_source(files_db, "zlib/inflate.c");
    fltk_z_lib.add_source(files_db, "zlib/inftrees.c");
    fltk_z_lib.add_source(files_db, "zlib/trees.c");
    fltk_z_lib.add_source(files_db, "zlib/uncompr.c");
    fltk_z_lib.add_source(files_db, "zlib/zutil.c");
    fltk_png_lib.add_lib(fltk_z_lib);
  }
  
  // --- create applications
  Fl_IDE_Prefs apps_db(targets_db, "apps"); 
  
  Fl_Target_Prefs fluid_app(apps_db.add_with_key("name", "Fluid")); {
    fluid_app.add_source(files_db, "fluid/CodeEditor.cxx");
    fluid_app.add_source(files_db, "fluid/Fl_Function_Type.cxx");
    fluid_app.add_source(files_db, "fluid/Fl_Group_Type.cxx");
    fluid_app.add_source(files_db, "fluid/Fl_Menu_Type.cxx");
    fluid_app.add_source(files_db, "fluid/Fl_Type.cxx");
    fluid_app.add_source(files_db, "fluid/Fl_Widget_Type.cxx");
    fluid_app.add_source(files_db, "fluid/Fl_Window_Type.cxx");
    fluid_app.add_source(files_db, "fluid/Fluid_Image.cxx");
    fluid_app.add_source(files_db, "fluid/about_panel.cxx");
    fluid_app.add_source(files_db, "fluid/align_widget.cxx");
    fluid_app.add_source(files_db, "fluid/alignment_panel.cxx");
    fluid_app.add_source(files_db, "fluid/code.cxx");
    fluid_app.add_source(files_db, "fluid/factory.cxx");
    fluid_app.add_source(files_db, "fluid/file.cxx");
    fluid_app.add_source(files_db, "fluid/fluid.cxx");
    fluid_app.add_source(files_db, "fluid/function_panel.cxx");
    fluid_app.add_source(files_db, "fluid/ide_support.cxx");
    fluid_app.add_source(files_db, "fluid/ide_visualc.cxx");
    fluid_app.add_source(files_db, "fluid/ide_xcode.cxx");
    fluid_app.add_source(files_db, "fluid/template_panel.cxx");
    fluid_app.add_source(files_db, "fluid/undo.cxx");
    fluid_app.add_source(files_db, "fluid/widget_panel.cxx");
    fluid_app.add_lib(fltk_lib);
    fluid_app.add_lib(fltk_forms_lib);
    fluid_app.add_lib(fltk_images_lib);
    fluid_app.add_lib(fltk_jpeg_lib);
    fluid_app.add_lib(fltk_png_lib);
    visualc_only(fluid_app.add_lib(fltk_z_lib));
    xcode_only(fluid_app.add_external_lib(files_db, "icons/fluid.icns"));
  }
  
  // --- create test applications
  Fl_IDE_Prefs tests_db(targets_db, "tests"); 
  
  Fl_Target_Prefs demo_db(tests_db.add_with_key("name", "Demo")); {
    demo_db.add_source(files_db, "test/demo.cxx");
    demo_db.add_lib(fltk_lib); 
    demo_db.depends_on(fluid_app); 
  }
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "adjuster"));
    db.add_source(files_db, "test/adjuster.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "arc"));
    db.add_source(files_db, "test/arc.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "ask"));
    db.add_source(files_db, "test/ask.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
    
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "bitmap"));
    db.add_source(files_db, "test/bitmap.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "blocks"));
    db.add_source(files_db, "test/blocks.cxx");
    db.add_lib(fltk_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/CoreAudio.framework"));
    visualc_only(db.add_external_lib(files_db, "winmm.lib"));
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "boxtype"));
    db.add_source(files_db, "test/boxtype.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "browser"));
    db.add_source(files_db, "test/browser.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "button"));
    db.add_source(files_db, "test/button.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "buttons"));
    db.add_source(files_db, "test/buttons.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "checkers"));
    db.add_source(files_db, "test/checkers.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "clock"));
    db.add_source(files_db, "test/clock.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "colbrowser"));
    db.add_source(files_db, "test/colbrowser.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_forms_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "color_chooser"));
    db.add_source(files_db, "test/color_chooser.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "cube"));
    db.add_source(files_db, "test/cube.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_gl_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    visualc_only(db.add_external_lib(files_db, "glu32.lib"));
    visualc_only(db.add_external_lib(files_db, "opengl32.lib"));
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "CubeView"));
    db.add_source(files_db, "test/CubeView.cxx");
    db.add_source(files_db, "test/CubeMain.cxx");
    db.add_fl(files_db, "test/CubeViewUI.fl");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_gl_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    visualc_only(db.add_external_lib(files_db, "glu32.lib"));
    visualc_only(db.add_external_lib(files_db, "opengl32.lib"));
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "cursor"));
    db.add_source(files_db, "test/cursor.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "curve"));
    db.add_source(files_db, "test/curve.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "doublebuffer"));
    db.add_source(files_db, "test/doublebuffer.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "editor"));
    db.add_source(files_db, "test/editor.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "fast_slow"));
    db.add_fl(files_db, "test/fast_slow.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "file_chooser"));
    db.add_source(files_db, "test/file_chooser.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_images_lib); 
    db.add_lib(fltk_jpeg_lib); 
    db.add_lib(fltk_png_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "fonts"));
    db.add_source(files_db, "test/fonts.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "forms"));
    db.add_source(files_db, "test/forms.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_forms_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "fractals"));
    db.add_source(files_db, "test/fractals.cxx");
    db.add_source(files_db, "test/fracviewer.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_gl_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    visualc_only(db.add_external_lib(files_db, "glu32.lib"));
    visualc_only(db.add_external_lib(files_db, "opengl32.lib"));
    db.add_lib(fltk_forms_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "fullscreen"));
    db.add_source(files_db, "test/fullscreen.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_gl_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    visualc_only(db.add_external_lib(files_db, "glu32.lib"));
    visualc_only(db.add_external_lib(files_db, "opengl32.lib"));
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "gl_overlay"));
    db.add_source(files_db, "test/gl_overlay.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_gl_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    visualc_only(db.add_external_lib(files_db, "glu32.lib"));
    visualc_only(db.add_external_lib(files_db, "opengl32.lib"));
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "glpuzzle"));
    db.add_source(files_db, "test/glpuzzle.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_gl_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    visualc_only(db.add_external_lib(files_db, "glu32.lib"));
    visualc_only(db.add_external_lib(files_db, "opengl32.lib"));
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "hello"));
    db.add_source(files_db, "test/hello.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "help"));
    db.add_source(files_db, "test/help.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_images_lib); 
    db.add_lib(fltk_jpeg_lib); 
    db.add_lib(fltk_png_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "iconize"));
    db.add_source(files_db, "test/iconize.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "image"));
    db.add_source(files_db, "test/image.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "inactive"));
    db.add_fl(files_db, "test/inactive.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "input"));
    db.add_source(files_db, "test/input.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "input_choice"));
    db.add_source(files_db, "test/input_choice.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "keyboard"));
    db.add_source(files_db, "test/keyboard.cxx");
    db.add_fl(files_db, "test/keyboard_ui.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "label"));
    db.add_source(files_db, "test/label.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_forms_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "line_style"));
    db.add_source(files_db, "test/line_style.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "list_visuals"));
    db.add_source(files_db, "test/list_visuals.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "mandelbrot"));
    db.add_source(files_db, "test/mandelbrot.cxx");
    db.add_fl(files_db, "test/mandelbrot_ui.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "menubar"));
    db.add_source(files_db, "test/menubar.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "message"));
    db.add_source(files_db, "test/message.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "minimum"));
    db.add_source(files_db, "test/minimum.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "navigation"));
    db.add_source(files_db, "test/navigation.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "native-filechooser"));
    db.add_source(files_db, "test/native-filechooser.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "output"));
    db.add_source(files_db, "test/output.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_forms_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "overlay"));
    db.add_source(files_db, "test/overlay.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "pack"));
    db.add_source(files_db, "test/pack.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "pixmap_browser"));
    db.add_source(files_db, "test/pixmap_browser.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_images_lib); 
    db.add_lib(fltk_jpeg_lib); 
    db.add_lib(fltk_png_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "pixmap"));
    db.add_source(files_db, "test/pixmap.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "preferences"));
    db.add_fl(files_db, "test/preferences.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "radio"));
    db.add_fl(files_db, "test/radio.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "resizebox"));
    db.add_source(files_db, "test/resizebox.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "resize"));
    db.add_fl(files_db, "test/resize.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "scroll"));
    db.add_source(files_db, "test/scroll.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "shape"));
    db.add_source(files_db, "test/shape.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_gl_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/OpenGL.framework"));
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/AGL.framework"));
    visualc_only(db.add_external_lib(files_db, "glu32.lib"));
    visualc_only(db.add_external_lib(files_db, "opengl32.lib"));
    demo_db.depends_on(db);
  }  

  { Fl_Target_Prefs db(tests_db.add_with_key("name", "subwindow"));
    db.add_source(files_db, "test/subwindow.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "sudoku"));
    db.add_source(files_db, "test/sudoku.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_images_lib); 
    db.add_lib(fltk_jpeg_lib); 
    db.add_lib(fltk_png_lib); 
    xcode_only(db.add_external_lib(files_db, "/System/Library/Frameworks/CoreAudio.framework"));
    visualc_only(db.add_external_lib(files_db, "winmm.lib"));
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "symbols"));
    db.add_source(files_db, "test/symbols.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "table"));
    db.add_source(files_db, "test/table.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "tabs"));
    db.add_fl(files_db, "test/tabs.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "threads"));
    db.add_source(files_db, "test/threads.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "tile"));
    db.add_source(files_db, "test/tile.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "tiled_image"));
    db.add_source(files_db, "test/tiled_image.cxx");
    db.add_lib(fltk_lib); 
    db.add_lib(fltk_images_lib); 
    db.add_lib(fltk_jpeg_lib); 
    db.add_lib(fltk_png_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "tree"));
    db.add_source(files_db, "test/tree.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "utf8"));
    db.add_source(files_db, "test/utf8.cxx");
    db.add_lib(fltk_lib); 
    demo_db.depends_on(db);
  }  
  
  { Fl_Target_Prefs db(tests_db.add_with_key("name", "valuators"));
    db.add_fl(files_db, "test/valuators.fl");
    db.add_lib(fltk_lib); 
    db.depends_on(fluid_app);
    demo_db.depends_on(db);
  }  
    
  db->flush();    
  return 0;
}


// Make this module into a plugin

extern int exit_early;

class Fl_FltkDB_Plugin : public Fl_Commandline_Plugin
{
public:
  Fl_FltkDB_Plugin() : Fl_Commandline_Plugin(name()) { }
  const char *name() { return "FltkDB.fluid.fltk.org"; }
  const char *help() { return
    " --fltkdb <filename> : create a database describing all FLTK project rules"; } 
  int arg(int argc, char **argv, int &i) {
    if (argc>=i+1 && strcmp(argv[i], "--fltkdb")==0) {
      if (argc>=i+2 && argv[i+1][0]!='-') {
        fprintf(stderr, "Creating Databse %s\n", argv[i+1]);
        exit_early = 1;
        create_new_database(argv[i+1]);
        i = i+2;
        return 2;
      } else {
        fprintf(stderr, "Missing argument: --fltkdb <filename>\n");
        return 1;
      }
    }
    return 0;
  }
  int test(const char *a1, const char *a2, const char *a3) {
    create_new_database(a1);
    return 0;
  }
};

Fl_FltkDB_Plugin FltkDB_Plugin;

//
// End of "$Id: ide_support.cxx 7147 2010-02-25 23:29:42Z matt $".
//

Added fltk-1.3/fluid/ide_support.h.





























































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//
// "$Id: ide_support.h 6981 2009-12-25 20:53:22Z matt $"
//
// IDE and Build FIle generation for the Fast Light Tool Kit (FLTK).
//
// Copyright 2010 by Matthias Melcher.
//
// 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
//

#ifndef FLUID_IDE_SUPPORT_H
#define FLUID_IDE_SUPPORT_H

#include <FL/Fl.H>
#include <FL/Fl_Preferences.H>


typedef char UUID[40];
typedef char XCID[25];


extern void getUUID(Fl_Preferences &db, const char *key, char *buffer);
extern void getXCID(Fl_Preferences &db, const char *key, char *buffer);


/* Shortcut to retrieve or create a UUID from the database */
#define MAKE_UUID(name, db) \
  char name[40]; getUUID(db, #name, name);                                          

/* Shortcut to retrieve, but not create a UUID from the database */
#define GET_UUID(name, db) \
  char name[40]; db.get(#name, name, "DBERROR", 40);

/* Shortcut to retrieve or create a UUID from the database */
#define MAKE_XCID(name, db) \
char name[25]; getXCID(db, #name, name);                                          

/* Shortcut to retrieve, but not create a UUID from the database */
#define GET_XCID(name, db) \
char name[25]; db.get(#name, name, "DBERROR", 40);


/* A preferences node with some additional functionality */
class Fl_IDE_Prefs : public Fl_Preferences {
public:
  Fl_IDE_Prefs(Fl_Preferences &parent, const char *name);
  Fl_IDE_Prefs(Fl_Preferences &parent, int ix);
  Fl_IDE_Prefs(Fl_Preferences::ID id);
  Fl_Preferences::ID find_by_name(const char *name);
  Fl_Preferences::ID find_by_key(const char *key, const char *value);
  Fl_Preferences::ID add_with_key(const char *key, const char *value, const char *uuid=0);
};


class Fl_Target_Prefs : public Fl_IDE_Prefs {
public:
  Fl_Target_Prefs(Fl_Preferences::ID id);
  Fl_Preferences::ID add_source(Fl_IDE_Prefs &fdb, const char *pathAndName);
  Fl_Preferences::ID add_fl(Fl_IDE_Prefs &fdb, const char *pathAndName);
  Fl_Preferences::ID depends_on(Fl_IDE_Prefs &dep);
  Fl_Preferences::ID add_lib(Fl_IDE_Prefs &lib);
  Fl_Preferences::ID add_external_lib(Fl_IDE_Prefs &fdb, const char *pathAndName);
};


class Fl_File_Prefs : public Fl_Preferences {
  char pPath[1024];
  char pName[80];
  char pFullName[100];
  char pExt[20];
public:
  Fl_File_Prefs(Fl_Preferences &parent, const char *name);
  Fl_File_Prefs(Fl_Preferences &parent, int ix);
  Fl_File_Prefs(Fl_Preferences::ID id);
  const char *filePath();
  const char *fileName();
  const char *fullName();
  const char *fileExt();
};

void xcode_only(Fl_Preferences::ID id);
void visualc_only(Fl_Preferences::ID id);
void makefile_only(Fl_Preferences::ID id);

char with_xcode(Fl_Preferences::ID id);
char with_visualc(Fl_Preferences::ID id);
char with_makefile(Fl_Preferences::ID id);

#endif

//
// End of "$Id: ide_support.h 6981 2009-12-25 20:53:22Z matt $".
//

Added fltk-1.3/fluid/ide_visualc.cxx.



























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
//
// "$Id: ide_visualc.cxx 7131 2010-02-21 21:38:02Z matt $"
//
// IDE and Build File generation for the Fast Light Tool Kit (FLTK).
//
// Copyright 2010 by Matthias Melcher.
//
// 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
//


/*
 
 VisualC 6 IDE FILES
 
 This module generates all files needed for a VisualC++ 6.0 description of the 
 FLTK project. Thanks to the developers of Visual Studion, VC6 files can be read
 and converted by all newer versions of VisualC++ as well (tested up to VC2008). 
 There is no need to write any newer file formats.
 
 The VC6 file formats are very simple. The project is described in a .dsw file
 which basically just lists all targets and their interdependencies. The targets
 are then described in .dsp files which list the included source files and the 
 build options.
 
 */

#include "ide_support.h"

#include <FL/filename.H>
#include <FL/fl_ask.H>
#include "../src/flstring.h"

#include "Fl_Type.h"


static void DOSPath(char *s) {
  for (;;) {
    switch (*s) {
      case 0: return;
      case '/': *s = '\\';
    }
    s++;
  }
}

/*
 * This class creates all VisualC++ 6.0 IDE files.
 */
class VisualC6_IDE {
  char *rootDir;
  char projectName[80];
  Fl_Preferences tgtAppsDB;
  int nTgtApps;
  Fl_Preferences tgtLibsDB;
  int nTgtLibs;
  Fl_Preferences tgtTestsDB;
  int nTgtTests;
  Fl_Preferences filesDB;
  int nFiles;
  Fl_Preferences ideDB;
public:
  VisualC6_IDE(Fl_Preferences &db, const char *rootDirA)
  : rootDir(strdup(rootDirA)),
    tgtAppsDB(db, "targets/apps"),
    tgtLibsDB(db, "targets/libs"),
    tgtTestsDB(db, "targets/tests"),
    filesDB(db, "files"),
    ideDB(db, "ide/VisualC")
  {
    db.get("projectName", projectName, "Unnamed", 80);
    nTgtApps = tgtAppsDB.groups();
    nTgtLibs = tgtLibsDB.groups();
    nTgtTests = tgtTestsDB.groups();
    nFiles = filesDB.groups();
  }
  
  ~VisualC6_IDE() {
    if (rootDir) free(rootDir);
  }

  /*
   * Write a project description
   */
  int writeProjectSection(FILE *f, Fl_Preferences &targetDB, char dll=0) {
    char name[80]; targetDB.get("name", name, "DBERROR", 80);
    if (dll) strcat(name, "_dll");
    fprintf(f, "###############################################################################\r\n");
    fprintf(f, "\r\n");
    fprintf(f, "Project: \"%s\"=\".\\%s.dsp\" - Package Owner=<4>\r\n", name, name);
    fprintf(f, "\r\n");
    fprintf(f, "Package=<5>\r\n");
    fprintf(f, "{{{\r\n");
    fprintf(f, "}}}\r\n");
    fprintf(f, "\r\n");
    fprintf(f, "Package=<4>\r\n");
    fprintf(f, "{{{\r\n");
    Fl_Preferences depsDB(targetDB, "deps");
    int i, n = depsDB.groups();
    for (i=0; i<n; i++) {
      Fl_Preferences depDB(depsDB, i);
      GET_UUID(refUUID, depDB);
      Fl_Preferences *depTgtDBp = 0;
      if (tgtAppsDB.groupExists(refUUID))
        depTgtDBp = new Fl_Preferences(tgtAppsDB, refUUID);
      else if (tgtLibsDB.groupExists(refUUID))
        depTgtDBp = new Fl_Preferences(tgtLibsDB, refUUID);
      else if (tgtTestsDB.groupExists(refUUID))
        depTgtDBp = new Fl_Preferences(tgtTestsDB, refUUID);
      if (depTgtDBp) {
        char depName[80]; depTgtDBp->get("name", depName, "DBERROR", 80);
        fprintf(f, "    Begin Project Dependency\r\n");
        fprintf(f, "    Project_Dep_Name %s\r\n", depName);
        fprintf(f, "    End Project Dependency\r\n");
      }
    }    
    fprintf(f, "}}}\r\n");
    fprintf(f, "\r\n");
    return 0;
  }

  /*
   * Write the .dsw project file
   */
  int writeProjectFile(const char *filepath) {
    char filename[2048];
    fl_snprintf(filename, 2047, "%s/%s.dsw", filepath, "fltk");
    FILE *f = fopen(filename, "wb");
    if (!f) {
      fl_alert("Can't open file:\n%s", filename);
      return -1;
    }
    fprintf(f, "Microsoft Developer Studio Workspace File, Format Version 6.00\r\n");
    fprintf(f, "# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!\r\n");
    fprintf(f, "\r\n");
    int i;
    for (i=0; i<nTgtApps; i++) {
      Fl_Preferences targetDB(tgtAppsDB, i);
      writeProjectSection(f, targetDB);
    }
    for (i=0; i<nTgtLibs; i++) {
      Fl_Preferences targetDB(tgtLibsDB, i);
      writeProjectSection(f, targetDB);
      //writeProjectSection(f, targetDB, 1);
    }
    for (i=0; i<nTgtTests; i++) {
      Fl_Preferences targetDB(tgtTestsDB, i);
      writeProjectSection(f, targetDB);
    }
    fprintf(f, "###############################################################################\r\n");
    fprintf(f, "\r\n");
    fclose(f);
    return 0;
  }
  


#if 0
// --------------------
	fprintf(f, "# Microsoft Developer Studio Project File - Name=\"fltk\" - Package Owner=<4>\r\n");
	fprintf(f, "# Microsoft Developer Studio Generated Build File, Format Version 6.00\r\n");
	fprintf(f, "# ** DO NOT EDIT **\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# TARGTYPE \"Win32 (x86) Static Library\" 0x0104\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "CFG=fltk - Win32 Debug\r\n");
	fprintf(f, "!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r\n");
	fprintf(f, "!MESSAGE use the Export Makefile command and run\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE NMAKE /f \"fltk.lib.mak\".\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE You can specify a configuration when running NMAKE\r\n");
	fprintf(f, "!MESSAGE by defining the macro CFG on the command line. For example:\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE NMAKE /f \"fltk.lib.mak\" CFG=\"fltk - Win32 Debug\"\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE Possible choices for configuration are:\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE \"fltk - Win32 Release\" (based on \"Win32 (x86) Static Library\")\r\n");
	fprintf(f, "!MESSAGE \"fltk - Win32 Debug\" (based on \"Win32 (x86) Static Library\")\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# Begin Project\r\n");
	fprintf(f, "# PROP AllowPerConfigDependencies 0\r\n");
	fprintf(f, "# PROP Scc_ProjName \"\"\r\n");
	fprintf(f, "# PROP Scc_LocalPath \"\"\r\n");
	fprintf(f, "CPP=cl.exe\r\n");
	fprintf(f, "RSC=rc.exe\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "!IF  \"$(CFG)\" == \"fltk - Win32 Release\"\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# PROP BASE Use_MFC 0\r\n");
	fprintf(f, "# PROP BASE Use_Debug_Libraries 0\r\n");
	fprintf(f, "# PROP BASE Output_Dir \"Release\"\r\n");
	fprintf(f, "# PROP BASE Intermediate_Dir \"Release\"\r\n");
	fprintf(f, "# PROP BASE Target_Dir \"\"\r\n");
	fprintf(f, "# PROP Use_MFC 0\r\n");
	fprintf(f, "# PROP Use_Debug_Libraries 0\r\n");
	fprintf(f, "# PROP Output_Dir \"Release\"\r\n");
	fprintf(f, "# PROP Intermediate_Dir \"Release\"\r\n");
	fprintf(f, "# PROP Target_Dir \"\"\r\n");
	fprintf(f, "# ADD BASE CPP /nologo /W3 /GX /O2 /D \"WIN32\" /D \"NDEBUG\" /D \"_WINDOWS\" /YX /FD /c\r\n");
	fprintf(f, "# ADD CPP /nologo /MD /GX /Ot /Op /Ob2 /I \".\" /I \"../..\" /I \"../../zlib\" /I \"../../png\" /I \"../../jpeg\" /D \"WIN32\" /D \"NDEBUG\" /D \"_WINDOWS\" /D \"WIN32_LEAN_AND_MEAN\" /D \"VC_EXTRA_LEAN\" /D \"WIN32_EXTRA_LEAN\" /YX /FD /c\r\n");
	fprintf(f, "# SUBTRACT CPP /Os\r\n");
	fprintf(f, "# ADD BASE RSC /l 0x409\r\n");
	fprintf(f, "# ADD RSC /l 0x409\r\n");
	fprintf(f, "BSC32=bscmake.exe\r\n");
	fprintf(f, "# ADD BASE BSC32 /nologo\r\n");
	fprintf(f, "# ADD BSC32 /nologo\r\n");
	fprintf(f, "LIB32=link.exe -lib\r\n");
	fprintf(f, "# ADD BASE LIB32 /nologo\r\n");
	fprintf(f, "# ADD LIB32 /nologo /out:\"..\\..\\lib\\fltk.lib\"\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "!ELSEIF  \"$(CFG)\" == \"fltk - Win32 Debug\"\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# PROP BASE Use_MFC 0\r\n");
	fprintf(f, "# PROP BASE Use_Debug_Libraries 1\r\n");
	fprintf(f, "# PROP BASE Output_Dir \"Debug\"\r\n");
	fprintf(f, "# PROP BASE Intermediate_Dir \"Debug\"\r\n");
	fprintf(f, "# PROP BASE Target_Dir \"\"\r\n");
	fprintf(f, "# PROP Use_MFC 0\r\n");
	fprintf(f, "# PROP Use_Debug_Libraries 1\r\n");
	fprintf(f, "# PROP Output_Dir \"Debug\"\r\n");
	fprintf(f, "# PROP Intermediate_Dir \"Debug\"\r\n");
	fprintf(f, "# PROP Target_Dir \"\"\r\n");
	fprintf(f, "# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D \"WIN32\" /D \"_DEBUG\" /D \"_WINDOWS\" /YX /FD /c\r\n");
	fprintf(f, "# ADD CPP /nologo /MDd /GX /Z7 /Od /I \".\" /I \"../..\" /I \"../../zlib\" /I \"../../png\" /I \"../../jpeg\" /D \"WIN32\" /D \"_DEBUG\" /D \"_WINDOWS\" /D \"WIN32_LEAN_AND_MEAN\" /D \"VC_EXTRA_LEAN\" /D \"WIN32_EXTRA_LEAN\" /FR /YX /FD /c\r\n");
	fprintf(f, "# ADD BASE RSC /l 0x409\r\n");
	fprintf(f, "# ADD RSC /l 0x409\r\n");
	fprintf(f, "BSC32=bscmake.exe\r\n");
	fprintf(f, "# ADD BASE BSC32 /nologo\r\n");
	fprintf(f, "# ADD BSC32 /nologo\r\n");
	fprintf(f, "LIB32=link.exe -lib\r\n");
	fprintf(f, "# ADD BASE LIB32 /nologo\r\n");
	fprintf(f, "# ADD LIB32 /nologo /out:\"..\\..\\lib\\fltkd.lib\"\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "!ENDIF \r\n");
	fprintf(f, "\r\n");
  
  
	fprintf(f, "# Begin Target\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# Name \"fltk - Win32 Release\"\r\n");
	fprintf(f, "# Name \"fltk - Win32 Debug\"\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\xutf8\\case.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_absolute.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_expand.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_ext.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_isdir.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_list.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_match.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_setext.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_abort.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_add_idle.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Adjuster.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_arc.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_arci.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_arg.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_ask.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Bitmap.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Box.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_boxtype.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Browser.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Browser_.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Browser_load.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Button.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_call_main.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Chart.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Check_Browser.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Check_Button.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Choice.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Clock.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_color.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Color_Chooser.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_compose.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Counter.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_cursor.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_curve.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Dial.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_diamond_box.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_display.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_dnd.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Double_Window.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_draw.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_draw_image.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_draw_pixmap.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_encoding_latin1.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_encoding_mac_roman.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_engraved_label.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Browser.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Chooser.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Chooser2.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_file_dir.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Icon.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Input.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_font.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_get_key.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_get_system_colors.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_grab.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Group.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_gtk.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Help_View.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Image.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Input.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Input_.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_labeltype.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Light_Button.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_line_style.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_lock.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_add.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_Bar.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_Button.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_global.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_Window.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Multi_Label.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Native_File_Chooser.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_open_uri.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_oval_box.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_overlay.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_overlay_visual.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Overlay_Window.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_own_colormap.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Pack.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Pixmap.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_plastic.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Positioner.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Preferences.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Progress.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_read_image.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_rect.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Repeat_Button.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Return_Button.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Roller.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_round_box.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Round_Button.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_rounded_box.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Scroll.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_scroll_area.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Scrollbar.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_set_font.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_set_fonts.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_shadow_box.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Shared_Image.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_shortcut.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_show_colormap.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Single_Window.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Slider.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_symbols.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Table.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Table_Row.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tabs.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Text_Buffer.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Text_Display.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Text_Editor.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tile.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tiled_Image.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tooltip.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree_Item.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree_Item_Array.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree_Prefs.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_utf.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_utf8.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Valuator.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Value_Input.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Value_Output.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Value_Slider.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_vertex.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_visual.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Widget.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window_fullscreen.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window_hotspot.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window_iconize.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Wizard.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_x.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_XBM_Image.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_XPM_Image.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\flstring.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\xutf8\\is_right2left.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\xutf8\\is_spacing.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\numericsort.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\scandir.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\screen_xywh.cxx\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\vsnprintf.c\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# End Target\r\n");
	fprintf(f, "# End Project\r\n");
// --------------------
	fprintf(f, "# Microsoft Developer Studio Project File - Name=\"fltkdll\" - Package Owner=<4>\r\n");
	fprintf(f, "# Microsoft Developer Studio Generated Build File, Format Version 6.00\r\n");
	fprintf(f, "# ** DO NOT EDIT **\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# TARGTYPE \"Win32 (x86) Dynamic-Link Library\" 0x0102\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "CFG=fltkdll - Win32 Debug\r\n");
	fprintf(f, "!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r\n");
	fprintf(f, "!MESSAGE use the Export Makefile command and run\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE NMAKE /f \"fltkdll.mak\".\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE You can specify a configuration when running NMAKE\r\n");
	fprintf(f, "!MESSAGE by defining the macro CFG on the command line. For example:\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE NMAKE /f \"fltkdll.mak\" CFG=\"fltkdll - Win32 Debug\"\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE Possible choices for configuration are:\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "!MESSAGE \"fltkdll - Win32 Release\" (based on \"Win32 (x86) Dynamic-Link Library\")\r\n");
	fprintf(f, "!MESSAGE \"fltkdll - Win32 Debug\" (based on \"Win32 (x86) Dynamic-Link Library\")\r\n");
	fprintf(f, "!MESSAGE \r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# Begin Project\r\n");
	fprintf(f, "# PROP AllowPerConfigDependencies 0\r\n");
	fprintf(f, "# PROP Scc_ProjName \"\"\r\n");
	fprintf(f, "# PROP Scc_LocalPath \"\"\r\n");
	fprintf(f, "CPP=cl.exe\r\n");
	fprintf(f, "MTL=midl.exe\r\n");
	fprintf(f, "RSC=rc.exe\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "!IF  \"$(CFG)\" == \"fltkdll - Win32 Release\"\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# PROP BASE Use_MFC 0\r\n");
	fprintf(f, "# PROP BASE Use_Debug_Libraries 0\r\n");
	fprintf(f, "# PROP BASE Output_Dir \"fltkdll0\"\r\n");
	fprintf(f, "# PROP BASE Intermediate_Dir \"fltkdll0\"\r\n");
	fprintf(f, "# PROP BASE Target_Dir \"\"\r\n");
	fprintf(f, "# PROP Use_MFC 0\r\n");
	fprintf(f, "# PROP Use_Debug_Libraries 0\r\n");
	fprintf(f, "# PROP Output_Dir \"../../test\"\r\n");
	fprintf(f, "# PROP Intermediate_Dir \"fltkdll\"\r\n");
	fprintf(f, "# PROP Ignore_Export_Lib 0\r\n");
	fprintf(f, "# PROP Target_Dir \"\"\r\n");
	fprintf(f, "# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D \"WIN32\" /D \"NDEBUG\" /D \"_WINDOWS\" /YX /FD /c\r\n");
	fprintf(f, "# ADD CPP /nologo /MD /W3 /GX /Os /Ob2 /I \"../../zlib\" /I \"../../png\" /I \"../../jpeg\" /I \".\" /I \"../..\" /D \"FL_DLL\" /D \"FL_LIBRARY\" /D \"WIN32\" /D \"NDEBUG\" /D \"_WINDOWS\" /D \"WIN32_LEAN_AND_MEAN\" /D \"VC_EXTRA_LEAN\" /D \"WIN32_EXTRA_LEAN\" /YX /c\r\n");
	fprintf(f, "# ADD BASE MTL /nologo /D \"NDEBUG\" /mktyplib203 /o /win32 \"NUL\"\r\n");
	fprintf(f, "# ADD MTL /nologo /D \"NDEBUG\" /mktyplib203 /o /win32 \"NUL\"\r\n");
	fprintf(f, "# ADD BASE RSC /l 0x409 /d \"NDEBUG\"\r\n");
	fprintf(f, "# ADD RSC /l 0x409 /d \"NDEBUG\"\r\n");
	fprintf(f, "BSC32=bscmake.exe\r\n");
	fprintf(f, "# ADD BASE BSC32 /nologo\r\n");
	fprintf(f, "# ADD BSC32 /nologo\r\n");
	fprintf(f, "LINK32=link.exe\r\n");
	fprintf(f, "# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /machine:I386\r\n");
	fprintf(f, "# ADD LINK32 opengl32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /version:1.0 /subsystem:windows /dll /pdb:\"fltkdll.pdb\" /machine:I386\r\n");
	fprintf(f, "# SUBTRACT LINK32 /pdb:none\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "!ELSEIF  \"$(CFG)\" == \"fltkdll - Win32 Debug\"\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# PROP BASE Use_MFC 0\r\n");
	fprintf(f, "# PROP BASE Use_Debug_Libraries 1\r\n");
	fprintf(f, "# PROP BASE Output_Dir \"fltkdll1\"\r\n");
	fprintf(f, "# PROP BASE Intermediate_Dir \"fltkdll1\"\r\n");
	fprintf(f, "# PROP BASE Target_Dir \"\"\r\n");
	fprintf(f, "# PROP Use_MFC 0\r\n");
	fprintf(f, "# PROP Use_Debug_Libraries 1\r\n");
	fprintf(f, "# PROP Output_Dir \"../../test\"\r\n");
	fprintf(f, "# PROP Intermediate_Dir \"fltkdlld\"\r\n");
	fprintf(f, "# PROP Ignore_Export_Lib 0\r\n");
	fprintf(f, "# PROP Target_Dir \"\"\r\n");
	fprintf(f, "# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D \"WIN32\" /D \"_DEBUG\" /D \"_WINDOWS\" /YX /FD /c\r\n");
	fprintf(f, "# ADD CPP /nologo /MDd /GX /ZI /Od /I \".\" /I \"../..\" /I \"..\\..\\zlib\" /I \"..\\..\\png\" /I \"..\\..\\jpeg\" /D \"FL_DLL\" /D \"FL_LIBRARY\" /D \"WIN32\" /D \"_DEBUG\" /D \"_WINDOWS\" /D \"WIN32_LEAN_AND_MEAN\" /D \"VC_EXTRA_LEAN\" /D \"WIN32_EXTRA_LEAN\" /YX /c\r\n");
	fprintf(f, "# ADD BASE MTL /nologo /D \"_DEBUG\" /mktyplib203 /o /win32 \"NUL\"\r\n");
	fprintf(f, "# ADD MTL /nologo /D \"_DEBUG\" /mktyplib203 /o /win32 \"NUL\"\r\n");
	fprintf(f, "# ADD BASE RSC /l 0x409 /d \"_DEBUG\"\r\n");
	fprintf(f, "# ADD RSC /l 0x409 /d \"_DEBUG\"\r\n");
	fprintf(f, "BSC32=bscmake.exe\r\n");
	fprintf(f, "# ADD BASE BSC32 /nologo\r\n");
	fprintf(f, "# ADD BSC32 /nologo\r\n");
	fprintf(f, "LINK32=link.exe\r\n");
	fprintf(f, "# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept\r\n");
	fprintf(f, "# ADD LINK32 opengl32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /version:1.0 /subsystem:windows /dll /pdb:\"fltkdlld.pdb\" /debug /machine:I386 /out:\"../../test/fltkdlld.dll\" /pdbtype:sept\r\n");
	fprintf(f, "# SUBTRACT LINK32 /pdb:none /incremental:no\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "!ENDIF \r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# Begin Target\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "# Name \"fltkdll - Win32 Release\"\r\n");
	fprintf(f, "# Name \"fltkdll - Win32 Debug\"\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\xutf8\\case.c\r\n");
	fprintf(f, "DEP_CPP_CASE_=\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\xutf8\\headers\\case.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_absolute.cxx\r\n");
	fprintf(f, "DEP_CPP_FILEN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FILEN=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_expand.cxx\r\n");
	fprintf(f, "DEP_CPP_FILENA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FILENA=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_ext.cxx\r\n");
	fprintf(f, "DEP_CPP_FILENAM=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FILENAM=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_isdir.cxx\r\n");
	fprintf(f, "DEP_CPP_FILENAME=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FILENAME=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_list.cxx\r\n");
	fprintf(f, "DEP_CPP_FILENAME_=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FILENAME_=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_match.cxx\r\n");
	fprintf(f, "DEP_CPP_FILENAME_M=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FILENAME_M=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\filename_setext.cxx\r\n");
	fprintf(f, "DEP_CPP_FILENAME_S=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FILENAME_S=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CX=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_bar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Sys_Menu_Bar.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tooltip.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\aimm.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\Fl_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_win32.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_CX=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_abort.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_AB=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_add_idle.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_AD=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Adjuster.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ADJ=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_adjuster.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_bitmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fastarrow.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\mediumarrow.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\slowarrow.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_arc.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_AR=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_AR=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_arci.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ARC=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_ARC=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_arg.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ARG=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tooltip.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_ARG=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_ask.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_AS=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_box.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_return_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_secret_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Bitmap.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_bitmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_BMP_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BM=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_bmp_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Box.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_box.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_boxtype.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BOX=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Browser.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BR=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Browser_.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BRO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Browser_load.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BROW=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Button.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_BU=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Chart.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CH=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_chart.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_CH=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Check_Browser.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CHE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_check_browser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Check_Button.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CHEC=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_check_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_light_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Choice.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CHO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_choice.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Clock.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_clock.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_color.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_cmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_color_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_color_win32.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\Fl_XColor.H\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Color_Chooser.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_COL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_box.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_choice.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_color_chooser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_return_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_value_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_COL=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_compose.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_COM=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Counter.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_COU=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_counter.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_cursor.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CU=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_curve.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_CUR=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Dial.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_dial.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_DI=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_diamond_box.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DIA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_display.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DIS=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_dnd.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_dnd_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_dnd_win32.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_dnd_x.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Double_Window.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_double_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_draw.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DR=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_draw_image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DRA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_draw_image_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_draw_image_win32.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\Fl_XColor.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_draw_pixmap.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_DRAW=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_encoding_latin1.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_EN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_encoding_mac_roman.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ENC=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_engraved_label.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ENG=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Browser.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_File_Browser.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_icon.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_FI=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Chooser.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FIL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_bitmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_box.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_check_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_choice.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_double_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_File_Browser.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_chooser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_icon.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_light_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_preferences.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_return_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tile.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_FIL=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Chooser2.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FILE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_box.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_check_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_choice.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_double_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_File_Browser.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_chooser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_icon.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_light_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_preferences.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_return_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_shared_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tile.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_FILE=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_file_dir.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FILE_=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_box.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_browser_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_check_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_choice.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_double_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_File_Browser.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_chooser.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_icon.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_light_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_preferences.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_return_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tile.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_FILE_=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Icon.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FILE_I=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_icon.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_FILE_I=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Icon2.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FILE_IC=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_icon.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_shared_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_FILE_IC=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_File_Input.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FILE_IN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_file_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_font.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_FO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font_win32.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font_x.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font_xft.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_get_key.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\Fl_get_key_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_get_key_win32.cxx\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_get_system_colors.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GET=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pixmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tiled_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\tile.xpm\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_GET=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_GIF_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_gif_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pixmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Gl_Choice.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\gl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\gl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\Fl_Gl_Choice.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Gl_Overlay.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GL_=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Gl_Window.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\gl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\Fl_Gl_Choice.H\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Gl_Window.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GL_W=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Gl_Window.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\gl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\Fl_Gl_Choice.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_grab.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GR=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Group.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GRO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_gtk.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_GT=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Help_Dialog.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_HE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_box.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_double_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Help_Dialog.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Help_View.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_shared_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Help_View.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_HEL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Help_View.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pixmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_shared_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_IM=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_images_core.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_IMA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_bmp_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_gif_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_jpeg_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pixmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_png_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pnm_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_shared_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Input.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_IN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Input_.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_INP=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_JPEG_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_JP=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_jpeg_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\jpeg\\jconfig.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\jpeg\\jerror.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\jpeg\\jmorecfg.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\jpeg\\jpegint.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\jpeg\\jpeglib.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_labeltype.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_LA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Light_Button.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_LI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_light_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_line_style.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_LIN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_lock.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_LO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ME=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_single_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_MEN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_add.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_MENU=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_Bar.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_MENU_=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_bar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_Button.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_MENU_B=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_global.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_MENU_G=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Menu_Window.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_MENU_W=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_single_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Multi_Label.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_MU=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_multi_label.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Native_File_Chooser.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_NA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Native_File_Chooser.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Native_File_Chooser_WIN32.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_open_uri.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_OP=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_OP=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_oval_box.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_OV=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_overlay.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_OVE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_overlay_visual.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_OVER=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Overlay_Window.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_OVERL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_double_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_overlay_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_own_colormap.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_OW=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Pack.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pack.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Pixmap.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_item.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pixmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_plastic.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_PNG_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_png_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\png\\png.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\png\\pngconf.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\zlib\\zconf.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\zlib\\zlib.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_PN=\\\r\n");
	fprintf(f, "\t\"..\\..\\png\\pngusr.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_PNM_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PNM=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pnm_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Positioner.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_positioner.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Preferences.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PR=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_preferences.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_PR=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Progress.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_PRO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_progress.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_read_image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_RE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_read_image_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_read_image_win32.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_rect.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_REC=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Repeat_Button.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_REP=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_repeat_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Return_Button.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_RET=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_return_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Roller.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_RO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_roller.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_round_box.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ROU=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Round_Button.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ROUN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_light_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_round_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_rounded_box.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_ROUND=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Scroll.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SC=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scroll.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tiled_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_scroll_area.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SCR=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Scrollbar.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SCRO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_set_font.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_set_fonts.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SET=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_font.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_set_fonts_mac.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_set_fonts_win32.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_set_fonts_x.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\fl_set_fonts_xft.cxx\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_shadow_box.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SH=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Shared_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SHA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_bitmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_pixmap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_shared_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_xbm_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_xpm_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_shortcut.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SHO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_button.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_show_colormap.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SHOW=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_show_colormap.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_single_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Single_Window.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_single_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Slider.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_symbols.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_SY=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_SY=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Table.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TABLE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Table.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Table_Row.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Table_Row.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TABLE_ROW=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Table_Row.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tabs.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tabs.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tooltip.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Text_Buffer.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_text_buffer.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Text_Display.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TEX=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_text_buffer.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_text_display.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Text_Editor.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TEXT=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_ask.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_scrollbar.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_text_buffer.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_text_display.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_text_editor.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tile.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tile.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tiled_Image.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TIL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tiled_image.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tooltip.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_menu_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_single_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tooltip.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TREE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Tree.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Tree_Item.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Tree_Item_Array.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Tree_Prefs.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree_Item.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TREE_I=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Tree_Item.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree_Item_Array.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TREE_ITEM_A=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Tree_Item_Array.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Tree_Prefs.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_TREE_P=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Tree_Prefs.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_utf.c\r\n");
	fprintf(f, "DEP_CPP_FL_UT=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_utf8.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_UTF=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\filename.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_UTF=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\dirent.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Valuator.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_VA=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_VA=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Value_Input.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_VAL=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_input_.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_value_input.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_VAL=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Value_Output.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_VALU=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_value_output.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Value_Slider.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_VALUE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_valuator.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_value_slider.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\fl_vertex.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_VE=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\math.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "NODEP_CPP_FL_VE=\\\r\n");
	fprintf(f, "\t\"..\\..\\..\\..\\usr\\include\\math.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_visual.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_VI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Widget.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_WI=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_tooltip.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_WIN=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_draw.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\src\\flstring.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window_fullscreen.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_WIND=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\".\\config.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window_hotspot.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_WINDO=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Fl_Cairo.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_utf8.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n");
	fprintf(f, "\r\n");
	fprintf(f, "SOURCE=..\\..\\src\\Fl_Window_iconize.cxx\r\n");
	fprintf(f, "DEP_CPP_FL_WINDOW=\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\enumerations.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_export.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_group.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\fl\\fl_types.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_widget.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\fl_window.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\mac.H\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\win32.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\x.h\"\\\r\n");
	fprintf(f, "\t\"..\\..\\FL\\Xutf8.h\"\\\r\n");
	fprintf(f, "\t\r\n");
	fprintf(f, "# End Source File\r\n");
	fprintf(f, "# Begin Source File\r\n&