| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Make clear that Fl::repeat_timeout() must only be called for the
same timeout it is handling. Related STR's:
https://www.fltk.org/str.php?L3532
https://www.fltk.org/str.php?L3516
|
|
File examples/SVG_File_Surface.cxx is no longer useful because it was a very
partial implementation of what is now class Fl_SVG_File_Surface.
|
|
Test programs device and pixmap_browser use these new classes.
Class Fl_SVG_File_Surface can be optionally made non functional using the
--disable-svg configure option or turning off OPTION_USE_SVG in CMake.
Class Fl_EPS_File_Surface can be optionally made non functional using the
--disable-print configure option or turning off OPTION_PRINT_SUPPORT in CMake.
|
|
These files can be compiled-in for other architectures but produce no binary code.
|
|
Note: there's more to do ...
|
|
- fix typos and minor, obvious errors
- reformat small parts
- remove trailing whitespace
|
|
As documented, Fl::next_window(win) must only be called with a valid
*shown* window. The old code would crash if the argument was NULL
or the window was not shown.
The new code avoids the crash, issues an error message, and returns
NULL to the caller.
|
|
Commit 6fe226cb804d000b29ea53e08acc505267fd44de introduced use of
pkg-config which broke linking from fltk-config if FLTK was
configured to use pango library.
This patch duplicates line from another if branch that just adds
libraries assuming that if pkg-config found pangoxft that there
are present all it's requirements.
|
|
Some of the test programs were linked with libfltk_forms which was
unnecessary. The only one requiring this is the forms demo.
[CMake] reordered linked FLTK libs in dependency order.
|
|
|
|
Had to get away from overloading PIDs with error codes,
so now error codes are returned separately from the PID.
|
|
|
|
|
|
|
|
Fix for issue #90: Setting an svg image as a window icon causes a segfault.
|
|
See https://github.com/fltk/fltk/issues/81
Fixes #81
|
|
If a user program accidentally deletes the "current" group, then
the pointer would still point at the deleted widget. This commit
prevents this and makes the Fl_Group's parent the current group.
Fixes issue #88.
|
|
Clean up library and variable names.
Remove '_SHARED' suffix from library (output) filenames.
This commit was inspired by David Runge ('dvzrv'), thanks.
See PR #21.
Fixes #21
|
|
Cherry-pick the essential changes from FLTK 1.3 since this change
had not been ported to 1.4 yet.
To do: my current plan is to consolidate 1.3 and 1.4 CMake files
as far as possible (with the exceptions of source files, obviously)
and to redesign / refactor CMake files later in this process or
maybe only for 1.4 if it turns out to be too much to backport.
|
|
Change sort order using -f (--ignore-case):
fold lower case to upper case characters
|
|
fltk.coredev
|
|
We use the host system's `fluid` when cross-compiling. This must be
executable as `fluid`, i.e. it must be in the PATH or otherwise
defined, for instance as an alias.
|
|
- add 'can_expand' optional parameter to scale()
- don't expose name and e-mail of the nanosvg author in docs
- format example code according to the FLTK coding style
- fix (some) trailing spaces
FTR: all examples compile and work well with current FLTK 1.4.
|
|
(1) The new virtual method Fl_Image::release() which is equivalent to
'delete this' automatically extends to Fl_Shared_Image::release()
which makes the latter method virtual.
This new method in the base class makes Fl_Image::release() callable
on all objects derived from Fl_Image.
(2) Add virtual method Fl_Shared_Image *Fl_Image::as_shared_image()
This new method can be used to detect whether an Fl_Image instance
is an Fl_Shared_Image or not.
|
|
|
|
Thanks to the OP for most of the fix.
|
|
The "Visual Studio Code" editor (Open Source by Microsoft) is
becoming more and more popular. It uses a (hidden) folder '.vscode'
in the workspace root directory to store its configurations. We
need to ignore this folder to avoid confusing developers and
checking it in by accident.
See https://github.com/Microsoft/vscode
|
|
The new window callback demonstrates how to close all (both) windows
when the user closes one window.
|
|
This commit fixes typos and reformats some of the documentation.
No code changes.
|
|
|
|
|
|
That may be necessary if preferences are accessed before fl_open_display() was called.
|
|
(1) fix typo in recent commit
(2) deactivate undo/redo menus on startup and after reset
Fixes issue #84
|
|
Replaced hardwired index#s for undo/redo menu items with dynamic lookup.
|
|
|
|
Sorry for the noise, links with markdown notation don't seem
to work in README.md.
|
|
The file README has been renamed to README.txt some time ago.
|
|
Also introduce new rect_to_NSBitmapImageRep: method of class FLWindow
which makes it possible to reimplement it.
|
|
Compiling with clang produced the following warning on this line:
src/Fl_Text_Buffer.cxx:1292:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
replace(start, end, text);
^
src/Fl_Text_Buffer.cxx:1288:3: note: previous statement is here
if (!sel->position(&start, &end))
^
|
|
so it can be called by any user code.
|
|
|
|
- remove trailing whitespace
- reformat for better readability
- fix typos
|
|
Merge PR #30 with extensions to position the message box centered
over given coordinates or a widget or window.
|
|
Add argument 'center' to position the message box centered over
the given x/y coordinates.
Add another method to supply a widget or window to center the
message box over.
Fix documentation and don't use INT_MIN to avoid having to
include limits.h in user code.
|
|
Add new function to set (x,y) position.
Reset to previous mode after innards is called by fl_* function.
Use magic number for preferred position state.
Note: several commits squashed and commit messages edited by AlbrechtS.
|
|
|
|
|
|
- remove obsolete code / comments (see Git for history)
- add copyright to generated file src/fl_cmap.h
- generate copyright year in src/fl_cmap.h automatically
- add color indices as comments to color values
- remove $Id header
- replace $Id trailer with a more useful comment
|