Manolo Gouy
eabbc41ef1
Avoid compilation warnings with -Wmaybe-uninitialized
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-29 13:28:40 +00:00
Manolo Gouy
42624dc17f
Avoid possible autorelease warning message sent by "fluid -c" that calls Fl_Window::size_range()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-28 14:41:40 +00:00
Manolo Gouy
8ef05518bb
MacOS platform: fix building under OS 10.4 that may not have kCGBitmapByteOrder32Host #define'd
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-27 15:11:46 +00:00
Manolo Gouy
1b3e273fa7
Rename Fl_System_Driver::flNoValue to Fl_System_Driver::fl_NoValue to follow the CMP
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 19:35:20 +00:00
Greg Ercolano
aa8dc3ffe1
Bringing over fix [r11986] from 1.3 current to the porting branch.
...
Small doc clarification for omitted word, caught by Albrecht via private email.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 19:31:29 +00:00
Manolo Gouy
04c20514f6
Replace a few global variables by members of the Fl_Quartz_Graphics_Driver class
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 16:57:37 +00:00
Manolo Gouy
606cdf1c60
These files are no longer useful.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 16:49:13 +00:00
Manolo Gouy
197d46240e
File src/drivers/Quartz/Fl_Quartz_Printer_Graphics_Driver.cxx is no longer useful.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 16:46:31 +00:00
Manolo Gouy
5b5ba880f5
MacOS platform: the printer's graphics driver should also call Fl_Graphics_Driver::newMainGraphicsDriver()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 16:43:10 +00:00
Manolo Gouy
45e6be7316
Mac OS platform: Remove old Carbon code from cairo/Fl_Cairo.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 12:08:37 +00:00
Manolo Gouy
7698a4b98e
MacOS platform: centralize check whether a font has been set before drawing text
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 06:26:59 +00:00
Albrecht Schlosser
34f5e4f752
X11: More explicit warning when using rotated text w/o Xft.
...
The warning is issued to stderr only once (previously: every time rotated
text was used).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-25 11:23:27 +00:00
Albrecht Schlosser
c2fd05633c
Fl_Tree documentation fixes and two missing statements.
...
Missing statements found while merging fixes from branch-1.3.
Todo: check if they have been 'lost' in the porting process
or removed deliberately in branch-1.3-porting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 23:15:48 +00:00
Manolo Gouy
6ad1d3f2e8
Add MAC_OS_X_VERSION_10_12 preprocessor variable
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 06:27:18 +00:00
Manolo Gouy
b3c16b4911
Mac OS platform: restore usability with SDK 10.3 and 10.4
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11973 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 06:21:37 +00:00
Manolo Gouy
cccb475fa8
Remove useless forward declaration.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 15:22:02 +00:00
Albrecht Schlosser
67f98ae4f3
Fix potential crash when using keyboard nav. on Fl_Tabs (STR #3333 ).
...
Also: more consistent use of 'const int nc = children()'. Added 'const'
qualifier for clarity only. This does not change the behavior.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 14:04:56 +00:00
Manolo Gouy
0250c5a98a
Move font-related member functions from Fl_Screen_Driver to Fl_Graphics_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 13:56:07 +00:00
Manolo Gouy
63e33b1be3
Fl_Quartz_Graphics_Driver: separate CoreText- and ATSU-based code using new, derived classes.
...
FLTK for the Mac OS platform draws text using 2 distinct system APIs depending on the
version of the running OS. Classes Fl_CoreText_Graphics_Driver and Fl_ATSU_Graphics_Driver are defined
and implement the same virtual functions of class Fl_Quartz_Graphics_Driver using
CoreText and ATSU, respectively. The app allocates an object of one of these derived
classes according to the running OS version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 07:47:57 +00:00
Manolo Gouy
0e33655853
Fl_Screen_Driver class: its platform dependent member functions should not be static.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-22 13:22:03 +00:00
Manolo Gouy
02535d1222
Rewrite Fl::set_fonts(), Fl::get_font_sizes(), Fl::get_font_name() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-22 07:44:34 +00:00
Manolo Gouy
145cca26bd
Remove a block of header comments in the middle of the file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11964 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-21 19:56:03 +00:00
Manolo Gouy
28044e71db
Restore building with X11 but not Xft
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11963 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-21 19:25:47 +00:00
Manolo Gouy
6bba205c93
Remove the 'suppressed' variable from cocoaMouseHandler(), a useless residue from ancient code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11960 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-21 06:13:38 +00:00
Manolo Gouy
6347dbde58
Restructure the code behind double Fl_Cocoa_Screen_Driver::wait(double time_to_wait)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11958 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:48:55 +00:00
Albrecht Schlosser
26601983c6
Update dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11957 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:35:44 +00:00
Albrecht Schlosser
eede707852
Update fluid files and copyright.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11956 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:31:38 +00:00
Manolo Gouy
827fa250f3
Remove fl_wait() that is not part of the public API.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11953 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 12:58:51 +00:00
Manolo Gouy
c06374378f
Remove fl_ready() not in public API and mostly same as Fl_XXX_Screen_Driver::ready()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11951 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-19 16:59:59 +00:00
Manolo Gouy
3c0b74b284
Remove virtual bool Fl_Graphics_Driver::high_resolution() unlikely to be useful across platforms.
...
HighDPI support is done with very different means across platforms, so a boolean
value is unlikely to be meaningful across platforms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-19 15:33:21 +00:00
Manolo Gouy
6b86d9fbaf
Remove static bool Fl_Display_Device::high_resolution() which may not be really useful.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11949 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-19 15:10:28 +00:00
Greg Ercolano
e7642ee999
Bringing over fix [r11947] from 1.3 current to the porting branch.
...
Small size mods to prevent Fl_Help_View scrollbar and wordwrap,
while keeping Albrecht's recent mods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 20:29:13 +00:00
Manolo Gouy
75e9a9f55c
Documentation: restructure the description of function Fl::paste().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11946 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 09:27:32 +00:00
Manolo Gouy
cd7b6a8e87
Remove possible warnings when compiling with -Wundef
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-13 10:56:19 +00:00
Albrecht Schlosser
2bb91d900c
Fix native file chooser test program (STR #3326 ).
...
Fix compilation error under Windows with MS compiler (Visual Studio) only.
Also fix layout and resizing behavior.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11941 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-13 00:59:04 +00:00
Manolo Gouy
de1af41923
Fix typo in macro __LP64__
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11938 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 16:21:19 +00:00
Manolo Gouy
c34255f8b9
Remove code requiring config.h from public header FL/x.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11937 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 15:48:09 +00:00
Manolo Gouy
b43a5cf1fe
Create virtual void Fl_Graphics_Driver::draw(Fl_Shared_Image*,...)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 12:02:38 +00:00
Manolo Gouy
0af00dd0ac
Document function fl_open_callback()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 11:26:05 +00:00
Manolo Gouy
8b04325226
Make clear that clipboard and drag-n-drop textual data are UTF-8 encoded.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 10:52:27 +00:00
Manolo Gouy
70194e154a
Change FL/porting.H after having rewritten x.H and platform_types.h under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-11 14:24:36 +00:00
Manolo Gouy
e1f1b3898f
Make Fl_Native_File_Chooser_FLTK.cxx compilable with FL_PORTING on.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-11 08:09:00 +00:00
Manolo Gouy
35a5148ee8
Put the code that defines the layout of struct _XRegion in FL/x.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-11 07:12:11 +00:00
Manolo Gouy
c5960df5fb
Rewrite fl_open_callback() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-09 15:56:33 +00:00
Manolo Gouy
86e48ce2ca
configure build and Mac platform: make the colbrowser and help demo find their data file
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-07 16:05:55 +00:00
Greg Ercolano
5871340263
Bringing over fix [r11923] from 1.3 current to the porting branch.
...
(Slightly different from 1.3 current patch, as files were split)
Code indent consistency + doxygen \code indent fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:45:52 +00:00
Greg Ercolano
832e117f81
Bringing over fix [r11924] from 1.3 current to the porting branch.
...
Help text typo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:31:13 +00:00
Greg Ercolano
108e6d7b0d
Bringing over fix [r11920] from 1.3 current to the porting branch.
...
Fixes STR#3200 issue with filter() on Win32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11922 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:56:54 +00:00
Greg Ercolano
f20152e5f2
Bringing over fix [r11919] from 1.3 current to the porting branch.
...
Added "Filter" field to test filter strings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:56:10 +00:00
Manolo Gouy
36717ec845
Output also a bundled version of demo, as done for all other test apps under Mac OS platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-01 19:41:26 +00:00