Commit Graph

6927 Commits

Author SHA1 Message Date
Manolo Gouy
4ebdf97b70 Begin to rewrite Fl_File_Chooser2.cxx for the driver model.
The parts with case-insensitive filename comparisons for WIN32
and for WIN32 but not CYGWIN still have to be rewritten.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 17:06:20 +00:00
Manolo Gouy
fce1483eb8 Rewrite fl_draw_pixmap.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 13:47:38 +00:00
Manolo Gouy
3d4ce29bd9 Add and correct a few Doxygen comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11586 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 07:07:21 +00:00
Manolo Gouy
b9b313538c Reorganize the implementations of the virtual member function Fl_System_Driver::getenv()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 06:45:35 +00:00
Manolo Gouy
5273076bb0 Add missing #include directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11 19:19:02 +00:00
Manolo Gouy
64b3d26daa Create Fl_X11_System_Driver.{cxx,.H} and share Fl_Posix_System_Driver.{cxx,.H} between Darwin and USE_X11 platforms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11 19:14:47 +00:00
Manolo Gouy
1411c11905 Improve use of struct stat for WIN32 platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11 13:50:41 +00:00
Manolo Gouy
5b44fe3bff Remove compilation errors in Fl_File_Icon.cxx with MSVC compiler with new method Fl_System_Driver::file_type().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11 13:07:08 +00:00
Albrecht Schlosser
aafd8b6031 Fix VisualC++ build (Visual Studio 2015).
IDE generated with CMake, still many warnings, but compiles and runs.

Note: we *must* get rid of all VisualStudio-specific #define's like:

 #define unlink _unlink

This one led to a compilation error (not a warning).

src/Fl_File_Icon.cxx: I had to add _MSC_VER (WIN32) distinction as in
  previous code (FLTK 1.3). Obviously MinGW is more Unixy than MS VC++
  since MinGW compiled and linked the code. Needs a better fix ...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11 00:46:11 +00:00
Manolo Gouy
84122ac25a Remove compilation warnings about functions defined but not used (WIN32 platform).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 20:48:48 +00:00
Manolo Gouy
6879d54fc4 Rewrite Fl_lock.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 20:38:04 +00:00
Manolo Gouy
95fa60b71d Rewrite Fl_get_system_colors.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 19:37:18 +00:00
Manolo Gouy
78213fc57e Remove platform-dependent code from Fl_File_Icon2.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11576 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 18:45:59 +00:00
Manolo Gouy
99b3c6813a Rewrite Fl_File_Input.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 18:36:47 +00:00
Manolo Gouy
c3f1877fd1 Remove platform-dependent code from Fl_PNG_Image.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 18:22:57 +00:00
Manolo Gouy
f9369a74ef Remove platform-dependent code from Fl_Clock.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 18:02:26 +00:00
Manolo Gouy
7e20aa06f9 Fix error in WIN32 code when rewriting Fl_File_Browser.cxx for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 17:56:53 +00:00
Manolo Gouy
faaa2b6d1e Rewrite Fl_Preferences.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 08:15:51 +00:00
Manolo Gouy
927774af85 Rewrite Fl_File_Browser.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 06:33:19 +00:00
Albrecht Schlosser
9ca66c6f3d Fix Doxygen warning ("nested comment").
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11569 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 18:29:40 +00:00
Albrecht Schlosser
13d2f30a85 Add platform-independent internal UTF-8 header file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 17:55:12 +00:00
Manolo Gouy
6dff22f7ff Add comment to make clear that fl_overlay.cxx is cross-platform at this point.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 17:11:34 +00:00
Manolo Gouy
65e19a1d2d Rewrite fl_shortcut.cxx for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 16:37:24 +00:00
Manolo Gouy
3bc5be71a3 Rewrite Fl_Tooltip.cxx for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 15:37:40 +00:00
Manolo Gouy
fe624b83fc Add missing #include directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 15:21:34 +00:00
Manolo Gouy
8b672ee655 Rewrite fl_open_uri.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 15:15:33 +00:00
Albrecht Schlosser
d98a8e13e6 Fix compiler warning when compiled with USING_XCODE [-fpermissive].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 12:37:44 +00:00
Albrecht Schlosser
d56e2ec9f0 Fix typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 10:42:17 +00:00
Albrecht Schlosser
72ced0ddd3 Fix compiler warnings [-Wmissing-declarations].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 10:15:42 +00:00
Albrecht Schlosser
9aa5e497ba Fix C++ comment in C header file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 09:59:46 +00:00
Manolo Gouy
3ac718fd32 Rewrite Fl_Menu.cxx for the driver model.
See the detailed description in menuwindow::handle(int e) of Fl_Menu.cxx
of how the menu window class could require 1 or 2 less support functions from
the Fl_System_Driver class.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 09:48:34 +00:00
Manolo Gouy
1ba6928313 Rewrite filename_ext.cxx for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-08 16:00:26 +00:00
Manolo Gouy
90682dbd48 Rewrite filename_isdir.cxx for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-08 15:48:28 +00:00
Manolo Gouy
62952ea295 Rewrite filename_absolute.cxx for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-08 15:17:39 +00:00
Manolo Gouy
19b98e40de Rewrite filename_expand.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07 16:54:20 +00:00
Manolo Gouy
050dfb5504 Place #include <FL/platform_types.h> as first directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07 15:29:54 +00:00
Manolo Gouy
56e9d58a60 Add missing :
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07 15:16:16 +00:00
Manolo Gouy
23a60edb44 Rewrite filename_list.cxx under the driver model.
One more platform-dependent type is necessary: struct dirent
Create a new header file, FL/platform_types.h, to define all
types whose definition is platform-dependent.
This file is for C because it is included by scandir_XXX.c

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07 15:10:30 +00:00
Albrecht Schlosser
406fcaf305 Improve Unicode documentation, fix typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07 00:03:19 +00:00
Albrecht Schlosser
f120334da3 Fix Doxygen warnings.
There was one obvious warning in src/fl_read_image.cxx, but others
have to do with incomplete code and platform specific definitions.

I'm not entirely happy with these changes. Temporary changes have been
marked with 'FIXME' and should be removed later if possible.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 22:20:32 +00:00
Manolo Gouy
9fa4059f43 Rewrite Fl_get_key.cxx for the driver model - cont'd
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 20:33:53 +00:00
Manolo Gouy
f3462a2abe Rewrite Fl_get_key.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 20:30:28 +00:00
Manolo Gouy
a2eeca92f0 Rewrite Fl_Input.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 19:39:15 +00:00
Manolo Gouy
2a36225036 Make Fl_Native_File_Chooser_FLTK.cxx platform-independent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 15:57:43 +00:00
Manolo Gouy
ae0d15f1a3 Begin to rewrite files using #include <sys/stat.h> under the driver model.
struct stat is considered a platform-specific type.
The Unix, Mac OS, and WIN32 platforms define it with #include <sys/stat.h>
Other platforms may do that their own way. 

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 15:49:52 +00:00
Manolo Gouy
d905769e69 Fix typos in macro names S_IBLK, S_ILNK, S_ICHR and S_IFIFO
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 14:30:30 +00:00
Manolo Gouy
888427f2fe Remove unused #define directives
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 13:55:20 +00:00
Manolo Gouy
f7b70c6866 Remove unnecessary #include <sys/stat.h> directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 13:16:33 +00:00
Manolo Gouy
f62dfac8e1 Remove unneeded #include directives
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 13:13:14 +00:00
Albrecht Schlosser
1099338262 Clean up Makefile and CMakeLists.txt
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 23:33:04 +00:00