diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-16 17:16:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-16 17:16:12 -0400 |
| commit | 51a55bc73660f64e8f4b32b8b4d3858f2a786f7b (patch) | |
| tree | 122ad9f838fcf8f61ed7cf5fa031e8ed69817e10 /fluid/widgets/Node_Browser.h | |
| parent | 13a7073a1e007ce5b71ef70bced1a9b15158820d (diff) | |
Fluid: restructuring and rejuvenation of the source code.
* Add classes for application and project
* Removed all globals from Fluid.h
* Extracting args and project history into their own classes
* Moving globals into Application class
* Initialize values inside headers for some classes.
* Undo functionality wrapped in a class inside Project.
* File reader and writer are now linked to a project.
* Avoid global project access
* Nodes (former Types) will be managed by a new Tree class.
* Removed static members (hidden globals) form Node/Fl_Type.
* Adding Tree iterator.
* Use nullptr instead of 0, NULL, or 0L
* Renamed Fl_..._Type to ..._Node, FL_OVERRIDE -> override
* Renaming ..._type to ...::prototype
* Splitting Widget Panel into multiple files.
* Moved callback code into widget panel file.
* Cleaning up Fluid_Image -> Image_asset
* Moving Fd_Snap_Action into new namespace fld::app::Snap_Action etc.
* Moved mergeback into proj folder.
* `enum ID` is now `enum class Type`.
Diffstat (limited to 'fluid/widgets/Node_Browser.h')
| -rw-r--r-- | fluid/widgets/Node_Browser.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fluid/widgets/Node_Browser.h b/fluid/widgets/Node_Browser.h index 5ac74b50a..eec1e7960 100644 --- a/fluid/widgets/Node_Browser.h +++ b/fluid/widgets/Node_Browser.h @@ -1,5 +1,5 @@ // -// Widget Browser code for the Fast Light Tool Kit (FLTK). +// Widget Tree Browser code for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2025 by Bill Spitzak and others. // @@ -19,20 +19,20 @@ #include <FL/Fl_Browser_.H> -class Fl_Type; +class Node; namespace fld { namespace widget { class Node_Browser : public Fl_Browser_ { - friend class Fl_Type; + friend class Node; static void callback_stub(Fl_Widget *o, void *) { ((Node_Browser *)o)->callback(); } - Fl_Type* pushedtitle { nullptr }; + Node* pushedtitle { nullptr }; int saved_h_scroll_ { 0 }; int saved_v_scroll_ { 0 }; @@ -55,7 +55,7 @@ public: void restore_scroll_position(); void rebuild(); void new_list() { Fl_Browser_::new_list(); } - void display(Fl_Type *); + void display(Node *); void load_prefs(); void save_prefs(); @@ -78,11 +78,11 @@ public: extern void redraw_browser(); extern Fl_Widget *make_widget_browser(int x,int y,int w,int h); -extern void redraw_widget_browser(Fl_Type *caller); -extern void select(Fl_Type *o, int v); -extern void select_only(Fl_Type *o); +extern void redraw_widget_browser(Node *caller); +extern void select(Node *o, int v); +extern void select_only(Node *o); extern void deselect(); -extern void reveal_in_browser(Fl_Type *t); +extern void reveal_in_browser(Node *t); extern fld::widget::Node_Browser *widget_browser; |
