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/template_panel.fl | |
| 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/template_panel.fl')
| -rw-r--r-- | fluid/template_panel.fl | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/fluid/template_panel.fl b/fluid/template_panel.fl index b0d5b9ff9..9407a7564 100644 --- a/fluid/template_panel.fl +++ b/fluid/template_panel.fl @@ -20,31 +20,31 @@ comment {// } {in_source in_header } -decl {\#include <stdio.h>} {private local +decl {\#include "fluid.h"} {private local } -decl {\#include <stdlib.h>} {private local +decl {\#include <FL/Fl_Shared_Image.H>} {private local } -decl {\#include "../src/flstring.h"} {private local +decl {\#include <FL/fl_ask.H>} {private local } decl {\#include <FL/fl_string.h>} {private local } -decl {\#include <errno.h>} {private local +decl {\#include <FL/filename.H>} {selected private local } -decl {\#include <FL/filename.H>} {private local +decl {\#include "../src/flstring.h"} {private local } -decl {\#include <FL/fl_ask.H>} {private local +decl {\#include <stdio.h>} {private local } -decl {\#include <FL/Fl_Shared_Image.H>} {private local +decl {\#include <stdlib.h>} {private local } -decl {\#include <FL/Fl_Preferences.H>} {private local +decl {\#include <errno.h>} {private local } declblock {\#if defined(_WIN32) && !defined(__CYGWIN__)} {after {\#endif // _WIN32 && !__CYGWIN__} @@ -57,9 +57,6 @@ declblock {\#if defined(_WIN32) && !defined(__CYGWIN__)} {after {\#endif // _WIN } } -decl {extern Fl_Preferences fluid_prefs;} {private local -} - Function {make_template_panel()} {open } { Fl_Window template_panel { @@ -71,8 +68,8 @@ template_preview->image(0); template_browser->deselect(); template_name->value(""); template_instance->value(""); -template_panel->hide();} open - xywh {398 200 460 355} type Double hide resizable modal +template_panel->hide();} + xywh {455 202 460 355} type Double resizable modal visible } { Fl_Browser template_browser { label {Available Templates:} @@ -207,7 +204,7 @@ template_browser->remove(item); template_browser->do_callback();} {} } -Function {template_load()} {open return_type void +Function {template_load()} {return_type void } { code {int i; char name[1024], filename[1400], path[1024], *ptr; @@ -262,6 +259,5 @@ for (i = 0; i < num_files; i ++) { free(files[i]); } -if (num_files > 0) free(files);} {selected - } +if (num_files > 0) free(files);} {} } |
