Commit Graph

1584 Commits

Author SHA1 Message Date
Michael R Sweet
3ebd631cf0 Fl::x(), Fl::y(), Fl::w(), and Fl::h() did not report the desktop
work area on X11 (STR #1482)

Fix another "missing sentinel" warning in the Xft code.

FL/Fl.H:
    - Remove in-line x() and y() implementation for X11.

src/Fl_x.cxx:
    - Fl::x(), Fl::y(): Added.
    - fl_init_workarea(): Added to get _NET_WORKAREA property from the
      root window; if none, is available, the code falls back to 0, 0,
      DisplayWidth, and DisplayHeight.

src/fl_font_xft.cxx:
    - Missing sentinel needs cast to void *.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-30 14:16:08 +00:00
Michael R Sweet
117e22670d Another try at the shortcut fix...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 17:11:10 +00:00
Michael R Sweet
39cb1f8daf Fix two "hide the cursor" bugs related to click-to-focus windows (STR #1475)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:43:31 +00:00
Michael R Sweet
7fffbf7dea Shortcut events could be sent to the wrong window (STR #1451)
src/Fl.cxx:
    - Fl::event_inside(): Only return true for widgets if the
      first_window() (focused window) is the same as the widget's
      window.
    - Fl::handle(): Send shortcuts to the first window (that has
      focus) before all others.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:22:28 +00:00
Michael R Sweet
c0664eefcd Fl_File_Browser did not calculate the width of directory items
correctly (STR #1470)

src/Fl_File_Browser.cxx:
    - Fl_File_Browser::item_width(): Use a bold font for directory
      items.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 12:13:56 +00:00
Michael R Sweet
cec43a6cb1 Don't start widgets offset by 1/2 the spacing value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-20 01:07:16 +00:00
Michael R Sweet
2d2b24b781 Fix dead pixel in FL_GTK_UP_BOX/FRAME (STR #1471)
Use FL_COMMAND modifier in FLUID menus (CTRL for non-OSX, CMD for OSX)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-14 04:35:24 +00:00
Michael R Sweet
367c40a9b7 fl_arc() and fl_pie() did not draw properly on WIN32 when the
start and end points were identical (STR #1461)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:23:52 +00:00
Michael R Sweet
09a1c11ac1 Fl_Input and Fl_Text_Editor now hide the mouse pointer when
typing into them (STR #1466)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:01:02 +00:00
Michael R Sweet
b82b4c4445 Use standard link color as the default, not FL_SELECTION_COLOR.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-07 14:29:15 +00:00
Michael R Sweet
e8aac38a70 Look for Text.selectBackground instead of fltk.selectBackground to
get the selection color.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 12:48:18 +00:00
Michael R Sweet
228af43a56 Tweak GTK+ thin up/down boxes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 02:32:42 +00:00
Michael R Sweet
3c03eb67a0 More cleanup of GTK+ scheme - menu buttons now use the new look-n-feel,
and I also fixed the radio button offset for the plastic scheme.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 23:08:49 +00:00
Michael R Sweet
7febae3f9e Add GTK thin up/down box/frame types.
Update the GTK round up/down box types.

Update radio/check box drawing for gtk+ scheme.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 02:35:12 +00:00
Michael R Sweet
ad4a4ea0db Fix "missing sentinal" warning from GCC 4 - basically this means we used
"0" instead of "(void *)0" in a variable-argument function, which will not
work on 64-bit systems where int is 32-bits.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 00:51:35 +00:00
Michael R Sweet
4d0529a276 Fix new alpha blending code to use the source image width instead of
the destination width when computing the start pointer.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 17:20:56 +00:00
Michael R Sweet
849ecabf53 Fix light button drawing so that the glowing LED mode is only used when
Fl::scheme() is "plastic".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 14:29:43 +00:00
Matthias Melcher
cc1ab1a315 STR #1447: Fixed CMake files to include new GTK+ scheme
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-26 18:05:10 +00:00
Michael R Sweet
faddffcf18 src/Fl_Button.cxx:
- Fl_Button::draw(): Only use fl_contrast() on the label
      color when value() is non-zero.

src/fl_color.cxx:
    - fl_contrast(): Require at least 1/3 (85) instead of 1/2
      (127) for contrast against the background.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-25 16:36:52 +00:00
Michael R Sweet
ad40154ca3 Adapt Sadysta's alpha compositing code for current implementation of
Fl_RGB_Image.  We now provide (unaccellerated) alpha compositing of
RGBA and Grayscale-Alpha images (d() == 4 and d() == 2) on X11 and
QuickDraw...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 19:05:38 +00:00
Michael R Sweet
b91935040a Flip the color of Fl_Choice to FL_BACKGROUND2_COLOR when there is no
scheme so the menu uses the same color as the background.

Add -Dname[=value] documentation to fltk-config man page.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 13:35:23 +00:00
Michael R Sweet
a4c2cbd49a Tweak gtk+ drawing of Fl_Choice.
Add support for "-Dname" option in fltk-config.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 04:39:55 +00:00
Michael R Sweet
9663eaa1c4 Use FL_BACKGROUND2_COLOR for the standard Fl_Choice background instead of
fl_lighter(color()), so that the previous look-n-feel is preserved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 22:52:07 +00:00
Michael R Sweet
b04788a189 Check buttons did not redraw properly with box() set to FL_NO_BOX
(STR #1440)

src/Fl_Button.cxx:
    - Fl_Button::value(): Use redraw_label() if box() is not set.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 15:28:09 +00:00
Michael R Sweet
f0180536b3 Use "1" as the count for the targets query instead of sizeof(Atom).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-21 12:26:45 +00:00
Michael R Sweet
1d23087fc9 Fix inactive drawing of the new GTK+ box types.
Fix inactive drawing of Fl_Clock and Fl_Dial widgets.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-20 03:03:14 +00:00
Michael R Sweet
b4c1d3ef03 Implement new "gtk+" scheme which provides a Bluecurve look-n-feel.
Fix size and position of dialog controls in FLUID to match the HIG.

Add "GTK+" scheme to the list of selectable schemes in FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 14:58:25 +00:00
Matthias Melcher
d63cf6e315 Much improved sensing if a machine will do Alpha blending. This may actually be the solution. If Alpha blending is not supported, we fall back to the old screen door transparency.
This does not take into account a multiple screen setup with different screen depths, but I assume that this is a rare enough constellation and would cause many other problems on top of this minor issue. As a fallback, we will *always* render the image, but worst case without any alpha channel.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 12:49:19 +00:00
Matthias Melcher
b39938e5cc OK, I believe I fixed the transparency issues on WIN32. Please everyone, test the code on all machines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-16 16:02:00 +00:00
Matthias Melcher
8238e05727 Found bug in Alpha Blending code when using double buffered windiws. Disabeling code until I find the fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-16 14:25:48 +00:00
Matthias Melcher
c6de2dd3ef Implemented alpha blending for WIN32. I believe that I did it in a way that is compatible even with Windows 95, but please let me know if you have any concerns. Cygwin not tested, but hopefully OK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-15 15:35:16 +00:00
Matthias Melcher
ff94d41c51 In Fl_Text_Display, all unused keyboard events are sent to the scrollbars, so that the user can scroll through text using the usual navigation keys (left, right, up, down, page up, page down)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-15 08:24:34 +00:00
Matthias Melcher
27217f9a74 Fixed Fl_RGB_Image::copy. My previous fix had the meaning of ld() wrong.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-13 22:55:55 +00:00
Matthias Melcher
44264e3c4e Additional fix for STR #1415 for Xft font selection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-06 20:16:03 +00:00
Matthias Melcher
8c94b01142 Added code to clear the current font cache when the font face is changed. Now for OS X and X11 as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 11:26:41 +00:00
Matthias Melcher
caa6fd1ff2 Fixed font caching issue from STR 1415
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 11:16:15 +00:00
Matthias Melcher
bfe61f036a STR #1410: fl_file_chooser could crash after a previously canceled dialog
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 09:57:41 +00:00
Matthias Melcher
84360f49f2 STR 1412: fixed RGB image block copy for ld() values != 0
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-04 19:24:51 +00:00
Matthias Melcher
82fe05afd1 STR #1411: fixed latin-to-macRoman text conversion
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5408 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-04 18:46:28 +00:00
Matthias Melcher
46a890cad3 Fixed typo in 'desktop-osx' install. Commented out unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-30 10:01:35 +00:00
Matthias Melcher
3303d9d7f5 STR #1151: Cygwin for some reason was ifdef'd out for setting a shorter timout when reading fd's (yes, the Win32 requires polling to read fd's). Adding the shorter timeout has no impact on Apps that do not poll fd's, but should fix most (all?) problems described in this bug report.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-30 09:18:12 +00:00
Matthias Melcher
7ae0ff0240 Updated OSX subwindow simulation code to better add and remove from the clipping list
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 11:03:05 +00:00
Matthias Melcher
00ec9da8f5 - removed more inconsistencies between fl_draw and fl_measure (STR #1408)
- made the Tooltip hide code a little bit smarter
- Added subwindow test case to Fl_Tabs

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 10:04:02 +00:00
Matthias Melcher
ba8bb3d8c2 Fixed fl_measure which mistook a trailing '@@' for a symbol (STR #1406)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 07:49:22 +00:00
Matthias Melcher
3ae2d9cc7b STR #1403: GLUT window creation code - better fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 07:36:51 +00:00
Michael R Sweet
cb0d6f8f03 Fix blocks crashes on WIN32 - audio buffer too small
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-28 14:45:20 +00:00
Matthias Melcher
862506e6d9 Two simple glut fixes (flickering and VC6 compiler issues).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 10:33:30 +00:00
Matthias Melcher
961391ac08 Fixed GLUT behavior on window creation (STR #1267)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 09:11:42 +00:00
Matthias Melcher
4fae32c85c Fixed OS X bug that would hide tooltips before they were shown (STR #1392)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 08:49:06 +00:00
Matthias Melcher
8220dc5592 Fixed Fl_Tabs tooltip reappearing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 08:10:31 +00:00
Matthias Melcher
bd4d11e5e3 Fixed filechooser to behave as documented when file pattern changes (STR #135s9)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-24 14:23:24 +00:00
Michael R Sweet
0d0d5326ed Fix Fl_Gl_Overlay to use new valid API
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 17:40:54 +00:00
Matthias Melcher
da7658fa7f Avoiding problems with some platforms that don't implement hypot() (STR #1366)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 14:43:07 +00:00
Matthias Melcher
74b91fe371 Fixed Fl_Positioner callback when released (STR #1387)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 12:57:42 +00:00
Matthias Melcher
05cd337c05 Fixed WIN32 zero size window issue (STR #1387)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 11:47:58 +00:00
Matthias Melcher
ae68d64252 Refixed STR #1221, fixing STR #1393.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-22 15:45:51 +00:00
Matthias Melcher
555f776077 Fixed uninitialized data in OS X and WIN32 timout functions (STR #1374).
Fixed silly but in preferences test (that was unrelated to Fl_Preferences).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-21 15:03:02 +00:00
Matthias Melcher
660d524700 Fixed unintialized data bug in OS X timeout functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 20:09:33 +00:00
Matthias Melcher
dadcbb61b3 Moved Quartz OS X fonts half a pixel up.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 19:20:56 +00:00
Matthias Melcher
86e2fa621a Fixed speed issues with measuring text sizes in OS X Quartz
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 15:24:55 +00:00
Matthias Melcher
edbf9ae510 Fixed focus issues on OSX (str #1377)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 13:34:10 +00:00
Matthias Melcher
d5a6cf798c I forgot
a dot.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 10:56:37 +00:00
Matthias Melcher
972624d613 STR #1381: added optional "precision" argument when writing floats or doubles to a Preferences file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 07:29:09 +00:00
Matthias Melcher
6391946be0 Fixed callback sometimes not calle when using the arrow keys in an Fl_Slider (STR #1333)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 14:41:20 +00:00
Matthias Melcher
2f4706602d Fixed ABI issue with const on glutCreateWindow.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 13:49:46 +00:00
Matthias Melcher
49a0693962 Undid the previous Fl_Tabs::value() const change because adding 'const' *does* changed the ABI. Sigh.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 13:43:07 +00:00
Matthias Melcher
ae971b97da Fl_Text_Editor now correctly handles middle mouse clicks (STR #1384)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 11:10:54 +00:00
Matthias Melcher
c8288bd7b4 Added some GLUT4 functions (STR #1370)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:56:59 +00:00
Matthias Melcher
51d67574ec New context_changed() function for OpenGL windows allowing efficient texture loading (str #1372)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:49:43 +00:00
Matthias Melcher
ef48f007a1 Added missing const to GLUT call (STR #1371)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:05:44 +00:00
Matthias Melcher
9f41ba57ec Fixed stray FL_RELEASE events after clicking system areas on OS X (STR #1376)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:01:56 +00:00
Matthias Melcher
538a1c62ee Fl_Tabs::value() is now const as described in the documentation (STR #1379)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 08:43:50 +00:00
Matthias Melcher
4f6119433b Fixed Makefile configuration for OS X dynamic library. STR #1391
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-12 11:05:04 +00:00
Michael R Sweet
8266e090f5 Don't call dummy function inside dummy function - some compilers don't like
it...

Drop +DAportable from default HP-UX optimizations.

Move HP-UX C++ compiler warning options to CXXFLAGS.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-02 18:03:10 +00:00
Michael R Sweet
9ee02e0f01 Fix compiler warning by adding a cast...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-25 19:14:11 +00:00
Matthias Melcher
e6818b19a6 Fixed byte order in OS X cursor shape data. Added Xft font pointer fl_xftfont.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 11:23:20 +00:00
Matthias Melcher
b6f3595669 Fixed Endianness in OS X Mouse Pointer graphics (STR 1348)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 08:19:14 +00:00
Michael R Sweet
846cfd4416 Allow non-JFIF JPEG images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 01:10:51 +00:00
Matthias Melcher
924e8a92d1 Fixed crash on mixed use of keyboard and mouse for Fl_Menu_Button (STR #1356)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-17 20:33:45 +00:00
Matthias Melcher
f0fcbb3866 Fixed my previous fix... . Resizing events were not handled anymore.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-17 20:14:50 +00:00
Matthias Melcher
30f4aebe8a STR #1341: Fixed Fl_Window::visible() and shown() for OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-16 20:37:41 +00:00
Matthias Melcher
d20a41681d Fixed Fl_Window::copy_label() losing copy (STR #1332)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-28 10:23:33 +00:00
Matthias Melcher
3f5710ca72 Attempt to improve on fl_scroll for Quartz on Mac, but we probably already use the best function. Added comment noting this attempt.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-23 10:27:09 +00:00
Matthias Melcher
baa92d1d7d STR #1330: Repeat button now cancels timeout if it should get deactivated during a callback
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-21 06:52:10 +00:00
Matthias Melcher
87bb58803a Another attempt at the window stacking problem in WIN32. It does fix the issue described in STR #1296 without the negative effects described by Torsten Giebl.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-20 08:55:43 +00:00
Matthias Melcher
6190aa5728 It seems that the long standing window stacking order problem in MSWindows is now finally solved. The solution is too silly to belive. It seems like WIN32 needs a HideWindow before the DestroyWindow, or the window manager gets confused. DOH!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 08:51:14 +00:00
Matthias Melcher
ad8d7c4b87 Fixed key compose sequences for shifted keys (STR #1194)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 07:43:39 +00:00
Matthias Melcher
582447c164 Converted global static variables into class static variables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 15:53:26 +00:00
Matthias Melcher
baeafbea45 Removed debugging messages, added character lookup table for HTML enteties into Mac Roman font.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 15:45:49 +00:00
Matthias Melcher
b51dd39f07 Added text selection and copy/paste to Fl_Help_View. Text can be selected by clicking and dragging the mouse over text. After releasing the mouse button, a stripped down ASCII text is in the text clipboard. Press Ctrl-C to copy the text into the main clipboard. Pressing Ctrl-A selects all text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-16 19:45:13 +00:00
Matthias Melcher
ec8ab0f22d STR #1322: fixes wrong menutitle position for popup menus. This was originally another fix for pulldown menus (see STR #794, SVN 4259), but had an impact on popups. This fix should work well for both situations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-16 10:42:58 +00:00
Matthias Melcher
27e5b81fd4 Changed Tooltip::exit_() to Tooltip::exit()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 11:01:03 +00:00
Matthias Melcher
c468a521b0 STR #1321: Calling Fl_Window::show() will exit from the current Fl_Tooltip. Changing window order or creating a new window is a pretty major action, so temporarily disabeling Tooltips seems beneficial. This avoids Tooltips interfering with popup menus.
Of course, poping up a tooltip window does *not* disable further tooltips... .

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 10:48:36 +00:00
Matthias Melcher
bc03e9b1a9 Avoiding crash when passing NULL as a string in Fl_Preferences::set(key, char *string_value);
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 08:03:16 +00:00
Matthias Melcher
a0cbcf3d1d STR #1227: Thanks to Albrecht Schlosser for commiting this patch to fix Fl_Test_Display. The little I could check seemed fine, and he's certain that he fixed the bugs that he found himself.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-13 19:08:32 +00:00
Matthias Melcher
4f38c2c1c9 Fixing the fix: restored the FL_KEYUP behavior of WIN32 before the NumLock fix. Now NumLock and Keyup work well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 18:44:50 +00:00
Michael R Sweet
30d8dc5eeb Make sure that all source files expand $Id$...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 16:16:34 +00:00
Matthias Melcher
2db125bc43 Fixed the Fl::event_original_key() function for X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 08:06:14 +00:00
Matthias Melcher
428a283f83 Added an event variable "Fl::event_original_key()" which returns the current key code (see Fl::event_key()) before it gets mangled through the NumLock keypad conversion. This way, an application can differentiate between an arrow key and a numeric keypad w/NumLock off.
On Win32, releasing a numeric keypad key w/NumLock off wiould return the wrong keycode (keypad instead of arrow key).

Documentation changed accordingly. X11 code is yet to be tested.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 07:48:08 +00:00
Matthias Melcher
d2f9ebf9b9 OS X: fixed handling of the KP_Enter key which is at different key codes for the Powerbook vs. Desktop machines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-07 09:46:03 +00:00