Commit Graph

7077 Commits

Author SHA1 Message Date
Albrecht Schlosser
d812a06b9a Generate Doxygen docs with the highest possible ABI version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-25 16:08:04 +00:00
Albrecht Schlosser
241634c2b6 remove duplicate '†'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-23 10:48:59 +00:00
Albrecht Schlosser
cea813e6ee Add another special test case "†" for Fl_Help_View.
Note: † = &#x2020 = U+2020, i.e. 0x2020 & 255 = 0x20 = ' ' (space).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-23 10:31:00 +00:00
Albrecht Schlosser
ffbcd89b53 Fix compiler warnings.
FL/platform_types.h: C++ style comments are not allowed in ISO C90.

src/Fl_Help_View.cxx: type qualifiers ignored on function return type.

src/Fl_Image_Surface.cxx: (Linux) converting to non-pointer type
  ‘long unsigned int’ from NULL [-Wconversion-null]
  Line #70: In member function ‘Fl_Offscreen Fl_Image_Surface::offscreen()’



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-22 13:36:40 +00:00
Manolo Gouy
867e640cb8 Fix handing of html entities in copied text by Fl_Help_View widget.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-19 16:50:09 +00:00
Albrecht Schlosser
ccf3681097 Fix Fl_Help_View buffer overflow (STR #3275).
This version works much better than the previous one:

 - fixed buffer overflow ("stack corruption")
 - fixed potential long text truncation
 - fixed tab formatting at line start or any offset divisible by 8
 - better handling of HTML entities (aka quoted characters)
 - code simplifications, e.g. HV_Edit_Buffer::cmp() + width()

Todo:

 - improve and standardize handling of HTML entities
 - more tests

Missing features and known bugs:

 - strike out text (not implemented)
 - table and horizontal line formatting issues (STR #3227)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11746 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-17 16:33:50 +00:00
Albrecht Schlosser
495d15cf7a Add HTML entity tests to test/help-test.html.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-17 16:10:12 +00:00
Manolo Gouy
8eb1517ffc More accurate message about how to port the stat() function to a new platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-16 10:54:13 +00:00
Manolo Gouy
a6b31a05af CMake on Mac OS: copy support files to application bundles.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-15 14:07:48 +00:00
Manolo Gouy
c68d4d52d8 Fix colbrowser.cxx for __APPLE__
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-15 14:06:01 +00:00
Manolo Gouy
e3d96c1bcf Simpler test/help.cxx under Mac OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11738 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-15 13:52:17 +00:00
Albrecht Schlosser
3db259007a Fix typo in html file test/help-test.html
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11735 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-13 13:02:39 +00:00
Manolo Gouy
207d8fe09b Add GLContext to the set of platform-dependent types defined in FL/platform_types.h
If a platform does not support OpenGL, it can just typedef GLContext as void*

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-13 06:45:40 +00:00
Manolo Gouy
01c5b06fa0 Slightly simpler Fl_Graphics_Driver::default_driver() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-13 06:41:33 +00:00
Manolo Gouy
cc35e003eb Move GL-related member functions from class Fl_Cocoa_Screen_Driver to class Fl_Cocoa_Gl_Window_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-09 16:10:54 +00:00
Albrecht Schlosser
2dacc9a1db Fix documentation of Fl_Tile (STR #3303).
Clarify that the resizable() box should be the first child to ensure
correct event delivery to children.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-09 11:29:59 +00:00
Manolo Gouy
9a5a5b8739 Doxygen: put all driver classes in EXCLUDE_SYMBOLS
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 17:17:31 +00:00
Manolo Gouy
7d9fdcec25 Remove Doxygen warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 17:08:15 +00:00
Manolo Gouy
f129964dc8 Make Fl_Cocoa_Gl_Window_Driver::draw_string() simpler
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11722 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 16:56:15 +00:00
Manolo Gouy
096cb38e1e Fix typo in comment
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 16:45:11 +00:00
Manolo Gouy
188f80161a Fix gl_draw() in normal window under WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 16:43:59 +00:00
Manolo Gouy
8813f93ac1 Fix gl_draw() used in simple window under Mac OS X.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11719 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 16:20:24 +00:00
Manolo Gouy
8fcccb05d4 Rewrite file src/gl_draw.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 15:51:11 +00:00
Manolo Gouy
268a2507e8 Set file properties
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11717 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 06:57:13 +00:00
Manolo Gouy
300747225c Rewrite OpenGL-related code under the driver model.
Class Fl_Gl_Window_Driver, with its platform-specific derived classes, is created
to hold platform-specific, OpenGL code.

File gl_draw.cxx still needs to be converted to the driver model.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 06:42:57 +00:00
Manolo Gouy
048bb2b0f6 Documentation: detail ownership of the image data when pasting from an image-containing clipboard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-05 08:35:52 +00:00
Manolo Gouy
dcb26fc188 Remove unneeded extern declaration.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-05 07:42:48 +00:00
Manolo Gouy
aec24973be static function get_image_from_clipboard(Fl_Widget *) really returns Fl_RGB_Image* type
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11711 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-05 06:53:59 +00:00
Manolo Gouy
e6b4af2c47 Fix how to access clipboard content at program start.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-04 05:59:18 +00:00
Manolo Gouy
d47b431750 Fix potential memory leak under X11 when pasted image is not accepted by the receiving app.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-03 14:28:45 +00:00
Manolo Gouy
86a7bbe93a Member function Fl_Widget_Surface::draw(Fl_Widget*,int,int) does not need to be virtual.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-30 15:07:16 +00:00
Manolo Gouy
fde440f752 Restore CMake building with OPTION_PRINT_SUPPORT turned off.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-28 16:49:07 +00:00
Manolo Gouy
5a4d10faea Use standard fopen() as default implementation of virtual Fl_System_Driver::fopen()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-27 17:25:17 +00:00
Manolo Gouy
b870641f34 Begin to remove platform-specific code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-27 17:02:57 +00:00
Manolo Gouy
9b186420ff Add test to avoid null pointer crashes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-27 16:56:36 +00:00
Manolo Gouy
f4ec7192a9 Add tests to avoid null pointer errors
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-27 16:42:20 +00:00
Manolo Gouy
425fe6ac8c Add tests to avoid null pointer crashes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11702 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-27 16:27:30 +00:00
Manolo Gouy
d3402eaa85 Remove compilation warnings: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-26 11:04:00 +00:00
Manolo Gouy
f428d0077d Set svn file properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11700 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-26 07:25:53 +00:00
Manolo Gouy
1e65c16b73 Set svn file properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-26 06:23:27 +00:00
Manolo Gouy
2d83a11742 Make one version of Fl_OpenGL_Display_Device::capture_gl_rectangle() the default one.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-26 06:07:53 +00:00
Manolo Gouy
25b4076b03 Set more accurately the protections of the members of class Fl_Display_Device.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-26 05:44:54 +00:00
Manolo Gouy
8f9f17456b Remove unnecessary #include directive.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-25 06:29:36 +00:00
Manolo Gouy
ed56c01b6c Set svn file properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 20:03:05 +00:00
Manolo Gouy
c0944b7cee Set svn file properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 19:55:26 +00:00
Manolo Gouy
cf751f49de Set svn file properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 19:49:06 +00:00
Manolo Gouy
93d1c43b7a Remove FL_ABI_VERSION directives
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 19:39:27 +00:00
Manolo Gouy
a877a2d06b Add 2 Doxygen member function descriptions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 19:30:17 +00:00
Manolo Gouy
6d8b062453 Complete DOxygen documentation of the Fl_Graphics_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 16:22:38 +00:00
Manolo Gouy
98f071fa16 Add Doxygen comments for members of the Fl_Graphics_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 08:38:11 +00:00