Commit Graph

6885 Commits

Author SHA1 Message Date
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
Albrecht Schlosser
020a96b4a8 Fix more compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 21:15:45 +00:00
Albrecht Schlosser
f0f41708a4 Fix typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 17:52:58 +00:00
Manolo Gouy
6f3825483f Set correct svn properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 15:08:21 +00:00
Manolo Gouy
7c3f3cef39 Delete this file. Its content is now in file Fl_Native_File_Chooser.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 14:55:45 +00:00
Manolo Gouy
fa67aafa9d Rewrite the Fl_File_Native_Chooser class under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 11:25:35 +00:00
Manolo Gouy
1dfe311998 Remove unused member function declaration (Mac OS platform)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04 11:57:34 +00:00
Manolo Gouy
a22791b691 Have the device demo operate also the Fl_PostScript_File_Device class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04 11:31:51 +00:00
Manolo Gouy
01ef0a6ec6 Modify files keysym2Ucs.c, utf8Input.c, utf8Utils.c and utf8Wrap.c for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04 10:39:42 +00:00
Manolo Gouy
bc11bd8d5f Fix typo Fl --> FL
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04 08:18:26 +00:00
Manolo Gouy
8be74c3fe4 Remove platform-dependent code from file is_spacing.c
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04 05:15:37 +00:00
Manolo Gouy
2aa1088533 Remove platform-specific code from file case.c
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04 05:10:48 +00:00
Manolo Gouy
664c2b6357 Remove code to draw rounded bottom window corners which is not effective.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 17:54:41 +00:00
Manolo Gouy
2eecc67e7e Fix error introduced in Fl_arg.cxx when converted to the driver model.
fluid built by CMake no longer started under the finder.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 15:34:31 +00:00
Manolo Gouy
d292de92ef Rewrite fl_scroll_area.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 14:25:42 +00:00
Manolo Gouy
7c8e337942 Remove "(if fl_window is null)" from Doxygen comment.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 08:47:52 +00:00
Manolo Gouy
b3af5591ca Stop using fl_read_image() to read window decoration.
Use instead an API internal to each platform code base.
fl_read_image() is used only for its documented feature
of reading inside the current window or an offscreen buffer.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 08:36:19 +00:00
Manolo Gouy
9a97fc37fd Delete because content is now in Fl_XXX_Screen_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 06:58:07 +00:00
Manolo Gouy
f1ffe2f1fe Rewrite fl_read_image.cxx under the driver model.
Files fl_read_image_mac.cxx and fl_read_image_win32.cxx are no longer used;
their content is now in Fl_XXX_Screen_Driver.cxx

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 06:51:09 +00:00
Manolo Gouy
c88af210e7 Move function draw_layer_to_context() from Fl_Cocoa_Screen_Driver to Fl_Cocoa_Window_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 16:24:57 +00:00
Manolo Gouy
64c96b9098 Continue removing from class Fl_X all what is not window-related.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 16:08:56 +00:00
Manolo Gouy
ddc95025fd Fix lowercase typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 15:47:54 +00:00
Manolo Gouy
6b6c71265f Complete removal of platform-dependent code from fl_set_font.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 15:37:03 +00:00
Manolo Gouy
7a8f307fca fl_font.o no longer depends on Fl_Font.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 15:12:44 +00:00
Manolo Gouy
09e0864f3e Remove #include directive for Fl_Font.H from mac.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 13:53:41 +00:00
Manolo Gouy
851c17d43b Remove platform-dependent code from src/fl_font.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11509 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 13:48:50 +00:00
Manolo Gouy
6ef97bc0c6 Delete this file replaced by one in each platform-specific subtree with same name.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 13:26:17 +00:00
Manolo Gouy
d011d5b4f0 Replace src/Fl_Font.H by one file for each platform.
This file contained nearly only platform-specific code.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 13:22:48 +00:00
Manolo Gouy
c03f3d8946 Begin to rewrite src/Fl_Font.H in the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 11:58:13 +00:00
Manolo Gouy
43d20bd18a Remove now useless Fl_X::window_ref() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 09:44:00 +00:00
Manolo Gouy
d0c8ff09f0 Make constant CoreText_threshold local to file Fl_Quartz_Graphcs_Driver_font.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 09:41:11 +00:00
Manolo Gouy
ab5252071c Move Fl_X::next_marked_length to the Fl_Cocoa_Screen_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 09:34:17 +00:00
Manolo Gouy
4d4b43a6bc Move function Fl_X::calc_mac_os_version() to class Fl_Darwin_System_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 07:29:09 +00:00
Manolo Gouy
77e5a5c11a Move get_carbon_function() to the Fl_Darwin_System_Driver class where it belongs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 07:03:18 +00:00
Manolo Gouy
7b37960d95 Move intersect_region_and_rect() to the Quartz driver code where it belongs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 06:42:34 +00:00
Manolo Gouy
d756822c2b Complete removal of platform-dependent code from Fl_Text_Display.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 15:37:19 +00:00
Manolo Gouy
a53297ebab Begin to remove platform-specific code from Fl_Text_Display.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 14:58:07 +00:00
Manolo Gouy
20b00f29ce Rewrite Fl_Text_Editor.cxx under the driver model.
Fl_Cocoa_Screen_Driver contains the Mac OS-specific text editor key bindings.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11497 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 14:49:29 +00:00
Albrecht Schlosser
88ab084e9a correct typo, format line breaks < 80 columns in README.OSX.txt
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 11:11:11 +00:00
Manolo Gouy
f1a157bdd9 Replace Fl_System_Driver::driver() by Fl::system_driver()
for coherence with the Fl::screen_driver() function.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 10:28:03 +00:00
Albrecht Schlosser
524ebcef0b Fix example programs after removal of some system #include's.
This adds missing headers that were previously included in other
FLTK header files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 21:48:15 +00:00
Manolo Gouy
8566b126c2 Remve useless extern declaration
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 20:11:04 +00:00
Manolo Gouy
03eb542e0d Begin to remove platform-dependent code from Fl_Input.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 20:00:54 +00:00