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/Fluid_Image.cxx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'fluid/Fluid_Image.cxx') diff --git a/fluid/Fluid_Image.cxx b/fluid/Fluid_Image.cxx index 1057f171d..f1f5832b1 100644 --- a/fluid/Fluid_Image.cxx +++ b/fluid/Fluid_Image.cxx @@ -14,22 +14,28 @@ // https://www.fltk.org/bugs.php // +#include "Fluid_Image.h" + +#include "fluid.h" +#include "Fl_Group_Type.h" +#include "Fl_Window_Type.h" +#include "file.h" +#include "code.h" + #include #include +#include #include #include #include // fl_fopen() -#include "Fl_Type.h" -#include "Fluid_Image.h" +#include #include "../src/flstring.h" + #include #include #include #include -extern void goto_source_dir(); // in fluid.cxx -extern void leave_source_dir(); // in fluid.cxx - void Fluid_Image::image(Fl_Widget *o) { if (o->window() != o) o->image(img); } @@ -236,8 +242,6 @@ Fluid_Image::~Fluid_Image() { //////////////////////////////////////////////////////////////// -#include - const char *ui_find_image_name; Fluid_Image *ui_find_image(const char *oldname) { goto_source_dir(); -- cgit v1.2.3