Commit Graph

4569 Commits

Author SHA1 Message Date
Ian MacArthur 485bca3db9 Recent changes to the include files meant that numericsort would no longer compile on WIN32 (at least under MSYS/mingw.)
This change reintroduces the ref to filename.H, but ONLY for WIN32 compiles. This seems to allow numericsort to build once again, though I am unsure that this is the correct fix!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 13:45:26 +00:00
Ian MacArthur 00272583b6 Had to move the variant definition of fl_filename_relative() with 4 params inside the ifdef __cplusplus block because on WIN32 (at least with MSYS/mingw) this header is read by a plain-C version of scandir.c, that errors out when it encounters the multiple incompatible definitions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 13:35:43 +00:00
Matthias Melcher 150fc6e7f7 Used Fluid to generate Fluid files. Fixed two naming issues for the new Fl_Int_Input type, generated by Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 12:21:24 +00:00
yuri a35defedd5 change __linux__ to USE_X11 fix STR #2437
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 09:39:32 +00:00
Manolo Gouy d9a2ac2f0a Small doc correction.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 08:20:44 +00:00
Manolo Gouy 88ba28f792 Small doc correction.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8069 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 08:15:12 +00:00
Greg Ercolano 4a883a2e81 Added new tab_nav() control for Fl_Multiline_Input tab navigation behavior.
New default behavior is what most users expect; hitting Tab navigates over the widget.
Fl_Input modified to support the new flag.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 07:48:59 +00:00
Greg Ercolano df6de286e7 Removed emacs shortcuts from Fl_Input,
conformed Fl_Input keystrokes to native environment (much research went into this, citations included).
Tested editing functions on all three platforms. Doxygen docs updated.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 06:42:38 +00:00
Matthias Melcher 31f6505cb3 Fixed fl_filename_relative access to const string.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 23:52:59 +00:00
Matthias Melcher 740d7e211f Added function to free the list that was created with fl_filename_list.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 23:24:06 +00:00
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 aa7d154646 Corrected typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8058 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 08:30:23 +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 d4fa5481d6 Updated to compile the 3 objective-c++ files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-17 13:02:14 +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
Albrecht Schlosser e1887bf09c Fixed documentation errors (typos and formatting) in chapter
chapter "Advanced FLTK" (Multithreading) and added a short
explanation to sending and retrieving messages.


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