diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-25 14:44:02 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-25 14:44:02 +0200 |
| commit | b270e1409caa23f8333c3eafb48534cb42957f12 (patch) | |
| tree | 20d05fbaf5a3cbbacd3b114f531ca0cb68dc7762 /fluid/sourceview_panel.fl | |
| parent | 8c03cb788422147b843af34c7884b36ee288da7a (diff) | |
FLUID: Adds hierarchical node search in header files.
Diffstat (limited to 'fluid/sourceview_panel.fl')
| -rw-r--r-- | fluid/sourceview_panel.fl | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/fluid/sourceview_panel.fl b/fluid/sourceview_panel.fl index 1cfd13001..99089f299 100644 --- a/fluid/sourceview_panel.fl +++ b/fluid/sourceview_panel.fl @@ -101,17 +101,23 @@ file.} open return_type void } if (sv_header->visible_r()) { switch (sv_code_choice) { - case 2: // code: entire implementation block including children - case 3: // code1: all implementation code before the children - case 4: // code1: all implementation code before the children - pos0 = Fl_Type::current->header_start; - pos1 = Fl_Type::current->header_end; - break; case 0: // prolog: not yet (include statements) case 1: // static: callbacks, menu declarations pos0 = Fl_Type::current->header_static_start; pos1 = Fl_Type::current->header_static_end; break; + case 2: // code: entire implementation block including children + pos0 = Fl_Type::current->header1_start; + pos1 = Fl_Type::current->header2_end; + break; + case 3: // code1: all implementation code before the children + pos0 = Fl_Type::current->header1_start; + pos1 = Fl_Type::current->header1_end; + break; + case 4: // code1: all implementation code before the children + pos0 = Fl_Type::current->header2_start; + pos1 = Fl_Type::current->header2_end; + break; } if (pos0>=0) { if (pos1<pos0) @@ -146,7 +152,8 @@ file.} open return_type void sv_project->scroll(line, 0); } } - }} {} + }} {selected + } } Function {update_sourceview_position_cb(class Fl_Tabs*, void*)} { @@ -288,7 +295,7 @@ Function {make_sourceview()} {open label Source open xywh {10 35 500 415} labelsize 13 resizable } { - Fl_Text_Editor sv_source {selected + Fl_Text_Editor sv_source { xywh {10 40 500 410} textfont 4 textsize 11 resizable code0 {\#include "CodeEditor.h"} code1 {o->linenumber_width(60);} |
