Commit Graph

5760 Commits

Author SHA1 Message Date
Lauri Kasanen
2ac54f6aca Fix Fl_Spinner never reporting changed().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-09 16:52:18 +00:00
Manolo Gouy
aecb3ac594 Fix for STR #3128
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-09 11:02:33 +00:00
Albrecht Schlosser
dd37bc2c12 Update dependencies
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 23:54:11 +00:00
Albrecht Schlosser
f459ecd82f Fix documentaion typos and small errors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 23:51:20 +00:00
Manolo Gouy
2af3261d51 Fixed typo ./FL/Fl_Plugin.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:55:46 +00:00
Manolo Gouy
9e8eba7818 Replaced Xutf8.H by Xutf8.h
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:48:53 +00:00
Manolo Gouy
c3d04a6c42 Added dependencies of Fl_PostScript.o
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:45:58 +00:00
Manolo Gouy
4f2790d793 Add Fl_PostScript.cxx to list of files compiled in libfltk for VisualC projects.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:16:58 +00:00
Manolo Gouy
11f55e80b3 Put Fl_PostScript.cxx in list of files compiled in libfltk rather than including it in Fl_Printer.cxx.
VisualC project files still need to be changed accordingly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:03:52 +00:00
Manolo Gouy
c7f0ee3bd0 Fix for STR #3130 where PostScript printing may fail when program modifies LC_NUMERIC of its locale.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 12:35:23 +00:00
Lauri Kasanen
3ce67eb594 Expose the INACTIVE flag in Fl_Widget similarly to other flags. STR #3122
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 08:55:49 +00:00
Manolo Gouy
3e0bb410f8 Handle deprecation with Mac OS 10.9 of SetFrontProcess(), GetCurrentProcess(), GetFrontProcess(), SameProcess().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-07 20:30:46 +00:00
Manolo Gouy
2031e30069 Added file src/Fl_sleep.cxx to list of files compiled in target fltk.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-07 16:52:44 +00:00
Albrecht Schlosser
267ba82aa5 Fix documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 23:42:18 +00:00
Albrecht Schlosser
23b6a36ff1 Remove doxygen note about changed interface in fltk 2.0
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 21:22:06 +00:00
Albrecht Schlosser
77d72b9ef8 Escape '%' in doxygen comment where needed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 20:57:30 +00:00
Greg Ercolano
1fefa174c9 Adding some parameter docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 20:27:39 +00:00
Albrecht Schlosser
6928a416e4 Enhance documentation of Fl_Menu_Item::value().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 19:03:43 +00:00
Lauri Kasanen
031a30a4b5 Bilinear div-by-zero fix
Probably temporary if this will be replaced with Roman's int version, but
better have it anyway.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 13:22:28 +00:00
Lauri Kasanen
8bc524ef27 Remove trailing comma in the last value of an enum, some compilers dislike it
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 09:31:53 +00:00
Lauri Kasanen
d3a8566cab Move the ewmh_supported check into fl_fix_focus to avoid a double show() on new WMs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 16:42:00 +00:00
Lauri Kasanen
523c657f2e Robustness fix for the first window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 13:14:16 +00:00
Lauri Kasanen
7ebbe0baf4 Add a two-window focus test
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:45:49 +00:00
Lauri Kasanen
005bfa4294 Fix cross-window focus throwing on X11, similar to the Mac case. STR #3129
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:33:35 +00:00
Lauri Kasanen
d1d203ca57 Add support for dragging to reorder in Fl_Tree, STR #2828 (I)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:04:28 +00:00
Albrecht Schlosser
d67f2e8e3e Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 09:31:37 +00:00
Albrecht Schlosser
4cc2959be5 Fix a typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 09:07:50 +00:00
Greg Ercolano
ce1ab7e1ce Fixes to how new move() operations handle the concept
of 'above' and 'below' when referring to items instead
of index positions.

Small offsets needed due to how the arrays are scrolled
after a move operation.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 02:59:00 +00:00
Greg Ercolano
107fc50e48 Solves STR #3127.
Added to assist cand for his patch to solve RFE STR #2828 option (I).

o Add move() methods to Fl_Tree_Item.
o Add deparent()/reparent() methods
o Supporting methods added to Fl_Tree_Item_Array, and enhancement
  to update_prev_next() to allow -1 option to create an orphan item

Added to Fl_Tree_Item:

    * Fl_Tree_Item* deparent(int pos)
    * int reparent(Fl_Tree_Item *newchild, int pos)

    * int move(int to, int from)
    * int move(Fl_Tree_Item *item, int op, int pos)
    * int move_above(Fl_Tree_Item *item)
    * int move_below(Fl_Tree_Item *item)
    * int move_into(Fl_Tree_Item *item, int pos)

Added to Fl_Tree_Item_Array:

    * int move(int to, int from)
    * int deparent(int pos)
    * int reparent(Fl_Tree_Item *item, Fl_Tree_Item* newparent, int pos)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-04 18:56:52 +00:00
Lauri Kasanen
0ed1e8e0f0 Small fix in the bilinear formula
After consulting Gimp again, the formula was missing a final divide. This
takes care of the 1:1 discrepancy.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-04 07:58:07 +00:00
Lauri Kasanen
e521c16ab3 Tweak the scaling() comment
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 19:24:42 +00:00
Lauri Kasanen
cce4cece01 Add bilinear scaling support. STRs #2869 and #3062.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 11:00:56 +00:00
Albrecht Schlosser
105c2b466a Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:24:11 +00:00
Albrecht Schlosser
3dbc495127 Remove 'register storage class deprecated' compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:10:37 +00:00
Albrecht Schlosser
3f98f88156 Remove unused code and trailing white space.
The unused function was commented out about 6 months ago, see
svn r 10123. No changes other than comments and white space.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:07:33 +00:00
Manolo Gouy
8a675919fd Removed file FL/Xutf8.h that moved to src/ and is X11-specific.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-02 09:28:36 +00:00
Manolo Gouy
1a7fcf0757 Fixed header/footer lines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-02 09:15:08 +00:00
Manolo Gouy
535fc72035 Fixed header/footer lines
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-02 09:12:32 +00:00
Lauri Kasanen
795342693d Don't grab navkeys with modifiers, as the app may want them. STR #3104
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-29 12:10:11 +00:00
Lauri Kasanen
9905a47ffb Cache created X11 cursors until program exit.
Each set_cursor was taking 0.5ms, due to libXcursor having to open, parse, and close
cursor theme files. Other toolkits likewise cache created cursors.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-29 11:23:44 +00:00
Ian MacArthur
0c90a7b7f4 Remove macros that (re)define hypot from fl_utf8.h,
when building on a WIN32 host.

I am not sure why these were here, but on one of my
(very) non-standard configurations this was causing
the build to fail.

After some discussion on fltk.dev, we decided to 
removed them since no one thinks they are needed
(please tell me if it turns out that the are!)

Note: that discussion also considered whether the
other (re)defines in that file, e.g. for stricmp
and strnicmp and others were useful; I have left
these in place for now, though I beleieve they are
not needed nor useful.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-28 09:34:07 +00:00
Ian MacArthur
9c583c5bbc Add Manolo's new shapedwindow demo to the Makefile
for the examples folder.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-28 09:13:27 +00:00
Lauri Kasanen
ca904c01ad Const the remaining fl_gray_ramp references.
These were nastily done by extern, and so unnoticable in a non-LTO build.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-28 08:26:41 +00:00
Manolo Gouy
9a4ae935a1 Account for new Fl_Shaped_Window.cxx file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-27 13:16:28 +00:00
Manolo Gouy
8997131377 Added the Fl_Shaped_Window class to support windows of arbitrary shapes.
The new class is fully Doxygen-documented.
Added an example program (example/shapedwindow.cxx) that exercises the new class.
Modified all IDE-supporting files accordingly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-27 11:55:57 +00:00
Ian MacArthur
22beee52af Try to fix building on OSX (and I assume WIN32) following
some changes introduced in r10248 that were causing issues
with including X11.h on non-X11 platforms.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-24 21:23:34 +00:00
Lauri Kasanen
3b1e7f31b9 Const the gray ramps
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:27:30 +00:00
Lauri Kasanen
b42e32f70d Const the shadow, embossed, and engraved color tables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:22:17 +00:00
Lauri Kasanen
1c82d8e14b Const two tables in Fl_PostScript.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:18:51 +00:00
Lauri Kasanen
02ab0c4a2c Use a larger buffer in fl_shortcut_label. Found by clang.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:10:50 +00:00