Albrecht Schlosser
998a6be711
Fix typos in demo file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 19:15:09 +00:00
Albrecht Schlosser
3318fe3da4
Comments: doxygen docs and comments to emphasize platform dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 18:21:34 +00:00
Albrecht Schlosser
965be94165
Make demo programs display the correct Fl::scheme() in all cases.
...
Demo programs using Fl::args() and fl_get_system_colors() instead of
Fl_Window::show(argc,argv) didn't correctly initialize the Fl::scheme()
if the environment variable FLTK_SCHEME was set.
Calling Fl::scheme(Fl::scheme()) fixes this, because (currently) only
Fl::scheme(NULL) reads the environment variable FLTK_SCHEME.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 18:04:31 +00:00
Manolo Gouy
522fc17d31
Mac OS: correct window redraws after a window was created in iconized form.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 12:56:06 +00:00
Lauri Kasanen
d88bf15117
CHANGES: Fix the indentation in two 1.3.4 items
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 09:27:52 +00:00
Manolo Gouy
ec1d3ce3d9
Allow compilation with -std=c++11
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08 19:46:36 +00:00
Manolo Gouy
5057528963
Fix for STR#3131 : .xbm images were not previewed
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08 19:30:52 +00:00
Manolo Gouy
1dd0cdcee9
Allow compilation with -std=c++11 on Mac OS X
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08 06:48:19 +00:00
Manolo Gouy
4dce3a5ed5
Modified Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image *img,...) to accept worst case scenario
...
for memory usage: while printing, delete the printed image before completing the printed page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-07 18:09:09 +00:00
Manolo Gouy
ff316fa357
Fixed reading of .pbm image files: the black & white pixels were reversed,
...
and P4-formatted files of width a multiple of 8 were handled incorrectly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-07 05:52:38 +00:00
Albrecht Schlosser
6cf13f1308
[CMAKE] Remove -DUSE_X11 from fltk-config --c[xx]flags.
...
This flag is not needed and not used by fltk-config created by configure.
It is only used internally, and for this reason it is in config.h.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 18:18:15 +00:00
Albrecht Schlosser
c87147578d
[CMake] Add missing build libraries (STR #3011 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 17:34:23 +00:00
Albrecht Schlosser
1e249a9804
Remove unused variable 'bindir' from fltk-config and fix CMake local usage.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 17:03:54 +00:00
Albrecht Schlosser
8e19bc8c6d
CMake: fix a few typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 16:01:14 +00:00
Ian MacArthur
e402a64457
Add some doxygen descriptions for the (previously undocumented) Fl_Multi_Label struct, and make some minor related adjustments to the docs for Fl_Label and Fl_Labeltype.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-04 13:12:43 +00:00
Albrecht Schlosser
84f87addfc
Add method Fl_Widget::is_label_copied() as discussed in fltk.general.
...
Thread was: "How get X,Y,W,H for current clip region ?" on Feb 2-3, 2015.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-03 12:19:01 +00:00
Manolo Gouy
f3cd33bb91
Fixed crash when resizing a not yet shown() Fl_Gl_Window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-03 07:48:42 +00:00
Albrecht Schlosser
eebda637fa
Fix Linux/Unix potential program hang when dialog pops up while a menu is open (STR #3179 ).
...
This patch does not fix all issues though. The hang does not happen
anymore, but with some WM's the dialog can show up underneath the menu.
This needs more investigation, but this fixes the more important issue.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 17:55:22 +00:00
Manolo Gouy
62ed929ea5
Removed small memory leak.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 14:09:04 +00:00
Manolo Gouy
5017171db8
Replace gl_xxx() function names by new member functions of the Fl_X class to avoid
...
collisions with user-defined symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 13:08:51 +00:00
Manolo Gouy
f8ee30ef74
Restores the Doxygen doc of the Fl_PostScript_Graphics_Driver class that had been hidden by r.9980 by mistake.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 09:46:32 +00:00
Albrecht Schlosser
a02e892b01
Improve test/boxtype demo program to help boxtype debugging.
...
(1) Set window title to reflect current scheme.
(2) Add class BoxGroup to show a red frame around each box
and/or a white box background.
Both features are disabled though. Edit the source file to enable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 15:43:53 +00:00
Manolo Gouy
8887600f5f
Improved Mac OS X Fl_Gl_Window resizing: the GL scene was drawn twice at each resize operation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 15:08:31 +00:00
Albrecht Schlosser
22b4288c23
Fix potential buffer overflow (Windows: BEX64 error) and home dir (STR 3166).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 12:09:24 +00:00
Albrecht Schlosser
b7be893f38
Fix gleam boxtypes (STR #3183 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 01:22:09 +00:00
Albrecht Schlosser
a26f08bb61
Use Fl::is_scheme() where appropriate.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 16:56:12 +00:00
Albrecht Schlosser
01296095a6
Remove superfluous #include <string.h> - strcmp() is not used anymore.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 16:07:05 +00:00
Albrecht Schlosser
fdec4f65d6
Use Fl::is_scheme() in src/Fl_Tree_Prefs.cxx.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 15:56:56 +00:00
Albrecht Schlosser
c57ce6d909
Add missing gleam boxtype definitions from Dmitrij's oxy patch (STR #2675 ).
...
I don't know if there's a better source, but this does at least fill the gap.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 13:37:13 +00:00
Albrecht Schlosser
f5e9bf5087
Fix comments, trailing white space, and trailing commas in comments.
...
Note: there are no code changes in this commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 13:14:59 +00:00
Manolo Gouy
51edb7c9dd
Back to previous statement that FLTK does not use RTTI.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-28 17:10:43 +00:00
Manolo Gouy
64ffd414d6
Stop using dynamic_cast when performing text drag (Mac OS only).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-28 17:05:29 +00:00
Manolo Gouy
b8b89178da
Clarified that RTTI is used on the Mac OS X platform to perform text dragging better.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-27 17:49:17 +00:00
Manolo Gouy
00f66de2cd
Restore compilability with Mac OS X SDK 10.4u
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-24 17:37:58 +00:00
Manolo Gouy
ed547c6c63
Simpler coding of the half-pixel offset necessary when clipping to a rectangle.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-24 12:54:21 +00:00
Manolo Gouy
6f022c4d95
It is necessary to call fl_cgrectmake_cocoa() when building the clipping rectangle for a sub-window,
...
as for any clipping rectangle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-23 10:14:09 +00:00
Manolo Gouy
2d264fa8d5
A few comment changes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-22 17:45:09 +00:00
Manolo Gouy
1b00cc8e21
Make sure subwindows don't leak out of their parent windows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-22 12:32:11 +00:00
Manolo Gouy
bbd7d9cb59
Have Fl_Paged_Device::print_window() print window title bars with rounded angles under Yosemite also.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-21 12:09:50 +00:00
Manolo Gouy
18f5d4e309
Removed erroneous statement from Doxygen doc of class Fl_Copy_Surface.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-20 09:05:10 +00:00
Manolo Gouy
eb33a418d5
Avoid potential crash if Fl::focus() returns NULL.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 14:41:32 +00:00
Manolo Gouy
4e53b4f616
Documented how it is possible to change the default paper size for a printer on the Unix/Linux platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 14:16:18 +00:00
Manolo Gouy
07eaf2810a
Added version information to Doxygen comments.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 13:14:15 +00:00
Manolo Gouy
b079e52ada
Mention that class Fl_Gl_Window now uses cocoa rather than the deprecated AGL on the Mac OS X platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 13:00:53 +00:00
Manolo Gouy
c9782669c0
Ignore text input methods when the focus is to an Fl_Gl_Window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 12:27:37 +00:00
Manolo Gouy
365c1524c0
Fix possible crash when calling Fl_Window::resize() on a non-mapped sub-window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-16 10:28:36 +00:00
Manolo Gouy
7ad5091dbc
Corrected one comment and added one.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-16 07:24:11 +00:00
Manolo Gouy
af42e3cd5f
Fixed Fl_Window::resize() on Mac OS because program-generated resize did not work
...
with new true subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-15 21:57:27 +00:00
Manolo Gouy
790fc0ce02
Some indentation cleaning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-14 15:10:16 +00:00
Manolo Gouy
ae9ea6b51f
When CGBitmapContextCreate() is used with null 5th argument, it is necessary
...
to use CGBitmapContextGetBytesPerRow().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-14 14:21:01 +00:00