From 238b3a1be4d4bcc816ca886947e81fadfbe33012 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 24 Oct 2023 15:36:03 +0200 Subject: FLUID: Adds Reveal button to SourceView Position your text cursor in the source header, or .fl project file text preview and click reveal, and the corresponding node will be selected. Double will open the corresponding editor. --- fluid/Fl_Type.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fluid/Fl_Type.h') diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 0226696f5..1f7f689da 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -145,7 +145,6 @@ public: // things that should not be public: const char *callback_name(Fd_Code_Writer& f); // text positions of this type in code, header, and project file (see SourceView) - int code_include_start, code_include_end; int code_static_start, code_static_end; int code1_start, code1_end; int code2_start, code2_end; @@ -248,6 +247,8 @@ public: bool is_in_class() const; int has_function(const char*, const char*) const; + + static Fl_Type *find_in_text(int text_type, int crsr); }; #endif // _FLUID_FL_TYPE_H -- cgit v1.2.3