diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-11-09 23:12:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-09 23:12:55 +0100 |
| commit | 56cba05672faa953f3e078de6a2db2992dd888b9 (patch) | |
| tree | 8eca88e7f9293ff5c8052762c4d195dd719692a8 /fluid/function_panel.cxx | |
| parent | f41861976b35bfeceed0ffca1b3b97dd89257a55 (diff) | |
Fluid Fl_Widget::image() path fixes. (#536)
* Adding strings and design file to source view panel
* Fluid: Fixed source dir recursion, fixed relative image reading path.
* Renaming source_dir to designfile_dir in some functions.
Diffstat (limited to 'fluid/function_panel.cxx')
| -rw-r--r-- | fluid/function_panel.cxx | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx index b43ec8056..33157400d 100644 --- a/fluid/function_panel.cxx +++ b/fluid/function_panel.cxx @@ -1484,6 +1484,10 @@ CodeViewer *sv_source=(CodeViewer *)0; CodeViewer *sv_header=(CodeViewer *)0; +DesignViewer *sv_strings=(DesignViewer *)0; + +DesignViewer *sv_design=(DesignViewer *)0; + Fl_Light_Button *sv_autorefresh=(Fl_Light_Button *)0; Fl_Light_Button *sv_autoposition=(Fl_Light_Button *)0; @@ -1538,6 +1542,48 @@ Fl_Double_Window* make_sourceview() { } // CodeViewer* sv_header o->end(); } // Fl_Group* o + { Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Strings"); + o->labelsize(13); + o->hide(); + { DesignViewer* o = sv_strings = new DesignViewer(20, 50, 480, 390); + sv_strings->box(FL_DOWN_FRAME); + sv_strings->color(FL_BACKGROUND2_COLOR); + sv_strings->selection_color(FL_SELECTION_COLOR); + sv_strings->labeltype(FL_NORMAL_LABEL); + sv_strings->labelfont(0); + sv_strings->labelsize(14); + sv_strings->labelcolor(FL_FOREGROUND_COLOR); + sv_strings->textfont(4); + sv_strings->textsize(11); + sv_strings->align(Fl_Align(FL_ALIGN_TOP)); + sv_strings->when(FL_WHEN_RELEASE); + Fl_Group::current()->resizable(sv_strings); + o->linenumber_width(60); + o->linenumber_size(o->Fl_Text_Display::textsize()); + } // DesignViewer* sv_strings + o->end(); + } // Fl_Group* o + { Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Design"); + o->labelsize(13); + o->hide(); + { DesignViewer* o = sv_design = new DesignViewer(20, 50, 480, 390); + sv_design->box(FL_DOWN_FRAME); + sv_design->color(FL_BACKGROUND2_COLOR); + sv_design->selection_color(FL_SELECTION_COLOR); + sv_design->labeltype(FL_NORMAL_LABEL); + sv_design->labelfont(0); + sv_design->labelsize(14); + sv_design->labelcolor(FL_FOREGROUND_COLOR); + sv_design->textfont(4); + sv_design->textsize(11); + sv_design->align(Fl_Align(FL_ALIGN_TOP)); + sv_design->when(FL_WHEN_RELEASE); + Fl_Group::current()->resizable(sv_design); + o->linenumber_width(60); + o->linenumber_size(o->Fl_Text_Display::textsize()); + } // DesignViewer* sv_design + o->end(); + } // Fl_Group* o sv_tab->end(); Fl_Group::current()->resizable(sv_tab); } // Fl_Tabs* sv_tab |
