Commit Graph

6626 Commits

Author SHA1 Message Date
Albrecht Schlosser
8a392f90de X11: More explicit warning when using rotated text w/o Xft.
The warning is issued to stderr only once (previously: every time rotated
text was used).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-25 11:07:06 +00:00
Albrecht Schlosser
c930e2c0c0 Fl_Tree documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 22:47:28 +00:00
Albrecht Schlosser
6def7a3924 Fix copyright year.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 14:03:40 +00:00
Albrecht Schlosser
b7fc62a589 Fix potential crash when using keyboard nav. on Fl_Tabs (STR #3333).
Also: more consistent use of 'const int nc = children()'. Added 'const'
qualifier for clarity only. This does not change the behavior.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 14:01:12 +00:00
Manolo Gouy
a4b36aaa12 Add the offscreen test app to the list of apps produced by the Xcode project.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11962 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-21 10:25:20 +00:00
Manolo Gouy
943cb5583e Change default Mac OS deployment target for apps built by the Xcode project for FLTK to 10.7.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11961 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-21 09:03:15 +00:00
Manolo Gouy
9c429ac63c Remove the 'suppressed' variable from cocoaMouseHandler(), a useless residue from ancient code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-21 06:10:06 +00:00
Albrecht Schlosser
ad65146bf9 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:19:25 +00:00
Albrecht Schlosser
0c317dbce8 Fix potential compiler warnings.
Backported from branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11954 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:17:29 +00:00
Albrecht Schlosser
5886d3706f Update fluid files and copyright.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 12:57:18 +00:00
Greg Ercolano
7dbb29524a Small size mods to prevent Fl_Help_View scrollbar and wordwrap,
while keeping Albrecht's recent mods.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11947 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 20:28:15 +00:00
Manolo Gouy
8b2c6cecfc Documentation: clarify and extend the description of Fl::paste().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 09:11:48 +00:00
Manolo Gouy
713cdbeb93 Documentation: better structure for the description of function Fl::paste()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11944 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 08:24:10 +00:00
Manolo Gouy
0c457fb89d Remove possible warnings when compiled with -Wundef
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-13 11:51:24 +00:00
Albrecht Schlosser
381dbf43f6 Fix native file chooser test program (STR #3326).
Fix compilation error under Windows with MS compiler (Visual Studio) only.
Also fix layout and resizing behavior.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11940 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-13 00:56:51 +00:00
Manolo Gouy
6796d05425 Fix typo in macro __LP64__
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11939 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 16:22:59 +00:00
Manolo Gouy
ee0a47973c Make clear that clipboard and drag-n-drop textual data are UTF-8 encoded.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 10:47:05 +00:00
Manolo Gouy
0e94558dda Remove comments that refer to non-cocoa Mac OS source code, which no longer exists.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-06 05:00:08 +00:00
Greg Ercolano
cad4115c23 Help text typo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11924 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:29:48 +00:00
Greg Ercolano
3317b4df30 Code indent consistency + doxygen \code indent fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11923 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:28:21 +00:00
Greg Ercolano
1dc11af70f Fixes STR#3200 issue with filter() on Win32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11920 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:46:59 +00:00
Greg Ercolano
86d8af009a Added "Filter" field to test filter strings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:41:14 +00:00
Manolo Gouy
a9195a3d94 MacOS platform: make configure-based build produce a bundled demo app in test.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11918 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-03 08:14:43 +00:00
Manolo Gouy
f84f5821b0 Mac OS platform: make the colbrowser demo load its data file from its bundle when started
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-03 07:45:31 +00:00
Manolo Gouy
c98f143ccb Mac OS platform: make the help demo load its data file when started after configure build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11916 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-03 07:35:59 +00:00
Albrecht Schlosser
c0fb27cc2f Fix compiler warning (STR #3081).
Note to devs: this was already fixed in branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-01 12:41:19 +00:00
Greg Ercolano
f2aabb5ef8 Fixes STR# 3325 - fixes scheme oriented focus box drawing problems when Fl_Choice height is <20
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-30 19:08:36 +00:00
Greg Ercolano
0cbc735d4f Limit line numbering to New>Code editor.
(was affecting Properties->Callback and New>Code>Comment editors)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-30 05:44:19 +00:00
Manolo Gouy
924f223fc4 Fix slight scaling error when pasting Enhanced metafile from clipboard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 15:18:44 +00:00
Manolo Gouy
172c8c8984 Remove implicit conversion between Fl_Image* and Fl_RGB_Image*
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 09:51:10 +00:00
Manolo Gouy
3b5bf9691d Use desktop scaling factor also when pasting an Enhanced Metafile
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 06:54:20 +00:00
Manolo Gouy
4ca9bc95f8 Fix Fl_Copy_Surface on Windows 10 when the display scaling factor is > 100%
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 15:17:02 +00:00
Manolo Gouy
57e48378d7 Add Doxygen comments for the Fl_RGB_Image::alloc_array and ::array public attributes.
Also, document what is the value of alloc_array after construction of an Fl_RGB_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 11:10:54 +00:00
Manolo Gouy
da759d41df Fix Fl_Window::decorated_h() and decorated_w() when display scaling factor > 100% under Windows 10.
Fl_Paged_Device::draw_decorated_window() is also repaired.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 06:41:24 +00:00
Albrecht Schlosser
c79ec99d05 Fix compiler warnings and simplify X11 screen_init().
This function sets the screen dimensions and tries to use Xrandr,
Xinerama, and basic X11 functions (in this order) to get the screen
sizes and resolutions (dpi).

This commit simplifies conditional compilation and fixes "unused variable"
compiler warnings under certain conditions as mentioned by Greg in
fltk.general, thread "Can not change font size in Kubuntu 16.04" on
Mon, 15 Aug 2016 00:25:32 -0700.

Also merged back small improvements of branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 16:38:10 +00:00
Albrecht Schlosser
b68501bddd Improve documentation, fix Fl_Window::icon(NULL).
This is now documented as legal to reset a window icon.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-20 17:08:27 +00:00
Greg Ercolano
2f6c01b590 Fixes STR#3318 for win32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 21:08:40 +00:00
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