diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 13:41:26 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 13:41:26 +0500 |
| commit | 9575eb0a1ffa8150f70f88b5f6b55f342c3c0088 (patch) | |
| tree | 37f4d24696b03ab80b11c9d31b2c562be2e03ee3 | |
| parent | 260dc2c8828c70b0e147ea394f38e9ee6dc69ee3 (diff) | |
wip
27 files changed, 674 insertions, 674 deletions
| Binary files differ diff --git a/bin/fluid 4 b/bin/fluid 4 Binary files differnew file mode 100755 index 000000000..56f581006 --- /dev/null +++ b/bin/fluid 4 diff --git a/fluid/app/Snap_Action.cxx b/fluid/app/Snap_Action.cxx index 3e71d91c5..f045d325f 100644 --- a/fluid/app/Snap_Action.cxx +++ b/fluid/app/Snap_Action.cxx @@ -1174,8 +1174,8 @@ public: */ class Fd_Snap_Left_Window_Edge : public Fd_Snap_Left { public: - void check(Snap_Data &d) override { clr(); check_x_(d, d.bx, 0); } - void draw(Snap_Data &d) override { draw_left_brace(d.win->o); } + void check(Snap_Data &d) { clr(); check_x_(d, d.bx, 0); } + void draw(Snap_Data &d) { draw_left_brace(d.win->o); } }; Fd_Snap_Left_Window_Edge snap_left_window_edge; @@ -1184,8 +1184,8 @@ Fd_Snap_Left_Window_Edge snap_left_window_edge; */ class Fd_Snap_Right_Window_Edge : public Fd_Snap_Right { public: - void check(Snap_Data &d) override { clr(); check_x_(d, d.br, d.win->o->w()); } - void draw(Snap_Data &d) override { draw_right_brace(d.win->o); } + void check(Snap_Data &d) { clr(); check_x_(d, d.br, d.win->o->w()); } + void draw(Snap_Data &d) { draw_right_brace(d.win->o); } }; Fd_Snap_Right_Window_Edge snap_right_window_edge; @@ -1194,8 +1194,8 @@ Fd_Snap_Right_Window_Edge snap_right_window_edge; */ class Fd_Snap_Top_Window_Edge : public Fd_Snap_Top { public: - void check(Snap_Data &d) override { clr(); check_y_(d, d.by, 0); } - void draw(Snap_Data &d) override { draw_top_brace(d.win->o); } + void check(Snap_Data &d) { clr(); check_y_(d, d.by, 0); } + void draw(Snap_Data &d) { draw_top_brace(d.win->o); } }; Fd_Snap_Top_Window_Edge snap_top_window_edge; @@ -1204,8 +1204,8 @@ Fd_Snap_Top_Window_Edge snap_top_window_edge; */ class Fd_Snap_Bottom_Window_Edge : public Fd_Snap_Bottom { public: - void check(Snap_Data &d) override { clr(); check_y_(d, d.bt, d.win->o->h()); } - void draw(Snap_Data &d) override { draw_bottom_brace(d.win->o); } + void check(Snap_Data &d) { clr(); check_y_(d, d.bt, d.win->o->h()); } + void draw(Snap_Data &d) { draw_bottom_brace(d.win->o); } }; Fd_Snap_Bottom_Window_Edge snap_bottom_window_edge; @@ -1214,11 +1214,11 @@ Fd_Snap_Bottom_Window_Edge snap_bottom_window_edge; */ class Fd_Snap_Left_Window_Margin : public Fd_Snap_Left { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_window(d)) check_x_(d, d.bx, Fluid.proj.layout->left_window_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_h_arrow(d.bx, (d.by+d.bt)/2, 0); } }; @@ -1226,11 +1226,11 @@ Fd_Snap_Left_Window_Margin snap_left_window_margin; class Fd_Snap_Right_Window_Margin : public Fd_Snap_Right { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_window(d)) check_x_(d, d.br, d.win->o->w()-Fluid.proj.layout->right_window_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_h_arrow(d.br, (d.by+d.bt)/2, d.win->o->w()-1); } }; @@ -1238,11 +1238,11 @@ Fd_Snap_Right_Window_Margin snap_right_window_margin; class Fd_Snap_Top_Window_Margin : public Fd_Snap_Top { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_window(d)) check_y_(d, d.by, Fluid.proj.layout->top_window_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_v_arrow((d.bx+d.br)/2, d.by, 0); } }; @@ -1250,11 +1250,11 @@ Fd_Snap_Top_Window_Margin snap_top_window_margin; class Fd_Snap_Bottom_Window_Margin : public Fd_Snap_Bottom { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_window(d)) check_y_(d, d.bt, d.win->o->h()-Fluid.proj.layout->bottom_window_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_v_arrow((d.bx+d.br)/2, d.bt, d.win->o->h()-1); } }; @@ -1267,11 +1267,11 @@ Fd_Snap_Bottom_Window_Margin snap_bottom_window_margin; */ class Fd_Snap_Left_Group_Edge : public Fd_Snap_Left { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d)) check_x_(d, d.bx, parent(d)->x()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_left_brace(parent(d)); } }; @@ -1279,11 +1279,11 @@ Fd_Snap_Left_Group_Edge snap_left_group_edge; class Fd_Snap_Right_Group_Edge : public Fd_Snap_Right { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d)) check_x_(d, d.br, parent(d)->x() + parent(d)->w()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_right_brace(parent(d)); } }; @@ -1291,11 +1291,11 @@ Fd_Snap_Right_Group_Edge snap_right_group_edge; class Fd_Snap_Top_Group_Edge : public Fd_Snap_Top { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d)) check_y_(d, d.by, parent(d)->y()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_top_brace(parent(d)); } }; @@ -1303,11 +1303,11 @@ Fd_Snap_Top_Group_Edge snap_top_group_edge; class Fd_Snap_Bottom_Group_Edge : public Fd_Snap_Bottom { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d)) check_y_(d, d.bt, parent(d)->y() + parent(d)->h()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_bottom_brace(parent(d)); } }; @@ -1319,11 +1319,11 @@ Fd_Snap_Bottom_Group_Edge snap_bottom_group_edge; */ class Fd_Snap_Left_Group_Margin : public Fd_Snap_Left { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d)) check_x_(d, d.bx, parent(d)->x() + Fluid.proj.layout->left_group_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_left_brace(parent(d)); draw_h_arrow(d.bx, (d.by+d.bt)/2, parent(d)->x()); } @@ -1332,11 +1332,11 @@ Fd_Snap_Left_Group_Margin snap_left_group_margin; class Fd_Snap_Right_Group_Margin : public Fd_Snap_Right { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d)) check_x_(d, d.br, parent(d)->x()+parent(d)->w()-Fluid.proj.layout->right_group_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_right_brace(parent(d)); draw_h_arrow(d.br, (d.by+d.bt)/2, parent(d)->x()+parent(d)->w()-1); } @@ -1345,11 +1345,11 @@ Fd_Snap_Right_Group_Margin snap_right_group_margin; class Fd_Snap_Top_Group_Margin : public Fd_Snap_Top { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d) && !in_tabs(d)) check_y_(d, d.by, parent(d)->y()+Fluid.proj.layout->top_group_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_top_brace(parent(d)); draw_v_arrow((d.bx+d.br)/2, d.by, parent(d)->y()); } @@ -1358,11 +1358,11 @@ Fd_Snap_Top_Group_Margin snap_top_group_margin; class Fd_Snap_Bottom_Group_Margin : public Fd_Snap_Bottom { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_group(d) && !in_tabs(d)) check_y_(d, d.bt, parent(d)->y()+parent(d)->h()-Fluid.proj.layout->bottom_group_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_bottom_brace(parent(d)); draw_v_arrow((d.bx+d.br)/2, d.bt, parent(d)->y()+parent(d)->h()-1); } @@ -1376,7 +1376,7 @@ Fd_Snap_Bottom_Group_Margin snap_bottom_group_margin; */ class Fd_Snap_Top_Tabs_Margin : public Fd_Snap_Top_Group_Margin { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_tabs(d)) check_y_(d, d.by, parent(d)->y()+Fluid.proj.layout->top_tabs_margin); } @@ -1385,7 +1385,7 @@ Fd_Snap_Top_Tabs_Margin snap_top_tabs_margin; class Fd_Snap_Bottom_Tabs_Margin : public Fd_Snap_Bottom_Group_Margin { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); if (in_tabs(d)) check_y_(d, d.bt, parent(d)->y()+parent(d)->h()-Fluid.proj.layout->bottom_tabs_margin); } @@ -1415,7 +1415,7 @@ public: else check_x_y_(d, d.bx, nearest_x, d.by, nearest_y); } - bool matches(Snap_Data &d) override { + bool matches(Snap_Data &d) { if (d.drag == FD_LEFT) return (eex == ex); if (d.drag == FD_TOP) return (eey == ey) && (d.dx == dx); return (d.drag & mask) && (eex == ex) && (d.dx == dx) && (eey == ey) && (d.dy == dy); @@ -1427,13 +1427,13 @@ public: */ class Fd_Snap_Window_Grid : public Fd_Snap_Grid { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { Layout_Preset *layout = Fluid.proj.layout; clr(); if (in_window(d)) check_grid(d, layout->left_window_margin, layout->window_grid_x, d.win->o->w()-layout->right_window_margin, layout->top_window_margin, layout->window_grid_y, d.win->o->h()-layout->bottom_window_margin); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { Layout_Preset *layout = Fluid.proj.layout; draw_grid(nearest_x, nearest_y, layout->window_grid_x, layout->window_grid_y); } @@ -1445,7 +1445,7 @@ Fd_Snap_Window_Grid snap_window_grid; */ class Fd_Snap_Group_Grid : public Fd_Snap_Grid { public: - void check(Snap_Data &d) override { + void check(Snap_Data &d) { if (in_group(d)) { Layout_Preset *layout = Fluid.proj.layout; clr(); @@ -1454,7 +1454,7 @@ public: g->y()+layout->top_group_margin, layout->group_grid_y, g->y()+g->h()-layout->bottom_group_margin); } } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { Layout_Preset *layout = Fluid.proj.layout; draw_grid(nearest_x, nearest_y, layout->group_grid_x, layout->group_grid_y); } @@ -1472,7 +1472,7 @@ protected: public: Fd_Snap_Sibling() : best_match(0) { } virtual int sibling_check(Snap_Data &d, Fl_Widget *s) = 0; - void check(Snap_Data &d) override { + void check(Snap_Data &d) { clr(); best_match = 0; if (!d.wgt) return; @@ -1506,10 +1506,10 @@ public: class Fd_Snap_Siblings_Left_Same : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Left_Same() { type = 1; mask = FD_LEFT|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return check_x_(d, d.bx, s->x()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_left_brace(best_match); } }; @@ -1521,11 +1521,11 @@ Fd_Snap_Siblings_Left_Same snap_siblings_left_same; class Fd_Snap_Siblings_Left : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Left() { type = 1; mask = FD_LEFT|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return MIN(check_x_(d, d.bx, s->x()+s->w()), check_x_(d, d.bx, s->x()+s->w()+Fluid.proj.layout->widget_gap_x) ); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_right_brace(best_match); } }; @@ -1534,10 +1534,10 @@ Fd_Snap_Siblings_Left snap_siblings_left; class Fd_Snap_Siblings_Right_Same : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Right_Same() { type = 1; mask = FD_RIGHT|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return check_x_(d, d.br, s->x()+s->w()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_right_brace(best_match); } }; @@ -1546,11 +1546,11 @@ Fd_Snap_Siblings_Right_Same snap_siblings_right_same; class Fd_Snap_Siblings_Right : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Right() { type = 1; mask = FD_RIGHT|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return MIN(check_x_(d, d.br, s->x()), check_x_(d, d.br, s->x()-Fluid.proj.layout->widget_gap_x)); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_left_brace(best_match); } }; @@ -1559,10 +1559,10 @@ Fd_Snap_Siblings_Right snap_siblings_right; class Fd_Snap_Siblings_Top_Same : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Top_Same() { type = 2; mask = FD_TOP|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return check_y_(d, d.by, s->y()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_top_brace(best_match); } }; @@ -1571,11 +1571,11 @@ Fd_Snap_Siblings_Top_Same snap_siblings_top_same; class Fd_Snap_Siblings_Top : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Top() { type = 2; mask = FD_TOP|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return MIN(check_y_(d, d.by, s->y()+s->h()), check_y_(d, d.by, s->y()+s->h()+Fluid.proj.layout->widget_gap_y)); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_bottom_brace(best_match); } }; @@ -1584,10 +1584,10 @@ Fd_Snap_Siblings_Top snap_siblings_top; class Fd_Snap_Siblings_Bottom_Same : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Bottom_Same() { type = 2; mask = FD_BOTTOM|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return check_y_(d, d.bt, s->y()+s->h()); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_bottom_brace(best_match); } }; @@ -1596,11 +1596,11 @@ Fd_Snap_Siblings_Bottom_Same snap_siblings_bottom_same; class Fd_Snap_Siblings_Bottom : public Fd_Snap_Sibling { public: Fd_Snap_Siblings_Bottom() { type = 2; mask = FD_BOTTOM|FD_DRAG; } - int sibling_check(Snap_Data &d, Fl_Widget *s) override { + int sibling_check(Snap_Data &d, Fl_Widget *s) { return MIN(check_y_(d, d.bt, s->y()), check_y_(d, d.bt, s->y()-Fluid.proj.layout->widget_gap_y)); } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { if (best_match) draw_top_brace(best_match); } }; @@ -1615,7 +1615,7 @@ Fd_Snap_Siblings_Bottom snap_siblings_bottom; class Fd_Snap_Widget_Ideal_Width : public Snap_Action { public: Fd_Snap_Widget_Ideal_Width() { type = 1; mask = FD_LEFT|FD_RIGHT; } - void check(Snap_Data &d) override { + void check(Snap_Data &d) { Layout_Preset *layout = Fluid.proj.layout; clr(); if (!d.wgt) return; @@ -1633,7 +1633,7 @@ public: check_x_(d, d.bx, d.br-iw); } } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_width(d.bx, d.bt+7, d.br, 0); } }; @@ -1642,7 +1642,7 @@ Fd_Snap_Widget_Ideal_Width snap_widget_ideal_width; class Fd_Snap_Widget_Ideal_Height : public Snap_Action { public: Fd_Snap_Widget_Ideal_Height() { type = 2; mask = FD_TOP|FD_BOTTOM; } - void check(Snap_Data &d) override { + void check(Snap_Data &d) { Layout_Preset *layout = Fluid.proj.layout; clr(); if (!d.wgt) return; @@ -1660,7 +1660,7 @@ public: check_y_(d, d.by, d.bt-ih); } } - void draw(Snap_Data &d) override { + void draw(Snap_Data &d) { draw_height(d.br+7, d.by, d.bt, 0); } }; diff --git a/fluid/nodes/Button_Node.h b/fluid/nodes/Button_Node.h index 53944d6ea..4ee88d1e1 100644 --- a/fluid/nodes/Button_Node.h +++ b/fluid/nodes/Button_Node.h @@ -28,19 +28,19 @@ public: typedef Widget_Node super; static Button_Node prototype; private: - Fl_Menu_Item *subtypes() override; + Fl_Menu_Item *subtypes(); public: - void ideal_size(int &w, int &h) override; - const char *type_name() override { return "Fl_Button"; } - const char *alt_type_name() override { return "fltk::Button"; } - Fl_Widget *widget(int x, int y, int w, int h) override; - Widget_Node *_make() override { return new Button_Node(); } - int is_button() const override { return 1; } - Type type() const override { return FLD_NODE_TYPE_Button; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Button) ? true : super::is_a(inType); } - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - void copy_properties() override; + void ideal_size(int &w, int &h); + const char *type_name() { return "Fl_Button"; } + const char *alt_type_name() { return "fltk::Button"; } + Fl_Widget *widget(int x, int y, int w, int h); + Widget_Node *_make() { return new Button_Node(); } + int is_button() const { return 1; } + Type type() const { return FLD_NODE_TYPE_Button; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Button) ? true : super::is_a(inType); } + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + void copy_properties(); }; // ---- Return Button ---- @@ -54,13 +54,13 @@ public: typedef Button_Node super; static Return_Button_Node prototype; public: - void ideal_size(int &w, int &h) override; - const char *type_name() override { return "Fl_Return_Button"; } - const char *alt_type_name() override { return "fltk::ReturnButton"; } - Fl_Widget *widget(int x, int y, int w, int h) override; - Widget_Node *_make() override { return new Return_Button_Node(); } - Type type() const override { return FLD_NODE_TYPE_Return_Button; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Return_Button) ? true : super::is_a(inType); } + void ideal_size(int &w, int &h); + const char *type_name() { return "Fl_Return_Button"; } + const char *alt_type_name() { return "fltk::ReturnButton"; } + Fl_Widget *widget(int x, int y, int w, int h); + Widget_Node *_make() { return new Return_Button_Node(); } + Type type() const { return FLD_NODE_TYPE_Return_Button; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Return_Button) ? true : super::is_a(inType); } }; // ---- Repeat Button ---- @@ -77,12 +77,12 @@ public: typedef Button_Node super; static Repeat_Button_Node prototype; public: - const char *type_name() override { return "Fl_Repeat_Button"; } - const char *alt_type_name() override { return "fltk::RepeatButton"; } - Fl_Widget *widget(int x, int y, int w, int h) override; - Widget_Node *_make() override { return new Repeat_Button_Node(); } - Type type() const override { return FLD_NODE_TYPE_Repeat_Button; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Repeat_Button) ? true : super::is_a(inType); } + const char *type_name() { return "Fl_Repeat_Button"; } + const char *alt_type_name() { return "fltk::RepeatButton"; } + Fl_Widget *widget(int x, int y, int w, int h); + Widget_Node *_make() { return new Repeat_Button_Node(); } + Type type() const { return FLD_NODE_TYPE_Repeat_Button; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Repeat_Button) ? true : super::is_a(inType); } }; // ---- Light Button ---- @@ -96,13 +96,13 @@ public: typedef Button_Node super; static Light_Button_Node prototype; public: - void ideal_size(int &w, int &h) override; - const char *type_name() override { return "Fl_Light_Button"; } - const char *alt_type_name() override { return "fltk::LightButton"; } - Fl_Widget *widget(int x, int y, int w, int h) override; - Widget_Node *_make() override { return new Light_Button_Node(); } - Type type() const override { return FLD_NODE_TYPE_Light_Button; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Light_Button) ? true : super::is_a(inType); } + void ideal_size(int &w, int &h); + const char *type_name() { return "Fl_Light_Button"; } + const char *alt_type_name() { return "fltk::LightButton"; } + Fl_Widget *widget(int x, int y, int w, int h); + Widget_Node *_make() { return new Light_Button_Node(); } + Type type() const { return FLD_NODE_TYPE_Light_Button; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Light_Button) ? true : super::is_a(inType); } }; // ---- Check Button ---- @@ -116,13 +116,13 @@ public: typedef Button_Node super; static Check_Button_Node prototype; public: - void ideal_size(int &w, int &h) override; - const char *type_name() override { return "Fl_Check_Button"; } - const char *alt_type_name() override { return "fltk::CheckButton"; } - Fl_Widget *widget(int x, int y, int w, int h) override; - Widget_Node *_make() override { return new Check_Button_Node(); } - Type type() const override { return FLD_NODE_TYPE_Check_Button; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Check_Button) ? true : super::is_a(inType); } + void ideal_size(int &w, int &h); + const char *type_name() { return "Fl_Check_Button"; } + const char *alt_type_name() { return "fltk::CheckButton"; } + Fl_Widget *widget(int x, int y, int w, int h); + Widget_Node *_make() { return new Check_Button_Node(); } + Type type() const { return FLD_NODE_TYPE_Check_Button; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Check_Button) ? true : super::is_a(inType); } }; // ---- Round Button ---- @@ -136,13 +136,13 @@ public: typedef Button_Node super; static Round_Button_Node prototype; public: - void ideal_size(int &w, int &h) override; - const char *type_name() override { return "Fl_Round_Button"; } - const char *alt_type_name() override { return "fltk::RadioButton"; } - Fl_Widget *widget(int x, int y, int w, int h) override; - Widget_Node *_make() override { return new Round_Button_Node(); } - Type type() const override { return FLD_NODE_TYPE_Round_Button; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Round_Button) ? true : super::is_a(inType); } + void ideal_size(int &w, int &h); + const char *type_name() { return "Fl_Round_Button"; } + const char *alt_type_name() { return "fltk::RadioButton"; } + Fl_Widget *widget(int x, int y, int w, int h); + Widget_Node *_make() { return new Round_Button_Node(); } + Type type() const { return FLD_NODE_TYPE_Round_Button; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Round_Button) ? true : super::is_a(inType); } }; diff --git a/fluid/nodes/Function_Node.h b/fluid/nodes/Function_Node.h index 87664e317..cc1444a26 100644 --- a/fluid/nodes/Function_Node.h +++ b/fluid/nodes/Function_Node.h @@ -59,20 +59,20 @@ public: Function_Node(); ~Function_Node(); - Node *make(Strategy strategy) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - void open() override; + Node *make(Strategy strategy); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + void open(); int ismain() {return name_ == 0;} - const char *type_name() override {return "Function";} - const char *title() override { return name() ? name() : "main()"; } - int can_have_children() const override {return 1;} - int is_code_block() const override {return 1;} - int is_public() const override; - Type type() const override { return FLD_NODE_TYPE_Function; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Function) ? true : super::is_a(inType); } - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; + const char *type_name() {return "Function";} + const char *title() { return name() ? name() : "main()"; } + int can_have_children() const {return 1;} + int is_code_block() const {return 1;} + int is_public() const; + Type type() const { return FLD_NODE_TYPE_Function; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Function) ? true : super::is_a(inType); } + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); int has_signature(const char *, const char*) const; const char *return_type() const { return return_type_ ? return_type_ : ""; } void return_type(const char *t) { storestring(t, return_type_); } @@ -98,18 +98,18 @@ private: public: Code_Node() = default; - ~Code_Node() override = default; - - Node *make(Strategy strategy) override; - void write(fld::io::Project_Writer &f) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override { } - void open() override; - const char *type_name() override {return "code";} - int is_code_block() const override {return 0;} - Type type() const override { return FLD_NODE_TYPE_Code; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Code) ? true : super::is_a(inType); } - int is_public() const override { return -1; } + ~Code_Node() = default; + + Node *make(Strategy strategy); + void write(fld::io::Project_Writer &f); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f) { } + void open(); + const char *type_name() {return "code";} + int is_code_block() const {return 0;} + Type type() const { return FLD_NODE_TYPE_Code; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Code) ? true : super::is_a(inType); } + int is_public() const { return -1; } int is_editing(); int reap_editor(); int handle_editor_changes(); @@ -136,18 +136,18 @@ public: CodeBlock_Node(); ~CodeBlock_Node(); - Node *make(Strategy strategy) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - void open() override; - const char *type_name() override {return "codeblock";} - int is_code_block() const override {return 1;} - int can_have_children() const override {return 1;} - int is_public() const override { return -1; } - Type type() const override { return FLD_NODE_TYPE_CodeBlock; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_CodeBlock) ? true : super::is_a(inType); } - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; + Node *make(Strategy strategy); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + void open(); + const char *type_name() {return "codeblock";} + int is_code_block() const {return 1;} + int can_have_children() const {return 1;} + int is_public() const { return -1; } + Type type() const { return FLD_NODE_TYPE_CodeBlock; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_CodeBlock) ? true : super::is_a(inType); } + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); const char *end_code() const { return end_code_ ? end_code_ : ""; } void end_code(const char *c) { storestring(c, end_code_); } }; @@ -166,18 +166,18 @@ protected: public: Decl_Node() = default; - ~Decl_Node() override = default; - - Node *make(Strategy strategy) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override { } - void open() override; - const char *type_name() override {return "decl";} - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - int is_public() const override; - Type type() const override { return FLD_NODE_TYPE_Decl; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Decl) ? true : super::is_a(inType); } + ~Decl_Node() = default; + + Node *make(Strategy strategy); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f) { } + void open(); + const char *type_name() {return "decl";} + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + int is_public() const; + Type type() const { return FLD_NODE_TYPE_Decl; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Decl) ? true : super::is_a(inType); } char visibility() { return public_; } void visibility(char v) { public_ = v; } char output_file() { return (public_&1)|((static_&1)<<1); } @@ -200,15 +200,15 @@ public: Data_Node(); ~Data_Node(); - Node *make(Strategy strategy) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override {} - void open() override; - const char *type_name() override {return "data";} - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - Type type() const override { return FLD_NODE_TYPE_Data; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Data) ? true : super::is_a(inType); } + Node *make(Strategy strategy); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f) {} + void open(); + const char *type_name() {return "data";} + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + Type type() const { return FLD_NODE_TYPE_Data; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Data) ? true : super::is_a(inType); } void filename(const char *fn) { storestring(fn, filename_); } const char *filename() const { return filename_ ? filename_ : ""; } int output_format() { return output_format_; } @@ -237,20 +237,20 @@ public: DeclBlock_Node(); ~DeclBlock_Node(); - Node *make(Strategy strategy) override; - void write_static(fld::io::Code_Writer& f) override; - void write_static_after(fld::io::Code_Writer& f) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - void open() override; - const char *type_name() override {return "declblock";} - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - int can_have_children() const override {return 1;} - int is_decl_block() const override {return 1;} - int is_public() const override; - Type type() const override { return FLD_NODE_TYPE_DeclBlock; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_DeclBlock) ? true : super::is_a(inType); } + Node *make(Strategy strategy); + void write_static(fld::io::Code_Writer& f); + void write_static_after(fld::io::Code_Writer& f); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + void open(); + const char *type_name() {return "declblock";} + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + int can_have_children() const {return 1;} + int is_decl_block() const {return 1;} + int is_public() const; + Type type() const { return FLD_NODE_TYPE_DeclBlock; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_DeclBlock) ? true : super::is_a(inType); } const char *end_code() const { return end_code_ ? end_code_ : ""; } void end_code(const char *p) { storestring(p, end_code_); } int write_map() { return write_map_; } @@ -272,18 +272,18 @@ private: public: Comment_Node() = default; - ~Comment_Node() override = default; - - Node *make(Strategy strategy) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override { } - void open() override; - const char *type_name() override {return "comment";} - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - int is_public() const override { return 1; } - Type type() const override { return FLD_NODE_TYPE_Comment; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Comment) ? true : super::is_a(inType); } + ~Comment_Node() = default; + + Node *make(Strategy strategy); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f) { } + void open(); + const char *type_name() {return "comment";} + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + int is_public() const { return 1; } + Type type() const { return FLD_NODE_TYPE_Comment; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Comment) ? true : super::is_a(inType); } bool in_h() { return in_h_; } void in_h(bool v) { in_h_ = v; } bool in_c() { return in_c_; } @@ -311,19 +311,19 @@ public: char write_public_state; // true when public: has been printed Class_Node* parent_class; // save class if nested - Node *make(Strategy strategy) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - void open() override; - const char *type_name() override {return "class";} - int can_have_children() const override {return 1;} - int is_decl_block() const override {return 1;} - int is_class() const override {return 1;} - int is_public() const override; - Type type() const override { return FLD_NODE_TYPE_Class; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Class) ? true : super::is_a(inType); } - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; + Node *make(Strategy strategy); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + void open(); + const char *type_name() {return "class";} + int can_have_children() const {return 1;} + int is_decl_block() const {return 1;} + int is_class() const {return 1;} + int is_public() const; + Type type() const { return FLD_NODE_TYPE_Class; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Class) ? true : super::is_a(inType); } + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); /** Get base class access and name. */ const char *base_class() const { return base_class_ ? base_class_ : ""; } diff --git a/fluid/nodes/Grid_Node.h b/fluid/nodes/Grid_Node.h index 706791d98..3caf77354 100644 --- a/fluid/nodes/Grid_Node.h +++ b/fluid/nodes/Grid_Node.h @@ -33,8 +33,8 @@ protected: public: Fl_Grid_Proxy(int X,int Y,int W,int H); ~Fl_Grid_Proxy(); - void resize(int,int,int,int) override; - void draw() override; + void resize(int,int,int,int); + void draw(); void draw_overlay(); void move_cell(Fl_Widget *child, int to_row, int to_col, int how = 0); Cell* any_cell(Fl_Widget *widget) const; @@ -51,26 +51,26 @@ public: static Grid_Node prototype; public: Grid_Node(); - const char *type_name() override {return "Fl_Grid";} - const char *alt_type_name() override {return "fltk::GridGroup";} - Widget_Node *_make() override { return new Grid_Node(); } - Fl_Widget *widget(int X,int Y,int W,int H) override; - Type type() const override { return FLD_NODE_TYPE_Grid; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Grid) ? true : super::is_a(inType); } - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - void write_parent_properties(fld::io::Project_Writer &f, Node *child, bool encapsulate) override; - void read_parent_property(fld::io::Project_Reader &f, Node *child, const char *property) override; - Fl_Widget *enter_live_mode(int top=0) override; - void leave_live_mode() override; - void copy_properties() override; - void copy_properties_for_children() override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - void add_child(Node*, Node*) override; - void move_child(Node*, Node*) override; - void remove_child(Node*) override; - void layout_widget() override; + const char *type_name() {return "Fl_Grid";} + const char *alt_type_name() {return "fltk::GridGroup";} + Widget_Node *_make() { return new Grid_Node(); } + Fl_Widget *widget(int X,int Y,int W,int H); + Type type() const { return FLD_NODE_TYPE_Grid; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Grid) ? true : super::is_a(inType); } + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + void write_parent_properties(fld::io::Project_Writer &f, Node *child, bool encapsulate); + void read_parent_property(fld::io::Project_Reader &f, Node *child, const char *property); + Fl_Widget *enter_live_mode(int top=0); + void leave_live_mode(); + void copy_properties(); + void copy_properties_for_children(); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + void add_child(Node*, Node*); + void move_child(Node*, Node*); + void remove_child(Node*); + void layout_widget(); void child_resized(Widget_Node *child); void insert_child_at(Fl_Widget *child, int x, int y); void insert_child_at_next_free_cell(Fl_Widget *child); diff --git a/fluid/nodes/Group_Node.cxx b/fluid/nodes/Group_Node.cxx index eb735cbeb..8ff3b9cdf 100644 --- a/fluid/nodes/Group_Node.cxx +++ b/fluid/nodes/Group_Node.cxx @@ -632,7 +632,7 @@ class Fl_Table_Proxy : public Fl_Table { // Fl_Table calls this function to draw each visible cell in the table. // It's up to us to use FLTK's drawing functions to draw the cells the way we want. // - void draw_cell(TableContext context, int ROW=0, int COL=0, int X=0, int Y=0, int W=0, int H=0) override { + void draw_cell(TableContext context, int ROW=0, int COL=0, int X=0, int Y=0, int W=0, int H=0) { static char s[40]; switch ( context ) { case CONTEXT_STARTPAGE: // before page is drawn.. diff --git a/fluid/nodes/Group_Node.h b/fluid/nodes/Group_Node.h index 71df8aa46..bf630815c 100644 --- a/fluid/nodes/Group_Node.h +++ b/fluid/nodes/Group_Node.h @@ -40,8 +40,8 @@ void ungroup_cb(Fl_Widget *, void *); class Fl_Group_Proxy : public Fl_Group { public: Fl_Group_Proxy(int X,int Y,int W,int H) : Fl_Group(X, Y, W, H) { Fl_Group::current(0); } - void resize(int x, int y, int w, int h) override; - void draw() override; + void resize(int x, int y, int w, int h); + void draw(); }; class Group_Node : public Widget_Node @@ -50,23 +50,23 @@ public: typedef Widget_Node super; static Group_Node prototype; public: - void ideal_size(int &w, int &h) override; - const char *type_name() override {return "Fl_Group";} - const char *alt_type_name() override {return "fltk::Group";} - Fl_Widget *widget(int X,int Y,int W,int H) override { + void ideal_size(int &w, int &h); + const char *type_name() {return "Fl_Group";} + const char *alt_type_name() {return "fltk::Group";} + Fl_Widget *widget(int X,int Y,int W,int H) { Fl_Group_Proxy *g = new Fl_Group_Proxy(X,Y,W,H); Fl_Group::current(0); return g;} - Widget_Node *_make() override {return new Group_Node();} - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - void add_child(Node*, Node*) override; - void move_child(Node*, Node*) override; - void remove_child(Node*) override; - int can_have_children() const override {return 1;} - Type type() const override { return FLD_NODE_TYPE_Group; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Group) ? true : super::is_a(inType); } - Fl_Widget *enter_live_mode(int top=0) override; - void leave_live_mode() override; - void copy_properties() override; + Widget_Node *_make() {return new Group_Node();} + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + void add_child(Node*, Node*); + void move_child(Node*, Node*); + void remove_child(Node*); + int can_have_children() const {return 1;} + Type type() const { return FLD_NODE_TYPE_Group; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Group) ? true : super::is_a(inType); } + Fl_Widget *enter_live_mode(int top=0); + void leave_live_mode(); + void copy_properties(); }; // ---- Pack_Node --------------------------------------------------- MARK: - @@ -80,15 +80,15 @@ public: typedef Group_Node super; static Pack_Node prototype; private: - Fl_Menu_Item *subtypes() override {return pack_type_menu;} + Fl_Menu_Item *subtypes() {return pack_type_menu;} public: - const char *type_name() override {return pack_type_name;} - const char *alt_type_name() override {return "fltk::PackedGroup";} - Widget_Node *_make() override {return new Pack_Node();} - Type type() const override { return FLD_NODE_TYPE_Pack; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Pack) ? true : super::is_a(inType); } - Fl_Widget *enter_live_mode(int top=0) override; - void copy_properties() override; + const char *type_name() {return pack_type_name;} + const char *alt_type_name() {return "fltk::PackedGroup";} + Widget_Node *_make() {return new Pack_Node();} + Type type() const { return FLD_NODE_TYPE_Pack; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Pack) ? true : super::is_a(inType); } + Fl_Widget *enter_live_mode(int top=0); + void copy_properties(); }; // ---- Flex_Node --------------------------------------------------- MARK: - @@ -99,8 +99,8 @@ extern Fl_Menu_Item flex_type_menu[]; class Fl_Flex_Proxy : public Fl_Flex { public: Fl_Flex_Proxy(int X,int Y,int W,int H) : Fl_Flex(X, Y, W, H) { Fl_Group::current(0); } - void resize(int x, int y, int w, int h) override; - void draw() override; + void resize(int x, int y, int w, int h); + void draw(); }; class Flex_Node : public Group_Node @@ -109,30 +109,30 @@ public: typedef Group_Node super; static Flex_Node prototype; private: - Fl_Menu_Item *subtypes() override {return flex_type_menu;} + Fl_Menu_Item *subtypes() {return flex_type_menu;} int fixedSizeTupleSize; /* number of pairs in array */ int *fixedSizeTuple; /* [ index, size, index2, size2, ... ] */ int suspend_auto_layout; public: Flex_Node() : fixedSizeTupleSize(0), fixedSizeTuple(0), suspend_auto_layout(0) { } - const char *type_name() override {return flex_type_name;} - const char *alt_type_name() override {return "fltk::FlexGroup";} - Widget_Node *_make() override { return new Flex_Node(); } - Fl_Widget *widget(int X,int Y,int W,int H) override { + const char *type_name() {return flex_type_name;} + const char *alt_type_name() {return "fltk::FlexGroup";} + Widget_Node *_make() { return new Flex_Node(); } + Fl_Widget *widget(int X,int Y,int W,int H) { Fl_Flex *g = new Fl_Flex_Proxy(X,Y,W,H); Fl_Group::current(0); return g;} - Type type() const override { return FLD_NODE_TYPE_Flex; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Flex) ? true : super::is_a(inType); } - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - Fl_Widget *enter_live_mode(int top=0) override; - void copy_properties() override; - void copy_properties_for_children() override; - void postprocess_read() override; - void write_code2(fld::io::Code_Writer& f) override; -// void add_child(Node*, Node*) override; -// void move_child(Node*, Node*) override; - void remove_child(Node*) override; - void layout_widget() override; + Type type() const { return FLD_NODE_TYPE_Flex; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Flex) ? true : super::is_a(inType); } + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + Fl_Widget *enter_live_mode(int top=0); + void copy_properties(); + void copy_properties_for_children(); + void postprocess_read(); + void write_code2(fld::io::Code_Writer& f); +// void add_child(Node*, Node*); +// void move_child(Node*, Node*); + void remove_child(Node*); + void layout_widget(); void change_subtype_to(int n); void insert_child_at(Fl_Widget *child, int x, int y); void keyboard_move_child(Widget_Node*, int key); @@ -149,17 +149,17 @@ public: typedef Group_Node super; static Table_Node prototype; public: - void ideal_size(int &w, int &h) override; - const char *type_name() override { return "Fl_Table"; } - const char *alt_type_name() override { return "fltk::TableGroup"; } - Widget_Node *_make() override { return new Table_Node(); } - Fl_Widget *widget(int X, int Y, int W, int H) override; - Type type() const override { return FLD_NODE_TYPE_Table; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Table) ? true : super::is_a(inType); } - Fl_Widget *enter_live_mode(int top=0) override; - void add_child(Node*, Node*) override; - void move_child(Node*, Node*) override; - void remove_child(Node*) override; + void ideal_size(int &w, int &h); + const char *type_name() { return "Fl_Table"; } + const char *alt_type_name() { return "fltk::TableGroup"; } + Widget_Node *_make() { return new Table_Node(); } + Fl_Widget *widget(int X, int Y, int W, int H); + Type type() const { return FLD_NODE_TYPE_Table; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Table) ? true : super::is_a(inType); } + Fl_Widget *enter_live_mode(int top=0); + void add_child(Node*, Node*); + void move_child(Node*, Node*); + void remove_child(Node*); }; // ---- Tabs_Node --------------------------------------------------- MARK: - @@ -169,8 +169,8 @@ extern const char tabs_type_name[]; class Fl_Tabs_Proxy : public Fl_Tabs { public: Fl_Tabs_Proxy(int X,int Y,int W,int H) : Fl_Tabs(X,Y,W,H) {} - void resize(int,int,int,int) override; - void draw() override; + void resize(int,int,int,int); + void draw(); }; class Tabs_Node : public Group_Node @@ -179,17 +179,17 @@ public: typedef Group_Node super; static Tabs_Node prototype; public: - const char *type_name() override {return tabs_type_name;} - const char *alt_type_name() override {return "fltk::TabGroup";} - Fl_Widget *widget(int X,int Y,int W,int H) override { + const char *type_name() {return tabs_type_name;} + const char *alt_type_name() {return "fltk::TabGroup";} + Fl_Widget *widget(int X,int Y,int W,int H) { Fl_Tabs_Proxy *g = new Fl_Tabs_Proxy(X,Y,W,H); Fl_Group::current(0); return g;} - Widget_Node *_make() override {return new Tabs_Node();} - Node* click_test(int,int) override; - void add_child(Node*, Node*) override; - void remove_child(Node*) override; - Type type() const override { return FLD_NODE_TYPE_Tabs; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Tabs) ? true : super::is_a(inType); } - Fl_Widget *enter_live_mode(int top=0) override; + Widget_Node *_make() {return new Tabs_Node();} + Node* click_test(int,int); + void add_child(Node*, Node*); + void remove_child(Node*); + Type type() const { return FLD_NODE_TYPE_Tabs; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Tabs) ? true : super::is_a(inType); } + Fl_Widget *enter_live_mode(int top=0); }; // ---- Scroll_Node ------------------------------------------------- MARK: - @@ -203,15 +203,15 @@ public: typedef Group_Node super; static Scroll_Node prototype; private: - Fl_Menu_Item *subtypes() override {return scroll_type_menu;} + Fl_Menu_Item *subtypes() {return scroll_type_menu;} public: - const char *type_name() override {return scroll_type_name;} - const char *alt_type_name() override {return "fltk::ScrollGroup";} - Widget_Node *_make() override {return new Scroll_Node();} - Type type() const override { return FLD_NODE_TYPE_Scroll; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Scroll) ? true : super::is_a(inType); } - Fl_Widget *enter_live_mode(int top=0) override; - void copy_properties() override; + const char *type_name() {return scroll_type_name;} + const char *alt_type_name() {return "fltk::ScrollGroup";} + Widget_Node *_make() {return new Scroll_Node();} + Type type() const { return FLD_NODE_TYPE_Scroll; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Scroll) ? true : super::is_a(inType); } + Fl_Widget *enter_live_mode(int top=0); + void copy_properties(); }; // ---- Tile_Node --------------------------------------------------- MARK: - @@ -224,14 +224,14 @@ public: typedef Group_Node super; static Tile_Node prototype; public: - const char *type_name() override {return tile_type_name;} - const char *alt_type_name() override {return "fltk::TileGroup";} - Widget_Node *_make() override {return new Tile_Node();} - Type type() const override { return FLD_NODE_TYPE_Tile; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Tile) ? true : super::is_a(inType); } - Fl_Widget *enter_live_mode(int top=0) override; - void leave_live_mode() override; - void copy_properties() override; + const char *type_name() {return tile_type_name;} + const char *alt_type_name() {return "fltk::TileGroup";} + Widget_Node *_make() {return new Tile_Node();} + Type type() const { return FLD_NODE_TYPE_Tile; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Tile) ? true : super::is_a(inType); } + Fl_Widget *enter_live_mode(int top=0); + void leave_live_mode(); + void copy_properties(); }; // ---- Wizard_Node ------------------------------------------------- MARK: - @@ -239,8 +239,8 @@ public: class Fl_Wizard_Proxy : public Fl_Wizard { public: Fl_Wizard_Proxy(int X,int Y,int W,int H) : Fl_Wizard(X,Y,W,H) {} - void resize(int,int,int,int) override; - void draw() override; + void resize(int,int,int,int); + void draw(); }; extern const char wizard_type_name[]; @@ -251,13 +251,13 @@ public: typedef Group_Node super; static Wizard_Node prototype; public: - const char *type_name() override {return wizard_type_name;} - const char *alt_type_name() override {return "fltk::WizardGroup";} - Fl_Widget *widget(int X,int Y,int W,int H) override { + const char *type_name() {return wizard_type_name;} + const char *alt_type_name() {return "fltk::WizardGroup";} + Fl_Widget *widget(int X,int Y,int W,int H) { Fl_Wizard_Proxy *g = new Fl_Wizard_Proxy(X,Y,W,H); Fl_Group::current(0); return g;} - Widget_Node *_make() override {return new Wizard_Node();} - Type type() const override { return FLD_NODE_TYPE_Wizard; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Wizard) ? true : super::is_a(inType); } + Widget_Node *_make() {return new Wizard_Node();} + Type type() const { return FLD_NODE_TYPE_Wizard; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Wizard) ? true : super::is_a(inType); } }; #endif // FLUID_NODES_GROUP_NODE_H diff --git a/fluid/nodes/Menu_Node.h b/fluid/nodes/Menu_Node.h index 42484ed43..b0e46afca 100644 --- a/fluid/nodes/Menu_Node.h +++ b/fluid/nodes/Menu_Node.h @@ -52,23 +52,23 @@ public: typedef Button_Node super; static Menu_Item_Node prototype; public: - Fl_Menu_Item* subtypes() override {return menu_item_type_menu;} - const char* type_name() override {return "MenuItem";} - const char* alt_type_name() override {return "fltk::Item";} - Node* make(Strategy strategy) override; + Fl_Menu_Item* subtypes() {return menu_item_type_menu;} + const char* type_name() {return "MenuItem";} + const char* alt_type_name() {return "fltk::Item";} + Node* make(Strategy strategy); Node* make(int flags, Strategy strategy); - int is_button() const override {return 1;} // this gets shortcut to work - Fl_Widget* widget(int,int,int,int) override {return 0;} - Widget_Node* _make() override {return 0;} + int is_button() const {return 1;} // this gets shortcut to work + Fl_Widget* widget(int,int,int,int) {return 0;} + Widget_Node* _make() {return 0;} virtual const char* menu_name(fld::io::Code_Writer& f, int& i); int flags(); - void write_static(fld::io::Code_Writer& f) override; + void write_static(fld::io::Code_Writer& f); void write_item(fld::io::Code_Writer& f); - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - int is_true_widget() const override { return 0; } - Type type() const override { return FLD_NODE_TYPE_Menu_Item; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Menu_Item) ? true : super::is_a(inType); } + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + int is_true_widget() const { return 0; } + Type type() const { return FLD_NODE_TYPE_Menu_Item; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Menu_Item) ? true : super::is_a(inType); } }; /** @@ -80,10 +80,10 @@ public: typedef Menu_Item_Node super; static Radio_Menu_Item_Node prototype; public: - const char* type_name() override {return "RadioMenuItem";} - Node* make(Strategy strategy) override; - Type type() const override { return FLD_NODE_TYPE_Radio_Menu_Item; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Radio_Menu_Item) ? true : super::is_a(inType); } + const char* type_name() {return "RadioMenuItem";} + Node* make(Strategy strategy); + Type type() const { return FLD_NODE_TYPE_Radio_Menu_Item; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Radio_Menu_Item) ? true : super::is_a(inType); } }; /** @@ -95,10 +95,10 @@ public: typedef Menu_Item_Node super; static Checkbox_Menu_Item_Node prototype; public: - const char* type_name() override {return "CheckMenuItem";} - Node* make(Strategy strategy) override; - Type type() const override { return FLD_NODE_TYPE_Checkbox_Menu_Item; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Checkbox_Menu_Item) ? true : super::is_a(inType); } + const char* type_name() {return "CheckMenuItem";} + Node* make(Strategy strategy); + Type type() const { return FLD_NODE_TYPE_Checkbox_Menu_Item; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Checkbox_Menu_Item) ? true : super::is_a(inType); } }; /** @@ -114,19 +114,19 @@ public: typedef Menu_Item_Node super; static Submenu_Node prototype; public: - Fl_Menu_Item* subtypes() override {return 0;} - const char* type_name() override {return "Submenu";} - const char* alt_type_name() override {return "fltk::ItemGroup";} - int can_have_children() const override {return 1;} - int is_button() const override {return 0;} // disable shortcut - Node* make(Strategy strategy) override; + Fl_Menu_Item* subtypes() {return 0;} + const char* type_name() {return "Submenu";} + const char* alt_type_name() {return "fltk::ItemGroup";} + int can_have_children() const {return 1;} + int is_button() const {return 0;} // disable shortcut + Node* make(Strategy strategy); // changes to submenu must propagate up so build_menu is called // on the parent Menu_Node: - void add_child(Node*a, Node*b) override {parent->add_child(a,b);} - void move_child(Node*a, Node*b) override {parent->move_child(a,b);} - void remove_child(Node*a) override {parent->remove_child(a);} - Type type() const override { return FLD_NODE_TYPE_Submenu; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Submenu) ? true : super::is_a(inType); } + void add_child(Node*a, Node*b) {parent->add_child(a,b);} + void move_child(Node*a, Node*b) {parent->move_child(a,b);} + void remove_child(Node*a) {parent->remove_child(a);} + Type type() const { return FLD_NODE_TYPE_Submenu; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Submenu) ? true : super::is_a(inType); } }; // ----------------------------------------------------------------------------- @@ -140,24 +140,24 @@ class Menu_Manager_Node : public Widget_Node { typedef Widget_Node super; public: - void ideal_size(int &w, int &h) override { - auto layout = Fluid.proj.layout; + void ideal_size(int &w, int &h) { + fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() + 8; w = layout->textsize_not_null() * 6 + 8; fld::app::Snap_Action::better_size(w, h); } - int can_have_children() const override {return 1;} + int can_have_children() const {return 1;} int menusize; virtual void build_menu() = 0; Menu_Manager_Node() : Widget_Node() {menusize = 0;} - void add_child(Node*, Node*) override { build_menu(); } - void move_child(Node*, Node*) override { build_menu(); } - void remove_child(Node*) override { build_menu();} - Node* click_test(int x, int y) override = 0; - void write_code2(fld::io::Code_Writer& f) override; - void copy_properties() override = 0; - Type type() const override { return FLD_NODE_TYPE_Menu_Manager_; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Menu_Manager_) ? true : super::is_a(inType); } + void add_child(Node*, Node*) { build_menu(); } + void move_child(Node*, Node*) { build_menu(); } + void remove_child(Node*) { build_menu();} + Node* click_test(int x, int y) = 0; + void write_code2(fld::io::Code_Writer& f); + void copy_properties() = 0; + Type type() const { return FLD_NODE_TYPE_Menu_Manager_; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Menu_Manager_) ? true : super::is_a(inType); } }; /** @@ -172,7 +172,7 @@ public: typedef Menu_Manager_Node super; static Input_Choice_Node prototype; private: - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Input_Choice *myo = (Fl_Input_Choice*)(w==4 ? ((Widget_Node*)this->factory)->o : this->o); switch (w) { case 4: @@ -187,20 +187,20 @@ public: ~Input_Choice_Node() { if (menusize) delete[] (Fl_Menu_Item*)(((Fl_Input_Choice*)o)->menu()); } - const char *type_name() override {return "Fl_Input_Choice";} - const char *alt_type_name() override {return "fltk::ComboBox";} - Node* click_test(int,int) override; - Fl_Widget *widget(int X,int Y,int W,int H) override { + const char *type_name() {return "Fl_Input_Choice";} + const char *alt_type_name() {return "fltk::ComboBox";} + Node* click_test(int,int); + Fl_Widget *widget(int X,int Y,int W,int H) { Fl_Input_Choice *myo = new Fl_Input_Choice(X,Y,W,H,"input choice:"); myo->menu(dummymenu); myo->value("input"); return myo; } - Widget_Node *_make() override {return new Input_Choice_Node();} - void build_menu() override; - Type type() const override { return FLD_NODE_TYPE_Input_Choice; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Input_Choice) ? true : super::is_a(inType); } - void copy_properties() override; + Widget_Node *_make() {return new Input_Choice_Node();} + void build_menu(); + Type type() const { return FLD_NODE_TYPE_Input_Choice; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Input_Choice) ? true : super::is_a(inType); } + void copy_properties(); }; /** @@ -209,7 +209,7 @@ public: class Menu_Base_Node : public Menu_Manager_Node { typedef Menu_Manager_Node super; - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Menu_ *myo = (Fl_Menu_*)(w==4 ? ((Widget_Node*)this->factory)->o : this->o); switch (w) { case 4: @@ -221,15 +221,15 @@ class Menu_Base_Node : public Menu_Manager_Node return 1; } public: - int can_have_children() const override {return 1;} - void build_menu() override; + int can_have_children() const {return 1;} + void build_menu(); ~Menu_Base_Node() { if (menusize) delete[] (Fl_Menu_Item*)(((Fl_Menu_*)o)->menu()); } - Node* click_test(int x, int y) override; - void copy_properties() override; - Type type() const override { return FLD_NODE_TYPE_Menu_; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Menu_) ? true : super::is_a(inType); } + Node* click_test(int x, int y); + void copy_properties(); + Type type() const { return FLD_NODE_TYPE_Menu_; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Menu_) ? true : super::is_a(inType); } }; extern Fl_Menu_Item button_type_menu[]; @@ -243,15 +243,15 @@ public: typedef Menu_Base_Node super; static Menu_Button_Node prototype; private: - Fl_Menu_Item *subtypes() override {return button_type_menu;} + Fl_Menu_Item *subtypes() {return button_type_menu;} public: - const char *type_name() override {return "Fl_Menu_Button";} - const char *alt_type_name() override {return "fltk::MenuButton";} - Fl_Widget *widget(int X,int Y,int W,int H) override { + const char *type_name() {return "Fl_Menu_Button";} + const char *alt_type_name() {return "fltk::MenuButton";} + Fl_Widget *widget(int X,int Y,int W,int H) { return new Fl_Menu_Button(X,Y,W,H,"menu");} - Widget_Node *_make() override {return new Menu_Button_Node();} - Type type() const override { return FLD_NODE_TYPE_Menu_Button; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Menu_Button) ? true : super::is_a(inType); } + Widget_Node *_make() {return new Menu_Button_Node();} + Type type() const { return FLD_NODE_TYPE_Menu_Button; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Menu_Button) ? true : super::is_a(inType); } }; @@ -264,16 +264,16 @@ public: typedef Menu_Base_Node super; static Choice_Node prototype; public: - const char *type_name() override {return "Fl_Choice";} - const char *alt_type_name() override {return "fltk::Choice";} - Fl_Widget *widget(int X,int Y,int W,int H) override { + const char *type_name() {return "Fl_Choice";} + const char *alt_type_name() {return "fltk::Choice";} + Fl_Widget *widget(int X,int Y,int W,int H) { Fl_Choice *myo = new Fl_Choice(X,Y,W,H,"choice:"); myo->menu(dummymenu); return myo; } - Widget_Node *_make() override {return new Choice_Node();} - Type type() const override { return FLD_NODE_TYPE_Choice; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Choice) ? true : super::is_a(inType); } + Widget_Node *_make() {return new Choice_Node();} + Type type() const { return FLD_NODE_TYPE_Choice; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Choice) ? true : super::is_a(inType); } }; @@ -286,19 +286,19 @@ public: typedef Menu_Base_Node super; static Menu_Bar_Node prototype; private: - Fl_Menu_Item *subtypes() override {return menu_bar_type_menu;} + Fl_Menu_Item *subtypes() {return menu_bar_type_menu;} public: Menu_Bar_Node(); - ~Menu_Bar_Node() override; - const char *type_name() override {return "Fl_Menu_Bar";} - const char *alt_type_name() override {return "fltk::MenuBar";} - Fl_Widget *widget(int X,int Y,int W,int H) override {return new Fl_Menu_Bar(X,Y,W,H);} - Widget_Node *_make() override {return new Menu_Bar_Node();} - void write_static(fld::io::Code_Writer& f) override; - void write_code1(fld::io::Code_Writer& f) override; -// void write_code2(fld::io::Code_Writer& f) override; - Type type() const override { return FLD_NODE_TYPE_Menu_Bar; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Menu_Bar) ? true : super::is_a(inType); } + ~Menu_Bar_Node(); + const char *type_name() {return "Fl_Menu_Bar";} + const char *alt_type_name() {return "fltk::MenuBar";} + Fl_Widget *widget(int X,int Y,int W,int H) {return new Fl_Menu_Bar(X,Y,W,H);} + Widget_Node *_make() {return new Menu_Bar_Node();} + void write_static(fld::io::Code_Writer& f); + void write_code1(fld::io::Code_Writer& f); +// void write_code2(fld::io::Code_Writer& f); + Type type() const { return FLD_NODE_TYPE_Menu_Bar; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Menu_Bar) ? true : super::is_a(inType); } int is_sys_menu_bar(); const char* sys_menubar_name() const; const char *sys_menubar_proxy_name(); diff --git a/fluid/nodes/Tree.h b/fluid/nodes/Tree.h index f1a338630..b166c7f0b 100644 --- a/fluid/nodes/Tree.h +++ b/fluid/nodes/Tree.h @@ -89,7 +89,7 @@ public: bool empty() { return first == 0; } - // Iterators: `for (auto &n: tree.all_nodes()) { n.print(); } + // Iterators for traversing nodes and widgets Container all_nodes() { return Container(*this, false); } WContainer all_widgets() { return WContainer(*this, false); } Container all_selected_nodes() { return Container(*this, true); } diff --git a/fluid/nodes/Widget_Node.h b/fluid/nodes/Widget_Node.h index 98a943333..6259c079a 100644 --- a/fluid/nodes/Widget_Node.h +++ b/fluid/nodes/Widget_Node.h @@ -44,7 +44,7 @@ class Widget_Node : public Node virtual Fl_Widget* widget(int,int,int,int) = 0; virtual Widget_Node* _make() = 0; // virtual constructor - void setlabel(const char *) override; + void setlabel(const char *); /// Additional code blocks that can be inserted in the generated code char *extra_code_[NUM_EXTRA_CODE]; @@ -69,12 +69,12 @@ protected: /// disabling the output of the "hide" property by the Widget Type. uchar override_visible_; - void write_static(fld::io::Code_Writer& f) override; - void write_code1(fld::io::Code_Writer& f) override; + void write_static(fld::io::Code_Writer& f); + void write_code1(fld::io::Code_Writer& f); void write_widget_code(fld::io::Code_Writer& f); void write_extra_code(fld::io::Code_Writer& f); void write_block_close(fld::io::Code_Writer& f); - void write_code2(fld::io::Code_Writer& f) override; + void write_code2(fld::io::Code_Writer& f); void write_color(fld::io::Code_Writer& f, const char*, Fl_Color); /// Pointer to widget representing this node in live mode. @@ -118,8 +118,8 @@ public: Widget_Node(); ~Widget_Node(); - Node* make(Strategy strategy) override; - void open() override; + Node* make(Strategy strategy); + void open(); const char* extra_code(int n) const { return extra_code_[n] ? extra_code_[n] : ""; } void extra_code(int n, const char *code); @@ -139,20 +139,20 @@ public: virtual int textstuff(int what, Fl_Font &, int &, Fl_Color &); virtual Fl_Menu_Item* subtypes(); - Type type() const override { return FLD_NODE_TYPE_Widget_; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Widget_) ? true : super::is_a(inType); } - int is_widget() const override; - int is_true_widget() const override { return 1; } - int is_public() const override; + Type type() const { return FLD_NODE_TYPE_Widget_; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Widget_) ? true : super::is_a(inType); } + int is_widget() const; + int is_true_widget() const { return 1; } + int is_public() const; - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - int read_fdesign(const char*, const char*) override; + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + int read_fdesign(const char*, const char*); - Fl_Widget* enter_live_mode(int top=0) override; + Fl_Widget* enter_live_mode(int top=0); Fl_Widget* propagate_live_mode(Fl_Group* grp); - void leave_live_mode() override; - void copy_properties() override; + void leave_live_mode(); + void copy_properties(); virtual void ideal_size(int &w, int &h); diff --git a/fluid/nodes/Window_Node.cxx b/fluid/nodes/Window_Node.cxx index 2bcd9f1b1..9a53d2ecb 100644 --- a/fluid/nodes/Window_Node.cxx +++ b/fluid/nodes/Window_Node.cxx @@ -125,17 +125,17 @@ static int overlays_invisible; // an overlay for the fluid ui, and special-cases the FL_NO_BOX. class Overlay_Window : public Fl_Overlay_Window { - void draw() override; - void draw_overlay() override; + void draw(); + void draw_overlay(); static void close_cb(Overlay_Window *self, void*); public: Window_Node *window; - int handle(int) override; + int handle(int); Overlay_Window(int W,int H) : Fl_Overlay_Window(W,H) { Fl_Group::current(0); callback((Fl_Callback*)close_cb); } - void resize(int,int,int,int) override; + void resize(int,int,int,int); uchar *read_image(int &ww, int &hh); }; diff --git a/fluid/nodes/Window_Node.h b/fluid/nodes/Window_Node.h index 6403dd78e..3c916576d 100644 --- a/fluid/nodes/Window_Node.h +++ b/fluid/nodes/Window_Node.h @@ -52,7 +52,7 @@ public: static Window_Node prototype; protected: - Fl_Menu_Item* subtypes() override {return window_type_menu;} + Fl_Menu_Item* subtypes() {return window_type_menu;} friend class Overlay_Window; int mx,my; // mouse position during dragging @@ -69,15 +69,15 @@ protected: void newdx(); void newposition(Widget_Node *,int &x,int &y,int &w,int &h); int handle(int); - void setlabel(const char *) override; - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - Widget_Node *_make() override {return 0;} // we don't call this - Fl_Widget *widget(int,int,int,int) override {return 0;} + void setlabel(const char *); + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + Widget_Node *_make() {return 0;} // we don't call this + Fl_Widget *widget(int,int,int,int) {return 0;} int recalc; // set by fix_overlay() void moveallchildren(int key=0); - Type type() const override { return FLD_NODE_TYPE_Window; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Window) ? true : super::is_a(inType); } + Type type() const { return FLD_NODE_TYPE_Window; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Window) ? true : super::is_a(inType); } void open_(); public: @@ -98,29 +98,29 @@ public: uchar modal, non_modal; const char *xclass; // junk string, used for shortcut - Node *make(Strategy strategy) override; - const char *type_name() override {return "Fl_Window";} - const char *alt_type_name() override {return "fltk::Window";} + Node *make(Strategy strategy); + const char *type_name() {return "Fl_Window";} + const char *alt_type_name() {return "fltk::Window";} - void open() override; - void ideal_size(int &w, int &h) override; + void open(); + void ideal_size(int &w, int &h); void fix_overlay(); // Update the bounding box, etc uchar *read_image(int &ww, int &hh); // Read an image of the window - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - int read_fdesign(const char*, const char*) override; + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + int read_fdesign(const char*, const char*); - void add_child(Node*, Node*) override; - void move_child(Node*, Node*) override; - void remove_child(Node*) override; + void add_child(Node*, Node*); + void move_child(Node*, Node*); + void remove_child(Node*); - int can_have_children() const override {return 1;} + int can_have_children() const {return 1;} - Fl_Widget *enter_live_mode(int top=0) override; - void leave_live_mode() override; - void copy_properties() override; + Fl_Widget *enter_live_mode(int top=0); + void leave_live_mode(); + void copy_properties(); int sr_min_w, sr_min_h, sr_max_w, sr_max_h; @@ -134,7 +134,7 @@ public: static Widget_Class_Node prototype; protected: - Fl_Menu_Item* subtypes() override {return 0;} + Fl_Menu_Item* subtypes() {return 0;} public: Widget_Class_Node() { @@ -145,19 +145,19 @@ public: char write_public_state; // true when public: has been printed char wc_relative; // if 1, reposition all children, if 2, reposition and resize - void write_properties(fld::io::Project_Writer &f) override; - void read_property(fld::io::Project_Reader &f, const char *) override; - - void write_code1(fld::io::Code_Writer& f) override; - void write_code2(fld::io::Code_Writer& f) override; - Node *make(Strategy strategy) override; - const char *type_name() override {return "widget_class";} - Type type() const override { return FLD_NODE_TYPE_Widget_Class; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Widget_Class) ? true : super::is_a(inType); } - int can_have_children() const override {return 1;} - int is_code_block() const override {return 1;} - int is_decl_block() const override {return 1;} - int is_class() const override {return 1;} + void write_properties(fld::io::Project_Writer &f); + void read_property(fld::io::Project_Reader &f, const char *); + + void write_code1(fld::io::Code_Writer& f); + void write_code2(fld::io::Code_Writer& f); + Node *make(Strategy strategy); + const char *type_name() {return "widget_class";} + Type type() const { return FLD_NODE_TYPE_Widget_Class; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Widget_Class) ? true : super::is_a(inType); } + int can_have_children() const {return 1;} + int is_code_block() const {return 1;} + int is_decl_block() const {return 1;} + int is_class() const {return 1;} }; #endif // FLUID_NODES_WINDOW_NODE_H diff --git a/fluid/nodes/factory.cxx b/fluid/nodes/factory.cxx index 70e960edd..7e6726a41 100644 --- a/fluid/nodes/factory.cxx +++ b/fluid/nodes/factory.cxx @@ -106,8 +106,8 @@ public: typedef Widget_Node super; static Browser_Base_Node prototype; private: - Fl_Menu_Item *subtypes() override { return browser_base_type_menu; } - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + Fl_Menu_Item *subtypes() { return browser_base_type_menu; } + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Browser_ *myo = (Fl_Browser_*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -119,20 +119,20 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { w = 120; h = 160; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Browser_"; } - const char *alt_type_name() override { return "fltk::Browser_"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Browser_"; } + const char *alt_type_name() { return "fltk::Browser_"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Browser* b = new Fl_Browser(x, y, w, h); return b; } - Widget_Node *_make() override { return new Browser_Base_Node(); } - Type type() const override { return FLD_NODE_TYPE_Browser_; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Browser_) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Browser_Base_Node(); } + Type type() const { return FLD_NODE_TYPE_Browser_; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Browser_) ? true : super::is_a(inType); } }; Browser_Base_Node Browser_Base_Node::prototype; @@ -150,9 +150,9 @@ public: typedef Browser_Base_Node super; static Browser_Node prototype; public: - const char *type_name() override { return "Fl_Browser"; } - const char *alt_type_name() override { return "fltk::Browser"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Browser"; } + const char *alt_type_name() { return "fltk::Browser"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Browser* b = new Fl_Browser(x, y, w, h); // Fl_Browser::add calls fl_height(), which requires the X display open. // Avoid this when compiling so it works w/o a display: @@ -165,9 +165,9 @@ public: } return b; } - Widget_Node *_make() override { return new Browser_Node(); } - Type type() const override { return FLD_NODE_TYPE_Browser; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Browser) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Browser_Node(); } + Type type() const { return FLD_NODE_TYPE_Browser; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Browser) ? true : super::is_a(inType); } }; Browser_Node Browser_Node::prototype; @@ -185,9 +185,9 @@ public: typedef Browser_Base_Node super; static Check_Browser_Node prototype; public: - const char *type_name() override { return "Fl_Check_Browser"; } - const char *alt_type_name() override { return "fltk::CheckBrowser"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Check_Browser"; } + const char *alt_type_name() { return "fltk::CheckBrowser"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Check_Browser* b = new Fl_Check_Browser(x, y, w, h); // Fl_Check_Browser::add calls fl_height(), which requires the X display open. // Avoid this when compiling so it works w/o a display: @@ -200,9 +200,9 @@ public: } return b; } - Widget_Node *_make() override { return new Check_Browser_Node(); } - Type type() const override { return FLD_NODE_TYPE_Check_Browser; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Check_Browser) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Check_Browser_Node(); } + Type type() const { return FLD_NODE_TYPE_Check_Browser; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Check_Browser) ? true : super::is_a(inType); } }; Check_Browser_Node Check_Browser_Node::prototype; @@ -221,16 +221,16 @@ public: typedef Browser_Node super; static File_Browser_Node prototype; public: - const char *type_name() override { return "Fl_File_Browser"; } - const char *alt_type_name() override { return "fltk::FileBrowser"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_File_Browser"; } + const char *alt_type_name() { return "fltk::FileBrowser"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_File_Browser* b = new Fl_File_Browser(x, y, w, h); if (!Fluid.batch_mode) b->load("."); return b; } - Widget_Node *_make() override { return new File_Browser_Node(); } - Type type() const override { return FLD_NODE_TYPE_File_Browser; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_File_Browser) ? true : super::is_a(inType); } + Widget_Node *_make() { return new File_Browser_Node(); } + Type type() const { return FLD_NODE_TYPE_File_Browser; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_File_Browser) ? true : super::is_a(inType); } }; File_Browser_Node File_Browser_Node::prototype; @@ -252,14 +252,14 @@ public: typedef Widget_Node super; static Tree_Node prototype; public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { w = 120; h = 160; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Tree"; } - const char *alt_type_name() override { return "fltk::TreeBrowser"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Tree"; } + const char *alt_type_name() { return "fltk::TreeBrowser"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Tree* b = new Fl_Tree(x, y, w, h); if (!Fluid.batch_mode) { b->add("/A1/B1/C1"); @@ -273,9 +273,9 @@ public: } return b; } - Widget_Node *_make() override { return new Tree_Node(); } - Type type() const override { return FLD_NODE_TYPE_Tree; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Tree) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Tree_Node(); } + Type type() const { return FLD_NODE_TYPE_Tree; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Tree) ? true : super::is_a(inType); } }; Tree_Node Tree_Node::prototype; @@ -295,7 +295,7 @@ public: typedef Widget_Node super; static Help_View_Node prototype; private: - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Help_View *myo = (Fl_Help_View*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -307,14 +307,14 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { w = 160; h = 120; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Help_View"; } - const char *alt_type_name() override { return "fltk::HelpView"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Help_View"; } + const char *alt_type_name() { return "fltk::HelpView"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Help_View *myo = new Fl_Help_View(x, y, w, h); if (!Fluid.batch_mode) { myo->value("<HTML><BODY><H1>Fl_Help_View Widget</H1>" @@ -322,9 +322,9 @@ public: } return myo; } - Widget_Node *_make() override { return new Help_View_Node(); } - Type type() const override { return FLD_NODE_TYPE_Help_View; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Help_View) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Help_View_Node(); } + Type type() const { return FLD_NODE_TYPE_Help_View; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Help_View) ? true : super::is_a(inType); } }; Help_View_Node Help_View_Node::prototype; @@ -345,14 +345,14 @@ public: typedef Widget_Node super; static Valuator_Node prototype; public: - const char *type_name() override { return "Fl_Valuator"; } - const char *alt_type_name() override { return "fltk::Valuator"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Valuator"; } + const char *alt_type_name() { return "fltk::Valuator"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Slider(x, y, w, h, "Valuator"); } - Widget_Node *_make() override { return new Valuator_Node(); } - Type type() const override { return FLD_NODE_TYPE_Valuator_; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Valuator_) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Valuator_Node(); } + Type type() const { return FLD_NODE_TYPE_Valuator_; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Valuator_) ? true : super::is_a(inType); } }; Valuator_Node Valuator_Node::prototype; @@ -376,8 +376,8 @@ public: typedef Valuator_Node super; static Counter_Node prototype; private: - Fl_Menu_Item *subtypes() override { return counter_type_menu; } - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + Fl_Menu_Item *subtypes() { return counter_type_menu; } + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Counter *myo = (Fl_Counter*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -389,20 +389,20 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() + 8; w = layout->textsize_not_null() * 4 + 4 * h; // make room for the arrows fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Counter"; } - const char *alt_type_name() override { return "fltk::Counter"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Counter"; } + const char *alt_type_name() { return "fltk::Counter"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Counter(x, y, w, h, "counter:"); } - Widget_Node *_make() override { return new Counter_Node(); } - Type type() const override { return FLD_NODE_TYPE_Counter; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Counter) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Counter_Node(); } + Type type() const { return FLD_NODE_TYPE_Counter; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Counter) ? true : super::is_a(inType); } }; Counter_Node Counter_Node::prototype; @@ -419,20 +419,20 @@ public: typedef Valuator_Node super; static Adjuster_Node prototype; public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = 3 * h; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Adjuster"; } - const char *alt_type_name() override { return "fltk::Adjuster"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Adjuster"; } + const char *alt_type_name() { return "fltk::Adjuster"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Adjuster(x, y, w, h); } - Widget_Node *_make() override { return new Adjuster_Node(); } - Type type() const override { return FLD_NODE_TYPE_Adjuster; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Adjuster) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Adjuster_Node(); } + Type type() const { return FLD_NODE_TYPE_Adjuster; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Adjuster) ? true : super::is_a(inType); } }; Adjuster_Node Adjuster_Node::prototype; @@ -456,20 +456,20 @@ public: typedef Valuator_Node super; static Dial_Node prototype; private: - Fl_Menu_Item *subtypes() override { return dial_type_menu; } + Fl_Menu_Item *subtypes() { return dial_type_menu; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { w = 60; h = 60; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Dial"; } - const char *alt_type_name() override { return "fltk::Dial"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Dial"; } + const char *alt_type_name() { return "fltk::Dial"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Dial(x, y, w, h); } - Widget_Node *_make() override { return new Dial_Node(); } - Type type() const override { return FLD_NODE_TYPE_Dial; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Dial) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Dial_Node(); } + Type type() const { return FLD_NODE_TYPE_Dial; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Dial) ? true : super::is_a(inType); } }; Dial_Node Dial_Node::prototype; @@ -492,22 +492,22 @@ public: typedef Valuator_Node super; static Roller_Node prototype; private: - Fl_Menu_Item *subtypes() override { return roller_type_menu; } + Fl_Menu_Item *subtypes() { return roller_type_menu; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; w = layout->labelsize + 8; h = 4 * w; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Roller"; } - const char *alt_type_name() override { return "fltk::Roller"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Roller"; } + const char *alt_type_name() { return "fltk::Roller"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Roller(x, y, w, h); } - Widget_Node *_make() override { return new Roller_Node(); } - Type type() const override { return FLD_NODE_TYPE_Roller; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Roller) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Roller_Node(); } + Type type() const { return FLD_NODE_TYPE_Roller; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Roller) ? true : super::is_a(inType); } }; Roller_Node Roller_Node::prototype; @@ -536,22 +536,22 @@ public: typedef Valuator_Node super; static Slider_Node prototype; private: - Fl_Menu_Item *subtypes() override { return slider_type_menu; } + Fl_Menu_Item *subtypes() { return slider_type_menu; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; w = layout->labelsize + 8; h = 4 * w; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Slider"; } - const char *alt_type_name() override { return "fltk::Slider"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Slider"; } + const char *alt_type_name() { return "fltk::Slider"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Slider(x, y, w, h, "slider:"); } - Widget_Node *_make() override { return new Slider_Node(); } - Type type() const override { return FLD_NODE_TYPE_Slider; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Slider) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Slider_Node(); } + Type type() const { return FLD_NODE_TYPE_Slider; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Slider) ? true : super::is_a(inType); } }; Slider_Node Slider_Node::prototype; @@ -574,16 +574,16 @@ public: typedef Slider_Node super; static Scrollbar_Node prototype; private: - Fl_Menu_Item *subtypes() override { return scrollbar_type_menu; } + Fl_Menu_Item *subtypes() { return scrollbar_type_menu; } public: - const char *type_name() override { return "Fl_Scrollbar"; } - const char *alt_type_name() override { return "fltk::Scrollbar"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Scrollbar"; } + const char *alt_type_name() { return "fltk::Scrollbar"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Scrollbar(x, y, w, h); } - Widget_Node *_make() override { return new Scrollbar_Node(); } - Type type() const override { return FLD_NODE_TYPE_Scrollbar; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Scrollbar) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Scrollbar_Node(); } + Type type() const { return FLD_NODE_TYPE_Scrollbar; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Scrollbar) ? true : super::is_a(inType); } }; Scrollbar_Node Scrollbar_Node::prototype; @@ -600,7 +600,7 @@ public: typedef Slider_Node super; static Value_Slider_Node prototype; private: - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Value_Slider *myo = (Fl_Value_Slider*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -612,14 +612,14 @@ private: return 1; } public: - const char *type_name() override { return "Fl_Value_Slider"; } - const char *alt_type_name() override { return "fltk::ValueSlider"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Value_Slider"; } + const char *alt_type_name() { return "fltk::ValueSlider"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Value_Slider(x, y, w, h, "slider:"); } - Widget_Node *_make() override { return new Value_Slider_Node(); } - Type type() const override { return FLD_NODE_TYPE_Value_Slider; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Value_Slider) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Value_Slider_Node(); } + Type type() const { return FLD_NODE_TYPE_Value_Slider; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Value_Slider) ? true : super::is_a(inType); } }; Value_Slider_Node Value_Slider_Node::prototype; @@ -636,7 +636,7 @@ public: typedef Valuator_Node super; static Value_Input_Node prototype; private: - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Value_Input *myo = (Fl_Value_Input*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -648,21 +648,21 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() + 8; w = layout->textsize_not_null() * 4 + 8; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Value_Input"; } - const char *alt_type_name() override { return "fltk::ValueInput"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Value_Input"; } + const char *alt_type_name() { return "fltk::ValueInput"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Value_Input *myo = new Fl_Value_Input(x, y, w, h, "value:"); return myo; } - Widget_Node *_make() override { return new Value_Input_Node(); } - Type type() const override { return FLD_NODE_TYPE_Value_Input; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Value_Input) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Value_Input_Node(); } + Type type() const { return FLD_NODE_TYPE_Value_Input; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Value_Input) ? true : super::is_a(inType); } }; Value_Input_Node Value_Input_Node::prototype; @@ -679,7 +679,7 @@ public: typedef Valuator_Node super; static Value_Output_Node prototype; private: - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Value_Output *myo = (Fl_Value_Output*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -691,21 +691,21 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() + 8; w = layout->textsize_not_null() * 4 + 8; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Value_Output"; } - const char *alt_type_name() override { return "fltk::ValueOutput"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Value_Output"; } + const char *alt_type_name() { return "fltk::ValueOutput"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Value_Output *myo = new Fl_Value_Output(x, y, w, h, "value:"); return myo; } - Widget_Node *_make() override { return new Value_Output_Node(); } - Type type() const override { return FLD_NODE_TYPE_Value_Output; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Value_Output) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Value_Output_Node(); } + Type type() const { return FLD_NODE_TYPE_Value_Output; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Value_Output) ? true : super::is_a(inType); } }; Value_Output_Node Value_Output_Node::prototype; @@ -737,8 +737,8 @@ public: typedef Widget_Node super; static Input_Node prototype; private: - Fl_Menu_Item *subtypes() override { return input_type_menu; } - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + Fl_Menu_Item *subtypes() { return input_type_menu; } + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Input_ *myo = (Fl_Input_*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -750,23 +750,23 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() + 8; w = layout->textsize_not_null() * 6 + 8; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Input"; } - const char *alt_type_name() override { return "fltk::Input"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Input"; } + const char *alt_type_name() { return "fltk::Input"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Input *myo = new Fl_Input(x, y, w, h, "input:"); myo->value("Text Input"); return myo; } - Widget_Node *_make() override { return new Input_Node(); } - Type type() const override { return FLD_NODE_TYPE_Input; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Input) ? true : super::is_a(inType); } - void copy_properties() override { + Widget_Node *_make() { return new Input_Node(); } + Type type() const { return FLD_NODE_TYPE_Input; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Input) ? true : super::is_a(inType); } + void copy_properties() { Widget_Node::copy_properties(); Fl_Input_ *d = (Fl_Input_*)live_widget, *s = (Fl_Input_*)o; d->textfont(s->textfont()); @@ -790,24 +790,24 @@ public: typedef Input_Node super; static File_Input_Node prototype; private: - Fl_Menu_Item *subtypes() override { return 0; } // Don't inherit. + Fl_Menu_Item *subtypes() { return 0; } // Don't inherit. public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() + 8 + 10; // Directoy bar is additional 10 pixels high w = layout->textsize_not_null() * 10 + 8; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_File_Input"; } - const char *alt_type_name() override { return "fltk::FileInput"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_File_Input"; } + const char *alt_type_name() { return "fltk::FileInput"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_File_Input *myo = new Fl_File_Input(x, y, w, h, "file:"); myo->value("/usr/include/FL/Fl.H"); return myo; } - Widget_Node *_make() override { return new File_Input_Node(); } - Type type() const override { return FLD_NODE_TYPE_File_Input; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_File_Input) ? true : super::is_a(inType); } + Widget_Node *_make() { return new File_Input_Node(); } + Type type() const { return FLD_NODE_TYPE_File_Input; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_File_Input) ? true : super::is_a(inType); } }; File_Input_Node File_Input_Node::prototype; @@ -830,18 +830,18 @@ public: typedef Input_Node super; static Output_Node prototype; private: - Fl_Menu_Item *subtypes() override { return output_type_menu; } + Fl_Menu_Item *subtypes() { return output_type_menu; } public: - const char *type_name() override { return "Fl_Output"; } - const char *alt_type_name() override { return "fltk::Output"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Output"; } + const char *alt_type_name() { return "fltk::Output"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Output *myo = new Fl_Output(x, y, w, h, "output:"); myo->value("Text Output"); return myo; } - Widget_Node *_make() override { return new Output_Node(); } - Type type() const override { return FLD_NODE_TYPE_Output; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Output) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Output_Node(); } + Type type() const { return FLD_NODE_TYPE_Output; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Output) ? true : super::is_a(inType); } }; Output_Node Output_Node::prototype; @@ -864,7 +864,7 @@ public: typedef Widget_Node super; static Text_Display_Node prototype; private: - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Text_Display *myo = (Fl_Text_Display*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -876,15 +876,15 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() * 4 + 8; w = layout->textsize_not_null() * 10 + 8; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Text_Display"; } - const char *alt_type_name() override { return "fltk::TextDisplay"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Text_Display"; } + const char *alt_type_name() { return "fltk::TextDisplay"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Text_Display *myo = new Fl_Text_Display(x, y, w, h); if (!Fluid.batch_mode) { Fl_Text_Buffer *b = new Fl_Text_Buffer(); @@ -893,9 +893,9 @@ public: } return myo; } - Widget_Node *_make() override { return new Text_Display_Node(); } - Type type() const override { return FLD_NODE_TYPE_Text_Display; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Text_Display) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Text_Display_Node(); } + Type type() const { return FLD_NODE_TYPE_Text_Display; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Text_Display) ? true : super::is_a(inType); } }; Text_Display_Node Text_Display_Node::prototype; @@ -912,9 +912,9 @@ public: typedef Text_Display_Node super; static Text_Editor_Node prototype; public: - const char *type_name() override {return "Fl_Text_Editor";} - const char *alt_type_name() override {return "fltk::TextEditor";} - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() {return "Fl_Text_Editor";} + const char *alt_type_name() {return "fltk::TextEditor";} + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Text_Editor *myo = new Fl_Text_Editor(x, y, w, h); if (!Fluid.batch_mode) { Fl_Text_Buffer *b = new Fl_Text_Buffer(); @@ -923,9 +923,9 @@ public: } return myo; } - Widget_Node *_make() override { return new Text_Editor_Node(); } - Type type() const override { return FLD_NODE_TYPE_Text_Editor; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Text_Editor) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Text_Editor_Node(); } + Type type() const { return FLD_NODE_TYPE_Text_Editor; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Text_Editor) ? true : super::is_a(inType); } }; Text_Editor_Node Text_Editor_Node::prototype; @@ -942,7 +942,7 @@ public: clear_screen_home(false); append("> ls -als"); } - void resize(int x, int y, int w, int h) override { + void resize(int x, int y, int w, int h) { Fl_Terminal::resize(x, y, w, h); // After a resize, the top text vanishes, so make sure we redraw it. print_sample_text(); @@ -983,10 +983,10 @@ public: typedef Widget_Node super; static Terminal_Node prototype; public: - const char *type_name() override { return "Fl_Terminal"; } + const char *type_name() { return "Fl_Terminal"; } // Older .fl files with Fl_Simple_Terminal will create a Fl_Terminal instead. - const char *alt_type_name() override { return "Fl_Simple_Terminal"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *alt_type_name() { return "Fl_Simple_Terminal"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Widget *ret = 0; if (Fluid.batch_mode) { ret = new Fl_Batchmode_Terminal(x, y, w, h); @@ -996,7 +996,7 @@ public: } return ret; } - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { if (Fluid.batch_mode) { Fl_Batchmode_Terminal *myo = (Fl_Batchmode_Terminal*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { @@ -1018,9 +1018,9 @@ public: } return 1; } - Widget_Node *_make() override {return new Terminal_Node();} - Type type() const override { return FLD_NODE_TYPE_Terminal; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Terminal) ? true : super::is_a(inType); } + Widget_Node *_make() {return new Terminal_Node();} + Type type() const { return FLD_NODE_TYPE_Terminal; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Terminal) ? true : super::is_a(inType); } }; Terminal_Node Terminal_Node::prototype; @@ -1041,18 +1041,18 @@ public: typedef Widget_Node super; static Box_Node prototype; public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { w = 100; h = 100; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Box"; } - const char *alt_type_name() override { return "fltk::Widget"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Box"; } + const char *alt_type_name() { return "fltk::Widget"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Box(x, y, w, h, "label"); } - Widget_Node *_make() override { return new Box_Node(); } - Type type() const override { return FLD_NODE_TYPE_Box; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Box) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Box_Node(); } + Type type() const { return FLD_NODE_TYPE_Box; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Box) ? true : super::is_a(inType); } }; Box_Node Box_Node::prototype; @@ -1070,18 +1070,18 @@ public: typedef Widget_Node super; static Clock_Node prototype; public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { w = 80; h = 80; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Clock"; } - const char *alt_type_name() override { return "fltk::Clock"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Clock"; } + const char *alt_type_name() { return "fltk::Clock"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Clock(x, y, w, h); } - Widget_Node *_make() override { return new Clock_Node(); } - Type type() const override { return FLD_NODE_TYPE_Clock; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Clock) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Clock_Node(); } + Type type() const { return FLD_NODE_TYPE_Clock; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Clock) ? true : super::is_a(inType); } }; Clock_Node Clock_Node::prototype; @@ -1100,22 +1100,22 @@ public: typedef Widget_Node super; static Progress_Node prototype; public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->labelsize + 8; w = layout->labelsize * 12; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Progress"; } - const char *alt_type_name() override { return "fltk::ProgressBar"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Progress"; } + const char *alt_type_name() { return "fltk::ProgressBar"; } + Fl_Widget *widget(int x, int y, int w, int h) { Fl_Progress *myo = new Fl_Progress(x, y, w, h, "label"); myo->value(50); return myo; } - Widget_Node *_make() override { return new Progress_Node(); } - Type type() const override { return FLD_NODE_TYPE_Progress; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Progress) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Progress_Node(); } + Type type() const { return FLD_NODE_TYPE_Progress; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Progress) ? true : super::is_a(inType); } }; Progress_Node Progress_Node::prototype; @@ -1139,8 +1139,8 @@ public: typedef Widget_Node super; static Spinner_Node prototype; private: - Fl_Menu_Item *subtypes() override { return spinner_type_menu; } - int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) override { + Fl_Menu_Item *subtypes() { return spinner_type_menu; } + int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { Fl_Spinner *myo = (Fl_Spinner*)(w==4 ? ((Widget_Node*)factory)->o : o); switch (w) { case 4: @@ -1152,20 +1152,20 @@ private: return 1; } public: - void ideal_size(int &w, int &h) override { + void ideal_size(int &w, int &h) { fld::app::Layout_Preset *layout = Fluid.proj.layout; h = layout->textsize_not_null() + 8; w = layout->textsize_not_null() * 4 + 8; fld::app::Snap_Action::better_size(w, h); } - const char *type_name() override { return "Fl_Spinner"; } - const char *alt_type_name() override { return "fltk::Spinner"; } - Fl_Widget *widget(int x, int y, int w, int h) override { + const char *type_name() { return "Fl_Spinner"; } + const char *alt_type_name() { return "fltk::Spinner"; } + Fl_Widget *widget(int x, int y, int w, int h) { return new Fl_Spinner(x, y, w, h, "spinner:"); } - Widget_Node *_make() override { return new Spinner_Node(); } - Type type() const override { return FLD_NODE_TYPE_Spinner; } - bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Spinner) ? true : super::is_a(inType); } + Widget_Node *_make() { return new Spinner_Node(); } + Type type() const { return FLD_NODE_TYPE_Spinner; } + bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Spinner) ? true : super::is_a(inType); } }; Spinner_Node Spinner_Node::prototype; diff --git a/fluid/widgets/App_Menu_Bar.h b/fluid/widgets/App_Menu_Bar.h index bda77031f..d9547c38f 100644 --- a/fluid/widgets/App_Menu_Bar.h +++ b/fluid/widgets/App_Menu_Bar.h @@ -32,7 +32,7 @@ namespace widget { class App_Menu_Bar : public Fl_Menu_Bar { public: App_Menu_Bar(int X, int Y, int W, int H, const char *L = 0); - int handle(int event) override; + int handle(int event); }; } // namespace widget diff --git a/fluid/widgets/Bin_Button.h b/fluid/widgets/Bin_Button.h index e04228c82..aac415ff8 100644 --- a/fluid/widgets/Bin_Button.h +++ b/fluid/widgets/Bin_Button.h @@ -25,7 +25,7 @@ namespace widget { // Adding drag and drop for dragging widgets into windows. class Bin_Button : public Fl_Button { public: - int handle(int) override; + int handle(int); Bin_Button(int X,int Y,int W,int H, const char* l = 0) : Fl_Button(X,Y,W,H,l) { } }; @@ -33,7 +33,7 @@ public: // Adding drag and drop functionality to drag window prototypes onto the desktop. class Bin_Window_Button : public Fl_Button { public: - int handle(int) override; + int handle(int); Bin_Window_Button(int X,int Y,int W,int H, const char* l = 0) : Fl_Button(X,Y,W,H,l) { } }; diff --git a/fluid/widgets/Code_Viewer.h b/fluid/widgets/Code_Viewer.h index 976462ca1..a65a66f58 100644 --- a/fluid/widgets/Code_Viewer.h +++ b/fluid/widgets/Code_Viewer.h @@ -40,10 +40,10 @@ public: Code_Viewer(int X, int Y, int W, int H, const char *L = 0); protected: - void draw() override; + void draw(); /// Limit event handling to viewing, not editing - int handle(int ev) override { return Fl_Text_Display::handle(ev); } + int handle(int ev) { return Fl_Text_Display::handle(ev); } }; } // namespace widget diff --git a/fluid/widgets/Formula_Input.h b/fluid/widgets/Formula_Input.h index 5daa22bd9..53321ff21 100644 --- a/fluid/widgets/Formula_Input.h +++ b/fluid/widgets/Formula_Input.h @@ -64,7 +64,7 @@ public: void callback(Fl_Callback *cb) { user_callback_ = cb; } void variables(fld::widget::Formula_Input_Vars *vars, void *user_data); - int handle(int) override; + int handle(int); }; } // namespace widget diff --git a/fluid/widgets/Node_Browser.h b/fluid/widgets/Node_Browser.h index 1296c3108..5ca0ae566 100644 --- a/fluid/widgets/Node_Browser.h +++ b/fluid/widgets/Node_Browser.h @@ -37,19 +37,19 @@ class Node_Browser : public Fl_Browser_ int saved_v_scroll_ { 0 }; // required routines for Fl_Browser_ subclass: - void *item_first() const override; - void *item_next(void *) const override; - void *item_prev(void *) const override; - int item_selected(void *) const override; - void item_select(void *,int) override; - int item_width(void *) const override; - int item_height(void *) const override; - void item_draw(void *,int,int,int,int) const override; - int incr_height() const override; + void *item_first() const; + void *item_next(void *) const; + void *item_prev(void *) const; + int item_selected(void *) const; + void item_select(void *,int); + int item_width(void *) const; + int item_height(void *) const; + void item_draw(void *,int,int,int,int) const; + int incr_height() const; public: Node_Browser(int,int,int,int,const char * = 0); - int handle(int) override; + int handle(int); void callback(); void save_scroll_position(); void restore_scroll_position(); diff --git a/fluid/widgets/Text_Viewer.h b/fluid/widgets/Text_Viewer.h index ced32cd39..dac23e855 100644 --- a/fluid/widgets/Text_Viewer.h +++ b/fluid/widgets/Text_Viewer.h @@ -33,7 +33,7 @@ class Text_Viewer : public Fl_Text_Display { public: Text_Viewer(int X, int Y, int W, int H, const char *L = 0); ~Text_Viewer(); - void draw() override; + void draw(); /// access to protected member get_absolute_top_line_number() int top_line() { return get_absolute_top_line_number(); } diff --git a/lib/libfltk.a b/lib/libfltk.a Binary files differindex 0c2753209..7de0a4490 100644 --- a/lib/libfltk.a +++ b/lib/libfltk.a diff --git a/lib/libfltk_forms.a b/lib/libfltk_forms.a Binary files differindex b2d7580ac..8439bdee4 100644 --- a/lib/libfltk_forms.a +++ b/lib/libfltk_forms.a diff --git a/lib/libfltk_gl.a b/lib/libfltk_gl.a Binary files differindex a25ef19ac..d336f6c8c 100644 --- a/lib/libfltk_gl.a +++ b/lib/libfltk_gl.a diff --git a/lib/libfltk_images.a b/lib/libfltk_images.a Binary files differindex ace2f70b9..1e762d6da 100644 --- a/lib/libfltk_images.a +++ b/lib/libfltk_images.a diff --git a/lib/libfltk_jpeg.a b/lib/libfltk_jpeg.a Binary files differindex cdb761cda..22fc5ecfe 100644 --- a/lib/libfltk_jpeg.a +++ b/lib/libfltk_jpeg.a diff --git a/lib/libfltk_png.a b/lib/libfltk_png.a Binary files differindex e1e3f9f72..ac75ae338 100644 --- a/lib/libfltk_png.a +++ b/lib/libfltk_png.a diff --git a/lib/libfltk_z.a b/lib/libfltk_z.a Binary files differindex edce98b17..62bb9749a 100644 --- a/lib/libfltk_z.a +++ b/lib/libfltk_z.a |
