Commit Graph

5339 Commits

Author SHA1 Message Date
Greg Ercolano
65aefad242 Expanded docs for Fl_Browser_ to define the supported
keyboard navigation behavior.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 21:24:18 +00:00
Greg Ercolano
5979afb5bf Adding an example to demonstrate how to create an Fl_Browser with icons on the items.
Based on an example I'd added to STR#1739 to demo someone's patch.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 18:40:53 +00:00
Greg Ercolano
4f24b4cc65 Default behavior of table /without/ ABI mods is to follow strict rule
where Tab and Shift-Tab navigate off the table widget.

This enables the Tab key to work properly with:

	o The test/table program; Tab can move focus to other input fields

	o With the foo_v2.cxx example code in STR#2862, Tab can navigate
	  to/from the Fl_Input field



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 09:25:27 +00:00
Greg Ercolano
ff6dc202ae Small doc fixes for new tab_cell_nav() methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9843 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 08:14:08 +00:00
Greg Ercolano
0ed7405c49 o Modified example to take advantage of new Fl_Table::tab_cell_nav() method
o Changed behavior of example to be more predictable
o Enter key can be used to toggle edit mode
o User can navigate table cells with arrow keys or tab/shift-tab without slipping into cell edit mode
o Fixed other issues with Alt, Shift, multicell selection..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 08:02:02 +00:00
Greg Ercolano
81c20e30a4 o Added tab_cell_nav() method to control Tab/Shift-Tab navigation of table cells.
o Added move_cursor(R,C,shiftflag). Needed allow Shift-Tab not to create a reverse selection.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 07:55:09 +00:00
Greg Ercolano
bdd227806f o Simplified example to take advantage of Fl_Table's existing features.
o Replaced hard coded row/col counts.
o Enabled arrow keyboard navigation (setting Fl::OPTION_ARROW_FOCUS)
o Fixed small bug in handle() that was calling Fl_Table::handle() instead of Fl_Table_Row::handle()
  that was preventing Fl_Table_Row's row selection from working..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-19 21:02:12 +00:00
Greg Ercolano
9c6014f2d5 Small fixes to keyboard navigation and 'current cell' coloring.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9839 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-19 10:34:03 +00:00
Greg Ercolano
684ad6910b Added Fl::option() setting to allow arrow keys to navigate table.
This example was written before 1.3, and was dependent on the 'old' FLTK behavior
where arrow keys could be used to navigate widget focus (in addition to Tab).

The 'new' FLTK behavior (1.3 and up) disables arrow key focus nav by default,
which is bad for this program, so we enable the old FLTK behavior with Fl::option().



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9838 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-18 20:00:04 +00:00
Greg Ercolano
fdca0bcde1 Small fix to column max width calculation: take into account width of header.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-17 06:06:52 +00:00
Greg Ercolano
6ab7797f63 Added examples for Fl::option() methods
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-17 05:24:58 +00:00
Albrecht Schlosser
f2dc7f90ff make schemes test window resizable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-10 15:14:03 +00:00
Greg Ercolano
4a2e8fa883 Added schemes test to unittests app, to check fltk schemes for artifacts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-08 20:37:00 +00:00
Ian MacArthur
97916ba84a Oops! Forgot to update the copyright date.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-06 22:17:44 +00:00
Ian MacArthur
8e789d61a3 This check-in brings in the simplified version of
Michael Baeuerle's patch to restore scandir like
operation on *nix like hosts that do not provide a
native scandir implementation, notably SunOS and
some others.

STR #2931 refers...

These changes are tested to have no effect on OSX,
Win32 or Linux systems, and indeed on any system that
has a working scandir implementation that configure
can detect.

Michael has released these changes to the fltk project,
and they are licensed under our usual conditons.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9832 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-06 22:15:01 +00:00
Albrecht Schlosser
3de79d1fd0 Update another, probably the last remaining old version number.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9831 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-01 00:48:00 +00:00
Albrecht Schlosser
61923a5bf8 Update even more version numbers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-01 00:40:53 +00:00
Albrecht Schlosser
618eb31b20 Update version number in src/Makefile (STR #2932).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-28 23:16:27 +00:00
Ian MacArthur
eaa67248a7 Typo: It turns out that when we stepped the version number up to
1.3.2, we didn't change the hard coded value in fluid's about_panel.

Though:
Why is this value hard-coded anyway? Should fluid not be picking
that up from Enumerations.h at build time, or something?



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9827 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-20 10:27:47 +00:00
Manolo Gouy
dbae4f68c7 Introduced new Fl_Native_File_Chooser option USE_FILTER_EXT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-19 15:25:17 +00:00
Manolo Gouy
3e7386137e Introduced new Fl_Native_File_Chooser option USE_FILTER_EXT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-19 15:19:58 +00:00
Greg Ercolano
8f8c52939e Fixes STR#2930:
Applying Chris's patch to fix d+d of text selections from Firefox/Thunderbird -> FLTK.
    Also applied Greg's fix for d+d of utf8 text in same use case.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-14 18:40:04 +00:00
Manolo Gouy
ef67cdc9d0 Added changes in Mac version of Fl_Native_File_Chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-12 14:33:48 +00:00
Manolo Gouy
9ba6dd4a59 Mac OS Fl_Native_File_Chooser: when saving with multiple filters, changing the file type changes
the output file extension in the dialog window.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-12 13:20:11 +00:00
Manolo Gouy
7f9e6ae829 Mac OS save file dialog: display extension of preset file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-11 12:11:30 +00:00
Manolo Gouy
42cc953b0b Mac OS text input: fixed processing of dead key followed by non-text key.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-09 13:54:58 +00:00
Manolo Gouy
914e7f9b09 Mac OS text input: removed the Fl::marked_text_length() function that's not necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-08 11:58:19 +00:00
Manolo Gouy
b22744aac0 Mac OS text input: a single FL_KEYBOARD event is now sent when processing dead keys.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-02 15:46:00 +00:00
Manolo Gouy
49f8a3cfc9 Fix STR#2928: alt+e on US keyboard not processed correctly as shortcut on Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-28 21:05:29 +00:00
Manolo Gouy
e7c0c31661 Improved German translation, thanks to Albrecht.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-28 16:14:48 +00:00
Manolo Gouy
834c714f26 Mac OS: added support for internationalization of the application menu.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-25 16:28:49 +00:00
Manolo Gouy
e9c3075c26 added directories
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-25 16:27:31 +00:00
Manolo Gouy
9dc0f6016c Fixed STR#2921 by adding 2 missing colons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-21 09:25:25 +00:00
Manolo Gouy
b5a9c5218a Mac OS: changed memory allocation style of static NSBitmapImageRep* rect_to_NSBitmapImageRep().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-20 16:54:23 +00:00
Manolo Gouy
161bdb8973 Mac OS: fixed a crash when printing window with OS 10.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19 14:07:34 +00:00
Manolo Gouy
511c14e47d Mac OS: fixed processing of system menu shortcuts that had been partly damaged in r.9799,
and fixed application menu with OS <= 10.3 that was duplicated.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19 09:49:33 +00:00
Manolo Gouy
b08f91e529 r.9800 was a bad move; going back.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18 17:12:39 +00:00
Manolo Gouy
a0ef82b7dc Simplification of the - (BOOL)[FLView performKeyEquivalent:(NSEvent*)theEvent] method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18 16:34:58 +00:00
Manolo Gouy
81da29ff12 Mac OS: reorganized the text input handling code. Added a detailed description of what the code does
for this rather complex issue in comments.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-17 17:40:53 +00:00
Manolo Gouy
e1ddb7952a Removed compilation warnings with old Mac OS SDKs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 15:25:39 +00:00
Ian MacArthur
f37c9a1b6f Doh! Forgot to bump the copyright year...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 12:50:29 +00:00
Ian MacArthur
f40aece7ee I just noticed that when 1.3.2 was released, the FL_PATCH_VERSION in configure.in was left at 1 rather than being bumped to 2.
Though the FL_PATCH_VERSION in Enumerations.H seems to be fine, I think.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9796 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 12:48:29 +00:00
Manolo Gouy
6e880cee6a Allow compilation with early Mac OS versions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 08:45:35 +00:00
Manolo Gouy
9e67096dbb Mac OS: added support for the text input feature introduced in OS 10.7 "Lion" where pressing and holding
some key opens a window with possible accented characters: added [NSView windowLevel] useful for
fullscreen windows.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-14 09:07:34 +00:00
Manolo Gouy
482c4a5e0a Mac OS: added support for the text input feature introduced in OS 10.7 "Lion" where pressing and holding
some key opens a window with possible accented characters. This feature is used by the Fl_Input_ and
Fl_Text_Editor widgets. User-defined text input widgets can optionally use this feature, but the default
behavior is to not use it. Fl_Secret_Input turns it off, for example.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-13 15:25:37 +00:00
Manolo Gouy
e042966ae7 About the fix for a problem apparent with the "cube" test program:
if the cube window is moved around rapidly, the GL pixels leak away from where they should be.
This problem no longer occurs with Mac OS 10.7 and above. The fix is thus made effective
only when OS < 10.7.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-10 08:57:19 +00:00
Manolo Gouy
57771e16fd Fix STR#2915 where subwindow stayed hidden after hide() and then show().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-08 21:06:29 +00:00
Manolo Gouy
31e49fcf12 Mac OS: divided the FLDelegate object in two objects, FLWindowDelegate and FLAppDelegate.
This might help mixing FLTK and other window-creating systems.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-07 15:56:14 +00:00
Greg Ercolano
369bde4474 Added Fl::run() to list of things not to call in child thread..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-04 08:15:12 +00:00
Manolo Gouy
0c6ad247dd Display the moving insertion point when doing drag&drop to an Fl_Text_Display widget from the widget itself.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-29 11:58:49 +00:00