Commit Graph

43 Commits

Author SHA1 Message Date
Albrecht Schlosser
00da535a78 Fix wrong data type in Windows function override (STR #3232).
This patch uses the correct data type (as defined by Windows / msn)
but does not fix the Cygwin linker problem. Unfortunately.

This issue may be a Cygwin problem and should be reported to Cygwin.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17 17:14:14 +00:00
Albrecht Schlosser
9f350c654f Remove more (Windows only) compiler warnings, similar to:
... deleting object of polymorphic class type 'FLDropTarget' which has
 ... non-virtual destructor might cause undefined behaviour
 ... [-Wdelete-non-virtual-dtor]


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-08-18 11:32:50 +00:00
Fabien Costantini
8809c5d65d Fixed build error in msvs because Fl ref to FULLSCREEN enum was not accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05 05:12:30 +00:00
Greg Ercolano
4f4a8fc3c7 Modifications to all LGPL headers for STR #2685.
(to clarify static exception LGPL by changing license references)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 04:49:30 +00:00
Albrecht Schlosser
1f0da65165 Windows: Fixed off-by-one error when dropping Unicode text
and wrong data size value.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-14 19:46:55 +00:00
Manolo Gouy
fbe0128869 Fixed memory leak in MSWindows drag-n-drop : dragged data was malloc'ed twice (once at
DragEnter once at Drop) and never free'ed. Now it's malloc'ed once and free'ed after use.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-13 18:04:35 +00:00
Manolo Gouy
726feebff6 Hopefully last fix for STR #2472. The DnD receive code has been changed from accepting
ASCII text and transmitting it unchanged to the FLTK widget into accepting either UTF-16
or CP1252 text and in both cases transmitting it to FLTK recoded into UTF-8.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 21:49:54 +00:00
Manolo Gouy
4900292262 Fixed inexact value for last argument of two fl_utf8toUtf16() calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 21:41:42 +00:00
Manolo Gouy
fa2aea107f Fixed DnD of text to non FLTK applications expecting CP1252 data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 16:25:59 +00:00
Manolo Gouy
efeb50019d Fix the MSWindows part of STR #2472. DnD now works well with UTF-8 data
between FLTK and other apps in both directions.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 17:52:14 +00:00
Albrecht Schlosser
97b4b0c704 Fixed Compiling with mingw-w64 (STR #2308).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 14:00:35 +00:00
Manolo Gouy
c95c08e627 Fix STR 2281: documentation changes only to clarify names and functions of the 2 clipboards
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02 22:59:30 +00:00
Greg Ercolano
4327734e69 More copyright 2010 mods.
Used: vi `grep -r 'Copyright .*Spitzak' . | grep -v 2010 | grep -v '/\.svn' | cut -d: -f1`


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 18:18:27 +00:00
Albrecht Schlosser
1b8c550f40 Fixed compiler warning (Windows):
"`class FLEnum' has virtual functions but non-virtual destructor"


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 11:15:18 +00:00
Albrecht Schlosser
3cf2305b5c removed support for gcc 2.x (or older), as discussed in fltk.development
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 08:38:36 +00:00
Greg Ercolano
4fd11eba88 Changed references to fltk-bugs@fltk.org -> STR form.
Todo: LGPL license file references (COPYING, license.dox, etc)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-28 03:15:47 +00:00
Matthias Melcher
5251b64d57 Changed Copyright in 'src' directory
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01 21:28:26 +00:00
Albrecht Schlosser
6ed54124bb Fixed typos and doxygen documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-13 18:31:54 +00:00
Albrecht Schlosser
2bd4572918 Fixed typos and amended doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 17:01:55 +00:00
Matthias Melcher
e8f467b9e3 Updating fl_utf8.h references. Fixing copyright date in .fl files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-19 17:40:20 +00:00
Matthias Melcher
b6bde2e456 Merging the UTF8 patch, consisting of O'ksi'd s original 1.1.6 patch and additions by Ian. PLEASE BE AWARE that the patch in its current incarnation is a regression in many aspects and further work is required before we can announce Unicode support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-10 23:56:49 +00:00
Matthias Melcher
0992f4ef15 STR #1095: Drag'n'drop on WIN32 was only possible using the left mouse button. Added support for the middle and right button.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-01 09:02:13 +00:00
Matthias Melcher
dc6357bf1a Various Pixel bugs:
STR #993, STR #990, and a few others

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 21:16:38 +00:00
Matthias Melcher
379804873e Fixed Fl::event_text() for FL_DND_* events on Windows (STR 968)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-15 19:18:49 +00:00
Michael R Sweet
add37faa25 Copyright updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24 21:55:12 +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
a3d0905c9e Copyright updates and prep for 1.1.5rc1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11 04:39:01 +00:00
Michael R Sweet
13005b2a3f Fl_File_Browser incorrectly included "." on WIN32 (STR #9)
Include shellapi.h instead of ShellAPI.h in the WIN32
drag-n-drop code in order to work with the MingW cross compiler
(STR #6)

The cursor was not properly restored when doing drag-n-drop on
X11 (STR #4)

Fl::remove_fd() didn't recalculate the highest file descriptor
properly (STR #20)

Fl_Preferences::deleteGroup() didn't work properly (STR #13)

Fixed the fl_show_file_selector() function - it was copying
using the wrong string size (STR #14)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-05-04 21:45:46 +00:00
Michael R Sweet
00cb676e11 Copyright update for 1.1.3 release (not quite yet, but soon...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30 21:46:07 +00:00
Michael R Sweet
323ae2238e Albrecht's DND under WIN32 bug fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-20 15:29:25 +00:00
Matthias Melcher
2d30a9e6fa Small changes to make Metrowerks CodeWarrior for Windows work.
See seperate posting with CodeWarrior project file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-29 00:10:05 +00:00
Michael R Sweet
f50c056726 WIN32 compile fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 16:37:48 +00:00
Michael R Sweet
acd6bd5cc8 Clean up string includes.
Fix Fl_Shared_Image::add_handler() and friends.

Fix Fl_PNM_Image loader.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 13:38:25 +00:00
Bill Spitzak
8fd4b107da Slight change to menu fix so that events only go to the grab() widget.
Changed Win32 dnd slightly so a [+] cursor is used instead of the link one.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 07:43:59 +00:00
Michael R Sweet
c0670cdc55 WIN32 fixes for BC++.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 20:05:19 +00:00
Michael R Sweet
7482426735 Make Fl_Output a subclass of Fl_Input, and add input_type and readonly
methods/constants to support Fl_Output as a special case of Fl_Input
(you can do everything but change the text in Fl_Output...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-11 11:52:43 +00:00
Michael R Sweet
06a23813f8 Wrap remaining DnD includes and code for WIN32 (Cygwin with GCC 2.x
won't work)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 15:01:22 +00:00
Michael R Sweet
77a3b80dff OK, back out -fvtable-thunks and add conditional compile for WIN32
DnD code for Cygwin...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 20:36:28 +00:00
Michael R Sweet
9700e540c1 WIN32 fixes for DND.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 19:17:05 +00:00
Bill Spitzak
5f55e1cd63 Back-ported cut & paste code from fltk2.0.
This code splits the cut & paste into two buffers. The "SELECTION" is
used for the currently highlighted text and for middle-mouse paste and
(if possible) for handling drag & drop. The "CLIPBOARD" is for Ctrl+C
and Ctrl+V style cut & paste.

This matches how Motif, GTK, and KDE 3.0 work. But many older X
applications (including KDE 2) can only see SELECTION, this results in
cut & paste incompatability that is familiar to X users. However this
now moves fltk over to the majority camp.  On all systems this
eliminates the annoying inability to select a region and replace it
with Ctrl+V.

On Mac and Win32 the SELECTION is local to the application, so
middle-mouse paste only works between fields in the application. There
may be tricks (special clipboard data types? use drag & drop?) to make
it communicate, but unless there are standards it would be fltk-only.

The file Fl_cutpaste.cxx has been deleted, so update the IDE files!
The Win32 and Mac versions have NOT BEEN TESTED! I tried to be careful
editing them but they may need some work.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-07 19:22:58 +00:00
Matthias Melcher
4603756ed1 - added Win32 native drag'n'drop code
- added dnd support for Fl_Group (not tested with X!)
- added dnd support for Fl_Input (not tested with X!)
- no Mac implementation yet!

Go ahead: drag text or a file from the explorer into
a text widget! Tadaa!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-24 17:52:18 +00:00
Michael R Sweet
6eff9b3b14 First round of DND additions to 1.1 - just X11 code, and I haven't added
the support in widgets yet.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-09 21:50:02 +00:00
No Author
5a64091595 This commit was manufactured by cvs2svn to create branch 'branch-1.1'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-29 15:57:32 +00:00