Commit Graph

6757 Commits

Author SHA1 Message Date
Manolo Gouy
270b437500 Rewrite Fl_Window::hide() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 07:08:17 +00:00
Manolo Gouy
bf7e4de688 Rewrite Fl_Window::resize() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11401 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 21:21:08 +00:00
Manolo Gouy
6ec8ebc4f8 Rewrite Fl_Window::show() and Fl_Menu_Window::show() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 17:47:44 +00:00
Manolo Gouy
6302b3da00 Move all icon-support data to the platform-specific Fl_XXX_Window_Driver class
because these data are platform-specific.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 13:27:22 +00:00
Manolo Gouy
b8e6c430e8 Make sure can_xdbe() from Fl_X11_Window_Driver.cxx is called after fl_open_display().
This ensures fluid does not open the display when run with -c

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 09:35:51 +00:00
Albrecht Schlosser
92d3e1e03a Update minimum required CMake version from 2.6 to 2.6.3.
Verified build with CMake 2.6.3 (failed with 2.6.2).

We need 2.6.3 for "unset" (unknown command in 2.6.2 and earlier).

CMake 2.6.2 also fails when parsing nested brackets in logical
expressions like the following one:

  if((NOT APPLE OR OPTION_APPLE_X11) AND NOT WIN32)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 00:23:25 +00:00
Albrecht Schlosser
80c853b426 Fix some, but not all doxygen warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11395 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-21 22:51:23 +00:00
Manolo Gouy
3f34aba828 Rewrite Fl_Window::label(const char *name, const char *mininame) under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11394 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-21 17:55:10 +00:00
Manolo Gouy
9ba3889ae5 Implement Fl_Window::make_current() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-21 17:06:03 +00:00
Manolo Gouy
ec0b695709 Improve the implementation of Fl_X11_Window_Driver::flush_double() and flush_overlay().
The with/without Xdbe codes are well separated, and code repetition is avoided
by the introduction of Fl_X??_Window_Driver::flush_double(int).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-21 13:59:24 +00:00
Manolo Gouy
e4c90deee8 Fix Fl_Xdbe_Window_Driver::destroy_double_buffer() for an Fl_Overlay_Window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-20 19:20:30 +00:00
Manolo Gouy
02edfc29b7 More accurate #include directive.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-20 15:04:41 +00:00
Manolo Gouy
4baca53944 Continue implementation of class Fl_Window_Driver according to Albrecht's plan.
This removes a bunch of
   friend class Fl_XXX_Window_Driver;
declarations from Fl_Window.H, and therefore allows
to add a new window driver without modifying the platform-independent code.

The Fl_PicoXXX_Window_Driver classes  have been modified but not tested ==> test needed.

File Fl_X11_Window_Driver.cxx contained this:

// DO NOT call this if the window is not mapped!
static int can_xdbe()
 { ... }

The new code does call can_xdbe() before any window is mapped,
and does work. Since can_xdbe() asks the X server whether it supports
the Xdbe extension, I don't see why this should not work without a
mapped window. This point should be clarified by the author of
"DO NOT call this if the window is not mapped!".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-20 08:44:30 +00:00
Manolo Gouy
51030530f2 Advancing Albrecht's plan for the Fl_Window_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 23:04:28 +00:00
Albrecht Schlosser
c2067d81be Fix Windows (CMake) build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 22:40:28 +00:00
Albrecht Schlosser
3d28ff46fb Update dependencies.
Note: the manually edited dep's have not been updated.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11385 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 22:23:34 +00:00
Albrecht Schlosser
5c1a539d42 Minor Makefile (spaces/tabs) and CMakeLists.txt fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 22:22:19 +00:00
Ian MacArthur
a80f902fdb Fix typo that was preventing the porting branch form building on OSX with a Makefile build.
Note that the dependencies in the Makefile build are somewhat out-of-synch in the porting branch right now as things transition...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 21:55:10 +00:00
Manolo Gouy
533c0a2179 Fix #include directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11382 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 21:31:28 +00:00
Manolo Gouy
8273b54354 Rename print support files to src/drivers/XXX/Fl_XXX_Printer_Driver.xxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11381 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 21:15:34 +00:00
Manolo Gouy
e65d66e885 Reflect recent changes in Fl_Image_Surface and Fl_Copy_Surface classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11380 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:59:29 +00:00
Manolo Gouy
258eec3d20 Reflect recent changes in Fl_Image_Surface and Fl_Copy_Surface classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:57:11 +00:00
Manolo Gouy
06e7d0092d Rename Fl_XXX_Image_Surface.cxx to Fl_XXX_Image_Surface_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:51:15 +00:00
Manolo Gouy
f55363776f Deleted because renamed to src/drivers/XXX/Fl_XXX_Copy_Surface_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:44:37 +00:00
Manolo Gouy
5662eea6ee Rename src/drivers/XXX/Fl_XXX_Copy_Surface.cxx to Fl_XXX_Copy_Surface_Driver.cxx
because these files implement the Fl_XXX_Copy_Surface_Driver class.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:32:05 +00:00
Manolo Gouy
dbad8f8a98 Remove unused files. Their content is now in src/drivers/XXX/Fl_XXX_Copy_Surface.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11375 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:20:44 +00:00
Manolo Gouy
f936eb1a96 Driver-based rewrite of the Fl_Copy_Surface class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:14:58 +00:00
Manolo Gouy
3dcc91d1f0 Remove these useless, empty files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 16:59:54 +00:00
Manolo Gouy
a8d32c57d6 Remove src/drivers/XXX/Fl_XXX_Image_Surface.H files that are no longer useful.
Their content is now in src/drivers/XXX/Fl_XXX_Image_Surface.cxx

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 16:56:57 +00:00
Manolo Gouy
8711cf8be9 (hopefully) Final driver-based rewriting of the Fl_Image_Surface class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 16:48:33 +00:00
Manolo Gouy
f8bd5f3046 Fix potential memory error in Mac OS code to print window titlebars.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 05:51:11 +00:00
Manolo Gouy
1179b53b0c Implement Fl_PostScript_Graphics_Driver::has_feature(driver_feature mask)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 05:11:05 +00:00
Albrecht Schlosser
55735c7930 Fix Windows build error (fluid: undefined symbol fl_clip_region()).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 00:39:40 +00:00
Albrecht Schlosser
dfb09b2095 Fix #include <config.h>.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18 21:53:31 +00:00
Albrecht Schlosser
84ef7615d7 Fix potential crash in take_focus() (Linux).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18 21:48:23 +00:00
Manolo Gouy
fa9a33eaee Beginning of Albrecht's plan for Fl_Window and Fl_Window_Driver classes.
Still unclear whether the implementation of the flush() functions follows the plan.
The Fl_Printer class is fully rewritten under the driver model.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18 18:20:11 +00:00
Greg Ercolano
3e0e68bb59 More carry from r11173 to porting..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-14 17:25:06 +00:00
Greg Ercolano
91e747bbda Carrying over r11173 fix to the new 1.3 porting branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-14 17:20:59 +00:00
Greg Ercolano
aeaf3b1586 Carrying fix from 1.3-current (r11177) to the new porting branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-14 17:09:46 +00:00
Matthias Melcher
5c3c42f464 Extended double buffering fix to Android
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 23:03:42 +00:00
Matthias Melcher
b496d18b85 Fixed 'flush()' code for single, double, and overlay buffering
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 22:16:37 +00:00
Matthias Melcher
30756ae350 Window functions to retrieve more detailed window type
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 15:31:26 +00:00
Matthias Melcher
5953f5a695 Quick fix for Fluid on X11. MSWindows version broken due to missing Fl_Printer::Helper::Helper
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 23:44:57 +00:00
Matthias Melcher
e6631a0f7f Moved the Fl_Window::decorated_*() functions teh Window_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 22:24:20 +00:00
Matthias Melcher
4643f3e98c PicoSDL: added crude event handling.
Clipped vs. unclipped drawing issues!

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 18:05:10 +00:00
Albrecht Schlosser
c1fe316855 Add localization of modifier key names in shortcut labels.
Modifier key names like Alt, Shift, Ctrl, Meta can now be localized by
setting global string pointers. See documentation of fl_shortcut_label().

Port branch-1.3, svn r 11321.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 17:44:24 +00:00
Matthias Melcher
3b14342388 Add Android Touch events.
"test/button" works now.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 17:34:13 +00:00
Matthias Melcher
823a6cc2ad Android "Hello" compiles and runs!
http://matthiasm.com/andoidFLTK.jpg

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 22:01:55 +00:00
Manolo Gouy
f11fe83e5e Rewrite of Fl_Printer under the driver model - first step
Next step will involve moving code to new, platform-specific files.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 20:32:48 +00:00
Matthias Melcher
bd844a2abc Android version compiles, links, launches, and receives commands.
Still need to implement window creation and drawing.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 17:12:21 +00:00