Commit Graph

2655 Commits

Author SHA1 Message Date
Matthias Melcher
22953ccb02 Added fl_filename_relative which uses an additional parameter instead of the current working directory. Now we can find a relative path without changing the cwd.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 21:39:01 +00:00
Matthias Melcher
9092dccab8 Changed all fixed filename buffers (that I could find) to use FL_PATH_MX instead. Raised FL_PATH_MX from skipy 256 characters to 2048, which corresponds with modern file systems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 21:20:10 +00:00
Manolo Gouy
dc0c85b964 Added protection against compilation besides Mac OS X.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 17:57:19 +00:00
Manolo Gouy
29cff1612f Removed compilation warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 11:30:01 +00:00
Manolo Gouy
58445e7f9a Removed reference to deleted file fl_dnd_mac.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-18 22:39:24 +00:00
Manolo Gouy
6db2efa07f This file has become useless. Its code is now in Fl_cocoa.mm.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-18 22:38:23 +00:00
Manolo Gouy
d01c9cdf5b Mac OS: replaced several global functions by new member functions of Mac OS-specific Fl_X class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-18 22:31:01 +00:00
Albrecht Schlosser
403ee0ce23 Fixed Fl_Tabs selection border drawing, if tabs are at the bottom of
the widget (STR #2480). Thanks for the patch.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-18 15:31:44 +00:00
Manolo Gouy
15e1ddf3c9 Fix STR #2486: cursor position was wrong in some tab-containing wrapped lines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-18 08:32:37 +00:00
Manolo Gouy
b211421bc4 Removed [] expression.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-17 15:06:25 +00:00
Manolo Gouy
f3c7efc8d2 The 3 objective-c++ files used for the Mac OS X support are no longer included
by other files but added to the list of source files to be compiled
for Mac OS X only. Support files for autoconf/configure/make, CMake and Xcode
are also modified accordingly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-17 10:43:41 +00:00
Albrecht Schlosser
ff4cafeb30 This new fl_read_image() function for Windows is *much* faster than
reading individual pixels as before (STR #2387), but there is still
room for improvement...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-16 20:23:57 +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
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
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
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
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
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
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
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
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
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
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
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
9e2d044caa As per thread on fltk.development: "RFC: Docs - getting rid of .eps files"
Summary:
    Get rid of eps files, 
    change all doxygen '\image latex' references to eps files to png/jpeg instead,
    convert doxygen images from gif -> png (to support html+latex).

Actual operations:

		1) svn remove *.eps
		2) convert all gifs ->  png
		3) svn remove *.gif
		4) svn add *.png
		5) For jpeg/png images, change all \image latex foo.eps .. ->  \image latex foo.[jpg,png] ..
		6) For gif images, change all \image html foo.gif .. ->  \image html foo.png
		   and (harder to do): change \image latex foo.eps .. ->  \image latex foo.png ..
		7) Remove EPSFILES macro from documentation/Makefile 
		   and remove eps related dependencies that were added recently



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 23:53:04 +00:00
Manolo Gouy
163476f665 Fix STR #2277 for crash when DnD of filename to editor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 17:10:05 +00:00
Albrecht Schlosser
ee3e8180b4 Fixed Windows text file line endings, as discussed in STR 2348 and
fltk.development. Side effect: All Windows text files written are
in Windows, aka DOS format (with CR/LF line endings), no matter what
format they had when read. This is compatible with FLTK 1.1.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 14:47:11 +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
Albrecht Schlosser
ef831abaa7 Fixed more Windows compiler warnings:
- unused functions: dnullprint, strapp
 - format mismatch for newer compilers and/or 64-bit mode


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 13:16:27 +00:00
Albrecht Schlosser
8e0cceff6e Fixed cast for ShellExecute (Windows) as proposed by HenryN (STR 2308).
This is better since ShellExecute() returns a HINSTANCE value.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 12:42:45 +00:00
Albrecht Schlosser
f90c190a8e Fixed some compiler warnings, most of them in Windows-specific code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 12:15:48 +00:00
Manolo Gouy
271e1d8212 Fix STR #2470. Don't call Xutf8TextPropertyToTextList if X_HAVE_UTF8_STRING isn't defined
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-07 18:25:15 +00:00
Matthias Melcher
0db080e762 Restoring the non-binary read for MSWindows files. Still, I think this is harmful because now we read in ASCII and write in binary format...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-07 16:00:16 +00:00
Matthias Melcher
6e7ed9c46a Ooops, Fl_Text_Buffer::insertfile must read in binary format, or it will screw up line endings! (Actually, this could be debated, but by reading and writing in binary format, the file integrity would remain)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-06 23:25:52 +00:00
Matthias Melcher
804ef7d4f9 Fixed case when reading empty file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-06 23:23:44 +00:00
Matthias Melcher
f18e8f4377 Fixed Fl_Text_Editor::insert_file to load all text in a single chung to avoid UTF8 confusion and missmatched gaps.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-06 18:44:33 +00:00
Matthias Melcher
1bac8a0cca Fixed crashes when Fl_Text_* detects illegal UTF 8 sequences. Widgets will not do any further processing but just jump over the character. Screen representation depends largely on whatever the underlying OS does with those sequences, but I feel that this is out of the scope of this library. (STR 2348)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-06 18:22:22 +00:00
Albrecht Schlosser
3226204369 Fixed one doxygen warning and cleaned up documentation/Makefile.
Removed unused statements and old comment.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7953 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-05 14:45:06 +00:00
Greg Ercolano
770c2c2eaf CMP mods: bracing, doxygen fixes for code examples and #if DOXYGEN -> #if FL_DOXYGEN.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-05 01:22:53 +00:00
Greg Ercolano
0abd2665f5 Reformatting for CMP: Indent fixes, bracing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7949 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-05 00:38:16 +00:00
Manolo Gouy
0861422c71 Improved interaction with non-FLTK windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7946 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-03 19:22:15 +00:00
Albrecht Schlosser
286e523125 Another fix for Fl_Preferences when creating a "user data" path for system
preferences (STR #2465).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-03 17:40:05 +00:00
Albrecht Schlosser
8c72400a20 Fixed reading the correct preferences for Fl::options() (STR #2463).
Fixed not to override system options with user options, if they are not
explicitly set (same STR).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7944 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-03 16:41:45 +00:00
Manolo Gouy
b6bfb36bc1 Removed breakMacEventLoop() from function Fl::remove_timeout that is apparently not needed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-03 15:39:16 +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
Manolo Gouy
c5ef8d13d1 Fix for STR #2465: make sure that system preference files are user readable (unix).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7941 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02 22:07:29 +00:00
Greg Ercolano
a343f7555b STR#2466: Added copy_tooltip().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7940 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02 17:58:58 +00:00
Manolo Gouy
3578d1d6f8 About STR #2456: clipping added to solve STR now requires USE_XFT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7939 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02 13:01:44 +00:00
Albrecht Schlosser
b4299c2387 More Fl_Text_Display documentation updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7938 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02 09:46:01 +00:00
Manolo Gouy
ad879c3a48 To fix STR #2464
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7937 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02 09:07:31 +00:00
Albrecht Schlosser
e5fc1560b0 Fixed Doxygen comments, typos, and a few indenting issues.
Part 1, more to come ...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02 00:43:07 +00:00
Manolo Gouy
17963c0475 Fix STR #2462.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01 23:12:06 +00:00
Manolo Gouy
2f8b7e47c2 Should fix STR #2464 by not calling fl_open_display when running fluid in command line mode
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01 18:31:23 +00:00
Manolo Gouy
180ec65687 Doxygen changes to indicate what to #include for functions documented in modules.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01 17:38:29 +00:00
Manolo Gouy
04ca835e3a Consistent usage of __APPLE_QUARTZ__
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01 15:52:02 +00:00
Manolo Gouy
5f3988e934 Fixes STR #2462.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01 12:56:42 +00:00
Greg Ercolano
93135e36f4 Applied patch "str-2416-erco-v1.patch" to solve STR #2416
issue with UTF8 window labels not working with xwininfo.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01 08:13:27 +00:00
Manolo Gouy
6c1f31ff20 Mac OS X: Added shadows to menu and tooltip windows; this was lost when going Cocoa.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 19:08:02 +00:00
Manolo Gouy
0d6177412a Fixes STR #2456: adds, for X11, clipping around text to prevent leaking on line above.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 17:56:23 +00:00
Manolo Gouy
a8a5e3603c Fixes STR #2277.
Many thanks for the patch.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 16:36:38 +00:00
Manolo Gouy
142f80e8b2 Back to v.7909 because changes in v.7922 don't work with underscores under Linux.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7924 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 15:17:52 +00:00
Manolo Gouy
d2334f610e Fixes STR #2461. Also, the drag'n-drop X11 cursor has been set to FL_CURSOR_MOVE.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7923 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 14:06:15 +00:00
Manolo Gouy
1303ce4597 Fixes STR #2456. The text background was cleared one pixel too low for very "high" characters.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7922 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 11:07:54 +00:00
Matthias Melcher
cc4e22eabb Fixed argument type in X11 calls (STR 2432)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 11:05:38 +00:00
Albrecht Schlosser
8c56fc7e22 Updated CMake files with patches from Michael Surette (STR #2317).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 10:34:43 +00:00
Manolo Gouy
011e95515b Fixes STR #2344: SHIFT+ALT+A triggers correctly when caps-lock is on.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 19:26:11 +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
Manolo Gouy
ae0940f443 Removed unused global variables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7912 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 15:59:53 +00:00
Manolo Gouy
3ae28985a8 Removed useless #include statements
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 14:28:09 +00:00
Manolo Gouy
25f3f44253 Mac OS X: display dragged text as cursor for Fl_Text_Display as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 14:12:57 +00:00
Albrecht Schlosser
0294bd1fa5 Fixed wrong indenting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 14:05:04 +00:00
Manolo Gouy
8c6c5c9ec3 Fixes STR #2460 and also fixes linefull selection by triple click
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7908 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 13:39:04 +00:00
Manolo Gouy
b2d7e70851 Changed copyright to 2010
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:57:37 +00:00
Matthias Melcher
a803cec1b7 Fixed even more Copyright to 2010. Probably still forgot some.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7906 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:28:30 +00:00
Matthias Melcher
7fc05e3505 Fixed more Copyright to 2010.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7904 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:12:59 +00:00
Matthias Melcher
e454f97acc Fixed Copyright to 2010.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:06:39 +00:00
Manolo Gouy
f4fc4241b7 STR #2155: fixed using sparkaround's patch conditional to use of configure --enable-cp936
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 18:55:50 +00:00
Manolo Gouy
dcfdf8be20 Removed FLTK own character composition rules --> left to OSs. Closes STR #2421.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 09:12:36 +00:00
Matthias Melcher
e36e07f313 Changed USE_XINERAMA into HAVE_XINERAME in CMake files. STR #2422
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7899 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 21:46:59 +00:00
Matthias Melcher
f560b71b0a Fixed Fl_Text_Display Tabulator calculations (STR #2450)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 21:15:52 +00:00
Matthias Melcher
1a793cdbc3 Tab is now alway 8 characters wide.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 20:49:27 +00:00
Matthias Melcher
c6e46fed45 Preliminary implementation of Tab characters insisde Fl_Text-*. We still need to test wrapping, etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7895 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 20:13:10 +00:00
Manolo Gouy
39169af7dd Removed Doxygen warning from file src/Fl_Printer.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-26 10:22:40 +00:00
Greg Ercolano
d3e0d030f0 Changes to solve STR#2426;
1) Hitting ENTER to select an item should make sure the item is
	   displayed if off-screen (Mayank Malik, pointing out similar behavior in Fl_Browser_)

        2) show_item() without a positional argument will invoke show_item_top()
	   if the item is off-screen.

	3) Added new method displayed() (to match Fl_Browser_'s)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7893 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-25 18:52:37 +00:00
Manolo Gouy
7eb27fa4bd Mac OS X: introduced global variable fl_mac_os_version and cleaned a few unused variables.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-25 18:21:21 +00:00
Manolo Gouy
0f3e028a13 Should improve character composition under X11 (see STR #2421).
The string compose_pairs was for CP1252 but should be for unicode.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-24 13:31:43 +00:00
Albrecht Schlosser
c0fcb987cc Added forgotten 'static' keyword to clip_x().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-23 17:37:49 +00:00
Albrecht Schlosser
36ffb5c5d5 More clipping updates for X11 with coordinates > 32767.
All horizontal and vertical line drawings, as well as fl_rect(), fl_rectf(),
and fl_point() should be clipped correctly. Nothing has been done for
arbitrary (non-orthogonal) lines or other drawings, but this should suffice
for box drawings of large container widgets (STR #2304).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-23 17:18:42 +00:00
Manolo Gouy
4f9acb7b4f Removed compilation warning
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-23 13:05:37 +00:00
Manolo Gouy
5625337133 Improves the usability of member function: Fl_PostScript_File_Device::start_job (FILE *,...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-23 12:13:17 +00:00
Albrecht Schlosser
3a807e55bc More clipping fixes for X11 with coordinates > 32767 (STR #2304).
The following functions are fixed now:
  fl_rect(x,y,w,h),
  fl_rectf(x,y,w,h),
  fl_not_clipped(x,y,w,h),
  fl_xyline(x, y, x1), and
  fl_yxline(x, y, y1).
 
These functions are sufficient for basic box and frame drawing functions,
but maybe there are other functions left.

Note that fl_xyline() and fl_yxline() are fixed only for one line segment.
Those with more line segments need still to be fixed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-22 18:17:51 +00:00
Albrecht Schlosser
cdad633e87 Removed redundant case in fix for STR #2304.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7883 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-22 13:11:48 +00:00
Albrecht Schlosser
7d84aea1fb Fix X11 coordinates > 32767 (STR #2304).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-22 13:01:03 +00:00
Greg Ercolano
07a94f6b09 STR #2428: Applied Manolo's 'line 86' mod to fix warnings on Tiger. Tested on:
Tiger: no warnings now (had warnings before)
	       Snow Leopard: no warnings now or before
	       Ubuntu 8.04: no warnings now or before
	       Windows + VS 2005 Express: no warnings now or before


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-21 18:15:32 +00:00
Matthias Melcher
57083d0222 Fixed XExpose event for soome WM's (STR #2039)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-21 15:01:58 +00:00
Greg Ercolano
430789d8be Fixed weird indents
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-20 18:03:14 +00:00
Manolo Gouy
0b7e706de9 To fix STR #2452
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-20 12:59:39 +00:00
Manolo Gouy
523d2c79d0 To fix STR #2451
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-19 19:00:50 +00:00
Matthias Melcher
cbc29a76db Removed FLTK compose system for MSWindows. This should leave keyboard control to the OS instead of having something FLTK specific on top. I can't fully test this because I have merely a U.S. keyboard, but dad keys still seem to work... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-18 20:33:16 +00:00
Manolo Gouy
faed6e5ef7 Fixed STR 2449
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-18 20:02:27 +00:00
Matthias Melcher
1e77c19688 Fixed file access code to use UTF-8 strings (STR #2440)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-18 20:00:01 +00:00
Matthias Melcher
983a0d8ce4 Fixed ARM Unicode cross compilation issue (STR #2432)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-18 18:43:41 +00:00
Manolo Gouy
9ae50a2703 Removed compilation warnings when compiling before 10.5 (STR 2428)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-17 17:05:08 +00:00
Matthias Melcher
bc66ca6264 Improved support for faulty X11 clients (STR #2385)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-17 11:28:58 +00:00
Albrecht Schlosser
98811098a9 Documentation updates for Fl_Window::xclass(), default_xclass(),
and show().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-17 11:03:51 +00:00
Matthias Melcher
ffbe1b76b1 Fixed xclass support for Fl_Window (STR #2053)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-16 22:17:40 +00:00
Matthias Melcher
e91fe6e6d5 Fixed Caps Lock handling in X11/XIM (STR #2366)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-16 21:15:27 +00:00
Matthias Melcher
bc1928bbc0 Fixed handling of missing fonts in Xft (STR #2355)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 22:13:13 +00:00
Albrecht Schlosser
80bc4255ad Fix Windows file chooser preview (STR #2440)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 15:19:08 +00:00
Matthias Melcher
0af4b7367f Applied latest changes for STR 2215
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 13:10:14 +00:00
Greg Ercolano
6ab895a099 Solves STR #2428: Silence double->int conversion warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7838 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 08:01:06 +00:00
Albrecht Schlosser
e5ac1f7b97 Fixed X11 cut/copy problem on 64-bit systems (STR #2419)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 07:14:29 +00:00
Greg Ercolano
7b9a2e88ad Solves STR #2428: Silence float->int conversion warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 04:49:46 +00:00
Greg Ercolano
1c06cb4283 Solves STR #2428: Silence float->int conversion warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 04:38:21 +00:00
Greg Ercolano
61a9b32872 Solves STR #2428: Silence numerous compiler warnings about float->int conversions, etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 04:34:58 +00:00
Matthias Melcher
e10019c64b Added alternative Xft font names (STR #2215)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-14 21:50:24 +00:00
Matthias Melcher
160973c876 Update lib png access (STR #2442)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7832 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-14 21:17:31 +00:00
Matthias Melcher
6e863f844d Fixed OpenGL hide/show issue in OS X (STR #2260)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7831 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-14 17:28:48 +00:00
Matthias Melcher
b43c11939e Added a little bit of docs for Fl::option()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-14 16:07:20 +00:00
Matthias Melcher
e7c93053b6 Added visual indication for buttons activated by a keyboard shortcut (STR 2372
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-14 11:02:18 +00:00
Matthias Melcher
35c8c77e5e This should fix all remaining issues with Fl_Text_*. Wrapping is no pixel aligned. Pressing up and down will be pixle bound. A few crashes removed (we still crash with faulty UTF-8svn diff | grep Index:). Fixed blinking selection when outside the widget. Added dnd sending and receiving.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 19:08:52 +00:00
engelsman
473d8af1a4 Added mouse!=0 check in Fl_Glut_Window::handle (STR #2381)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7818 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 18:22:43 +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
2105f203f1 Fixed menu and shortcut handling (STR #2243). This partly reverts the
fix for STR #2199 - for details see STR #2243.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-11 09:12:05 +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
Matthias Melcher
d9be6bbddf Found a few more bugs in Fl_Text_* when using wrapping. Vertical slider is still off.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-09 23:32:36 +00:00
Matthias Melcher
6fbc3f3556 Added smarter Macro to check for utf-8 violations in Fl_Text_*
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-08 14:19:47 +00:00
Manolo Gouy
d2f4577fc3 Fixed crash under Mac OS X 10.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-08 08:10:48 +00:00
Matthias Melcher
accf34f276 Implemented search backwards for utf-8. Tested on MSWindows - OK. Tested on Linux (Ubuntu) - K.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-07 20:13:50 +00:00
Matthias Melcher
f099311481 Better alignment testing
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 23:58:57 +00:00
Matthias Melcher
213318ccb3 Removed some unused stuff and duplicates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 23:16:07 +00:00
Matthias Melcher
b1c062ebd1 Minor changes of Fl_Text_Editor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 17:51:00 +00:00
Matthias Melcher
1d9781a7ae A bunch more UTF-8 fixes for Fl_Text_Display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 17:20:32 +00:00
Matthias Melcher
4758e39d28 Fixed accidental deletion of 'del'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 15:23:50 +00:00
Manolo Gouy
ae9da5cff9 Simpler and cleaner handling of cocoa keyboard events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7802 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 15:06:25 +00:00
Matthias Melcher
17259bcbfc One more fix
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 14:32:55 +00:00
Matthias Melcher
8ae745f5b3 UTF8 Text Display and Editor: added tons of tests for utf8 alignment, fixed a bunch of methods that did not understand utf8. Still lots of places to visit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 14:29:12 +00:00
Albrecht Schlosser
3e1a8e17af fixed missing header file for UTF-8 test (assert.h)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 13:13:28 +00:00
Matthias Melcher
0fb4feb11a Working on correct line wrapping in Fl_Text_Display: starting to replace all byte based charracter calculations with utf8 functions. Current version wraps, but scroll bars are wrong. Non-wrapping text display starts to work better.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 00:29:58 +00:00
Matthias Melcher
5027ca90d3 Mark all funcitons in Fl_Text_Display as not yet Unicode safe.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7796 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-05 22:01:02 +00:00
Matthias Melcher
7ab2acfbff Reformatted and completed (where possible) all comments on FL_Text_Display - maybe a rewrite from scratch *would* have been easier - sigh ;-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-05 21:54:47 +00:00
Matthias Melcher
38dcb5a463 Starting to rework Fl_Text_Display from scratch to make wrapping work correctly. Fixed a few issues that made wrapping crash. Using ASCII range only with fixed character sizes should still wrap as expected?!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-04 21:53:56 +00:00
Matthias Melcher
644fe62283 Uninitialized variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-03 22:11:20 +00:00
Matthias Melcher
cac40a9b02 STR 2158: partially solved. This commit is huge, I admit. I recoded most of Fl_Text_Buffer and large chunks of Fl_Text_Display to make it UTF-8 safe. Rendering of all left-to-right scripts works well on OS X for all tested fonts. International input works AFAIK. Copy and paste of UTF-8 data works. ----> what's not working yet though is line wrapping. Also, text search for internationsl characters is not working yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-03 22:01:43 +00:00
engelsman
ddd4bbff1b minor formatting changes to Fl_Text_Display.cxx
fixed some out-dented text (but not exaggerated indents)
split some doxygen comments and added blank lines
added indenting to complex if statement in draw_vline()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-02 20:30:42 +00:00
Greg Ercolano
8dac539491 Fixed docs for fl_color_chooser() function's optional 'm' flag (renamed 'cmode' for clarity).
to prevent doxygen errors. Solves engelsman's comments at bottom of STR#2226.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-01 00:29:08 +00:00
Matthias Melcher
5560a4f0f1 Fixed a few pedantic warnings. Added Fl::option as discussed in STR #2368, but I am not too happy with it yet. Please see discussion in that STR.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 22:39:40 +00:00
Matthias Melcher
1e26ada2c5 Fixed tab key navigation to inactive widgets (STR #2420), fixed a few pedantic warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 20:47:50 +00:00
Matthias Melcher
48f107775d Fixed outside label redraw damage areas (STR #2436)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 19:35:23 +00:00
Matthias Melcher
8ad7e5ccc0 Added callback when double-clicking file in a file chooser (STR#2346)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 21:52:38 +00:00
Matthias Melcher
b5a73c78e6 Fixed label alignment (STR #2436)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 21:32:15 +00:00
Matthias Melcher
9b6f68dd7c Added interface to set color chooser mode (STR #2407)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 20:16:43 +00:00
Matthias Melcher
f1f1d8ed42 STR 2382: Fixed compile errors when HAVE_LIBJPEG was not defined
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7780 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 20:01:16 +00:00
Matthias Melcher
8e30c66a92 Fixed special handling for ISO back-tab keycode (STR #2369)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 19:56:20 +00:00
Matthias Melcher
6017a6fae6 STR 2348: fixed possibly wrong relative path
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 19:46:05 +00:00
Matthias Melcher
e923015b01 STR 2370: fixed static allocation in Fl_Tabs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 19:28:17 +00:00
Matthias Melcher
ff09e7237c Fl_Button shortcut handling would crash if the widget was deleted in the callback.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 16:50:44 +00:00
Matthias Melcher
9b2d8347de Added alternative names for Xft. On all Linux distors I tested, it makes no difference. If there are Unixes that need other names, the ifdef should be changed accordingly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 16:32:04 +00:00
Matthias Melcher
ea2b414845 Added documentation for Fl_Tabs resizable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30 16:10:37 +00:00
engelsman
efd349ddce updated documentation for color handling - see STR #2226
- added text about color(0xRRGGBBII) call to common.dox and drawing.dox
- added doxygen comments for fl_show_chooser(), including image.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-29 22:14:59 +00:00
Greg Ercolano
9a84309f51 Fixed strange indents, added implied break, notreached clarification.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-29 02:53:37 +00:00
Greg Ercolano
86f82cce6a Applied patch from STR#2428 to fix warnings on OSX/Tiger for fl_rect.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7768 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-28 23:08:06 +00:00
Matthias Melcher
8f79d200a0 Fixed the remaining warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-28 21:47:01 +00:00
Matthias Melcher
291faee430 Fixed a bunch of warnings from gcc 4.4.5 . Most of these are parenthesis missing to make the precedence of && over || obvious. Ah well, why not...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-28 18:02:20 +00:00
engelsman
fc1a878290 reworked color documentation as suggested in STR #2373
part of the confusion was the main page link to
Common Widgets and Attributes/Colors actually went to
Drawing Things in FLTK/Colors therefore making it harder
to find information.

Common Widgets and Attribute/Colors now simplified

Drawing Things in FLTK/Colors now expanded

FLTK Enumerations/Colors now simplified



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-27 22:07:55 +00:00
Manolo Gouy
b10ffb40d8 Mac OS X: simplified processing of keyboard events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-27 20:03:37 +00:00
Manolo Gouy
901bc31ec3 Use Mac OS-defined character composition method. It allows to handle composed characters of many more languages than before (e.g., Polish, Greek).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 21:01:17 +00:00
Greg Ercolano
e831cf9dcf doxygen fixes:
o Docs added for set_selection(), get_selection(), is_selected()
	o Renamed confusing variable names for get/set selection functions.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7751 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 11:30:58 +00:00
Greg Ercolano
bfcb445453 Added handling of Tab key for Fl_Table keyboard navigation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 10:31:23 +00:00
engelsman
7e2590ddea reworked doxygen comments for Fl::arg() and Fl::args() - part 2
added a note to examples.dox about the 'examples' directory

updated Fl_arg.cxx to move the description of standard FLTK options
to Fl::arg() and simplified/rationalized the Fl::args() description.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-24 12:53:53 +00:00
engelsman
455b8c4a84 reworked doxygen comments for Fl::arg() and Fl::args() - part 1
harmonised parameter names in Fl.H and Fl_arg.cxx and reworked
doxygen comments to make them a bit clearer. More work required.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-23 16:34:22 +00:00
Matthias Melcher
463416d0c7 Remove OS X Xcode compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-22 15:15:23 +00:00
Manolo Gouy
3eddf4dcfc Corrected mac key codes for FL_Delete and FL_Num_Lock keys
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-19 12:29:35 +00:00
Manolo Gouy
19231291e6 Improved portability to diverse Mac O X versions
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-18 10:49:04 +00:00
Greg Ercolano
0d6987a160 Strengthened doxygen docs for set_item_focus().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7722 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 15:46:30 +00:00
Manolo Gouy
5c55379301 Added Doxygen doc to offscreen drawing functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 12:34:19 +00:00
Albrecht Schlosser
aea80474f8 Optimized Fl_Group::clear() and Fl_Scroll::clear(). This speeds
up mass deletes (lots of children in a group) significantly.
See also STR #2409.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 08:12:44 +00:00
Greg Ercolano
e1e119e1df Applied sjb's patch to fix STR #2429.
Removed #include <config.h> from public include files.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-11 18:10:32 +00:00
Greg Ercolano
63f2a30a65 Silence float->int compiler warnings on Snow Leopard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-11 18:02:00 +00:00
Manolo Gouy
9f8bbb2a11 Correctly account for position of dock in Fl::x() and Fl::h() functions
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-07 10:50:13 +00:00
Greg Ercolano
bc224390ea Small mods to allow SGI builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-01 00:30:08 +00:00
Ian MacArthur
b15ececeb6 Commit to fix handling of Fl_Preferences UUID values on 64-bit WinXX and *nix systems.
Not tested as thoroughly as I would like - I don't have a 64-bit big-endian system...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-30 09:00:56 +00:00
Albrecht Schlosser
b010bce1af Fixed unbalanced Windows OleInitialize/OleUnitialize calls
when loading/unloading the FLTK dll (STR #2417)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-27 14:57:53 +00:00
Albrecht Schlosser
5c968a2589 Fixed undefined behavior of fl_choice and others when closing
the message window instead of using a button (STR 2418).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-27 11:29:05 +00:00
Albrecht Schlosser
280720df7c Fixed Windows class name (xclass) setup and caching mechanism. This was
not yet completely converted to UTF-8. Cleaned up related code, removed
old comments.
Tested and confirmed that the xclass() setup works and that different
icons can be set for different window classes (as it was in FLTK 1.1.10).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-09 15:59:20 +00:00
Manolo Gouy
6c68126238 Some code reformatting
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-07 08:38:08 +00:00
Manolo Gouy
c0a8d44710 Full support of UTF-8 text for PostScript printing/output in 2 ways:
- Latin characters (unicode <= 17F) and a few other symbols, among which the € (Euro),
are output using vectorial fonts
- All other characters are output as a bitmap copy of their offscreen rendition.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-04 15:01:07 +00:00
Manolo Gouy
3b3197a86a Simpler PostScript output of Fl_Bitmap objects
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-04 12:49:35 +00:00
Manolo Gouy
0dc7b5edc5 PostScript output of Fl_Pixmap objects: accept now arbitrarily large pixmaps
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-03 16:35:32 +00:00
Albrecht Schlosser
5a3aced3ab New method: Fl_Group::remove(int index) to speed up the removal
of widgets if the widget's index is known. Thanks to Greg for the
patch. See also STR #2409.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-31 10:01:59 +00:00
Greg Ercolano
c7ef0f1d17 Fl_Tree related mods
* open() / close() now can invoke the callback().
      New method callback_reason() lets one determine the cause.
      (Used FLU's tree for reference on this)

    * new Fl_Tree methods:
      > item_pathname()
      > show_item(), show_top(), show_middle(), show_bottom().
      > next_selected_item() -- loop through the selected items.
      > callback_item() -- the item that caused the callback
      > callback_reason() -- reason the callback was invoked
             FL_TREE_REASON_SELECTED    -- item was selected
             FL_TREE_REASON_DESELECTED  -- item was de-selected
             FL_TREE_REASON_OPENED      -- item was opened
             FL_TREE_REASON_CLOSED      -- item was closed
      > position()
      > display()

    * new Fl_Tree_Item methods:
      > find_child_item() -- searches children for a path
      > find_item()       -- searches self and children for a path
      > next(item)        -- loop forward through tree
      > prev(item)        -- loop backward through tree
      > first_selected_item()
      > next_selected_item()
      > x(), y(), w(), h()

    * deprecated:
      > item_clicked().  Use callback_item() instead

    * the 'docallback' optional integer argument for all methods
      is now back to 0 or 1 only. (Other values became unnecessary
      when above new callback() behavior was defined)

    * test/tree has new "Test Callback Flags" button to test the
      'docallback' flags for eg. open/close/select/deselect
      to make sure no bugs creep in.

    * INTERNAL: added free_path() to free special path array created by parse_path().

    * Various docs strengthened:
	* How to use first()/next() and last()/prev() to walk tree
    	> made sure more method's options use \param[in]
	> Added more \see references

    * Moved several implementations from .H -> .cxx
    * Added autoscroll to keyboard nav and mouse drags
    * test/unittests: added Fl_Tree to scrollsize test

        TODO:
	    o Horiz scroll bar (see Johannes Schock's email re. additions he sent)
	    o Need to allow keyboard nav to move focus to child FLTK widgets
	    o Fix fast-selections so that no gaps are left behind.
	      (Select all items from the last selected item to the current)
	    o Investigate non-default values of when() causing odd behavior.
	      (See the tree demo's when() pulldown..)

    * tree demo modified to include top/mid/bot buttons that test the above.

    * Keyboard navigation added:
		Up/Down       -- move focus
		Left/Right    -- closes/opens tree item in focus
		Spacebar      -- toggle selection state of item in focus
		Enter         -- selects the item in focus, deselecting all others
		Tab/Shift-Tab -- change widget focus

    * All Fl_Tree select() and deselect() methods now return a value
      that indicates if the item's state was changed.

    * Fixed focus box drawing (focus box resides more precisely within item's box)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-26 13:32:30 +00:00
Manolo Gouy
23303736e3 Fl_Bitmap.cxx: fixed error that could create dereferencing of NULL pointer
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-26 08:28:35 +00:00
Manolo Gouy
3b4db2357d Native file chooser-Mac OS X: fixed issue arising with OS 10.6
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-25 17:01:56 +00:00
Albrecht Schlosser
f64829b7bf Fixed a bug that would have crashed the program on Windows versions
before Windows 2000 when printing pixmaps.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-25 08:45:33 +00:00
Albrecht Schlosser
a493692f01 Fixed compiler warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-24 08:16:54 +00:00
Manolo Gouy
3f4a81bc88 Fl_PostScript_Graphics_Driver : removed useless member variable color_ because equals to fl_color_
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-22 09:11:51 +00:00
Manolo Gouy
5a1db672e1 Fl_PostScript_Graphics_Driver::color() : fl_color_ global var should be set for fl_color() call to be correct.
Fixes STR 2401

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-22 08:24:37 +00:00
Manolo Gouy
814f65db73 Fl_PostScript_Graphics_Driver::color() : removed repetition of identical code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-22 07:53:24 +00:00
Manolo Gouy
68cecd9025 Mac OS X: Speedup of Fl::set_fonts() if called repeatedly.
Fixes STR 2383

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-20 13:07:13 +00:00
Albrecht Schlosser
6bd9230bcf Updated CMake files and removed now obsolete test/tree.cxx and
test/tree.h files.
Note: CMake not yet tested with these modifications.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 14:25:46 +00:00
Matthias Melcher
32716d6b1e Updated the Fluid IDE support for the current source file structure. Changed the Fl_Tree rendering code around a bit to make the tree more like MSWindows on Windows and more like Apple on Apple machines. I hope you guys like it. I also moved the function to load Fl_Preferences into an Fl_Tree into the Fl_Tree class where it belongs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 09:44:45 +00:00
Manolo Gouy
8306c3d0b3 Fixed fl_XXX_offscreen functions when the current output goes to a printer or a PostScript device
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-09 17:31:33 +00:00
Manolo Gouy
0ac2bc4d40 Fixed use of x and y args when reading from offscreen buffer and test when w or h are too big
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-09 17:29:35 +00:00
Manolo Gouy
c835c08bb3 Fixed fl_copy_offscreen when output goes to a Quartz printer context.
Output to a PostScript context still needs to be fixed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-03 10:13:22 +00:00
Manolo Gouy
61eb9377c8 Renamed global variable from fl_device to fl_graphics_driver to better express its class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 13:21:32 +00:00
Manolo Gouy
142cefd106 Mac OS X: fixed bug where fl_draw(const char*, int, float, float) would not work on non-Quartz device
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-24 21:55:20 +00:00
Manolo Gouy
a40166931e Fl_PostScript.cxx: now outputs correctly all of the latin1 (iso-8859-1) character set
giving support for many latin alphabet-using languages.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-24 08:55:04 +00:00
Manolo Gouy
449b99dd86 Fix STR 2339 by defining new member function rtl_draw of class Fl_Graphics_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-21 15:49:45 +00:00
Manolo Gouy
6c2274f011 fl_begin_offscreen/fl_end_offscreen: added fl_push_noclip/fl_pop_clip to render Mac consistent with other platforms
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-19 15:19:13 +00:00
Manolo Gouy
2425499352 Fixed STR 2257. fl_read_image now accepts also reading from an off-screen buffer, as documented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-18 16:31:15 +00:00
Manolo Gouy
006e5ff9c0 Removed commented out code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7649 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-18 13:39:27 +00:00
Manolo Gouy
4da4ef0b67 Replaced 'fl_surface->driver()' by the shorter 'fl_device'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-17 22:08:09 +00:00
Manolo Gouy
8c02ae87cb Correct way to test for device-specificity under Mac OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-17 21:08:16 +00:00
Manolo Gouy
9a026f9dcd Reintroduced the changes brought in r.7606 that had been lost in r.7617
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7645 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-16 17:19:02 +00:00
Manolo Gouy
55a6172ad7 Removed useless #include <Fl/fl_ask.H>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-15 21:16:27 +00:00
Manolo Gouy
e6935ce29c Removed commented-out debugging statements
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-15 17:44:51 +00:00
Albrecht Schlosser
da2954b1d6 Removed an "unused variable" warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-15 08:20:15 +00:00
Albrecht Schlosser
02ef055c6c Previous commit log should read:
Fixed regressions introduced with svn -r 7617.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-15 08:04:50 +00:00
Albrecht Schlosser
37ef57934f Fixed regressions introduced with svn -r 7627.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-15 07:49:26 +00:00
Albrecht Schlosser
755f354ebe Fixed X11/XDBE double buffering (STR #2152, #2197). Both bugs could only be
seen if configure was run with --enable-xdbe (default in FLTK 1.3, optional
in FLTK 1.1).

src/Fl_Double_Window.cxx/Fl_Double_Window::resize():

	STR #2152: deallocate back buffer when window is enlarged in any
	dimension to force allocation of a new back buffer. This appears
	to be necessary for some window managers (e.g. Cygwin).

src/Fl_Overlay_Window.cxx/Fl_Overlay_Window::flush() and
src/Fl_Double_Window.cxx/Fl_Double_Window::flush():

	STR #2197: make sure that the entire overlay window will be drawn
	after a window redraw, because Fl_Double_Window::flush(1) erases
	the overlay as documented.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-09 08:36:25 +00:00
Manolo Gouy
da5042584a Fix image bug reported by Csaba in r7626 + fix regression in ps_image.cxx
inadvertently brought in by r7617.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-07 13:39:03 +00:00
Greg Ercolano
cc7b798179 Document return values for some methods that had none.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7627 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-03 15:46:59 +00:00
Albrecht Schlosser
27d9926856 Fixed dependencies for next snapshot.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-28 07:39:27 +00:00
Manolo Gouy
4aa1da7f0e Changed file properties
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-27 17:52:27 +00:00
Manolo Gouy
e0a798f115 Reflecting deleted files by new device hierarchy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-27 17:30:03 +00:00
Manolo Gouy
6fb99e7ec7 Reflecting change in device hierarchy.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-27 17:24:21 +00:00