Commit Graph

2018 Commits

Author SHA1 Message Date
Michael R Sweet
89c0329b71 Fix FLUID text color (STR #662)
src/Fl_Double_Window.cxx:
    - Save/restore colors.

src/Fl_Pixmap.cxx:
    - Save/restore colors.

src/fl_draw_image_mac.cxx:
    - Save/restore colors.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05 20:28:31 +00:00
Michael R Sweet
0deaeaa80c Fixed some compiler errors on WIN32 (STR #647)
src/scandir_win32.c:
    - Add casts for malloc and calloc calls.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05 19:22:03 +00:00
Michael R Sweet
9527fee96d FLUID didn't update the widget panel X/Y/W/H values when moving
the selected window (STR #701)

fluid/Fl_Window_Type.cxx:
    - Fl_Window_Type::resize(): call update_xywh() on resize.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05 18:46:32 +00:00
Michael R Sweet
90590eb8b5 FLUID didn't use the label type constant names for menu items,
causing them to be drawn using the normal label type (STR #668)

fluid/Fl_Menu_Type.cxx:
    - Use FL_*_LABEL constants instead of numeric label types in
      menu items.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05 18:36:59 +00:00
Michael R Sweet
3124794f1f Fl_File_Chooser was slow with large directories (STR #654)
FL/Fl_File_Browser.H:
    - Don't reload the directory view unless asked to.

FL/Fl_File_Chooser.H:
    - Rebuilt using current FLUID.

src/Fl_File_Browser.cxx:
    - Don't reload the directory view unless asked to.

src/Fl_File_Chooser.cxx:
    - Fl_File_Chooser::show() calls rescan().

src/Fl_File_Chooser.fl:
    - Fl_File_Chooser::show() calls rescan().

src/Fl_File_Chooser2.cxx:
    - Only call rescan() when chooser is shown.

src/Fl_File_Icon.cxx:
    - Add optimization for Windows - filenames with trailing slash are
      directories.

test/file_chooser.cxx:
    - Only call show() once...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05 18:26:21 +00:00
Michael R Sweet
b601fdc3bc Remove duplicate definitions and argument-hides-function warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-04 14:11:15 +00:00
Michael R Sweet
18b1a2fdca FLUID didn't add xclass() calls to windows (STR #718)
fluid/Fl_Window_Type.cxx:
    - Fl_Window_Type::write_code2() - now write xclass() code when
      xclass is set.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-02 13:48:08 +00:00
Michael R Sweet
e4ccb4ac07 Fix X11 DND support.
src/Fl_x.cxx:
    - Check the list of source types and pick the first one that
      starts with "text/".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-01 03:13:01 +00:00
Michael R Sweet
1d871d5744 Temporary fix for JPEG error handle; we need to flag the error in
the callback function and test for it in the main code...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-01-25 20:50:25 +00:00
Michael R Sweet
633e4ef5a5 Remove extraneous fltk.lib from linker options, since we use the VC++
dependency stuff instead to use the correct library file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3960 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-01-04 15:17:02 +00:00
Michael R Sweet
fa7293b3cf Fix menu crash bug (STR #685)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-01-04 15:02:57 +00:00
Matthias Melcher
1bc50aa780 Fl_Double_Windows would always redraw their full content, even
if only little changes were done in the UI. OS X creates all
windows double buffered, whch would lead FLTK to beleive that
the background buffer was missing on every redraw, causing a
complete redraw of the full UI.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3953 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-27 19:16:42 +00:00
Michael R Sweet
3387edd247 Fl_JPEG_Image did not correctly handle errors reported by the
JPEG library (STR #652)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3946 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-16 21:38:24 +00:00
Michael R Sweet
f912892305 Fl_Menu now draws sub-menu arrows like other toolkits and FLTK
2.0 (STR #651)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3941 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-14 13:49:55 +00:00
Michael R Sweet
24a940f11d Fixed a compiler warning in Fl_Window.H (STR #641)
Tooltips disabled shortcut processing (STR #643)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-06 03:31:54 +00:00
Michael R Sweet
b5562132e5 Fl::event_number() didn't always match the value sent to the
handle() method (STR #634)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-03 03:14:17 +00:00
Michael R Sweet
416ff7f24e Fl_Shared_Image::reload() didn't set the image_ pointer properly
in all cases (STR #632)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-03 02:51:03 +00:00
Michael R Sweet
0184365c80 Fl_Help_View::topline() incorrectly set the changed() flag (STR
#631)

Fl_Choice::value() now supports NULL or -1 to deselect the
current item (STR #637)

More VC++ 6 project file fixes (STR #638)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-03 02:48:22 +00:00
Michael R Sweet
a50a8b702a Changelog.
Prep for 1.1.7.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-29 15:01:43 +00:00
Michael R Sweet
de226bac0a Add missing Watcom makefile...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-29 14:57:23 +00:00
Matthias Melcher
7aca156564 Fl_Text_Display would hang if the user pressed Ctrl-left with the cursor
in the first columna and line (pos 0)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 23:10:26 +00:00
Michael R Sweet
f26b5336a0 Prep for 1.1.6 release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 20:16:11 +00:00
Michael R Sweet
7acedd91ff Fix compiler errors...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3918 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 19:51:03 +00:00
Michael R Sweet
a42ded75e2 Added the 2.0 Fl_Widget::copy_label() method to allow FLTK 1.x
applications to have their label strings managed by FLTK (STR
#630)

Added Fl::delete_widget() method to safely delete widgets in
callback methods (STR #629)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 19:47:52 +00:00
Michael R Sweet
5cc0f07c8a Fl_Widget::damage(uchar,int,int,int,int) didn't clip the
bounding box properly (STR #626)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3916 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 19:09:55 +00:00
Michael R Sweet
85c0090b7c More watcom fixes (STR #627)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 18:48:10 +00:00
Matthias Melcher
7ca20dcd4a STR#628: fixed almost all instances where the popup menu would
jump to the main screen. Very few extremes do not work 100%, but
that would require much more information in the menu calls.
Nothing to worry about.

Anyway, jumping menus are fixed on the Mac.

Linux and Windows may require similar solutions, however, setups
with two different screen size are rare on those systems.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 01:48:25 +00:00
Matthias Melcher
8a5fcb11b5 Moved code to avoid positioning windows on Dock into 'fake_X_event'
which now allows hotspot dialogs to pop up on a second screen, if
requested.

Unfortunatly, popup menus still pop into the main screen as soon as the
mouse is moved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23 00:28:35 +00:00
Matthias Melcher
9c56ff8b18 Changed the OS X hotspot code to make window positioning avoid the
Dock and the top menubar in the main screen. It also avoids positioning
across the borders of two screens.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3912 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-22 23:32:11 +00:00
Michael R Sweet
6849c43a05 Check for a NULL off-screen buffer before copying...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-21 15:33:24 +00:00
Michael R Sweet
876e29acef Fix FLUID menu items with images bug (STR #564)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-21 14:53:48 +00:00
Michael R Sweet
33173bf4e5 Update the documentation for add_timeout().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-21 14:44:38 +00:00
Michael R Sweet
4dd8dd654f Fl_Sys_Menu_Bar didn't compile on case-sensitive file-systems
(STR #622)

More Watcom changes (STR #623)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3908 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-21 14:32:22 +00:00
Michael R Sweet
bc1a32f000 FLUID didn't handle default function parameters properly (STR
#579)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3904 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 16:19:04 +00:00
Michael R Sweet
ef3cd23883 Update find_item() docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 15:58:52 +00:00
Michael R Sweet
696e2d3219 - Moving or resizing widgets in FLUID didn't always update the
widget panel (STR #600)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 15:42:25 +00:00
Michael R Sweet
7a2e635a8e Fix a resize() bug...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 13:52:47 +00:00
Michael R Sweet
64f0dbc2a5 - FLTK windows could appear off-screen on X11 (STR #586)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3899 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 04:18:44 +00:00
Michael R Sweet
fc8d065cd7 The configure script did not support --disable-localfoo to
completely disable image file support (STR #582)

The Visual C++ 6.0 project files still listed the old JPEG, PNG,
and ZLIB library names (STR #577)

Fixed the scandir() conditional code for HP-UX 11i (STR #585)

Fl_Text_Display didn't support CTRL/CMD-A/C (STR #601)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 03:44:18 +00:00
Michael R Sweet
23bb059065 Watcom fixes (STR #584, STR #594, STR #595)
Fixed library include order when building DSOs on MacOS X (STR
#596)

fl_xid() could cause a WIN32 application to crash (STR #560, STR
#576, STR #618)

Fl_Browser::remove_() removed the item from the list before
computing the item height, which caused problems with some
programs (STR #613)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 03:19:59 +00:00
Michael R Sweet
a5a683f35f WIN32 compile fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-19 18:21:55 +00:00
Michael R Sweet
e5355c3243 Prep for 1.1.5 release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 21:05:28 +00:00
Michael R Sweet
b2f9a532e7 Shortcuts were incorrectly underlined in multi-line labels (STR
#566)

Remove Winline from GCC options.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 20:40:36 +00:00
Michael R Sweet
ca005c4067 Documentation updates (STR #568)
More CMake updates (STR #499)

The Watcom C++ compiler needed a small change (STR #567)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 20:29:58 +00:00
Michael R Sweet
bf910884cc Documentation updates (STR #570)
Added DESTDIR support and now remove all man pages for the
"uninstall" target (STR #545)

Fix PNG drawing on buggy WIN32 graphics cards (STR #548)

The configure script didn't propagate the CPPFLAGS environment
variable (STR #549)

The numpad keys didn't work properly on WIN32 (STR #502)

fl_input() and friends now set the input focus to the text field
when the dialog is shown (STR #553)

Fixed background color mixup when drawing Fl_Choice menus (STR
#544)

Fixed MingW makefiles (STR #550)

More VC++ project file tweaking (STR #559)

Fl_PNG_Image didn't use the png_set_trns_to_alpha function when
available (STR #547)

The FL_UNFOCUS event wasn't always sent when switching tabs (STR
#558)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 20:22:25 +00:00
Michael R Sweet
f7fd28ddfc Eliminate shadowed arguments...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-29 15:05:48 +00:00
Michael R Sweet
ba00ff13bc October 8th, not the 1st, for the end of the rc period...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-24 20:54:19 +00:00
Michael R Sweet
1b587e3f93 More VC++ fixes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-24 20:52:55 +00:00
Michael R Sweet
9a2fb090f7 Fix VC++ 6.0 project files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-24 20:46:34 +00:00
Michael R Sweet
96801156ad Prep for 1.1.5rc3 release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-24 20:08:29 +00:00