summaryrefslogtreecommitdiff
path: root/fluid/file.cxx
AgeCommit message (Collapse)Author
2025-03-07Restructuring Fluid source files.Matthias Melcher
2024-12-27Fluid: Rename Stratgy constants to comply with CMP.Matthias Melcher
Capitalized constants. Added flag to indicate creation by user or file. Removed global variable 'reading_file'.
2024-10-15Fix documentation typos and trailing whitespaceAlbrecht Schlosser
2024-10-06FLUID: Fixes file reading bug, introduces two weeks ago: #1078Matthias Melcher
2024-09-15FLUID: Improved paste order optionMatthias Melcher
2024-09-14FLUID: type node placement in scene graph revisedMatthias Melcher
- fixes copy/paste operation that would place pasted types wrong - improves paste into folded and unfolded groups - improves duplication of multiple types - much improved placement of types that don;t fit at the requested position - some more testing will follow in the next days
2024-09-11FLUID: Imporving method name `can_have_children()`Matthias Melcher
2024-04-17Separate FLUID user documentation, screen shot automation (#936)Matthias Melcher
* CMake integration, no autotiools * alignment panel is now correctly renamed to setting panel * source view is now correctly renamed to code view * Merge FLTK FLUID docs into FLUID user manual. * Add two simple entry tutorials * Remove FLUID chapter form FLTK docs. * GitHub action to generate HTML and PDF docs and make the available as artefacts
2024-03-02FLUID: comments, typos, formattingMatthias Melcher
2023-11-14Fix dependencies and whitespace issuesAlbrecht Schlosser
2023-11-06FLUID: '\r' (CR) is skipped when reading project filesMatthias Melcher
Project and code files are now always written with LF instead of CRLF, even on MSWindows machines.
2023-11-05FLUID: Adds undo for all grid operations.Matthias Melcher
2023-11-05FLUID: Fixes child properties reader.Matthias Melcher
2023-11-02FLUID: Adds more interactive editing to Fl_GridMatthias Melcher
* this commit introduces a few FIXMEs and TODOs that probably can't be solved until we do some major refactoring. They work for now, but adding more layout controlling widgets will be hard.
2023-10-27FLUID: Fixes compile error.Matthias Melcher
2023-10-27FLUID: Fixes issues when pasting widget into Fl_Flex #809Matthias Melcher
* new virtual function layout_widget() to inform parents after all children were added
2023-10-27FLUID: Documentation and typos.Matthias Melcher
2023-10-26FLUID: Adds initial MergeBack feature.Matthias Melcher
2023-10-24FLUID: Adds much more detailed CodeViewMatthias Melcher
in preparation for "find" and "reveal"
2023-10-20FLUID: basic Fl_Grid supportMatthias Melcher
* no settings for children yet * ne good interactive editing for children
2023-09-27FLUID: fixing settings dialog updateMatthias Melcher
2023-09-26FLUID: adds greatly enhanced Shell Commands (#774)Matthias Melcher
The user can add an arbitrary number of highly configurable shell commands through the setting panel. The commands can be saved as user preferences, inside the .fl file, or exported to an external file. Shell scripts can be limited to individual platforms, can have shortcut keys, etc. . * documentation will follow * support to call `fltk-config` will follow
2023-09-05FLUID: increases readabilityMatthias Melcher
- removed some direct filename manipulation - central place to generate file names and paths - fixes command line filename override if no actual batch command is given
2023-08-26Fixes a bunch of typos in comments.Matthias Melcher
2023-07-19FLUID: emulated RTTI for all typesMatthias Melcher
Complete type hierarchy in Fl_Types doc Window now derives correctly from Group Menu Items now correctly (functionally in FLUID) derived form Button Menu Buttons have a better hierarchy Fixing two possible crash bugs where Input_Choice was assumed to be a Menu_ Hoping I have not degraded the original code!
2023-07-19FLUID fixes wrong type IDs and more cleanupMatthias Melcher
2023-07-14FLUID: fixes all overlapping widgets in all .fl filesMatthias Melcher
Also fixes an issue with multiple use of the same variable for different types of i18n.
2023-07-14FLUID formatting and commentsMatthias Melcher
2023-03-19Fix and consolidate settings dialogs (#346, #703)Matthias Melcher
2023-03-18Fix and update alignment #346 (#701)Matthias Melcher
* interactive layout alignment rewritten * interface for new alignment rules * new alignment dialog box * user defined layout rules added * layout rules can be stored in projects, settings, and external files * Valgrind verification
2023-02-23Fl_String refactoring and extension (#683)Matthias Melcher
- add true unittest and Fl_String testing - interface and printout are similar to gtest without requiring external linkage. just run `unittest --core`. - new Fl_String API - extended API to fl_input_str and fl_password_str - co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2023-02-09FLUID: another memory leakMatthias Melcher
2023-01-26Fixing FLUID file corruption from issue #653 (#662)Matthias Melcher
Removing all globals in file writer (#653 ) Fix some static analyser complaints Valgrind: handle width==0 in GfxDrivers on Wayland and X11 Don't use `Fl_Input_::static_value`, it accesses previous buffer that may be deleted Project file write encapsulated, removing globals Encapsulating project file reader, removing states in glbals Project i/o increased source code readability
2023-01-01FLUID refactor and macOS warnings removed (#623)Matthias Melcher
P renamed to g_project class Project renamed to class Fluid_Project fixes macOS type cast warnings
2022-11-26Handle Fluid project settings better (#556)Matthias Melcher
Fix allocation bug in Fl_String
2022-11-01Fluid support for Fl_Flex (#523) and some Fl_Flex improvementsMatthias Melcher
* Adding Fluid support for Fl_Flex, margins, and gap. * Fluid Fl_Flex mostly working. Fixed in Fl_Flex::set_size(). * Fluid Flex live mode works, interactive dragging works * Fluid Flex: adding check box for fixed children * Fluid Flex: visual flexibility indicator in guides. * Fluid Flex: bug in generated code. * Fix formatting * Fixing Tooltip, fixing resize issue PR #518. * Removing unused variables. Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-08avoid early include of Fl.H optionMatthias Melcher
2021-12-19Github #351: fixed missing curly brackets.Matthias Melcher
2021-12-19STR 3289: Fluid i18n, gettext, catguts improvementsMatthias Melcher
Removed some unneeded code.
2021-12-17STR 3355: allow Unicode UTF-8 in source codeMatthias Melcher
This includes changes in the UI in Project Settings.
2021-12-15github #328: temporarily disabling new project flagsMatthias Melcher
Project wide settings require a redesign. Temporarily disabled until I find a satisfying solution.
2021-12-13Fluid: convert Fl_Group::forms_end() to a static functionAlbrecht Schlosser
... just in case we disable forms compatibility in the future and remove Fl_Group::forms_end(). Also: improve doxygen docs, fix some typos.
2021-12-13#322: remove Fluid's dependency on fltk_forms.Matthias Melcher
2021-12-13STR 3442: copy/paste now inserts widget as expected.Matthias Melcher
Fluid would add pasted widgets as the last child of the current group, even if they were cut at the beginning of the group. This patch adds a 'startegy' to adding widgets to allow merging closer to the 'current' widget. Also added d'n'd for the widget bin and some other UI improvements. STR 3442: some preparation, variable renaming STR 3442: unifying functions to add widgets. Adding widgets interactively is merged into one function, making undo/redo work as expected and removing unexpected differences between adding by menu or bin. STR 3442: adding drag'n'drop for windows from bin. Just drag the window symbol out of the tree and drop it anywhere on the desktop. Visual representation of dragged Window. STR 3442: insert individual nodes after 'current' STR 3442: adding new widget at expected positions. The widget bin can finally do drag'n'drop. Widgets appear in the tree close to the last selection. Duplicating now ads right below. Cut and paste inserts after last selection. Fluid: replaced #define with strict enum type.
2021-12-09STR 3210: fixing indentation of Fl_Menu_Item cnd Widget allbacks.Matthias Melcher
also added and fixed a few comments STR 3210: fixed indenting of widget callbacks. Also fixed what is considered a 'name' (could still be improved). Also better formatting inlined functions in the header.
2021-12-09STR 3460.D: fixed .fl file reading codeMatthias Melcher
2021-12-09Fluid STR 3460.D: Shell commands are now saved in the .fl file (user option)Matthias Melcher
The shell properties toolbox is completely redesigned: This dialog box offers a field for a command line and three check buttons to generate and save various files before the command is run. If the fourth checkbox, "use settings in .fl design files" is checked, all shell settings will be store in the current .fl file, and they will be read and restored when the .fl is loaded again. Fluid will save different shell settings for different operating system as it is common that a different OS requires a different shell command. Fluid comes with default shell settings. Pressing the "save as default" button will store the current setting in the Fluid app settings and are used for new designs, or if the "use settings..." box is not checked. Fluid app settings are saved per user and per machine.
2021-12-08Fluid: restructuring and commenting.Matthias Melcher
tl;dr : making Fluid maintainable, no changes in code execution and logic. This is a pretty extensive restructuring of the Fluid source tree. It was neccessary because source and header files were getting much too big to handle. Many source files had no header, and many headers declared functions that were in diffrent source files. Reorganized much of the include statements. Added comments to some of the files. Added Doxygen configuration file for standalone Fluid docs. Tested everything by rebuilding Fluid .fl designs with the resorted version of Fluid.
2020-08-01Implement + deploy fl_strdup()Greg Ercolano