Commit Graph

944 Commits

Author SHA1 Message Date
Manolo Gouy
23ab3ff119 Corrected typo in Doxygen doc (again).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 08:37:49 +00:00
Manolo Gouy
12f064a121 Corrected typo in Doxygen doc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 08:20:34 +00:00
Matthias Melcher
60eae78679 Slightly changed the event dispatch functions to allow for exception handling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-26 19:14:38 +00:00
Matthias Melcher
7b832a512e Added Fl::event_dispatch() which can add a function to FLTK that monitors all events before they reach Fl::handle(). STR 2532
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-25 19:54:09 +00:00
Matthias Melcher
fe25f19767 Adding embedded documentation to Fluid if installed odcs are not found. Falls back to the internet if that does not exist either. Also, adds JPEG and PNG images to the Shared Image list if they were loaded from memory - see example use in fluid.cxx which loads and embedded html document containing an embedded PNG image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 17:04:22 +00:00
Albrecht Schlosser
c54e998967 Added FL_EXPORT for some more classes and structs to clean up MS DLL building.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 22:40:11 +00:00
Albrecht Schlosser
1c38a0f2f7 Tweaks to silence more MS compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 22:38:55 +00:00
Manolo Gouy
a306fe46d3 Redefined fl_xid() as an inline function when used inside the FLTK library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-20 13:22:30 +00:00
Albrecht Schlosser
96c410dceb Hiding the Fl_X class under WIN32 (STR #2522).
Applied Manolo's patch, modified to use FL_INTERNALS for
explicit request in user code to expose class Fl_X.
Also changed X11 and Mac OS to use FL_INTERNALS.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 23:52:32 +00:00
Manolo Gouy
0ae1054d07 Fix 2nd part of STR #2520: added Fl_PNG_Image in-memory constructor.
This constructor has a 3rd argument, the size of the array holding the in-memory PNG image.
This allows the constructor to check for errors in the image.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 20:51:12 +00:00
Manolo Gouy
5af1531cd2 Fl_File_Chooser: removed the "Show hidden files" button for WIN32 where it's not relevant.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 09:39:14 +00:00
Manolo Gouy
356b3bbc7d Fix STR #2523: unimplemented functions have been removed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 19:56:01 +00:00
Manolo Gouy
e2ddb1715c Fl_File_Chooser: added a "Show hidden files" button. Hidden files aren't shown
by default now. This removes a TODO clause.
Fl_Native_File_Chooser: removed the hack that added the "Show hidden files" button, and
made the "file already exists" warning message localizable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 18:26:51 +00:00
Manolo Gouy
774880acc5 Replaced "foreign language" by "another language" in doc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 18:21:39 +00:00
Manolo Gouy
9fc93d2613 Fix STR #2518: remove gcc 4.4 compilation warnings with -Wall
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 22:07:31 +00:00
Manolo Gouy
1ef50fc9c2 Mention in comment that FL_LIBRARY must be defined to access the Fl_X class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 22:00:11 +00:00
Manolo Gouy
77204efa1c X11 specific: made class Fl_X visible only if FL_LIBRARY is defined before compilation,
as discussed in fltk.development ("Fl_X not exported on mac in 1.3").  
Tested OK with configure+make and CMake.
At this point, the FL_X class remains to be hidden on the WIN32 platform.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 09:24:03 +00:00
Manolo Gouy
be8b1f4ac5 Another change to allow OS-independent compilation of external applications as suggested by Greg.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 07:54:42 +00:00
Albrecht Schlosser
b4c15eb8ae Fixed a few GNU compiler warnings (-pedantic): C++ comments in C files,
extraneous ';' and ',' and an invalid cast.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 20:52:38 +00:00
Manolo Gouy
b6d2207550 New attempt to fix STR #2513.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 12:08:44 +00:00
Manolo Gouy
d21d46979b Attempt to fix STR #2513: make sure that MAC_OS_X_VERSION_10_5 is defined.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-10 12:42:17 +00:00
Manolo Gouy
34c10b3557 Fix STR #2514. Removes compilation warnings when using gcc 4.4 with -Wall
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-10 12:02:48 +00:00
Manolo Gouy
2dadc8cb54 First step to support CJK input under Mac OS: implementation of the function
firstRectForCharacterRange of the NSTextInput protocol.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 16:07:13 +00:00
Matthias Melcher
7dc05cb20e First attempt at finding the screen pixel sizes. Can't test Xinerame, MSWindows, or X11 yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 01:01:04 +00:00
Manolo Gouy
bc509d32eb Fix STR #2504 (first part). Replaced HAVE _CAIRO by FLTK_HAVE_CAIRO and USE_CAIRO
by FLTK_USE_CAIRO everywhere.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 10:24:58 +00:00
Manolo Gouy
ead3432f9b Classes Fl_Printer and Fl_Postscript_Printer: added missing class_name() calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 08:46:54 +00:00
Manolo Gouy
9f61a96b85 Declared protected the constructors of classes Fl_System_Printer and Fl_Postscript_Printer,
so end users only employ the system-independent Fl_Printer class.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 06:06:57 +00:00
Manolo Gouy
4beb3b88e8 Renamed Fl_Device::type() to Fl_Device::class_name() to avoid conflict or confusion
with Fl_Widget::type(). Added a setter function Fl_Device::class_name(const char *).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-05 10:21:45 +00:00
Manolo Gouy
6320a7c680 Fix in Doxygen comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 22:04:54 +00:00
Manolo Gouy
e11677bfaf Better position of the Fl_Printer class in the Fl_Device class hierarchy.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 21:42:02 +00:00
Manolo Gouy
ec2cfd3bf5 Doxygen typo fixed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8178 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 14:09:37 +00:00
Manolo Gouy
874bca74f5 Mac OS X: removed all uses of Carbon (except for older OS versions) and re-organized
text input around the NSTextInput protocol.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-03 16:50:34 +00:00
Matthias Melcher
bb6392f7ec Added Table and Tree support to Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-03 08:28:38 +00:00
Matthias Melcher
39818616b9 Fixed case typo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 19:05:30 +00:00
Albrecht Schlosser
7c8ef98a04 Documentation updates: removed three more \todo's.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 14:01:53 +00:00
Albrecht Schlosser
daa85ed922 Documentation updates (FL/Fl_Widget.H): removed some \todo's.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 13:24:39 +00:00
Matthias Melcher
91c9c024cc STR 2499: remove unused function prototypes in Fl_Text_Buffer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-31 22:38:03 +00:00
yuri
ba29f18951 remove FL_EXPORT - fix link error of users programs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 18:33:46 +00:00
yuri
70be49de58 fix MSVC includes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 18:30:48 +00:00
Manolo Gouy
98e9042a53 Made sure FL/x.H is included only when necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 18:14:59 +00:00
Manolo Gouy
2a5a3d4e8b Use device abstraction for colors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 15:33:36 +00:00
Manolo Gouy
431fc4cd5d Use device abstraction for image drawing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 15:17:23 +00:00
Manolo Gouy
64dd2cfa68 Added right-to-left text drawing to PostScript graphics driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 12:45:28 +00:00
Manolo Gouy
b431c1e0e7 Use device abstraction for font and text drawing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 12:02:23 +00:00
Manolo Gouy
e2e953d13b Necessary after changes brought in r.8113
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-27 11:07:57 +00:00
Manolo Gouy
1104789c13 Removed Doxygen warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-27 10:33:50 +00:00
Manolo Gouy
a8530c73fa Adopted use of FL_LIBRARY #define symbol under Mac OS X. This allows to compile
client applications without including Mac OS system headers, with a gain in speed of 
compilation and portability. The source files of all FLTK libraries must now be compiled with 
-DFL_LIBRARY under Mac OS X. Make, CMake and Xcode project support files
have been modified accordingly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-23 14:24:29 +00:00
Manolo Gouy
25c975aa1b Doc change: fix error in Mac shortcut for delete word left.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-23 08:13:18 +00:00
Manolo Gouy
21af5cb884 Doc changes: use consistently "selection buffer" and "clipboard" as names of the two buffers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-22 20:47:54 +00:00
Manolo Gouy
843e1d8987 Doc changes for Fl::copy(), Fl::paste() and Fl::dnd(). The terms used are now the "selection buffer"
for middle-mouse paste and DnD, and "clipboard" for copy/paste.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-22 17:06:09 +00:00