Commit Graph

4744 Commits

Author SHA1 Message Date
Manolo Gouy
9fa8427b78 Fix STR #2594: the focus after creating a new window was not set correctly
because some code present in Fl_mac.cxx was not reflected in Fl_cocoa.mm.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-24 12:58:32 +00:00
Albrecht Schlosser
385b40988d Fixed Fl_Device destructor (made it virtual). This eliminates the compiler
"warning: 'class Fl_Device' has virtual functions but non-virtual destructor"
on Mac OS X.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-23 12:49:30 +00:00
Manolo Gouy
1366cc68d3 PostScript support: simplified the Fl_PostScript_Graphics_Driver class by removing the
draw_scaled_image(_mono)() member functions.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 17:41:23 +00:00
Manolo Gouy
16d983eab4 Mac OS: correct handling of fl_draw_image() call with L > W*D when printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 17:14:37 +00:00
Manolo Gouy
80fffdc369 Set member functions draw_scaled_image(_mono)() of class Fl_PostScript_Graphics_Driver
private.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 15:53:05 +00:00
Manolo Gouy
0373e02f5d Reflects update of libpng to v. 1.5.1
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 12:52:34 +00:00
Albrecht Schlosser
9ec5f3ae57 Fixed svn properties of new files in previous commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 09:20:16 +00:00
Albrecht Schlosser
8920d92944 Updated the bundled libpng to v1.5.1 (released Feb 3, 2011).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 09:11:57 +00:00
Manolo Gouy
dfc067ecfc Fix STR #2587: under Xlib, the X input method must be reset by the Fl::compose_reset() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-21 16:32:37 +00:00
Manolo Gouy
a36bca971a Fix STR #2589: incorrect cohabitation of modal and non-modal windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-20 21:43:10 +00:00
Albrecht Schlosser
bc0b285a23 Updated ide/VisualC6 project files with changed zlib files.
Deleted obsolete (renamed) zlib.dsp and zlibdll.dsp files.
Added *.ilk to svn:ignore on fluid directory.
Tested with VisualC2008: builds w/o errors in Release and Debug mode.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-20 11:15:14 +00:00
Manolo Gouy
7aa48e19b9 Fix STR #2575: use the screen that intersects most of the window when made fullscreen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-12 21:36:21 +00:00
Albrecht Schlosser
c4099faffe Updated VisualC2008 project files:
- new and deleted files in zlib 1.2.5
 - added missing dependency: tree -> fluid


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-11 00:14:29 +00:00
Albrecht Schlosser
d45e409301 Updated VisualC2010 project files:
- new and deleted files in zlib 1.2.5
 - added missing dependency: tree -> fluid


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-10 23:45:36 +00:00
Manolo Gouy
160a0ee461 Improved the Doxygen documentation of Enumerations.H. Not finished yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-06 22:40:26 +00:00
Manolo Gouy
937ddb60c1 Fix STR #2582 (Mac OS): The problem: under Mac OS, file config.h can be used with distinct
architectures when using configure --with-archflags option, thus file config.h should not contain
architecture-dependent definitions.
The fix: 1) don't use autoconf's endianness determination procedure because it can't give a result
that fits both big and little endian architectures.
2) have config.h include a mac-specific file under Mac OS.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-06 16:54:58 +00:00
Manolo Gouy
cff882f34d Fix STR #2585: use relative link when installing the cairo shared library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-06 16:37:22 +00:00
Manolo Gouy
97f7c0f524 Define WORDS_BIGENDIAN using __BIG_ENDIAN__ value
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-04 17:51:22 +00:00
Manolo Gouy
5185932f5b Mac OS: modified the Doxygen doc of the fl_mac_os_version global variable
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-04 17:04:43 +00:00
Manolo Gouy
1d038565c1 Mac OS: modified the definition of the fl_mac_os_version global variable to allow v 10.10.10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-04 16:48:10 +00:00
Manolo Gouy
704ecc048a svn property change only
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-04 15:10:42 +00:00
Manolo Gouy
553efd2cd0 svn property change only.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-04 15:08:07 +00:00
Manolo Gouy
60bb67ba0e Fix the #define U64 part of STR #2582: don't define it for Mac OS because its value
varies with architecture.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-03 12:10:43 +00:00
Manolo Gouy
23ac5868eb Changed copyright year to 2011
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-02 14:17:34 +00:00
Manolo Gouy
803a7c4d52 WORDS_BIGENDIAN has an architecture-dependent value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01 19:45:05 +00:00
Manolo Gouy
85256d15c4 Two png-related #define's were missing. This caused transparent png images to be wrong.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01 14:39:22 +00:00
Manolo Gouy
f22e50af97 STR 2580: the first Fl::add_timeout() call now calls fl_open_display() because that is necessary for
timeout events to be recovered by the event loop. 

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01 12:37:34 +00:00
Manolo Gouy
f7d7eff7ad STR 2580: Fl::add_fd() now calls fl_open_display() because that is necessary for the fd event
to be recovered by the event loop. Before main() is called, only fl_mac_os_version is 
initialized.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01 11:58:36 +00:00
Manolo Gouy
1a4fd8ecc3 The Mac OS Fl_Display_Device constructor now calls fl_open_display(). Thus, all
Mac-specific initializations will be done even before main() is started.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-28 17:57:19 +00:00
Manolo Gouy
8c9d34facf The got_events global variable is now updated when an event is processed by do_queued_events
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-28 17:48:55 +00:00
Manolo Gouy
e099ada69f Removed unix compilation warnings after update of zlib to v. 1.2.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-27 16:51:58 +00:00
Manolo Gouy
d798e99431 Removed MSWindows compilation warnings after update of zlib to v. 1.2.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-27 16:28:28 +00:00
Manolo Gouy
00554a3ef5 Reflects update of zlib to v. 1.2.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-27 16:04:40 +00:00
Manolo Gouy
98c7b6846b This file no longer exists in zlib v.1.2.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-27 15:52:45 +00:00
Manolo Gouy
1f4e91b622 Set zlib to version 1.2.5 as asked by STR #2508.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8481 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-27 15:50:40 +00:00
Albrecht Schlosser
5c29bca9d4 Updated documentation/strip_tags for usage of doxygen 1.7.3.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-27 14:48:20 +00:00
Albrecht Schlosser
58c94b9b33 Suppress warnings in fl_init_xim. Only the very first warning message
will be issued (STR #2578).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-26 14:14:50 +00:00
Manolo Gouy
10a07138b8 Fixed two doc typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-26 08:23:30 +00:00
Manolo Gouy
b693eac483 Fix STR #2516: under MSys, the FLTK_DOCDIR config.h variable did not allow
fluid to find its help files even if they are correctly installed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-25 22:19:09 +00:00
Albrecht Schlosser
d98a0fede6 Removed extraneous '\n' from Fl::warning() calls in src/Fl_x.cxx.
Note: '\n' is added in the default Fl::warning() handler function and should
not be in the format string.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-25 09:15:57 +00:00
Albrecht Schlosser
94e5f2e1fc Un-inlined Fl_Window::icon() methods to make them easier to extend w/o
breaking the ABI. See discussion in STR #2563.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-25 08:44:47 +00:00
Manolo Gouy
27987c6ee0 Made struct matrix a subclass of Fl_Graphics_Device class to avoid collision
with application-defined names.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-24 18:02:11 +00:00
Manolo Gouy
278c821ff4 Mac OS only: allows to print a menu window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-24 16:58:00 +00:00
Manolo Gouy
8d9f90e416 Mac OS only: Added the architecture flags to the dynamic library-creating command
in configure.in. Also, applied suggestion in "Fixing configure.in for OSX universal builds"
from the fltk.development forum that architecture flags are not transmitted from
configure to the fltk-config script. This brings 2 benefits:
- A universal library can be prepared, and then used to build applications of any sort
of architectures.
- Makefiles using non-Apple compilers that don't know the -arch option can call fltk-config.
This new behavior in now made clear in file README.OSX.txt.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-24 10:27:33 +00:00
Manolo Gouy
d8822aa74a Fl_Device: removed class_name(char *) member function and set class_name(void) virtual.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-23 14:36:18 +00:00
Manolo Gouy
5a6da14af3 Fl_Text_Display: avoid blinking by painting the full widget background only to the printer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8466 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-23 11:47:51 +00:00
Manolo Gouy
6d38eb67bc Fl_Text_Display widget: added a call to paint all the widget area with its background color
when it's fully redrawn, to avoid thin grey lines that appear when this widget is printed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-22 17:50:25 +00:00
Manolo Gouy
6e24f93c1a Corrected typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-22 09:41:26 +00:00
Fabien Costantini
cc79642a94 Say goodbye to weird comctl32.lib link clause in vc20xx builds. Now embeds it if it is supported, so no need to specify more than fltk libs in new fltk projects ! Makes it similar to other platforms linkage options and will probably improve learning curve of fltk new users. Improvements could be implemented for even easier/transparent linkage (fltk libs, fltk dlls?) of fltk apps.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-21 18:33:46 +00:00
Fabien Costantini
c7fff91435 Fixed FL_EXPORT missing would fail MSVS builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-21 16:36:10 +00:00