Commit Graph

7252 Commits

Author SHA1 Message Date
Albrecht Schlosser
351736c320 Documentation updates (IDE and CMake support).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 15:18:31 +00:00
Manolo Gouy
3e8e2ea62e Replace erroneous bitwise & by logical &&
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-30 20:55:31 +00:00
Manolo Gouy
62046664c7 Complete introduction of virtual Fl_RGB_Image *Fl_Image::as_rgb_image() begun at r.12061
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-30 19:56:27 +00:00
Manolo Gouy
3ae2b1d74e Add virtual Fl_RGB_Image* Fl_Image::as_rgb_image() to detect whether an Fl_Image is derived from Fl_RGB_Image
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-30 07:26:13 +00:00
Albrecht Schlosser
2c043fb5b3 Fix string truncation in fluid (STR #2722 continued).
This commit fixes the truncated string drawing that was partly fixed
in svn r 9112 (FLTK 1.3.1, 2011-10-01).

Combined port of svn r 12057 and 12059. The latter adds sanity checks
and fixes potential buffer overflows.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-28 21:42:42 +00:00
Manolo Gouy
4567268d2a MacOS: fix a small problem where command Quit of the application menu may not work if Fl_Native_File_Chooser is used before any window is shown.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-27 16:41:05 +00:00
Manolo Gouy
bbfd919773 WIN platform: implement Fl_GDI_Graphics_Driver::draw_scaled(Fl_Image *img,int,int,int,int) when img is a Fl_RGB_Image
Implementation uses StretchBlt() when img->d() is  1 or 3 and AlphaBlend() when it is 2 or 4.
This should turn useful to draw images on HighDPI displays using the display's true resolution.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-22 11:42:20 +00:00
Manolo Gouy
52479a5ef1 Reorganize and simplify function Fl_Graphics_Driver::draw(Fl_Shared_Image *, int, int)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-21 04:51:15 +00:00
Manolo Gouy
8970b21aa2 Remove erroneous uses of sizeof(filename) where filename is a char* and not a char array
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 17:25:53 +00:00
Manolo Gouy
da276e6efa Add one more argument to virtual Fl_System_Driver::file_browser_load_filesystem() giving length of the filename argument
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 08:40:41 +00:00
Manolo Gouy
ec41e1a59b Make sure "/" is always in the list of file systems reported by Fl_File_Chooser (Unix/Linux platform)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 08:31:48 +00:00
Greg Ercolano
43c98c7c90 Bring over combined fix [r12044] from 1.3 current to the porting branch.
Applied patch from STR #3335 to fix simple GUI issues.
 


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 19:20:36 +00:00
Greg Ercolano
de4572ffdd Bring over combined fix [r12041/12042] from 1.3 current to the porting branch.
Added line numbers to Edit -> Show Source Code viewer (source + header tabs)
Fixes Aditya Siram's observation today on fltk.coredev.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 17:00:58 +00:00
Albrecht Schlosser
5404646bb5 Update bundled config.sub to a slightly newer version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 13:10:43 +00:00
Albrecht Schlosser
183797e4a3 Minor fix of tree demo program (show tree widgets).
Clicking "Rebuild Tree" after "Close All" did not show the widgets
(Fl_Input test, ccc button, D1, D2). This is now fixed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 12:51:58 +00:00
Albrecht Schlosser
bacced2c92 Add non-const version of Fl_Tree_Item::tree().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 12:51:05 +00:00
Albrecht Schlosser
ae419c9dd9 Documentation updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-16 21:04:24 +00:00
Manolo Gouy
fc62d39db5 Add Doxygen note that class Fl_Device_Plugin is not intended for public use.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-16 15:12:46 +00:00
Albrecht Schlosser
e3670dfda6 Fix inconsistent interpretation of ld() in image handling (STR #3308).
Documentation has been fixed and clarified, and ld() handling is now
consistent in Fl_(RGB_)Image, their subclasses and fl_draw_image()
and similar functions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 16:35:52 +00:00
Albrecht Schlosser
242d5365e6 Documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 14:33:18 +00:00
Manolo Gouy
7a81273a0c MacOS: finer control of the compilation conditions under which Core text and ATSU are used or not.
The compilation conditions depend on the targeted architecture, what version of the SDK is used,
and what MacOS deployment version is used. Under most conditions, a single API is possible,
and no pointer-to-member function is used.
But the code supports building apps that can run both APIs depending on the version of the
running MacOS.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 09:17:15 +00:00
Manolo Gouy
2b5fbbacfc Add public: to definition of class Fl_Quartz_Printer_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-11 07:17:04 +00:00
Manolo Gouy
04f1e4d1aa Replace .h by .H in #include "Fl_Quartz_Graphics_Driver.h"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-11 07:14:47 +00:00
Manolo Gouy
a6a79d80f3 Re-organisation of code to support CoreText and ATSU for drawing text.
We avoid using one CoreText-related and one ATSU-related derived classes
of class Fl_Quartz_Graphics_Driver. Thus, class Fl_Quartz_Graphics_Driver can
be derived if useful and still support both text APIs.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-10 21:19:39 +00:00
Manolo Gouy
0250b4af12 Remove Fl_Xlib_Graphics_Driver::global_gc() because identical to Fl_Graphics_Driver::global_gc()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-07 06:12:33 +00:00
Manolo Gouy
07f2fcd308 Fl_Graphics_Driver::global_gc() is already implemented in Fl_Graphics_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-07 06:04:28 +00:00
Manolo Gouy
311c7d9b24 Correct function Fl_GDI_Graphics_Driver::gc(void*) that did not update the global variable fl_gc correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 17:03:30 +00:00
Manolo Gouy
b20e646676 Correct function Fl_Quartz_Graphics_Driver::gc(void*) that did not update the global variable fl_gc correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 16:59:37 +00:00
Manolo Gouy
c7c238675a Introduce virtual void Fl_Menu_Bar::update() with a platform-specific reimplementation to support Fl_Sys_Menu_Bar.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 16:42:59 +00:00
Manolo Gouy
a80ce48339 Make source code of test/file_chooser.cxx platform-independent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12014 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 08:55:22 +00:00
Manolo Gouy
c48dfb94cd Fl_Native_File_Chooser on MacOS: improve handling of case where no chooser title is set.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-05 07:40:15 +00:00
Manolo Gouy
1929cb109e Improve Fl_Native_File_Chooser open dialog under Mac OS 10.12 that had lost its titlebar message.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-04 15:00:34 +00:00
Manolo Gouy
31070778b7 Fix for STR#3308 - MacOS X-specific part.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-04 11:29:57 +00:00
Manolo Gouy
6d616d3263 Xcode version 8 can
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-03 15:50:26 +00:00
Albrecht Schlosser
cf413d53fc Fl_Shared_Image documentation enhancements and clarifications.
Minor code changes (e.g. renaming of variables) included, but no functional
changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-01 22:43:56 +00:00
Greg Ercolano
a82eed18e5 Bringing over fix [r12000] from 1.3 current to the porting branch.
Applying my suggested patch to solve immediate issues with STR #3231.
Probably more needs to be done (see STR), but at least solves the
immediate issues.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-01 21:22:20 +00:00
Albrecht Schlosser
7e273a9fd3 Configure fixes and enhancements, ported from branch-1.3.
- Abort configure if Xft was requested explicitly, but not found.
- Set config.h HAVE_* variables only if both library and header found.
- Replace deprecated configure macros with recommended ones.
- Improve indenting (clarify macro arguments).
- Remove all autoconf warnings (see autoconf --warnings=all).
- Normalize indenting with tabs+spaces.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-30 21:44:04 +00:00
Albrecht Schlosser
6b278da83d Rename configure.in to configure.ac.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-30 21:09:59 +00:00
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