Commit Graph

6927 Commits

Author SHA1 Message Date
Manolo Gouy
62f9813e4e Fix error with PostScript driver on the Mac platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11481 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 05:01:22 +00:00
Manolo Gouy
9959aff368 Fix "warning: control may reach end of non-void function" in Fl_Darwin_System_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 04:32:34 +00:00
Manolo Gouy
d67f395031 Rewrite functions XRectangleRegion(), XDestroyRegion() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 20:16:40 +00:00
Manolo Gouy
7799245100 Avoid vfprintf_l() that may be missing on Linux
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 17:38:26 +00:00
Manolo Gouy
5adda33f96 Finish removing platform-dependent code from Fl_PostScript.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 17:09:15 +00:00
Manolo Gouy
730f2d12b2 Continue removing platform-dependent code from Fl_PostScript.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 16:27:41 +00:00
Manolo Gouy
4a633d2aef Make sure fl_mac_os_version is defined when the Fl_Darwin_System_Driver object is used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 15:57:19 +00:00
Manolo Gouy
2ac2b506a8 Begin to rewrite Fl_PostScript.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 15:47:23 +00:00
Manolo Gouy
fc7b00dad8 Delete this file which content has been transferred to fl_utf8.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 14:19:07 +00:00
Manolo Gouy
288ed8988e Rewrite fl_utf.c under the driver model: the file disappears and its content is moved to fl_utf8.cxx
All functions of fl_utf.c keep their C API in fl_utf8.cxx

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 13:59:55 +00:00
Manolo Gouy
53aced3dbd Add an explicative comment.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 04:38:27 +00:00
Manolo Gouy
532e564593 Add #include <FL/Fl_Widget.H> needed in mac.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 20:10:37 +00:00
Manolo Gouy
9a521b95b9 Remove useless #include <FL/Fl_Device.H>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 19:59:34 +00:00
Manolo Gouy
08677d0cb6 Clean mac.H of a few useless #include directives.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 19:52:51 +00:00
Manolo Gouy
fd600aa239 Rewrite fl_utf8.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 19:41:14 +00:00
Manolo Gouy
eff92c8211 Fix typo in comment.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11466 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 19:00:48 +00:00
Albrecht Schlosser
109ebd2dc0 Fix Fl_Browser::textsize(int) to adjust the scrollbars (STR #3057).
Setting a different text size didn't affect the scrollbars.

Port of branch-1.3, r11453 and r11464.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11465 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 11:54:44 +00:00
Albrecht Schlosser
1dca798b6e [CMake] Revert r 11461.
Sorry for the noise.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 10:34:28 +00:00
Albrecht Schlosser
4e4a531f3e [CMake] Fix library names.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 09:58:49 +00:00
Manolo Gouy
4fcefc68f8 Remove the platform-dependent type xchar
File fl_utf8.h defines the xchar type with a platform-dependent value (wchar_t or unsigned short).
But it is used exclusively by WIN32 code (0 use in cross-platform code, 0 use in APPLE
or in USE_X11 code).
Thus, we can just get rid of this type and replace it by wchar_t where it is used.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 09:29:51 +00:00
Manolo Gouy
21655099a7 Add a default value to the argument of Fl_System_Driver::dnd(int).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 06:20:43 +00:00
Manolo Gouy
8ee4c7303f Begin to clean fl_utf8.h from its platform-dependent content.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 06:12:12 +00:00
Manolo Gouy
d9f5412413 This file has become useless under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 17:41:13 +00:00
Manolo Gouy
aacb5277e7 Rewrite Fl_dnd.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 17:36:07 +00:00
Manolo Gouy
4fbbab8b41 Rewrite Fl_compose.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 16:17:39 +00:00
Manolo Gouy
28d1a2d684 Rewrite Fl_abort.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 15:22:20 +00:00
Manolo Gouy
244a1a5bc4 Remove src/drivers/Quartz/Fl_Quartz_Display_Device.{H,cxx}
These files contain no code and are unlikely to become necessary in the future.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 10:53:37 +00:00
Manolo Gouy
9deee67a6c Restore building with NO_PRINT_SUPPORT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 10:05:20 +00:00
Manolo Gouy
b26cae4773 Add Fl_System_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 09:35:44 +00:00
Manolo Gouy
6284720098 Rewrite file src/Fl_arg.cxx under the driver model. Begin giving flesh to the Fl_System_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 09:25:11 +00:00
Albrecht Schlosser
3dfec155ad [CMake] Remove redundant linking in CMake build process (STR #3298).
[CMake] Simplify CMake build files, remove redundancies.

Ports of branch-1.3, svn r 11442 and 11444:

Remove src/fl_call_main.c from non-Windows (static) libraries. It would
be an empty object file anyway.
 
Use CMake variables to set up used files and linked libraries to remove
redundancies. All files and libs are used only in the definition of
CMake variables and used later in static and shared builds, resp.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 20:59:39 +00:00
Manolo Gouy
baf41cac1a Remove platform-dependent code from Fl_Widget_Surface.cxx - last part.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 19:15:35 +00:00
Manolo Gouy
21540390cb Remove the platform-dependent code from Fl_Widget_Surface.cxx - first part.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11445 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 18:53:01 +00:00
Manolo Gouy
c456dd4eb7 Remove a bunch of unnecessary #include <config.h> directives
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 17:37:07 +00:00
Manolo Gouy
2fd4dde9f5 Rewrite Fl_Menu_Window class under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 07:47:52 +00:00
Manolo Gouy
5f14fc3e9b Rewrite Fl_Overlay_Window class under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 06:58:54 +00:00
Manolo Gouy
c7b1591486 Remove a few uses of the fl_graphics_driver global variable
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 23:06:08 +00:00
Manolo Gouy
120dc8fa95 Remove commented out code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 22:31:20 +00:00
Manolo Gouy
4d52fc463f Replace the last bit of platform-dependent code in src/Fl.cxx by equivalent code.
The replacement code does the same thing because driver is never NULL
and the ewmh_supported() test is made inside Fl_X11_Window_Driver::take_focus().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 22:22:46 +00:00
Manolo Gouy
6d8ca8eeb6 Move all content of the header after the anti-repetition guard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 18:36:44 +00:00
Manolo Gouy
24fd68560f Public header files must not include files from the source tree.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 18:03:10 +00:00
Manolo Gouy
e31adcf1b9 Add necessary #include <FL/x.H> directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 17:54:34 +00:00
Manolo Gouy
ba239c1ea1 Remove #include <FL/x.H> from all public include file (there remained one).
This way, application programs will not have to include system headers.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 17:49:54 +00:00
Manolo Gouy
915d6c643a Isolate the definition of the 3 public, OS-dependent types (Fl_Offscreen, Fl_Region, Fl_Bitmask).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 14:36:11 +00:00
Albrecht Schlosser
e86e4a6ab0 [CMake] Fix library name (Debug mode), add fluid dependencies.
The library name in Debug mode must only be 'libname'd.a if the build
is with MSVC; all other builds never appended the 'd' suffix to the name.
This is also documented (see lib/README).

Fluid did not regenerate the .cxx and .h files if the .fl file was changed.
The DEPENDS keyword adds the necessary dependency.
The MAIN_DEPENDENCY keyword "also suggests to Visual Studio generators
where to hang the custom command" according to CMake docs.

Ported from branch-1.3, svn r11430.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 14:33:20 +00:00
Manolo Gouy
ff0ec68023 Add necessary #include directive under Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 11:38:38 +00:00
Albrecht Schlosser
29a9e89b39 Remove FLTK_ABI_VERSION from all but *tree*.* and documentation.
Everything related to Fl_Tree and its test and demo programs has been
cleaned.

Documentation needs updates.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 02:55:14 +00:00
Albrecht Schlosser
de9dc764f1 Move fl_local_* decl. and short docs back to FL/Fl.H.
Note: these declarations must be in an (official) public header.
FL/Fl_System_Driver.H should not be included in user space.

Maybe move FL/Fl_System_Driver.H to src/drivers ?


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 01:39:22 +00:00
Albrecht Schlosser
9de6339d81 Fix compiler warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11426 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 01:34:10 +00:00
Matthias Melcher
259df57b81 Added current error messages of Android build as a reference.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-25 23:16:33 +00:00