Commit Graph

6689 Commits

Author SHA1 Message Date
Greg Ercolano
6348651114 Appled STR #3318 patch: str3318_v1.patch. Unix only. (Need something similar for Windows)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 20:42:22 +00:00
Greg Ercolano
dd41bc9eb0 small addition for recent feature.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 20:20:48 +00:00
Greg Ercolano
974dc18f82 Solves STR #3319: enable line numbers in: Edit -> Show Source Code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 20:18:24 +00:00
Pierre Ossman
0eb99fa0b1 Fix buffer overflow in CR/LF conversion
An already present CR/LF combination causes us to jump two characters,
but we failed to update the length counter when doing this.

This also makes sure we handle the corner case of a CR as the last
character.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 13:30:26 +00:00
Albrecht Schlosser
633d7c2c5f Fix one compiler warning and one error on Windows 64-bit.
These warnings and errors were found using gcc 6.1 (64-bit) under Windows.

The error in examples/howto-add_fd-and-popen.cxx (-fpermissive) is due
to the wrong definition of Fl_FD_Handler under Windows 64-bit (FL_SOCKET!).

This should really be fixed in a better way in FLTK 1.4.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-11 12:37:30 +00:00
Albrecht Schlosser
ff214db67a Fix typos, separate local variables of image scaling algorithms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-09 15:19:46 +00:00
Albrecht Schlosser
6e688a52be [CMake] Restore ability to build shared libs under Linux etc.
Under Linux we link the shared image libs and forms libs with fltk_SHARED
(again), but this does currently not work with Visual Studio, hence we
need to differentiate in src/CMakeLists.txt when building shared libs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-08 14:17:22 +00:00
Albrecht Schlosser
ba56c33726 [CMake] Fix Windows dll build with Visual Studio generator.
Now you can set OPTION_BUILD_SHARED_LIBS:BOOL=ON to build FLTK dll's with
Visual Studio. Tested and works (Visual Studio 2010 + 2015).

Todo: dll names and target directories may need some changes.

Todo: Shared libraries under Linux with CMake don't work yet:
/usr/bin/ld: ../lib/libfltk.a(Fl.cxx.o): relocation R_X86_64_32S against
  `.bss' can not be used when making a shared object; recompile with -fPIC



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-08 12:25:08 +00:00
Manolo Gouy
9b9fc92768 Fix CMake building under Apple platform that used to set HAVE_GL_GLU_H to 0
On the Mac OS platform, file glu.h is not in a directory called GL.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-05 17:07:15 +00:00
Albrecht Schlosser
2f58a0ce84 Documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 12:48:59 +00:00
Albrecht Schlosser
a8956db71b More configure.in quoting fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 12:22:05 +00:00
Albrecht Schlosser
0ee5f95215 Fix quoting in configure.in.
There were two real errors (AC_MSG_ERROR, fixed in previous commit) and
lots of less important missing quotes.

I also reordered some statements to make configure.in better comparable
with branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 08:28:50 +00:00
Greg Ercolano
88f427f8fc Fixes problem with AC_MSG_ERROR() macro which was causing this error
when e.g. the X11 libs weren't found:

    configure: line 410: test: aborting.: integer expression expected
    configure: error: Configure could not find required X11 libraries

For info on correct use of AC_MSG_ERROR(), see:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Printing-Messages.html




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 04:57:18 +00:00
Albrecht Schlosser
22a5ef19cd Remove copyright markers from abi-version.* (STR #3161).
See STR comments #10 - #14.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 18:50:07 +00:00
Albrecht Schlosser
f2ff3eb0e0 Fix more Windows 64-bit g++ compiler warnings.
Fixed warnings:

  42 cast to pointer from integer of different size [-Wint-to-pointer-cast]


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 10:51:00 +00:00
Albrecht Schlosser
a51a940890 Fix compiler warnings (gcc 6.1).
Some of these warnings were benign (code formatting), but one of them
showed a potential bug (zero divide in test/fraciewer.cxx).

Fixed warnings:

 2 suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
 1 this 'while' clause does not guard... [-Wmisleading-indentation]
 1 this 'for' clause does not guard... [-Wmisleading-indentation]
 1 this 'else' clause does not guard... [-Wmisleading-indentation]


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 09:23:44 +00:00
Albrecht Schlosser
9721373219 Doc changes: set fl_font before fl_measure() (STR #3243)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-24 08:53:08 +00:00
Greg Ercolano
60ac8a8eba Fixes STR #3270; when an image is used as a link,
this mod synchronizes the link's hot spot with the image.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-23 04:25:40 +00:00
Greg Ercolano
f22cd53795 Fixes to fl_choice() docs, added screenshots.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-22 02:05:44 +00:00
Greg Ercolano
2bb2192dd3 Solves STR#3294; added methods to let user set the userdeicon,
and removed the performance degrading automatic deicon creation.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-21 00:35:06 +00:00
Greg Ercolano
d8676e6f4c More properties.. :/
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11838 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 18:38:32 +00:00
Greg Ercolano
d5a64877cf Property mods for new external code editor files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 18:34:13 +00:00
Greg Ercolano
a8e65c0a45 Improved fluid-org.png diagram.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 18:02:52 +00:00
Greg Ercolano
09158e192a Added updated settings dialog screenshots to the fluid docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 15:32:10 +00:00
Greg Ercolano
91cd90be3b Updating CHANGES file for fluid external editor support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11832 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 13:22:18 +00:00
Greg Ercolano
bf8c44098e These files weren't added in r11816, adding now..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-18 14:23:50 +00:00
Greg Ercolano
0d189a0814 Adds external editor capability to fluid for all platforms.
Solves STR#3213. [CORRECTED]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-17 19:51:54 +00:00
Albrecht Schlosser
fa2bb6514b Improve drawing of rounded box (STR #2943).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-15 22:10:23 +00:00
Albrecht Schlosser
97bb88960e Fix unnecessary case-sensitive comparison (STR #2899).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11813 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-15 20:01:08 +00:00
Albrecht Schlosser
6e503e90a0 Allow widget callback to be NULL (STR #2835).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-15 19:23:16 +00:00
Albrecht Schlosser
f40cb28308 Fix uninitialized variable warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-15 10:24:35 +00:00
Greg Ercolano
1c761bedc3 Solves STR# 3305 as ABI feature 1.3.4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-14 18:48:43 +00:00
Greg Ercolano
7d3218f7ea Fix problem w/unittest's schemes -> tab3 text editors
not showing up correctly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-14 18:12:46 +00:00
Greg Ercolano
e45dfc2b20 Small code simplification as suggested in comment #15 of STR#2828
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-14 01:12:21 +00:00
Greg Ercolano
5a340a2e5e Solves STR#3306.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-13 23:19:12 +00:00
Albrecht Schlosser
f41ef4e158 Clarification and better documentation of ABI version configuration.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-09 18:43:31 +00:00
Albrecht Schlosser
189591d4b6 Documentation fixes and clarifications.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-09 17:06:46 +00:00
Greg Ercolano
a0086f7075 Document savefile() return value, see also references to/from outputfile()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-25 00:54:24 +00:00
Greg Ercolano
e964f33514 Small doc improvements/elaborations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-23 20:17:11 +00:00
Manolo Gouy
abb580f294 Add dots-per-inch info to the screen data displayed by the fullscreen demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 08:46:02 +00:00
Greg Ercolano
88105f2d72 Brought in Manolo's doc mods (r11785).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 07:49:34 +00:00
Greg Ercolano
e756dd8dab Changed Fl_Sys_Menu_Bar::update() from protected -> public
as per STR #3317 and manolo's commit #11785 to branch-1.3-porting/



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 07:43:16 +00:00
Manolo Gouy
1680285406 Output the value of Fl_Gl_Window::pixels_per_unit() as a float.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 07:18:30 +00:00
Manolo Gouy
dcf8bc2afa Fix for STR#3316: use same value for the size argument of glGenLists() and glDeleteLists()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 06:55:40 +00:00
Manolo Gouy
1919691343 Use Xrandr to get the true DPI of the display under the X11 platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 05:58:30 +00:00
Manolo Gouy
6b95819984 Make Fl_Gl_Window::pixels_per_unit() return a float (rather than int) value.
This is compatible with future scaling factors applicable to the GUI.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 05:44:14 +00:00
Greg Ercolano
e09806d249 Some small Fl_Sys_Menu_Bar related doc mods as per STR#3317.
WIP -- more to come; just checking in what I have for now..

	1) rank -> index
	2) Added docs for index \return values for some methods 
	3) Some clarification in the internal docs about rank vs. index
	4) Enabled Fl_Menu_Item's enum flags to be able to be links (added @file
	   to Fl_Menu_Item.H) so references to e.g. "::FL_MENU_TOGGLE" will show
	   up as links in doxygen docs.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-18 00:32:18 +00:00
Albrecht Schlosser
879d03fab4 [CMake] Improve sound support detection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11780 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-14 10:57:56 +00:00
Manolo Gouy
c4d004d5b3 THE best way to test for availability of dlsym().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-14 05:17:00 +00:00
Albrecht Schlosser
8d67e81b7d [CMake] Add missing end of file comment.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-13 22:29:17 +00:00