Commit Graph

1276 Commits

Author SHA1 Message Date
Albrecht Schlosser
2d2f474794 Fix compiler warning warning [-Wundef]
warning: "_WIN32" is not defined, evaluates to 0 [-Wundef]
2025-06-05 09:50:07 +02:00
Albrecht Schlosser
4d55983833 Remove hardcoded version numbers (part 2) and more documentation
The goal is to change the version number for a new release only in
CMakeLists.txt. This is the second step.

This commit also adds a chapter "Migrating Code from FLTK 1.4 to 1.5".

Details:

- documentation/CMakeLists.txt: configure 'version.dox'
- fluid/documentation/CMakeLists.txt: same as above
- documentation/Doxyfile.in: add "Migrating Code from FLTK 1.4 to 1.5"
- documentation/src/index.dox: include 'version.dox' and 'migrating...'
- fluid/documentation/src/index.dox: same as above
- documentation/src/preface.dox: include 'version.dox'
- documentation/version.dox.in: input to CMake configure 'version.dox'
- fluid/documentation/version.dox.in: same as above
- documentation/src/migration_1_4.dox: update links
- documentation/src/migration_1_5.dox: new documentation chapter
2025-05-07 21:21:35 +02:00
Matthias Melcher
9af8abc080 Fix forgotten run_pdflatex call (1.5) 2025-04-23 15:47:31 +02:00
Albrecht Schlosser
1066b69c8e Fix "fully support ... own shared libraries" (#1238)
- If shared libraries are built, then fluid, fltk-options, and the
  "games" are linked against the shared FLTK libraries. On some
  platforms the static and the shared versions of fluid and
  fltk-options are built. The games are only built if
  FLTK_BUILD_TEST is enabled.

- The CMake 'install' target now installs the games (if built)
  and their man pages on all platforms (no matter if that is
  useful, for instance on Windows).

- On macOS 'CMAKE_INSTALL_RPATH' is set so *installed* programs
  automatically find their shared FLTK libraries. The "shared"
  versions of fluid and fltk-options got their own '.plist' files.
  This works for both the executables themselves as well as those
  included in bundles. There may be more to do on the macOS platform.
2025-04-21 19:50:12 +02:00
Matthias Melcher
48e22d246d Fluid: update documentation scripts
TeX and pdf generation untested at this point
2025-04-18 21:40:37 +02:00
Matthias Melcher
219c623b4b Fluid: hiding MergeBack form the main menu.
Hiding menuitem if option is not available.
Also testing the new FL_BEFORE_MENU event.
2025-04-15 15:28:37 +02:00
Matthias Melcher
fc91880faf
Reactivating Mergeback functionality. (#1226)
Reactivated code.
Various fixes.
New documentation.
2025-04-15 14:47:24 +02:00
Matthias Melcher
63db80c078 Fluid: avoid bad function pointer casting warning in Clang 17. 2025-04-15 14:38:45 +02:00
Greg Ercolano
ed57306a43 Adjusted .fl files too, regen code (#1245) 2025-04-06 08:21:31 -07:00
Greg Ercolano
70a104131a Solve Mac 10.10.5 fluid build errors (#1245) 2025-04-05 14:53:24 -07:00
Albrecht Schlosser
61f132845b CMake: simplify fluid build
- define variable MAIN_FILES to avoid repetition
- make target_include_directories(fluid-lib) PUBLIC rather than PRIVATE
2025-04-04 15:54:36 +02:00
Matthias Melcher
bd9d1bc038 Fixes a couple of compiler warnings on AppleClang. 2025-03-30 00:38:10 +01:00
Albrecht Schlosser
80c73b508c Fluid documentation: fix image name "main_window.png"
Remove prefix "Fluid." from generated image name.
2025-03-23 15:04:40 +01:00
Matthias Melcher
51a55bc736
Fluid: restructuring and rejuvenation of the source code.
* Add classes for application and project
* Removed all globals from Fluid.h
* Extracting args and project history into their own classes
* Moving globals into Application class
* Initialize values inside headers for some classes.
* Undo functionality wrapped in a class inside Project.
* File reader and writer are now linked to a project.
* Avoid global project access
* Nodes (former Types) will be managed by a new Tree class.
* Removed static members (hidden globals) form Node/Fl_Type.
* Adding Tree iterator.
* Use nullptr instead of 0, NULL, or 0L
* Renamed Fl_..._Type to ..._Node, FL_OVERRIDE -> override
* Renaming ..._type to ...::prototype
* Splitting Widget Panel into multiple files.
* Moved callback code into widget panel file.
* Cleaning up Fluid_Image -> Image_asset
* Moving Fd_Snap_Action into new namespace fld::app::Snap_Action etc.
* Moved mergeback into proj folder.
* `enum ID` is now `enum class Type`.
2025-03-16 17:16:12 -04:00
Albrecht Schlosser
f99fdcdc71 Fix fluid documentation generation
std::string doesn't allow nullptr as input string
2025-03-10 18:15:21 +01:00
Albrecht Schlosser
8838e976a0 More (mostly) documentation updates for FLTK 1.5.0
All files: remove autoconf/configure related stuff, update links.

- README.txt: describe prerequisites, provide generic instructions
  on how to use CMake to build FLTK
- test/demo.cxx: remove code used for configure/make build
- test/CMakeLists.txt: remove obsolete 'target_compile_definitions()'
2025-03-10 15:43:12 +01:00
Matthias Melcher
ff62ed249e Fluid: one small fix. 2025-03-08 00:21:12 +01:00
Matthias Melcher
15ad447e2a Fluid: last incremental chage, restructuring 2025-03-08 00:14:27 +01:00
Matthias Melcher
ca22660bbb Fluid: last incremental change: restructuring 2025-03-08 00:14:27 +01:00
Matthias Melcher
1186b4e255 Making fl_filename_... public for std::string.
New functions append "_str" to the function name to
avoid ambiguities when calling them. So
'char *fl_filename_name(const char *)' becomes
'std::string fl_filename_name_str(const std::string &)'
2025-03-07 20:26:03 +01:00
Matthias Melcher
70e5dc23ae Cleaning up widget browser, renamed to Node_Browser. 2025-03-07 19:52:54 +01:00
Matthias Melcher
c3571838cb Fluid: Rebuilding most of the widget directory.
One file per logical unit.
Namespaces.
Non-static data member initializers to never
get an uninitialized field again.
2025-03-07 18:54:24 +01:00
Matthias Melcher
d449a3d9bf Fixes for icon path and Windows includes. 2025-03-07 16:46:39 +01:00
Matthias Melcher
1985aefc0e Restructuring Fluid source files. 2025-03-07 16:34:48 +01:00
Matthias Melcher
6acda521cc Removes the remaining references to Fl_String.
Still to do: rename fl_filename... to fl_filename..._str
and introduce into core library.
2025-03-07 01:15:57 +01:00
Matthias Melcher
063ff67fcd Fixing a couple of warnings. 2025-03-07 00:59:25 +01:00
Matthias Melcher
9cfd932d3a Replce Fl_String in Fluid with std::string.
Also fix for Linux.
2025-03-07 00:48:18 +01:00
Matthias Melcher
3068c7a0af Fl_String is now just an alias for std::string.
All mentions of Fl_String will be replaced with std::string
and the Fl_String implementation will be removed.
2025-03-07 00:12:40 +01:00
Albrecht Schlosser
191b33e0de Update version numbers to 1.5.0 2025-03-06 18:16:03 +01:00
Albrecht Schlosser
e2ca1a39c8 Remove autotools (configure/make) support 2025-03-06 17:12:52 +01:00
Albrecht Schlosser
02af6a57eb Bump version numbers to 1.4.2 2025-02-21 16:25:39 +01:00
Albrecht Schlosser
eaf5fb8d11 Fix buffer overflow warning [-Wstringop-truncation]
Note: this fixes the warning, but a better fix would be to use either
  strlcpy(), fl_strlcpy(), or a string type in 1.5.0 or higher.
2025-02-19 17:22:16 +01:00
Albrecht Schlosser
904039c4c6 Fix typos and trailing whitespace
Also replace 'MSWindows' with 'Windows' where appropriate, leaving
only old documents like README files from 1.3 and older as-is.
2025-02-05 12:34:39 +01:00
Matthias Melcher
4ce09ae47a Fluid: Fix file history text. 2024-12-28 17:23:55 -05:00
Matthias Melcher
050cbabdfe Fluid: Rename Stratgy constants to comply with CMP.
Capitalized constants.
Added flag to indicate creation by user or file.
Removed global variable 'reading_file'.
2024-12-27 20:56:10 -05:00
Matthias Melcher
89466c2d37 FLUID: Minor fix and docs. 2024-12-22 11:45:51 -06:00
Matthias Melcher
7d49c02803 FLUID: fix one more warning. 2024-12-21 12:26:20 -06:00
Matthias Melcher
17d300215b FLUID: Remove warnings. 2024-12-21 12:22:13 -06:00
MatthiasWM
4d8a0df312 FLUID: Improve path handling on Windows. 2024-12-21 12:14:31 -06:00
Matthias Melcher
1f25ee82b0 FLUID: Improve filename list in main menu. 2024-12-21 11:22:07 -06:00
Matthias Melcher
18a7a392a8 fluid: alternative version format 2024-12-10 01:35:44 +01:00
Matthias Melcher
9a80eeccb4 FLUID: command line argument -v shows fltk version at build time 2024-12-10 01:35:44 +01:00
Albrecht Schlosser
eb4d8d4957 Update more fluid and generated files
... after output of trailing whitespace has been fixed.
2024-12-09 22:41:45 +01:00
Matthias Melcher
ead9078bc3 FLUID: avoid trailing spaces in empty comment lines (#1161) 2024-12-09 21:53:32 +01:00
Albrecht Schlosser
fe8177ea2c Update Fluid (.fl) files for release 1.4.1 2024-12-09 20:46:01 +01:00
Albrecht Schlosser
99a6286288 Bump version numbers for release 1.4.1
To do: update CHANGES.txt with real info.
2024-12-09 20:46:01 +01:00
Matthias Melcher
d1ba7fbf50 Giving access to some Fl_Text_Display member variables (#1153)
And typos in FLUID source code docs.
2024-12-07 17:31:14 +01:00
Matthias Melcher
e18926ec76 FLUID: Fixes more places to clear cached pointers. 2024-12-04 16:05:39 +01:00
Matthias Melcher
b315422a37 FLUID: clearing caches browser values (#1152) 2024-12-04 15:44:39 +01:00
Matthias Melcher
fcae10e296 FLUID: Fixes default settings tab. 2024-12-04 14:49:14 +01:00