From 6d5021c00e71db7d0bc36c8622cb256fd5088cd6 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 26 Oct 2023 00:38:58 +0200 Subject: FLUID: Adds initial MergeBack feature. --- fluid/Fl_Type.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fluid/Fl_Type.h') diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 246294e26..28611fb90 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -121,6 +121,8 @@ protected: /** Optional comment for every node in the graph. Visible in browser and panels, and will also be copied to the source code. */ const char *comment_; + /** a unique ID within the project */ + unsigned short uid_; public: // things that should not be public: @@ -249,6 +251,10 @@ public: int has_function(const char*, const char*) const; + unsigned short set_uid(unsigned short suggested_uid=0); + unsigned short get_uid() { return uid_; } + static Fl_Type *find_by_uid(unsigned short uid); + static Fl_Type *find_in_text(int text_type, int crsr); }; -- cgit v1.2.3