Commit Graph

6602 Commits

Author SHA1 Message Date
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
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