summaryrefslogtreecommitdiff
path: root/fluid
AgeCommit message (Collapse)Author
2020-11-01Code cleanup: moved keyword/type arrays to StyleParseGreg Ercolano
Needed to do this to prevent lower StyleParse class from #including upper CodeEditor.
2020-11-01Rewrite CodeEditor syntax highlighting for issue #135Greg Ercolano
2020-09-27Add Fl_Option::OPTION_SHOW_SCALING to fluid's "Global FLTK Settings".ManoloFLTK
2020-09-16Fix fluid output for international languagesAlbrecht Schlosser
The fluid version and other values in .fl files are written as float values which means that locale settings apply since we enabled the locale with "setlocale()". Update the "rebuild" target in fluid and src folders to update the fluid (.fl) files and related {.cxx|.h} files.
2020-08-22Fix .clang-format and some whitespace errorsAlbrecht Schlosser
.clang-format: UseTab: ForIndentation -> Never Update fluid generated files
2020-08-20Fluid: when linking include LDFLAGS orderMichael Dickens
LDFLAGS often contains "-L*" flags as provided outside the build to tell the linker where to search for libraries. If these are included -before- the ones used for internal linkage as found in LINKSHARED, and FLTK is already installed on the system, then the already-installed FLTK libraries will be found before those internal to the build. Moving the LDFLAGS after LINKSHARED generally solves this issue. Worst case the move won't hurt linking since all of the flags are still included in the link command.
2020-08-18CMake: Fix macOS bundle wrapper generationAlbrecht Schlosser
Now bundle wrapper scripts are created in the particular build folder, i.e. in subdir 'Debug', 'Release' etc. in multi config builds (Xcode). To do this, the scripts are now copied whenever the target is built and not during the configuration phase. To do: "install" wrapper scripts.
2020-08-03Update dependencies + fluid/generated filesAlbrecht Schlosser
2020-08-02Commiting fluid generated template_panel.h as per issue #116Greg Ercolano
Regarding this comment thread: https://github.com/fltk/fltk/pull/116#discussion_r458517450
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-15CMake: refactor and reformat CMake filesAlbrecht Schlosser
- raise minimum CMake version from 2.6.3 to 3.2.3 (Jun 01, 2015) - indent all CMake files according to the CMP (2 col.) - refactor FLTK version number definitions and usage - unify CMake and autoconf/configure variable names: - FL_VERSION -> FLTK_VERSION - FL_MAJOR_VERSION -> FLTK_VERSION_MAJOR - etc. for _MINOR_ and _PATCH_, respectively - note: this does not affect FL_VERSION etc. in source code - generate "export headers" for all libraries (experimental: OFF) - port some forgotten goodies from branch-1.3 to master - merge and improve macro 'create_example' (WIP) - remove "temporary" options and code for older CMake versions - include and use 'GenerateExportHeader' (experimental, WIP: OFF) - note: created header files are not yet used - build only *one* DLL with Visual Studio (tested, works) - similar to the bundled IDE projects in 1.3.x - add some dynamically linked test/demo programs ('*-shared') if shared libraries are built (WIP) - split 'macros.cmake': use one file per macro
2020-07-14Import Albrecht's utf8 mods for FormatMessage() to fluidGreg Ercolano
Amended by Albrecht: - fix comments - add setlocale() to fluid Note: the latter is also necessary to honor locale in GTK filechooser.
2020-07-11Fluid: fix "trailing whitespace" errors (#100)Albrecht Schlosser
Fluid would write trailing whitespace at some points when generating .cxx and .h files from .fl files. This was an old issue but became obvious since we removed trailing whitespace from source and header files recently. This commit fixes all whitespace errors in files generated from .fl files in the FLTK repository, i.e. in fluid/, src/, and test/ folders. I can't guarantee that I found all possible whitespace errors, but this commit: Fixes #100
2020-07-06Shortcut tooltip elaborates on how to clear shortcutGreg Ercolano
A user was having trouble figuring this out on fltk.general, seemed like a tooltip could have helped, so added it.
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-06-24Fix static code analyzer warningsAlbrecht Schlosser
Note: there's more to do ...
2020-06-19Added fluid command line '-d' debug flagGreg Ercolano
2020-06-18Fix problem with Windows pids being unsigned DWORDsGreg Ercolano
Had to get away from overloading PIDs with error codes, so now error codes are returned separately from the PID.
2020-06-13Update dependenciesAlbrecht Schlosser
Change sort order using -f (--ignore-case): fold lower case to upper case characters
2020-05-24Fix fluid undo/redo menu activation and deactivationAlbrecht Schlosser
(1) fix typo in recent commit (2) deactivate undo/redo menus on startup and after reset Fixes issue #84
2020-05-24Fix broken undoGreg Ercolano
Replaced hardwired index#s for undo/redo menu items with dynamic lookup.
2020-04-08Fix documentation URL'sAlbrecht Schlosser
2020-04-06Update copyright and FLTK site URLAlbrecht Schlosser
All .fl files and generated files have been updated.
2020-04-06Generate copyright year in fluid's about_panelAlbrecht Schlosser
Copyright year "1998-XXXX" is now generated from current year. This avoids editing the source code every year.
2020-03-11Remove CodeWarrior "support"Albrecht Schlosser
Metrowerks CodeWarrior was an ancient macOS compiler (discontinued since 2005) that defined the macro __MWERKS__. Code using this macro and several comments have been removed.
2020-03-08Fix a memory leak in fluidAlbrecht Schlosser
Also fixed two typos in comments.
2020-02-11Fix potential null pointer dereferences in fluidAlbrecht Schlosser
2020-02-11Fix static analyzer errors and warningsAlbrecht Schlosser
Fix several bugs found by scan-build (more to come). https://clang-analyzer.llvm.org/scan-build.html See also current travis-ci build log with static analyzer, e.g. https://travis-ci.com/fltk/fltk/jobs/285426415 (link may become invalid in the future).
2019-12-24Fluid needs to include text and binary files from within the .fl source ↵Matthias Melcher
directory. Fixed including binaries and text to use the same path as the source code. This is consistent with the way the file is selected in the corresponding dialog box. Since the old behavior was false, I don't think this will break any existing projects.
2019-09-15X11 platform: use Gnome printer dialog when the GTK library is available at ↵ManoloFLTK
run-time The code to determine whether the GTK library is available is now in Fl_X11_System_Driver::probe_for_GTK() called both by Fl_Printer::begin_job() and Fl_Native_File_Chooser. New Fl::option OPTION_PRINTER_USES_GTK allows to deactivate use of the Gnome print dialog. Minor change in Fl_Native_File_Chooser: GTK version 3 is searched before version 2, whereas the search order was the opposite before.
2019-08-29Fix another compiler warning (STR 3529)Albrecht Schlosser
fluid/template_panel.{fl|cxx}: .../fluid/template_panel.cxx:261:44: warning: ā€˜%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] Solution: increase buffer size from 1024 to 1400.
2019-08-29Fix one compiler warning (STR 3529)Albrecht Schlosser
fluid/undo.cxx: fix warning [-Wformat-truncation=] This fix also removes some static variables and simplifies the function undo_filename(). It does no longer copy the full filename string back to a given buffer. Now it returns a pointer to the internal filename string. Summary: fix compiler warning, save memory, simplify a function, and speed up code by not copying data unnecessarily.
2019-06-22Update dependency systemAlbrecht Schlosser
Try to make `make depend' independent of locale.
2019-04-04Fix potential crash in fluid (issue #14)Albrecht Schlosser
trimclassname() would crash if it was given a NULL pointer. Now a NULL pointer is returned instead. Fixes #14
2019-03-25Update dependenciesAlbrecht Schlosser
2019-02-16Fix Fluid batch mode with Fl_Simple_Terminal.Matthias Melcher
Fl_Simple_Terminal would connect Fluid to the Display in batch mode. We fix that by creating an Fl_Text_Display instead.
2019-02-10Fix Makefile to produce an app bundle under macOSManoloFLTK
2019-02-05Fixed all Pixmaps to be '*const' (STR #3108).Matthias Melcher
2019-02-02Added widget visibilit indicator to Fluid (STR #2669).Matthias Melcher
2019-02-01Reorganized Fluid Template feature (STR #3336).Matthias Melcher
2019-02-01STR #3445: Duplicating Widget Class in Fluid no longer crashes.Matthias Melcher
2019-01-18Update dependencies (now sorted)Albrecht Schlosser
The main dependencies (makedepend files) are now sorted alphabetically with one dependency per line.
2019-01-18Sort makedepend files for better comparabilityAlbrecht Schlosser
The intention is to improve (and minimize) diffs when dependencies are changed and `make depend' is executed. (1) use `makedepend ... -w 20' (2) `sort -u' the resultant file with some more "magic". (1) makes sure that there is only one dependent file per line, (2) makes lines unique since `makedepend' can output one file many times which is redundant and makes diffs hard to read. This uses 'mv', 'grep', and 'sort' in all FLTK library Makefiles. Image libraries are intentionally left for a later update.
2019-01-18Update (remaining) dependenciesAlbrecht Schlosser
2019-01-14Added Fl_Simple_Terminal to Fluid.Matthias Melcher
2019-01-14STR 3460: Fluid menu item typesMatthias Melcher
Added pulldown menus to create radio style and checkbox style menu items without going through the Class menu.
2019-01-14STR 3460: shell window remembers positionMatthias Melcher
The Fluid window to display the execute shell command result is now reopened where it was previously closed.
2019-01-13STR 3460: remember cursor position in code editorMatthias Melcher
When editing code in Fluid, the COde_Type class will now remember the last cursor position and reopen the editor dialog at that position (not for external editor).
2019-01-13STR 3460: removed nanny code for Fluid commentsMatthias Melcher
When writing comments, FLuid would check if the comment was C compatible. However, comments don;t need to comply to C syntax. We could check for the "*/", but is that really needed?
2018-12-27Fixing some minor lint, found by Pavel Shlyak using PVS studioMatthias Melcher