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/Fl_Group_Type.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/Fl_Group_Type.cxx')
| -rw-r--r-- | fluid/Fl_Group_Type.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx index cc6fb59a6..a2a45a541 100644 --- a/fluid/Fl_Group_Type.cxx +++ b/fluid/Fl_Group_Type.cxx @@ -18,13 +18,22 @@ // https://www.fltk.org/bugs.php // +#include "Fl_Group_Type.h" + +#include "fluid.h" +#include "file.h" +#include "code.h" + #include <FL/Fl.H> #include <FL/Fl_Group.H> #include <FL/Fl_Table.H> +#include <FL/Fl_Menu_Item.H> #include <FL/fl_message.H> -#include "Fl_Widget_Type.h" +#include <FL/Fl_Scroll.H> #include "../src/flstring.h" +#include <stdio.h> + // Override group's resize behavior to do nothing to children: void igroup::resize(int X, int Y, int W, int H) { Fl_Widget::resize(X,Y,W,H); @@ -55,8 +64,6 @@ void fix_group_size(Fl_Type *tt) { t->o->resize(X,Y,R-X,B-Y); } -extern int force_parent; - void group_cb(Fl_Widget *, void *) { // Find the current widget: Fl_Type *qq = Fl_Type::current; @@ -106,8 +113,6 @@ void ungroup_cb(Fl_Widget *, void *) { //////////////////////////////////////////////////////////////// -#include <stdio.h> - void Fl_Group_Type::write_code1() { Fl_Widget_Type::write_code1(); } @@ -380,8 +385,6 @@ void Fl_Group_Type::copy_properties() { //////////////////////////////////////////////////////////////// // some other group subclasses that fluid does not treat specially: -#include <FL/Fl_Scroll.H> - const char scroll_type_name[] = "Fl_Scroll"; Fl_Widget *Fl_Scroll_Type::enter_live_mode(int) { |
