Manolo Gouy
0a26b0dd68
Some code simplification for class Fl_Sys_Menu_Bar
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-05 16:05:35 +00:00
Manolo Gouy
82312ed61b
Set svn properties.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-04 17:41:09 +00:00
Manolo Gouy
8612fea277
Make Fl_Sys_Menu_Bar class usable in static initializers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-04 17:39:19 +00:00
Manolo Gouy
6586b77975
Restore possibility to run fl_open_display() within a static initializer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-03 15:46:12 +00:00
Manolo Gouy
f609261697
Remove Fl_Sys_Menu_Bar.mm from list of input files
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-03 14:34:47 +00:00
Manolo Gouy
ad7628afed
Set proper properties
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12576 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-02 19:17:31 +00:00
Manolo Gouy
34dd1b15fb
Converted class Fl_Sys_Menu_Bar to the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-02 16:20:30 +00:00
Manolo Gouy
a8fe10cf88
MacOS: use rounded bottom corners when drawing windows
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-30 16:14:13 +00:00
Manolo Gouy
08f72d626c
Fl_Widget_Surface::draw(Fl_Widget *widget,...): clip drawing to the window bounds when widget is a window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-30 13:55:19 +00:00
Manolo Gouy
c354268f44
Top-level menus should not be inactivated. Their items can be.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-27 20:57:52 +00:00
Greg Ercolano
0fb2a55fc8
Fixes issued raised in STR #3422 ; Fl_Text_Display constructor order issues;
...
organize member initialization first, method calls last.
Also:
Reorg'ed member initialization to match order in .H
to detect missing member inits.
Noticed member mModifyingTabDistance is unused.
Tagged with XXX: but left in place, since it's
a protected member, and might be utilized by user code.
We should probably remove this member.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-23 19:34:33 +00:00
Manolo Gouy
02d58597e9
MacOS native file chooser: STR#3406 continued - restore broken filename preset in save dialog.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12569 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-22 12:42:42 +00:00
Greg Ercolano
310c545179
Fixes STR#3428: allows command line to specify alternate html file on Mac platform
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-19 01:18:16 +00:00
Albrecht Schlosser
a877466a21
Fix illegal memory access after free when closing fluid (STR #3427 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-18 18:13:06 +00:00
Albrecht Schlosser
16db9a0c82
Fix crash when closing fluid with Fl_Table (STR #3427 ).
...
Many thanks to Chris for the patch!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-18 17:55:47 +00:00
Albrecht Schlosser
853a716610
Replace remaining calls of getenv() with fl_getenv().
...
Note: don't use fl_getenv() in Fl_System_Driver and derived classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-17 17:25:33 +00:00
Manolo Gouy
f300e00f79
Proper return value from test window::handle() when the event is not processed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-17 06:52:27 +00:00
Manolo Gouy
15750ea378
MacOS: Fix STR#3406 where native file chooser does not show preset file
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-13 21:41:33 +00:00
Manolo Gouy
00eef649ca
MacOS: complete commit at r.12559 that contained a typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-13 14:47:49 +00:00
Manolo Gouy
b171a28de4
MacOS: make -[FLWindowDelegate windowShouldClose:] more robust by testing for NULL pointer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-13 14:43:58 +00:00
Albrecht Schlosser
f3896460d6
Replace chdir() with new wrapper fl_chdir().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-12 18:00:45 +00:00
Manolo Gouy
cfdc38f760
MacOS: improve drawing of rounded corners of window titlebar
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-12 08:00:21 +00:00
Albrecht Schlosser
f4f4030cc2
Refactor Fl_WinAPI_System_Driver string conversion and more.
...
Remove duplicated code by using local (static) string conversion functions.
This makes the code better maintainable and removes redundancies.
Rename some variables (particularly one-letter names) to more useful
names, minor code reformatting to be more compatible with the CMP.
To do: check for potential memory leaks, maybe free temporary buffers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-11 21:23:15 +00:00
Manolo Gouy
10143bc50a
Test commit
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-11 10:54:52 +00:00
Manolo Gouy
9646c04b54
Test commit
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-11 09:46:58 +00:00
Manolo Gouy
6a7008684f
Test commit
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-11 09:45:16 +00:00
Manolo Gouy
5ac0d892c1
Test commit
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-11 09:44:09 +00:00
Manolo Gouy
ee929944ce
Minor reformatting
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-11 09:04:26 +00:00
Manolo Gouy
7356d4ef21
Make a comment more detailed
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-11 09:01:51 +00:00
Albrecht Schlosser
4a088d28f5
Add missing platform wrapper fl_chdir() for chdir().
...
Tested under Windows and Linux, but not yet used in library code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-10 12:56:00 +00:00
Manolo Gouy
ff1e508e5d
MacOS: improve drawing of the rounded corners of window titlebars.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-09 15:27:26 +00:00
Manolo Gouy
9aaf6df90c
MacOS: fix capture of window titlebar under MacOS 10.13 "High Sierra"
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-07 17:01:20 +00:00
Albrecht Schlosser
660f4160af
Fix compiler warning [-Wunused-result].
...
Full warning:
ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’,
declared with attribute warn_unused_result [-Wunused-result]
Note: added "FIXME ...": current code ignores file read error.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-05 20:43:44 +00:00
Albrecht Schlosser
c348189008
Fix doxygen docs: missing excludes and CMake paths.
...
This commit fixes two issues:
Doxygen build with CMake needs paths relative to CMake source dir.
Missing excluded files taken from STR #3320 , file #42 (by Manolo):
http://www.fltk.org/strfiles/3320/scaling_rect_r12544.patch
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-05 19:56:41 +00:00
Manolo Gouy
b74d0b8a94
Fix drawing of tab characters when display is rescaled.
...
The problem is announced in comment #99 of
http://www.fltk.org/str.php?L3320
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-05 15:47:17 +00:00
Greg Ercolano
f47c0e9e51
fl_text_extents(): added example, included reference to fl_font() and fl_measure().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-05 04:18:44 +00:00
Greg Ercolano
a20d472faf
Updated scrollbar size's instructions, increased font size.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-04 06:11:45 +00:00
Manolo Gouy
8f52feac84
Remove 1 deprecation warning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-03 12:09:20 +00:00
Manolo Gouy
54571fcacf
Remove 3 deprecation warnings.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-03 10:36:15 +00:00
Manolo Gouy
3d53e5b496
Doxygen doc: minor rewording for the Fl_SVG_Image class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-03 09:04:56 +00:00
Greg Ercolano
127147ca97
Addresses STR# 3423; adds missing scrollbar_size() methods and honors global Fl::scrollbar_size().
...
Includes mods to unittest's scrollbar size test.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-02 21:14:40 +00:00
Greg Ercolano
3256932e2a
test/valuators demo modified to use Fl_Simple_Terminal.
...
Also added missing callback to show Fl_Spinner values.
Improved callback messages to indicate which widget's value is being displayed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-02 03:03:12 +00:00
Manolo Gouy
839f52bc18
Fix for STR#3421: Fl_SVG_Image crashes if passed an svg file that is a static const char* string
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-31 16:56:23 +00:00
Greg Ercolano
b1cff66e86
Added check if nanosvg is enabled or not.
...
The example posts a warning dialog if it's not (vis a vis test/cube demo)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-30 03:57:33 +00:00
Greg Ercolano
78c699caa0
Makefile for new example.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-30 03:43:42 +00:00
Greg Ercolano
a9d17eca1a
Added a new example to demonstrate using Fl_SVG_Image.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-30 03:43:25 +00:00
Greg Ercolano
a035d10d37
Solves STR# 2682, Albrecht's comment #13 . Applied slightly modified version of
...
chris's test_02.diff patch (comment #19 ).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-28 21:54:38 +00:00
Greg Ercolano
9c2b0d743f
Fixes STR# 3420; fluid crash on certain static functions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-28 21:23:35 +00:00
Greg Ercolano
2a3e869210
STR #3395 : Revisions as per chris's comment #4 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-27 17:03:55 +00:00
Greg Ercolano
a27da5e582
Solves STR#3395.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-26 16:07:53 +00:00