Commit Graph

4444 Commits

Author SHA1 Message Date
Manolo Gouy
8ac8d3e8d7 Change after rename of Fl_Native_File_Chooser_MAC.cxx to Fl_Native_File_Chooser_MAC.mm
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8046 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-16 09:06:33 +00:00
Manolo Gouy
56f967b001 Change needed after rename of Fl_Native_File_Chooser_MAC.cxx
to Fl_Native_File_Chooser_MAC.mm


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-16 07:26:56 +00:00
Albrecht Schlosser
619b27c4c0 Updated dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 23:49:49 +00:00
Greg Ercolano
0cd57058de Added toggle button to 'navigation' test program to control
new arrow focus behavior.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 23:21:32 +00:00
Manolo Gouy
9b7e3e9c49 set properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 20:14:58 +00:00
Manolo Gouy
79d185c068 Renamed Fl_Native_File_Chooser_MAC.cxx to Fl_Native_File_Chooser_MAC.mm
because this is an objective-c++ file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 20:06:56 +00:00
Manolo Gouy
f451946d42 Homogenize use of re-encoding and transcoding (in favor of the latter).
Also, makes clear that the code is ready to deal with any encoding, not just fixed-length ones.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 17:38:39 +00:00
Albrecht Schlosser
97e8dc94c9 Fixed typos in FL/Fl_Input_.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 16:58:08 +00:00
Manolo Gouy
6e3bb7b24d Fix STR # 2481: removed compilation warnings.
Files utf8Input.c and utf8Wrap.c (via ucs2fontmap.c that's included)
need a different half of each of these input files. What is in the other
half is unused and thus triggers a compilation warning.
This has been fixed by adding #define NEED_TOWC in utf8Input.c
and #define NEED_TOMB in ucs2fontmap.c and by bracketting the first half
of these include files by #ifdef NEED_TOWC/#endif and the second half
by #ifdef NEED_TOMB/#endif.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 14:07:43 +00:00
Manolo Gouy
ff1d7b6dad Removed compilation warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 13:54:34 +00:00
Albrecht Schlosser
895f80a0c7 Make sure that tooltips are always on in test/preferences, even if they
are disabled by system or user options. Otherwise users wouldn't get the
necessary tooltips if someone switched tooltips off.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 13:36:06 +00:00
Albrecht Schlosser
eafeac5f98 Redefined NORMAL_INPUT_MOVE in src/Fl_Input.cxx to reflect the new option
Fl::option(Fl::OPTION_ARROW_FOCUS). Maybe this could improved, but this is
the shortest way to make the option work always.

Improved tooltips in test/preferences.fl for users and system managers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 13:02:36 +00:00
Albrecht Schlosser
113c9df703 Removed obsolete #define NORMAL_INPUT_MOVE from src/Fl_Text_Editor.cxx.
To do: Check remaining #define and usage in src/Fl_Input.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 12:21:55 +00:00
Albrecht Schlosser
80677ac290 Changed all #include "config.h" to #include <config.h>.
This is necessary for out-of-source builds (e.g. CMake) to work correctly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 12:11:16 +00:00
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