Commit Graph

5361 Commits

Author SHA1 Message Date
Manolo Gouy
2c5b268859 Fix for STR #2947: A couple of minor glitches in the 1.3.2 docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-09 15:10:25 +00:00
Greg Ercolano
6bcd9390f8 Solves STR #2939; adding when() support to Fl_Tabs.
Also added a general Fl_Tabs code example to the docs.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-08 20:18:40 +00:00
Greg Ercolano
d5404dea25 Fix for STR #2944 [2]: Fix Apple-specifc nested window problem for Fl_Gl_Window's.
Added new method Fl_Widget::window_offset(x,y)
		       to access the top-level window offset of the current widget.

		       Open to alternative names for the new method.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-08 18:24:17 +00:00
Greg Ercolano
2a5d5aab30 Fix STR# 2944 [1]: When an app uses overlays and gl_draw(),
gl_draw() would mess up the raster position
		   affecting the Mac overlay emulation in swapbuffer code.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-08 16:49:55 +00:00
Greg Ercolano
c3a84e475f Small comment mods regarding Fl_mac.cxx -> Fl_cocoa.mm
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-06 16:35:05 +00:00
Greg Ercolano
a1672828b5 Removing Fl_mac.cxx -- this code is no longer used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-06 16:31:35 +00:00
Manolo Gouy
225da118c3 Added back the </dict> erroneously removed at r.9861
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-06 16:15:17 +00:00
Manolo Gouy
e44018c1d2 Added the NSHighResolutionCapable item to fltk-config --post for fltk apps to be high-resolution ready.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-05 15:28:43 +00:00
Manolo Gouy
da07dcd6be Added the NSHighResolutionCapable item to all .plist files for fltk apps to be high-resolution ready.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9860 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-05 15:09:50 +00:00
Manolo Gouy
3c47de0b28 Added the NSHighResolutionCapable item to all .plist files for fltk apps to be high-resolution ready.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-05 14:53:26 +00:00
Manolo Gouy
a5ee07c420 File config.h is included with #include <config.h> in scandir.c as everywhere else.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-05 14:14:08 +00:00
Greg Ercolano
5e2bdbdeef Followup: small color docs mod
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-02 16:51:56 +00:00
Greg Ercolano
ba0c61b961 Small color documentation clarification/improvements:
o Added some references to the FLTK colormap diagram in obvious places (Fl_Color docs)
    o Added info regarding the 'reserved' colors
    o Added quotes to clarify RGBI description: "RGB" and "I"



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9856 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-02 16:47:57 +00:00
Greg Ercolano
bbbde512e8 Code readability -- No logic was changed.
o Adjusted /*FALLTHROUGH*/ comments for clarity
    o Added /* NOTREACHED */ comment for clarity
    o Brace cosmetics



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29 18:26:36 +00:00
Greg Ercolano
57df8e1b1a Document Fl_Tabs::value()'s integer return value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29 04:36:51 +00:00
Greg Ercolano
ee0af8c6a7 Documenting the public methods Fl_Tabs::push()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29 03:37:04 +00:00
Greg Ercolano
85c1464715 Added some extra @@ tests for boundary conditions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 19:21:22 +00:00
Greg Ercolano
fa75731c94 Fix for fl_measure() missing drawsymbol flag
Added comments
Added 3 line test.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 19:16:48 +00:00
Greg Ercolano
ceb12d51ab Added unittest for checking symbol rendering and fl_measure() with symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 18:32:41 +00:00
Greg Ercolano
2aefc1f60c Added docs for undocumented public 'which()' method.
Added a \todo marker for undocumented public 'push()' method.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-26 01:55:01 +00:00
Greg Ercolano
b2a54c3679 o Fixed tab navigation problem with this demo
o Prevent Fl_Output from erasing if value unchanged (allows text selection
  and keyboard nav of the Fl_Output widget..)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-25 23:20:29 +00:00
Greg Ercolano
449f36b6f8 Added Fl_Choice to browser test program to let one
change the browser type(), allowing testing of the
different browser modes..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 21:32:34 +00:00
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