Manolo Gouy
7ebe8e21b0
Move Fl_Window_Driver.H from FL/ to src/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26 13:43:18 +00:00
Matthias Melcher
b8e97d7c28
Doxygen only: fixed all block comments starting with an asterisk to space-only, fixed doxygen keywords prepended with @ to use a backward slash instead. No code was changed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23 20:50:22 +00:00
Manolo Gouy
8b7f7c78b2
Remove public member function Fl_Window_Driver *Fl_Window::driver() so class Fl_Window_Driver is not in FLTK public API.
...
This function is replaced by static Fl_Window_Driver* Fl_Window_Driver::(const Fl_Window *win).
The purpose is to have class Fl_Window_Driver outside from FLTK ABI.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-12 09:36:36 +00:00
Manolo Gouy
7f78b1ef14
Windows: remove necessity to compile with -DFLTK_HIDPI_SUPPORT to make WIN32 FLTK apps DPI-aware.
...
At this point, Windows FLTK apps detect HighDPI displays and rescale their GUI accordingly. They also
all reply to ctrl/+/-/0/ keystrokes to enlarge/shrink/reset their windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-09 16:27:27 +00:00
Albrecht Schlosser
52ae3582a2
Replace "WIN32" with "_WIN32" or "Windows".
...
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32".
Replace "WIN32" in text and documentation with "Windows".
Replace "MSWindows" with "Windows".
To do: README.Windows.txt (and maybe other documentation as well)
needs updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-09 14:39:42 +00:00
Albrecht Schlosser
42d8aba117
Replace FL/x.H with FL/platform.H - step 2 (STR #3435 ).
...
This second step replaces FL/x.H with FL/platform.H in all source files.
Dependencies have been adjusted as well.
This commit completes the replacement of FL/x.H with FL/platform.H.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31 21:17:17 +00:00
Manolo Gouy
872406c871
FLDropTarget::DragEnter() replace call to Fl_Screen_Driver::get_mouse(int&, int&) by call to GetCursorPos(POINT*)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-14 06:56:20 +00:00
Manolo Gouy
196d0a73b4
Fix for STR#3390 Drop to FLTK widget fails when desktop is scaled - new solution.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-13 11:42:45 +00:00
Manolo Gouy
f84b9040f7
WIN32 platform: Fix drag-n-drop to FLTK widget when the desktop is scaled and FLTK_HIDPI_SUPPORT is not defined.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-11 17:19:25 +00:00
Manolo Gouy
9d024ceb7e
Fix drag-n-drop for WIN32 platform when rescaling is active.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 08:04:45 +00:00
Manolo Gouy
519673a776
Move dnd and character-composition related functions from Fl_System_Driver to Fl_Screen_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 19:55:03 +00:00
Manolo Gouy
4fcefc68f8
Remove the platform-dependent type xchar
...
File fl_utf8.h defines the xchar type with a platform-dependent value (wchar_t or unsigned short).
But it is used exclusively by WIN32 code (0 use in cross-platform code, 0 use in APPLE
or in USE_X11 code).
Thus, we can just get rid of this type and replace it by wchar_t where it is used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 09:29:51 +00:00
Manolo Gouy
aacb5277e7
Rewrite Fl_dnd.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 17:36:07 +00:00
Albrecht Schlosser
c5acf543d7
Fixed Windows drag'n'drop not showing insert position (STR #3209 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-07 10:15:11 +00:00
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