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/widget_panel.fl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fluid/widget_panel.fl') diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl index 38a5b34e8..7b29fd4ab 100644 --- a/fluid/widget_panel.fl +++ b/fluid/widget_panel.fl @@ -20,7 +20,7 @@ comment {// } {in_source in_header } -decl {extern void comment_cb(Fl_Text_Editor*, void*);} {private global +decl {\#include "Fl_Widget_Type.h"} {selected private global } Function {make_widget_panel()} { @@ -28,8 +28,8 @@ Function {make_widget_panel()} { } { Fl_Window {} { comment {Use a Double Window to avoid flickering.} open - xywh {560 60 420 400} type Double labelsize 11 align 80 hide resizable hotspot - code0 {o->size_range(o->w(), o->h());} size_range {420 400 0 0} + xywh {500 209 420 400} type Double labelsize 11 align 80 resizable hotspot + code0 {o->size_range(o->w(), o->h());} size_range {420 400 0 0} visible } { Fl_Tabs {} { callback {propagate_load((Fl_Group *)o,v);} open @@ -37,7 +37,7 @@ Function {make_widget_panel()} { } { Fl_Group {} { label GUI - callback propagate_load open + callback propagate_load xywh {10 30 400 330} labelsize 11 when 0 resizable } { Fl_Group {} { @@ -46,7 +46,7 @@ Function {make_widget_panel()} { xywh {95 40 309 20} labelfont 1 labelsize 11 align 4 } { Fl_Input {} { - callback label_cb selected + callback label_cb tooltip {The label text for the widget. Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 1 textsize 11 resizable } @@ -664,7 +664,7 @@ wCallback->do_callback(wCallback, v);} open } } } - Fl_Group {} {open + Fl_Group {} { xywh {10 370 400 20} labelsize 11 } { Fl_Box {} { -- cgit v1.2.3