Commit Graph

7733 Commits

Author SHA1 Message Date
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
Greg Ercolano
6774852be5 Removing test line added a while ago.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-26 03:45:16 +00:00
Manolo Gouy
31e3d3758e MacOS: replace deprecated message by its recommended successor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-25 11:34:03 +00:00
Albrecht Schlosser
eb772d027d Fix scrollbar issue of Fl_Text_Display (STR #3412).
This fix disables a part of the optimization introduced in svn r11208
(STR #3272).

For more information see comments in STR #3412.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-25 10:58:26 +00:00
Manolo Gouy
eb440f2d70 Doxygen doc: separate the doc of the getter and the setter member functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-25 05:26:49 +00:00
Manolo Gouy
84aba46e8a Refer to the preferred Fl_Surface_Device::push_current()/pop_current() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-23 16:09:26 +00:00
Manolo Gouy
554ab20b80 MacOS: replace [[NSRunningApplication currentApplication] isActive] requiring 10.6 by [NSApp isActive]
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-22 06:35:03 +00:00
Manolo Gouy
cf13e6c2cd MacOS: improve handling of dropped files at launch time for MacOS 10.13
Because opening a file can call the event loop and thus access the list of dropped files,
 it's necessary to remove the object from the list before opening the file.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-22 06:29:04 +00:00
Greg Ercolano
1a41a89e94 Small doc tweaks for clarity.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-22 02:58:35 +00:00
Manolo Gouy
1a153d7899 Fl_SVG_Image: remove use of gzdirect() that is absent in some old versions of zlib
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-21 14:02:55 +00:00
Albrecht Schlosser
071f4912a7 Revert accidentally committed part of r12511 (STR #2788).
r12511: "Addresses STR #2788 for cursor positioning with mouse-click ..."

The here reverted part was the proposed patch of STR #3412:
"Fl_Text_Display scroll bug (style table with font != textsize() + wrap)".

See patch file: http://www.fltk.org/strfiles/3412/quickfix.patch


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-21 10:31:47 +00:00
Manolo Gouy
4593081b69 Add details to the doc of fl_open_callback().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-19 10:15:12 +00:00
Greg Ercolano
69533fecad Fixes STR# 3388, format_char(0) can cause array overruns/garbage characters.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18 15:48:29 +00:00
Manolo Gouy
dba6b85b4d Mac OS 10.13 "High Sierra": restore possibility to run app from a command line and find it activated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18 14:53:05 +00:00
Manolo Gouy
4ec7403f12 MacOS: make sure all files dropped to the app at launch time are open when Fl_Window->wait_for_expose() is used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18 12:35:03 +00:00
Greg Ercolano
bc42454074 Addresses STR #2788 for cursor positioning with mouse-click on different sides of character.
Applying guyben's patch (with small mods suggested by albrecht & greg in comments 7-11).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18 07:16:46 +00:00
Manolo Gouy
a92b628774 MacOS: slightly simpler implementation of Fl_Cocoa_Window_Driver::wait_for_expose().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18 04:24:51 +00:00
Manolo Gouy
fae02f2b4d Mac OS: complete changes needed for 10.13 "High Sierra" regarding how FLTK applications start.
With MacOS 10.13 "High Sierra", it was necessary to change what happens at application start time.
The new procedure is:
fl_open_display() calls [NSApp run], and during this call:
     the main event loop is started;
     the app delegate receives an openFile: message for each file dropped on the app icon. Each
           such filename is memorised in an NSMutableArray called dropped_files_list;
     the app delegate receives applicationDidFinishLaunching and stops the main event loop
           (this seems to occur unpredictably after the first openFile: message or after all of them).
When the FLTK event loop begins, it checks whether dropped_files_list is empty. If it is not,
   the first element of this list is a filename which is opened and is removed from dropped_files_list.

This new setup allows to turn resizable windows fullscreen and back as expected under MacOS,
and to support launching apps while dropping file(s) on its icon.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-17 09:01:28 +00:00
Greg Ercolano
dbc9f1131c Changed Fl_Simple_Terminal::draw() public -> protected
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-17 00:38:38 +00:00
Greg Ercolano
68f07db58a Added Fl_Simple_Terminal widget, and mods to test+example programs (STR #3411).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-17 00:28:56 +00:00
Albrecht Schlosser
93ef00cca6 Fix typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-16 20:39:02 +00:00
Manolo Gouy
507e39fd19 MacOS 10.13: fix problem with window made fullscreen by clicking on green window button - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 17:36:58 +00:00
Manolo Gouy
a8dbc90d99 MacOS 10.13: fix problem with window made fullscreen by clicking on green window button.
With MacOS 10.13 "High Sierra", when a window is made fullscreen by clicking on the green window button,
the window hides the system menubar, but it's not possible to show the menubar by moving the pointer
to the very top of the window. This new way of starting apps fixes this problem.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 17:04:53 +00:00
Albrecht Schlosser
06ca7993a5 Replace remaining calls to getcwd() with fl_getcwd().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 13:04:45 +00:00
Albrecht Schlosser
f9cfe1378d Rename fl_open_ext() parameter 'translation' to 'binary'.
The default (0) is 'text' mode, non-zero is 'binary' mode on platforms
that distinguish text and binary mode.

Currently Windows is the only supported platform that needs this.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 12:34:24 +00:00
Albrecht Schlosser
1ff9144801 Replace remaining calls to access() with fl_access().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 11:47:01 +00:00
Albrecht Schlosser
a8b58f6b79 Replace inappropriate usage of __WATCOM__ with _MSC_VER.
Note: this is in parts temporary since some of the functions redefined
for Visual Studio will be replaced with fl_*() functions in later commits.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 10:46:16 +00:00
Albrecht Schlosser
1af23ab32f Fix doxygen and other comments, coding style, and alignment.
Replace QT style doxygen markers "/*!" with Javadoc markers "/**".

This commit does not change executable code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12497 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 10:37:29 +00:00
Albrecht Schlosser
41f92be2f1 Replace remaining calls to unlink() with fl_unlink().
Tested under Linux, MinGW, and Visual Studio 2015.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 10:18:53 +00:00
Albrecht Schlosser
6bfa08c63d Fix conditional compilation under Windows.
Target of the condition was MS Visual Studio, hence the replacement
of "ifndef __WATCOMC__" with "#if defined(_MSC_VER)".

Tested under Windows with MinGW and Visual Studio 2015.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-14 08:54:48 +00:00
Albrecht Schlosser
ad967af70c Fix confusing (QT style) doxygen comment marker.
Add a space between '/*' and '!'.
Other changes: comment alignment.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-14 08:35:38 +00:00
Albrecht Schlosser
aff3a0ac12 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12493 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-13 15:00:06 +00:00
Albrecht Schlosser
66b1690aa8 Replace remaining calls to getenv() with fl_getenv().
... except in driver code that uses Fl_System_Driver::getenv().

Todo: Check if all remaining calls of getenv() in driver code are correct
or might use ::getenv() to avoid one calling level for optimization.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-13 14:58:30 +00:00
Manolo Gouy
db83933f58 Remove the Fl_SVG_Image::fl_gzopen() member function that is less useful with the new fl_open_ext() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-13 07:17:01 +00:00
Manolo Gouy
b5027d4f29 Mention new function fl_open_ext().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-12 14:54:47 +00:00
Manolo Gouy
789ed089c9 Add fl_open_ext() to control whether the file is opened in binary/text mode.
This new function allows to write Fl_SVG_Image::fl_gzopen() in a completely platform-independent way.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-12 14:42:12 +00:00
Manolo Gouy
a526818778 Remove undesired rounding when Fl_Shared_Image::scale() is called with proportional = 0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-12 13:05:00 +00:00