diff options
| author | Matthias Melcher <git@matthiasm.com> | 2021-12-08 15:52:15 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2021-12-08 15:52:15 +0100 |
| commit | 16dae3ea063ae134b8b87ca199575e904dfbb7d4 (patch) | |
| tree | ff0ce9e635bb39f49bfcce2c5e7fe099334a0d15 /fluid/Fluid_Image.cxx | |
| parent | 2d18c6f650c0001319c8883f8deb819d12984ac0 (diff) | |
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.
Diffstat (limited to 'fluid/Fluid_Image.cxx')
| -rw-r--r-- | fluid/Fluid_Image.cxx | 18 |
1 files changed, 11 insertions, 7 deletions
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 <FL/Fl.H> #include <FL/Fl_Widget.H> +#include <FL/Fl_Window.H> #include <FL/filename.H> #include <FL/fl_string.h> #include <FL/fl_utf8.h> // fl_fopen() -#include "Fl_Type.h" -#include "Fluid_Image.h" +#include <FL/Fl_File_Chooser.H> #include "../src/flstring.h" + #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <stdarg.h> -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 <FL/Fl_File_Chooser.H> - const char *ui_find_image_name; Fluid_Image *ui_find_image(const char *oldname) { goto_source_dir(); |
