Commit Graph

5976 Commits

Author SHA1 Message Date
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
Lauri Kasanen
6e72a21271 Move the X11 UTF check above in utf8Input to avoid an unused function warning
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:48:31 +00:00
Lauri Kasanen
bbc8782b6a Move Xutf8.h to src/, update includes, refresh makedepends
This is an internal header.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:41:58 +00:00
Albrecht Schlosser
0ddd4e4717 Update .gitignore file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10247 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 00:22:55 +00:00
Lauri Kasanen
95ba2900f3 Use the -fvisibility checks properly; needed to move ac_prog_cc and _cxx up in the file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 19:44:27 +00:00
Lauri Kasanen
7944cc9a57 Revert 10243, it broke the build for others.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 17:26:28 +00:00
Pierre Ossman
936e4ca511 Only link with fontconfig if Xft is used
This matches what the autoconf stuff does. It is also crucial
on OS X where linking against fontconfig can fool the system into
believing that FLTK requires X11, prompting the installation of
XQuartz.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 11:54:35 +00:00
Lauri Kasanen
1af2035e91 Check for compiler support of -fvisibility and -fvisibility-inlines-hidden
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 11:33:36 +00:00
Albrecht Schlosser
ee118334be Remove unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 10:28:50 +00:00
Lauri Kasanen
c4b6455d32 Newer linkers are more strict about libs coming after objects.
This is also consistent with the Mac and Windows platforms in the same file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 14:24:19 +00:00
Lauri Kasanen
376cad54b1 Apply static-fixes.patch by skunk. STR #2988
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 14:03:52 +00:00
Lauri Kasanen
c4b3a2d5d3 When typing a path in Fl_File_Chooser, the enter key should select the file. STR #2910
This was originally changed in 1.1.8 by matt (r6092). The commit was about fixing
multiple selection and had no mention of why the enter key behavior was changed
not to work. STR #1913

Multiple selection still works.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 13:51:11 +00:00
Lauri Kasanen
5613941a28 Include Xft results in fltk-config CFLAGS. STR #2893
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10238 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 13:25:55 +00:00
Lauri Kasanen
9d96c7a26c X11: Use libX11 UTF-8 support when available.
This saves quite a bit of library size. STR #3107


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:34:07 +00:00
Lauri Kasanen
64dd5df141 Enable symbol visibility on Linux, bringing a shared libfltk on par with Windows.
Also drops the size of libfltk.so nicely.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10236 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:29:48 +00:00
Lauri Kasanen
fc71f3d1ca Ignore test/icon executable
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:23:47 +00:00
Lauri Kasanen
6bfd46312f Sprinkle some more const on internal arrays. STR #3110
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:18:32 +00:00
Lauri Kasanen
c706d3c101 Constify the pointers in some XPM images. STR #3108
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:16:40 +00:00
Lauri Kasanen
d9505e1b24 Mark a few symbols static. This is the bulk from STR #3111.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:13:47 +00:00
Lauri Kasanen
88b5e53289 Constify an internal table in Fl_Help_View. STR #3109
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:10:33 +00:00
Lauri Kasanen
3113727cc9 Use symbolic and sectioned builds if supported by the toolchain.
These help both shared lib size, as well as app size when statically linking. STR #3097


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:08:02 +00:00
Lauri Kasanen
3a5f3f1820 Use system vsnprintf when possible, saves 2kb lib size.
Currently with Linux guards, as the function seems to be broken in Windows.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:01:46 +00:00
Lauri Kasanen
f44d3fe01c Fix two typos in comments (test commit)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 08:14:19 +00:00
Albrecht Schlosser
82f157481d Fix a comment, remove trailing white space.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-19 12:37:13 +00:00
Albrecht Schlosser
34a641f1ef Fix a typo (cut'n'paste error).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-19 12:36:12 +00:00
Greg Ercolano
cd3ca84e71 Fixes STR #3113 memory overrun
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-03 16:40:58 +00:00
Greg Ercolano
fbfac0f6cc 'make clean' should clean examples too.
'make' however should /not/ build examples.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-01 20:56:09 +00:00
Greg Ercolano
d785f5b4e8 Removed unused variable last_y to prevent this warning under mingw:
Compiling Fl_Text_Display.cxx...
    Fl_Text_Display.cxx: In member function 'void Fl_Text_Display::draw_line_numbers(bool)':
    Fl_Text_Display.cxx:2875:9: warning: variable 'last_y' set but not used [-Wunused-but-set-variable]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-21 18:07:09 +00:00
Greg Ercolano
018f4ee978 Removed unused code strcnt() to prevent warnings w/mingw
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-21 18:05:25 +00:00
Greg Ercolano
7eb0c224df * Small doxygen doc improvements + elaborations
* Small name change for new typedef.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-16 18:51:56 +00:00
Greg Ercolano
afcd967fd8 * Modified the ScrollInfo structure for more modularity,
which helps doxygen docs be clear.

* Changed loop in recalc_scrollbars() to loop thru /all/ children
  and skip over scrollbars, instead of assuming fix_scrollbar_order()
  has been called.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-16 03:32:14 +00:00
Greg Ercolano
7382173223 Solves STR #1895 by making the recalc method and structure
protected (accessible to derived widgets).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-15 15:23:33 +00:00
Manolo Gouy
677e13f2bb Fix for STR #3106: a tiled image could fail if the size of the tiled surface exceeded the size of the main screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-10 12:28:00 +00:00
Greg Ercolano
b18dd182d0 Fixes STR #3103; remove Fl_Sys_Menu_Bar.cxx from all VS ide files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-02 23:34:28 +00:00
Greg Ercolano
574c174dd7 Fix for STR #3101 to handle e.g. "foo.f[ld]" filters properly.
(Was only counting ',' style filters, not character oriented filters)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-01 01:43:33 +00:00