From 16dae3ea063ae134b8b87ca199575e904dfbb7d4 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 8 Dec 2021 15:52:15 +0100 Subject: Fluid: restructuring and commenting. 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. --- fluid/undo.cxx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'fluid/undo.cxx') diff --git a/fluid/undo.cxx b/fluid/undo.cxx index 1afbb09f0..38d70c2e1 100644 --- a/fluid/undo.cxx +++ b/fluid/undo.cxx @@ -14,10 +14,15 @@ // https://www.fltk.org/bugs.php // -#include -#include "Fl_Type.h" #include "undo.h" + +#include "fluid.h" +#include "file.h" +#include "Fl_Type.h" + +#include #include +#include #include #include "../src/flstring.h" @@ -30,12 +35,6 @@ #endif // _WIN32 && !__CYGWIN__ -extern Fl_Preferences fluid_prefs; // FLUID preferences -extern Fl_Menu_Item Main_Menu[]; // Main menu -extern Fl_Menu_Bar *main_menubar; // Main menubar - - - // // This file implements an undo system using temporary files; ideally // we'd like to do this in memory, however the current data structures -- cgit v1.2.3