Commit Graph

4430 Commits

Author SHA1 Message Date
Manolo Gouy
d2cbe9abf7 Removed compilation warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 10:04:36 +00:00
Manolo Gouy
999c43abb3 Removed possible compilation warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 09:55:52 +00:00
Manolo Gouy
37d1838d07 Removed MSWin compiler warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 09:21:14 +00:00
Manolo Gouy
0ba139d349 Fix STR # 2485. Triple click must be done with left mouse button to select a whole line.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-14 21:07:45 +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
5889675f7d Fix STR # 2484. Middle mouse button paste now works within an Fl_Text_Editor
and from/to other applications. Also fixed interaction between selection and insertion cursor.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-14 17:07:45 +00:00
yuri
62487fbe23 add missing SWAP GL_SWAP_TYPE overlay draw (the slowest)
change default to COPY for linux because UNDEFINED don't work and sometimes crash X with 
intel video cards.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-13 19:48:47 +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
8132eba4f5 Fix STR #2478: added missing code that updates the FLTK selection buffer after
the Fl_Text_xxx selection is changed by shift-arrow key.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-13 12:30:49 +00:00
Manolo Gouy
02f327dbec Mac OS X: removed unused global variable fl_selection_requestor
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-13 12:21:12 +00:00
Albrecht Schlosser
0c21b331b0 Added missing 'FL_EXPORT' to lots of classes.
This may not be complete yet...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 23:21:03 +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
Greg Ercolano
808417739e Fix STR#2477; problem with SHIFT-DEL not doing copy() operation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 21:29:02 +00:00
Matthias Melcher
b239847669 Fluid generates correct Fl_Int_Iput and Fl_Float_Input plus include line. STR 2476
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 20:06:04 +00:00
Matthias Melcher
318b3dea57 Added an 'Options' dialog (replacing test/preferences) that can be used to set system wide or user real options like Visible Focus.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 19:52:26 +00:00
Manolo Gouy
495b3b5af5 Moved enums Page_Format and Page_Layout to class Fl_Paged_Device
where they are better located. Small reorganization of device-related include files.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 16:13:55 +00:00
Manolo Gouy
fc25ffc246 Corrected typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 11:19:12 +00:00
Manolo Gouy
fbf1913c92 Added missing Doxygen doc about popup menus.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 10:56:07 +00:00
Manolo Gouy
ab606d1274 Moved some code from do_queued_events() to a better location in [FLApplication sendEvent:]
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8014 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 08:37:21 +00:00
Manolo Gouy
82ff3abd50 Moved doxygen info about Fl::paste(Fl_Widget&, int) to where it belongs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 22:34:05 +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
yuri
554a50b33b fix linux build add ctype.h include for isdigit
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 20:28:43 +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
97149d19a5 Better algorithm for function convert_crlf().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 14:59:22 +00:00
Albrecht Schlosser
de7b3456c4 Fixed typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 14:39:07 +00:00
Albrecht Schlosser
4911e44ed6 Added svn properties and updated the README file for new test files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 14:22:22 +00:00
Albrecht Schlosser
b64efff5a2 Added misc/cp1252.html and misc/cp1252_utf-8.html for UTF-8 testing.
These files can be used to test drag'n'drop from a browser to another
application and test correct character conversion.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 14:14:28 +00:00
Manolo Gouy
beb02e12f6 Made Mac OS X menu windows very slightly transparent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 13:33:29 +00:00
Manolo Gouy
85a03a76c9 Fix STR #2348. Files encoded with UTF-8 or CP1252 are accepted. Any non-UTF-8-encoded
data is interpreted according to CP1252 and transcoded to UTF-8. By default, a warning
message is displayed when the input file was transcoded. This default behavior can be 
modified by changing a function pointer. A flag has been added to the Fl_Text_Buffer object
that informs the caller if the input file was transcoded to UTF-8.
The Fl_Text_Buffer.cxx file contains some preliminary code that could be used in the future
to input other encodings provided they are fixed-length (e.g., all ISO-8859-* character sets,
UTF-16). This code is not compiled at this point.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 19:24:28 +00:00
Greg Ercolano
395f5a70aa Adjusted Fl_Table docs to reference new examples.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 18:31:38 +00:00
Greg Ercolano
675fff09cf Renamed table-with-keyboard-nav.cxx -> table-spreadsheet-with-keyboard-nav.cxx,
(since it is a spreadsheet as well as demonstrating keyboard nav in tables).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 18:28:07 +00:00
Greg Ercolano
4f74131106 Code cleanup for two table spreadsheet examples.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 18:24:47 +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
Manolo Gouy
3ed11e08b0 Fix STR #2475
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 16:57:23 +00:00
Manolo Gouy
042cc7085e Fix STR #2473
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 12:27:29 +00:00
Albrecht Schlosser
1156ad5e98 Fixed buffer null termination inconsistency when removing cr's from
selection, source file indenting, and a crash if we have an empty selection.
Update for previous fix to STR #2472 (X11).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 12:05:01 +00:00
Greg Ercolano
3d94092dcc Header mods for submission history, copyright notices, consistency.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7996 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 08:09:27 +00:00
Greg Ercolano
ca8f6d72b6 Small mod to spreadsheet example (single click cells)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 07:52:05 +00:00
Greg Ercolano
7457f0dcaf Added table-spreadsheet example.
Various example mods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 07:49:22 +00:00
Greg Ercolano
4525d46ed9 Added color Fl_Text_Display example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 05:27:20 +00:00
Manolo Gouy
e931f660ca STR #2472: X11 only: fixes DnD between FLTK and other apps for non-ASCII text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 21:52:07 +00:00
Greg Ercolano
5ca2671de8 Added texteditor-simple example program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 20:26:00 +00:00
Manolo Gouy
60764e05ca Doc: removed duplicate word.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 13:41:12 +00:00
Greg Ercolano
de8ca00a65 More doc fixes:
o stray \code in the docs for Fl_Align
	o smaller latex/pdf widget screenshot sizes for Fl_Value_Input/Output



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 12:19:03 +00:00
Greg Ercolano
a01d246ead Fix oversized color swatch in PDF docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 12:08:13 +00:00
Albrecht Schlosser
ceba5030a1 Windows: removed hidden old winsock 1 (wsock32.dll) support, as
discussed in fltk.development. We exclusively use winsock 2
(ws2_32.dll) and winsock2.h now.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 09:03:17 +00:00
Greg Ercolano
ea3cb98f4f IMAGEFILES macro: gif -> png
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 01:03:59 +00:00
Albrecht Schlosser
ff9c9ed973 Updated image name in html_footer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 00:25:34 +00:00
Greg Ercolano
4b22612fc4 Menubar example added.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 00:05:24 +00:00
Albrecht Schlosser
5da53f578e Improved Fl_Menu_Item's documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 00:04:06 +00:00