summaryrefslogtreecommitdiff
path: root/fluid/panels/widget_panel.fl
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/panels/widget_panel.fl')
-rw-r--r--fluid/panels/widget_panel.fl268
1 files changed, 134 insertions, 134 deletions
diff --git a/fluid/panels/widget_panel.fl b/fluid/panels/widget_panel.fl
index 03c08272b..0fb788ff2 100644
--- a/fluid/panels/widget_panel.fl
+++ b/fluid/panels/widget_panel.fl
@@ -192,7 +192,7 @@ Function {make_image_panel()} {uid b832
Fl_Input image_panel_imagew {uid 7e73
label {Width:}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->value(current_widget->scale_image_w_);
}
} else {
@@ -222,7 +222,7 @@ Function {make_image_panel()} {uid b832
Fl_Input image_panel_imageh {uid e676
label {Height:}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->value(current_widget->scale_image_h_);
}
} else {
@@ -271,7 +271,7 @@ Function {make_image_panel()} {uid b832
Fl_Check_Button {} {uid 08b7
label {convert to raw pixel data}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->activate();
o->value(!current_widget->compress_image_);
} else {
@@ -290,7 +290,7 @@ Function {make_image_panel()} {uid b832
Fl_Check_Button {} {uid 62a3
label {bind to widget}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->activate();
o->value(current_widget->bind_image_);
} else {
@@ -342,7 +342,7 @@ Function {make_image_panel()} {uid b832
Fl_Input image_panel_deimagew {uid 117f
label {Width:}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->value(current_widget->scale_deimage_w_);
}
} else {
@@ -372,7 +372,7 @@ Function {make_image_panel()} {uid b832
Fl_Input image_panel_deimageh {uid c6c4
label {Height:}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->value(current_widget->scale_deimage_h_);
}
} else {
@@ -421,7 +421,7 @@ Function {make_image_panel()} {uid b832
Fl_Check_Button {} {uid 0d5e
label {convert to raw pixel data}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->activate();
o->value(!current_widget->compress_deimage_);
} else {
@@ -440,7 +440,7 @@ Function {make_image_panel()} {uid b832
Fl_Check_Button {} {uid c4ca
label {bind to widget}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->activate();
o->value(current_widget->bind_deimage_);
} else {
@@ -493,14 +493,14 @@ if (img) {
Function {flex_margin_cb(Fl_Value_Input* i, void* v, void (*load_margin)(Fl_Flex*,Fl_Value_Input*), int (*update_margin)(Fl_Flex*,int))} {uid 03b3 return_type void
} {
code {if (v == LOAD) {
- if (current_widget->is_a(Type::Flex)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Flex)) {
load_margin((Fl_Flex*)current_widget->o, i);
}
} else {
int mod = 0;
int new_value = (int)i->value();
for (Node *o = Fluid.proj.tree.first; o; o = o->next) {
- if (o->selected && o->is_a(Type::Flex)) {
+ if (o->selected && o->is_a(FLD_NODE_TYPE_Flex)) {
Flex_Node* q = (Flex_Node*)o;
Fl_Flex* w = (Fl_Flex*)q->o;
if (update_margin(w, new_value)) {
@@ -561,7 +561,7 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 15 t
} {
Fl_Input widget_image_input {uid cbeb
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->activate();
o->value(((Widget_Node*)current_widget)->image_name().c_str());
} else o->deactivate();
@@ -578,7 +578,7 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 15 t
Fl_Button {} {uid cdf4
label {Browse...}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window))
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window))
o->activate();
else
o->deactivate();
@@ -611,7 +611,7 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 15 t
} {
Fl_Input widget_deimage_input {uid 887c
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window)) {
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->activate();
o->value(((Widget_Node*)current_widget)->inactive_name().c_str());
} else o->deactivate();
@@ -628,7 +628,7 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 15 t
Fl_Button {} {uid 8947
label {Browse...}
callback {if (v == LOAD) {
- if (current_widget->is_widget() && !current_widget->is_a(Type::Window))
+ if (current_widget->is_widget() && !current_widget->is_a(FLD_NODE_TYPE_Window))
o->activate();
else
o->deactivate();
@@ -954,7 +954,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Choice {} {uid 4f6a
label {Children:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Widget_Class)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Widget_Class)) {
o->show();
o->value(((Widget_Class_Node *)current_widget)->wc_relative);
} else {
@@ -964,7 +964,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
int mod = 0;
Fluid.proj.undo.checkpoint();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Widget_Class)) {
+ if (q->is_a(FLD_NODE_TYPE_Widget_Class)) {
Widget_Class_Node *t = (Widget_Class_Node *)q;
t->wc_relative = o->value();
mod = 1;
@@ -1080,9 +1080,9 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Group wp_gui_values {uid 2348
label {Values:}
callback {if (v == LOAD) {
- if ( current_widget->is_a(Type::Flex)
- || current_widget->is_a(Type::Grid)
- || current_widget->is_a(Type::Window))
+ if ( current_widget->is_a(FLD_NODE_TYPE_Flex)
+ || current_widget->is_a(FLD_NODE_TYPE_Grid)
+ || current_widget->is_a(FLD_NODE_TYPE_Window))
{
o->hide();
} else {
@@ -1095,7 +1095,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Value_Input {} {uid 4e4e
label {Size:}
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Slider)) {o->deactivate(); return;}
+ if (!current_widget->is_a(FLD_NODE_TYPE_Slider)) {o->deactivate(); return;}
o->activate();
o->value(((Fl_Slider*)(current_widget->o))->slider_size());
} else {
@@ -1103,7 +1103,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fluid.proj.undo.checkpoint();
double n = o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Slider)) {
+ if (q->is_a(FLD_NODE_TYPE_Slider)) {
((Fl_Slider*)(q->o))->slider_size(n);
q->o->redraw();
mod = 1;
@@ -1116,10 +1116,10 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Value_Input {} {uid eaec
label {Minimum:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Valuator_)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Valuator_)) {
o->activate();
o->value(((Fl_Valuator*)(current_widget->o))->minimum());
- } else if (current_widget->is_a(Type::Spinner)) {
+ } else if (current_widget->is_a(FLD_NODE_TYPE_Spinner)) {
o->activate();
o->value(((Fl_Spinner*)(current_widget->o))->minimum());
} else {
@@ -1131,11 +1131,11 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fluid.proj.undo.checkpoint();
double n = o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Valuator_)) {
+ if (q->is_a(FLD_NODE_TYPE_Valuator_)) {
((Fl_Valuator*)(q->o))->minimum(n);
q->o->redraw();
mod = 1;
- } else if (q->is_a(Type::Spinner)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Spinner)) {
((Fl_Spinner*)(q->o))->minimum(n);
q->o->redraw();
mod = 1;
@@ -1148,10 +1148,10 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Value_Input {} {uid 6bdb
label {Maximum:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Valuator_)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Valuator_)) {
o->activate();
o->value(((Fl_Valuator*)(current_widget->o))->maximum());
- } else if (current_widget->is_a(Type::Spinner)) {
+ } else if (current_widget->is_a(FLD_NODE_TYPE_Spinner)) {
o->activate();
o->value(((Fl_Spinner*)(current_widget->o))->maximum());
} else {
@@ -1163,11 +1163,11 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fluid.proj.undo.checkpoint();
double n = o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Valuator_)) {
+ if (q->is_a(FLD_NODE_TYPE_Valuator_)) {
((Fl_Valuator*)(q->o))->maximum(n);
q->o->redraw();
mod = 1;
- } else if (q->is_a(Type::Spinner)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Spinner)) {
((Fl_Spinner*)(q->o))->maximum(n);
q->o->redraw();
mod = 1;
@@ -1180,10 +1180,10 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Value_Input {} {uid 0339
label {Step:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Valuator_)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Valuator_)) {
o->activate();
o->value(((Fl_Valuator*)(current_widget->o))->step());
- } else if (current_widget->is_a(Type::Spinner)) {
+ } else if (current_widget->is_a(FLD_NODE_TYPE_Spinner)) {
o->activate();
o->value(((Fl_Spinner*)(current_widget->o))->step());
} else {
@@ -1195,11 +1195,11 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fluid.proj.undo.checkpoint();
double n = o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Valuator_)) {
+ if (q->is_a(FLD_NODE_TYPE_Valuator_)) {
((Fl_Valuator*)(q->o))->step(n);
q->o->redraw();
mod = 1;
- } else if (q->is_a(Type::Spinner)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Spinner)) {
((Fl_Spinner*)(q->o))->step(n);
q->o->redraw();
mod = 1;
@@ -1212,13 +1212,13 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Value_Input {} {uid aa3f
label {Value:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Valuator_)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Valuator_)) {
o->activate();
o->value(((Fl_Valuator*)(current_widget->o))->value());
} else if (current_widget->is_button()) {
o->activate();
o->value(((Fl_Button*)(current_widget->o))->value());
- } else if (current_widget->is_a(Type::Spinner)) {
+ } else if (current_widget->is_a(FLD_NODE_TYPE_Spinner)) {
o->activate();
o->value(((Fl_Spinner*)(current_widget->o))->value());
} else
@@ -1228,14 +1228,14 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fluid.proj.undo.checkpoint();
double n = o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Valuator_)) {
+ if (q->is_a(FLD_NODE_TYPE_Valuator_)) {
((Fl_Valuator*)(q->o))->value(n);
mod = 1;
} else if (q->is_button()) {
((Fl_Button*)(q->o))->value(n != 0);
- if (q->is_a(Type::Menu_Item)) q->redraw();
+ if (q->is_a(FLD_NODE_TYPE_Menu_Item)) q->redraw();
mod = 1;
- } else if (q->is_a(Type::Spinner)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Spinner)) {
((Fl_Spinner*)(q->o))->value(n);
mod = 1;
}
@@ -1251,7 +1251,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Group wp_gui_margins {uid 910a
label {Margins:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Flex)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Flex)) {
o->show();
propagate_load(o, v);
} else {
@@ -1381,7 +1381,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Group wp_gui_sizerange {uid 0e6b
label {Size Range:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Window)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->show();
propagate_load(o, v);
} else {
@@ -1393,14 +1393,14 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Value_Input {} {uid a350
label {Minimum Size:}
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Window)) return;
+ if (!current_widget->is_a(FLD_NODE_TYPE_Window)) return;
o->value(((Window_Node*)current_widget)->sr_min_w);
} else {
int mod = 0;
Fluid.proj.undo.checkpoint();
int n = (int)o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Window)) {
+ if (q->is_a(FLD_NODE_TYPE_Window)) {
((Window_Node*)q)->sr_min_w = n;
mod = 1;
}
@@ -1411,14 +1411,14 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
}
Fl_Value_Input {} {uid f50b
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Window)) return;
+ if (!current_widget->is_a(FLD_NODE_TYPE_Window)) return;
o->value(((Window_Node*)current_widget)->sr_min_h);
} else {
int mod = 0;
Fluid.proj.undo.checkpoint();
int n = (int)o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Window)) {
+ if (q->is_a(FLD_NODE_TYPE_Window)) {
((Window_Node*)q)->sr_min_h = n;
mod = 1;
}
@@ -1434,7 +1434,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
int mod = 0;
Fluid.proj.undo.checkpoint();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Window)) {
+ if (q->is_a(FLD_NODE_TYPE_Window)) {
Window_Node *win = (Window_Node*)q;
win->sr_min_w = win->o->w();
win->sr_min_h = win->o->h();
@@ -1449,14 +1449,14 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Value_Input {} {uid 99ee
label {Maximum Size:}
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Window)) return;
+ if (!current_widget->is_a(FLD_NODE_TYPE_Window)) return;
o->value(((Window_Node*)current_widget)->sr_max_w);
} else {
int mod = 0;
Fluid.proj.undo.checkpoint();
int n = (int)o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Window)) {
+ if (q->is_a(FLD_NODE_TYPE_Window)) {
((Window_Node*)q)->sr_max_w = n;
mod = 1;
}
@@ -1467,14 +1467,14 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
}
Fl_Value_Input {} {uid e850
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Window)) return;
+ if (!current_widget->is_a(FLD_NODE_TYPE_Window)) return;
o->value(((Window_Node*)current_widget)->sr_max_h);
} else {
int mod = 0;
Fluid.proj.undo.checkpoint();
int n = (int)o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Window)) {
+ if (q->is_a(FLD_NODE_TYPE_Window)) {
((Window_Node*)q)->sr_max_h = n;
mod = 1;
}
@@ -1490,7 +1490,7 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
int mod = 0;
Fluid.proj.undo.checkpoint();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Window)) {
+ if (q->is_a(FLD_NODE_TYPE_Window)) {
Window_Node *win = (Window_Node*)q;
win->sr_max_w = win->o->w();
win->sr_max_h = win->o->h();
@@ -1515,11 +1515,11 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
callback {if (v == LOAD) {
if (current_widget->is_button())
o->value( ((Fl_Button*)(current_widget->o))->shortcut() );
- else if (current_widget->is_a(Type::Input))
+ else if (current_widget->is_a(FLD_NODE_TYPE_Input))
o->value( ((Fl_Input_*)(current_widget->o))->shortcut() );
- else if (current_widget->is_a(Type::Value_Input))
+ else if (current_widget->is_a(FLD_NODE_TYPE_Value_Input))
o->value( ((Fl_Value_Input*)(current_widget->o))->shortcut() );
- else if (current_widget->is_a(Type::Text_Display))
+ else if (current_widget->is_a(FLD_NODE_TYPE_Text_Display))
o->value( ((Fl_Text_Display*)(current_widget->o))->shortcut() );
else {
o->hide();
@@ -1537,16 +1537,16 @@ h, ph, sh, ch, and i} xywh {275 150 55 20} labelsize 11 align 5 textsize 11
Fl_Button* b = (Fl_Button*)(q->o);
if (b->shortcut() != (int)o->value()) mod = 1;
b->shortcut(o->value());
- if (q->is_a(Type::Menu_Item)) q->redraw();
- } else if (q->is_a(Type::Input)) {
+ if (q->is_a(FLD_NODE_TYPE_Menu_Item)) q->redraw();
+ } else if (q->is_a(FLD_NODE_TYPE_Input)) {
Fl_Input_* b = (Fl_Input_*)(q->o);
if (b->shortcut() != (int)o->value()) mod = 1;
b->shortcut(o->value());
- } else if (q->is_a(Type::Value_Input)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Value_Input)) {
Fl_Value_Input* b = (Fl_Value_Input*)(q->o);
if (b->shortcut() != (int)o->value()) mod = 1;
b->shortcut(o->value());
- } else if (q->is_a(Type::Text_Display)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Text_Display)) {
Fl_Text_Display* b = (Fl_Text_Display*)(q->o);
if (b->shortcut() != (int)o->value()) mod = 1;
b->shortcut(o->value());
@@ -1568,7 +1568,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
Fl_Input {} {uid f009
label {:}
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Window)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Window)) {
o->show();
o->parent()->show();
o->value(((Window_Node *)current_widget)->xclass);
@@ -1580,7 +1580,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
int mod = 0;
Fluid.proj.undo.checkpoint();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Window)) {
+ if (q->is_a(FLD_NODE_TYPE_Window)) {
mod = 1;
Window_Node *wt = (Window_Node *)q;
storestring(o->value(), wt->xclass);
@@ -1594,7 +1594,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
Fl_Light_Button {} {uid eca1
label Border
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Window)) {o->hide(); return;}
+ if (!current_widget->is_a(FLD_NODE_TYPE_Window)) {o->hide(); return;}
o->show();
o->value(((Fl_Window*)(current_widget->o))->border());
} else {
@@ -1607,7 +1607,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
Fl_Light_Button {} {uid 457d
label Modal
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Window)) {o->hide(); return;}
+ if (!current_widget->is_a(FLD_NODE_TYPE_Window)) {o->hide(); return;}
o->show();
o->value(((Window_Node *)current_widget)->modal);
} else {
@@ -1620,7 +1620,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
Fl_Light_Button {} {uid 3574
label Nonmodal
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Window)) {o->hide(); return;}
+ if (!current_widget->is_a(FLD_NODE_TYPE_Window)) {o->hide(); return;}
o->show();
o->value(((Window_Node *)current_widget)->non_modal);
} else {
@@ -1640,7 +1640,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
label Visible
callback {if (v == LOAD) {
o->value(current_widget->o->visible());
- if (current_widget->is_a(Type::Window)) o->deactivate();
+ if (current_widget->is_a(FLD_NODE_TYPE_Window)) o->deactivate();
else o->activate();
} else {
int mod = 0;
@@ -1653,9 +1653,9 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
n ? q->o->show() : q->o->hide();
q->redraw();
if (n && q->parent && q->parent->type_name()) {
- if (q->parent->is_a(Type::Tabs)) {
+ if (q->parent->is_a(FLD_NODE_TYPE_Tabs)) {
((Fl_Tabs *)q->o->parent())->value(q->o);
- } else if (q->parent->is_a(Type::Wizard)) {
+ } else if (q->parent->is_a(FLD_NODE_TYPE_Wizard)) {
((Fl_Wizard *)q->o->parent())->value(q->o);
}
}
@@ -1671,7 +1671,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
label Active
callback {if (v == LOAD) {
o->value(current_widget->o->active());
- if (current_widget->is_a(Type::Window)) o->deactivate();
+ if (current_widget->is_a(FLD_NODE_TYPE_Window)) o->deactivate();
else o->activate();
} else {
int mod = 0;
@@ -1691,7 +1691,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
Fl_Light_Button {} {uid 9305
label Resizable
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
o->hide();
return;
}
@@ -1712,7 +1712,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
Fl_Light_Button {} {uid 32ad
label Headline
callback {if (v == LOAD) {
- if (!current_widget->is_a(Type::Menu_Item)) {
+ if (!current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
o->hide();
return;
}
@@ -1722,7 +1722,7 @@ Use 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selecti
int mod = 0;
int n = o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Menu_Item)) {
+ if (q->is_a(FLD_NODE_TYPE_Menu_Item)) {
if (!mod) {
mod = 1;
Fluid.proj.undo.checkpoint();
@@ -1740,21 +1740,21 @@ unselectable, but not grayed out} xywh {225 260 75 20} selection_color 1 labelsi
label Hotspot
callback {if (v == LOAD) {
if (numselected > 1) {o->deactivate(); return;}
- if (current_widget->is_a(Type::Menu_Item)) o->label("divider");
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) o->label("divider");
else o->label("hotspot");
o->activate();
o->value(current_widget->hotspot());
} else {
Fluid.proj.undo.checkpoint();
current_widget->hotspot(o->value());
- if (current_widget->is_a(Type::Menu_Item)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
current_widget->redraw();
return;
}
if (o->value()) {
Node *p = current_widget->parent;
if (!p || !p->is_widget()) return;
- while (!p->is_a(Type::Window)) p = p->parent;
+ while (!p->is_a(FLD_NODE_TYPE_Window)) p = p->parent;
for (Node *q = p->next; q && q->level > p->level; q = q->next) {
if (q->is_widget() && q != current_widget)
((Widget_Node*)q)->hotspot(0);
@@ -1878,7 +1878,7 @@ if (v != LOAD) {
} {
Fl_Choice {} {uid 5454
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {o->deactivate(); return;} else o->activate();
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {o->deactivate(); return;} else o->activate();
int n = current_widget->o->box();
if (!n) n = ZERO_ENTRY;
for (int j = 0; j < 72 /*int(sizeof(boxmenu)/sizeof(*boxmenu))*/; j++)
@@ -1904,7 +1904,7 @@ if (v != LOAD) {
label Color
callback {Fl_Color c = current_widget->o->color();
if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
o->deactivate();
} else {
o->activate();
@@ -1923,7 +1923,7 @@ o->redraw();}
Fl_Menu_Button {} {uid 7a18
callback {Fl_Color c = current_widget->o->color();
if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {o->deactivate(); return;} else o->activate();
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {o->deactivate(); return;} else o->activate();
} else {
Fl_Color d = (Fl_Color)(o->mvalue()->argument());
if (d == c) return;
@@ -1946,11 +1946,11 @@ if (v == LOAD) {
Fl_Choice {} {uid d304
callback {if (v == LOAD) {
int n;
- if (current_widget->is_a(Type::Button))
+ if (current_widget->is_a(FLD_NODE_TYPE_Button))
n = ((Fl_Button*)(current_widget->o))->down_box();
- else if (current_widget->is_a(Type::Input_Choice))
+ else if (current_widget->is_a(FLD_NODE_TYPE_Input_Choice))
n = ((Fl_Input_Choice*)(current_widget->o))->down_box();
- else if (current_widget->is_a(Type::Menu_Manager_))
+ else if (current_widget->is_a(FLD_NODE_TYPE_Menu_Manager_))
n = ((Fl_Menu_*)(current_widget->o))->down_box();
else {
o->deactivate(); return;
@@ -1966,12 +1966,12 @@ if (v == LOAD) {
if (!n) return; // should not happen
if (n == ZERO_ENTRY) n = 0;
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Button)) {
+ if (q->is_a(FLD_NODE_TYPE_Button)) {
((Fl_Button*)(q->o))->down_box((Fl_Boxtype)n);
if (((Fl_Button*)(q->o))->value()) q->redraw();
- } else if (q->is_a(Type::Input_Choice)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Input_Choice)) {
((Fl_Input_Choice*)(q->o))->down_box((Fl_Boxtype)n);
- } else if (q->is_a(Type::Menu_Manager_)) {
+ } else if (q->is_a(FLD_NODE_TYPE_Menu_Manager_)) {
((Fl_Menu_*)(q->o))->down_box((Fl_Boxtype)n);
}
mod = 1;
@@ -1986,7 +1986,7 @@ if (v == LOAD) {
label {Select Color}
callback {Fl_Color c = current_widget->o->selection_color();
if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
o->deactivate();
return;
} else {
@@ -2006,7 +2006,7 @@ o->redraw();}
Fl_Menu_Button {} {uid b1b3
callback {Fl_Color c = current_widget->o->selection_color();
if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
o->deactivate();
return;
} else {
@@ -2217,7 +2217,7 @@ if (v == LOAD) {
label Compact
callback {if (v == LOAD) {
uchar n;
- if (current_widget->is_a(Type::Button) && !current_widget->is_a(Type::Menu_Item)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Button) && !current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
n = ((Fl_Button*)(current_widget->o))->compact();
o->value(n);
o->show();
@@ -2228,7 +2228,7 @@ if (v == LOAD) {
int mod = 0;
uchar n = (uchar)o->value();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
- if (q->is_a(Type::Button) && !q->is_a(Type::Menu_Item)) {
+ if (q->is_a(FLD_NODE_TYPE_Button) && !q->is_a(FLD_NODE_TYPE_Menu_Item)) {
uchar v = ((Fl_Button*)(q->o))->compact();
if (n != v) {
if (!mod) {
@@ -2261,7 +2261,7 @@ if (v == LOAD) {
Fl_Input {} {uid 31e6
user_data 4
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {
o->deactivate();
} else {
o->activate();
@@ -2294,7 +2294,7 @@ if (v == LOAD) {
int j;
for (j = 0;; j++) {
if (!m[j].text) {j = 0; break;}
- if (current_widget->is_a(Type::Spinner)) {
+ if (current_widget->is_a(FLD_NODE_TYPE_Spinner)) {
if (m[j].argument() == ((Fl_Spinner*)current_widget->o)->type()) break;
} else {
if (m[j].argument() == current_widget->o->type()) break;
@@ -2310,9 +2310,9 @@ if (v == LOAD) {
Fl_Menu_Item* m = current_widget->subtypes();
for (Widget_Node *q: Fluid.proj.tree.all_selected_widgets()) {
if (q->subtypes()==m) {
- if (q->is_a(Type::Spinner))
+ if (q->is_a(FLD_NODE_TYPE_Spinner))
((Fl_Spinner*)q->o)->type(n);
- else if (q->is_a(Type::Flex))
+ else if (q->is_a(FLD_NODE_TYPE_Flex))
((Flex_Node*)q)->change_subtype_to(n);
else
q->o->type(n);
@@ -2523,7 +2523,7 @@ wCallback->do_callback(wCallback, v);} open
Fl_Menu_Button {} {uid ba4c
label When
callback {if (v == LOAD) {
- if (current_widget->is_a(Type::Menu_Item)) {o->deactivate(); return;} else o->activate();
+ if (current_widget->is_a(FLD_NODE_TYPE_Menu_Item)) {o->deactivate(); return;} else o->activate();
int n = current_widget->o->when();
set_whenmenu(n);
w_when_box->copy_label(when_symbol_name(n));
@@ -2611,7 +2611,7 @@ if (v == LOAD) {
} {}
}
Fl_Tabs data_tabs {uid 3ae5
- callback {if (current_node && current_node->is_a(Type::Data))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_Data))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide
} {
@@ -2626,7 +2626,7 @@ if (v == LOAD) {
xywh {95 49 310 21} labelfont 1 labelsize 11 align 4
} {
Fl_Choice {} {uid 0b51
- callback {if (!current_node || !current_node->is_a(Type::Data)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Data)) return;
Data_Node* nd = (Data_Node*)current_node;
if (v == LOAD) {
@@ -2665,7 +2665,7 @@ if (v == LOAD) {
}
}
Fl_Choice {} {uid e705
- callback {if (!current_node || !current_node->is_a(Type::Data)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Data)) return;
Data_Node* nd = (Data_Node*)current_node;
if (v == LOAD) {
@@ -2709,7 +2709,7 @@ if (v == LOAD) {
xywh {95 75 310 20} labelfont 1 labelsize 11 align 4
} {
Fl_Choice {} {uid 6268
- callback {if (!current_node || !current_node->is_a(Type::Data)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Data)) return;
Data_Node* nd = (Data_Node*)current_node;
if (v == LOAD) {
@@ -2759,7 +2759,7 @@ if (v == LOAD) {
}
Fl_Input {} {uid f233
label {Name:}
- callback {if (!current_node || !current_node->is_a(Type::Data)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Data)) return;
Data_Node* nd = (Data_Node*)current_node;
if (v == LOAD) {
@@ -2779,7 +2779,7 @@ if (v == LOAD) {
}
Fl_Input wp_data_filename {uid 1148
label {Filename:}
- callback {if (!current_node || !current_node->is_a(Type::Data)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Data)) return;
Data_Node* nd = (Data_Node*)current_node;
update_current(o, v,
[nd](){return nd->filename();},
@@ -2806,7 +2806,7 @@ update_current(o, v,
}
Fl_Text_Editor {} {uid 8a96
label {Comment:}
- callback {if (!current_node || !current_node->is_a(Type::Data)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Data)) return;
Data_Node* nd = (Data_Node*)current_node;
if (v == LOAD) {
@@ -2831,7 +2831,7 @@ if (v == LOAD) {
}
}
Fl_Tabs comment_tabs {uid 8c0e
- callback {if (current_node && current_node->is_a(Type::Comment))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_Comment))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide
} {
@@ -2842,7 +2842,7 @@ if (v == LOAD) {
} {
Fl_Text_Editor comment_tabs_name {uid e7bf
label {Comment:}
- callback {if (!current_node || !current_node->is_a(Type::Comment)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Comment)) return;
Comment_Node* nd = (Comment_Node*)current_node;
if (v == LOAD) {
@@ -2871,7 +2871,7 @@ if (v == LOAD) {
} {
Fl_Menu_Button comment_predefined_2 {uid 35da
label Predefined
- callback {if (!current_node || !current_node->is_a(Type::Comment)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Comment)) return;
static char itempath[256];
static int last_selected_item { 0 };
@@ -2968,7 +2968,7 @@ if (v != LOAD) {
}
Fl_Check_Button {} {uid b4f1
label {output to header file}
- callback {if (!current_node || !current_node->is_a(Type::Comment)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Comment)) return;
Comment_Node* nd = (Comment_Node*)current_node;
if (v == LOAD) {
@@ -2983,7 +2983,7 @@ if (v == LOAD) {
}
Fl_Check_Button {} {uid 4b86
label {output to source file}
- callback {if (!current_node || !current_node->is_a(Type::Comment)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Comment)) return;
Comment_Node* nd = (Comment_Node*)current_node;
if (v == LOAD) {
@@ -3003,7 +3003,7 @@ if (v == LOAD) {
}
}
Fl_Tabs class_tabs {uid 81a5
- callback {if (current_node && current_node->is_a(Type::Class))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_Class))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide
} {
@@ -3020,7 +3020,7 @@ support a class inside a class at this point} open
xywh {95 50 310 21} labelfont 1 labelsize 11 align 4 hide
} {
Fl_Choice {} {uid 5488
- callback {if (!current_node || !current_node->is_a(Type::Class)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Class)) return;
Class_Node* nd = (Class_Node*)current_node;
if (v == LOAD) {
@@ -3060,7 +3060,7 @@ if (v == LOAD) {
}
Fl_Input {} {uid df8b
label {Attribute:}
- callback {if (!current_node || !current_node->is_a(Type::Class)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Class)) return;
Class_Node* nd = (Class_Node*)current_node;
if (v == LOAD) {
@@ -3077,7 +3077,7 @@ if (v == LOAD) {
}
Fl_Input {} {uid 2af0
label {Class Name:}
- callback {if (!current_node || !current_node->is_a(Type::Class)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Class)) return;
Class_Node* nd = (Class_Node*)current_node;
if (v == LOAD) {
@@ -3121,7 +3121,7 @@ if (v == LOAD) {
}
Fl_Input {} {uid 31d1
label {Base Class:}
- callback {if (!current_node || !current_node->is_a(Type::Class)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Class)) return;
Class_Node* nd = (Class_Node*)current_node;
if (v == LOAD) {
@@ -3138,7 +3138,7 @@ e.g. `public Fl_Widget`} xywh {95 100 305 20} labelfont 1 labelsize 11 textfont
}
Fl_Text_Editor {} {uid 9923
label {Comment:}
- callback {if (!current_node || !current_node->is_a(Type::Class)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Class)) return;
Class_Node* nd = (Class_Node*)current_node;
if (v == LOAD) {
@@ -3163,7 +3163,7 @@ if (v == LOAD) {
}
}
Fl_Tabs declblock_tabs {uid fd14
- callback {if (current_node && current_node->is_a(Type::DeclBlock))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_DeclBlock))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide
} {
@@ -3174,7 +3174,7 @@ if (v == LOAD) {
} {
Fl_Input {} {uid 7354
label {Start Code:}
- callback {if (!current_node || !current_node->is_a(Type::DeclBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_DeclBlock)) return;
DeclBlock_Node* nd = (DeclBlock_Node*)current_node;
if (v == LOAD) {
@@ -3194,7 +3194,7 @@ if (v == LOAD) {
}
Fl_Input {} {uid b795
label {End Code:}
- callback {if (!current_node || !current_node->is_a(Type::DeclBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_DeclBlock)) return;
DeclBlock_Node* nd = (DeclBlock_Node*)current_node;
update_current(o, v,
[nd](){return nd->end_code();},
@@ -3212,7 +3212,7 @@ update_current(o, v,
}
Fl_Check_Button {} {uid 7b16
label implementations
- callback {if (!current_node || !current_node->is_a(Type::DeclBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_DeclBlock)) return;
DeclBlock_Node* nd = (DeclBlock_Node*)current_node;
if (v == LOAD) {
@@ -3232,7 +3232,7 @@ if (v == LOAD) {
}
Fl_Check_Button {} {uid 02cf
label {static initializations and callbacks}
- callback {if (!current_node || !current_node->is_a(Type::DeclBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_DeclBlock)) return;
DeclBlock_Node* nd = (DeclBlock_Node*)current_node;
if (v == LOAD) {
@@ -3256,7 +3256,7 @@ if (v == LOAD) {
}
Fl_Check_Button {} {uid 1686
label {forward declarations}
- callback {if (!current_node || !current_node->is_a(Type::DeclBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_DeclBlock)) return;
DeclBlock_Node* nd = (DeclBlock_Node*)current_node;
if (v == LOAD) {
@@ -3276,7 +3276,7 @@ if (v == LOAD) {
}
Fl_Check_Button {} {uid e71b
label {preprecessor and callback declarations}
- callback {if (!current_node || !current_node->is_a(Type::DeclBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_DeclBlock)) return;
DeclBlock_Node* nd = (DeclBlock_Node*)current_node;
if (v == LOAD) {
@@ -3300,7 +3300,7 @@ if (v == LOAD) {
}
Fl_Text_Editor {} {uid 9e73
label {Comment:}
- callback {if (!current_node || !current_node->is_a(Type::DeclBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_DeclBlock)) return;
DeclBlock_Node* nd = (DeclBlock_Node*)current_node;
if (v == LOAD) {
@@ -3325,7 +3325,7 @@ if (v == LOAD) {
}
}
Fl_Tabs decl_tabs {uid b97f
- callback {if (current_node && current_node->is_a(Type::Decl))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_Decl))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide
} {
@@ -3346,7 +3346,7 @@ if (v == LOAD) {
xywh {95 50 1 20} labelfont 1 labelsize 11 align 4
}
Fl_Choice {} {uid 871c
- callback {if (!current_node || !current_node->is_a(Type::Decl)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Decl)) return;
Decl_Node* nd = (Decl_Node*)current_node;
if (v == LOAD) {
@@ -3385,7 +3385,7 @@ if (v == LOAD) {
}
}
Fl_Choice {} {uid 796e
- callback {if (!current_node || !current_node->is_a(Type::Decl)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Decl)) return;
Decl_Node* nd = (Decl_Node*)current_node;
if (v == LOAD) {
@@ -3432,7 +3432,7 @@ if (v == LOAD) {
} {
Fl_Text_Editor {} {uid b84e
label {Declaration:}
- callback {if (!current_node || !current_node->is_a(Type::Decl)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Decl)) return;
Decl_Node* nd = (Decl_Node*)current_node;
if (v == LOAD) {
@@ -3465,7 +3465,7 @@ a `\#` directive: `\#include <foo.h>`, a typedef `typedef char byte;`,
} {
Fl_Text_Editor {} {uid 0067
label {Comment:}
- callback {if (!current_node || !current_node->is_a(Type::Decl)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Decl)) return;
Decl_Node* nd = (Decl_Node*)current_node;
if (v == LOAD) {
@@ -3492,7 +3492,7 @@ if (v == LOAD) {
}
}
Fl_Tabs codeblock_tabs {uid 86d2
- callback {if (current_node && current_node->is_a(Type::CodeBlock))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_CodeBlock))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide
} {
@@ -3503,7 +3503,7 @@ if (v == LOAD) {
} {
Fl_Input {} {uid 2539
label {Start Code:}
- callback {if (!current_node || !current_node->is_a(Type::CodeBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_CodeBlock)) return;
CodeBlock_Node* nd = (CodeBlock_Node*)current_node;
if (v == LOAD) {
@@ -3523,7 +3523,7 @@ if (v == LOAD) {
}
Fl_Input {} {uid 0157
label {End Code:}
- callback {if (!current_node || !current_node->is_a(Type::CodeBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_CodeBlock)) return;
CodeBlock_Node* nd = (CodeBlock_Node*)current_node;
update_current(o, v,
[nd](){return nd->end_code();},
@@ -3533,7 +3533,7 @@ update_current(o, v,
}
Fl_Text_Editor {} {uid 13f0
label {Comment:}
- callback {if (!current_node || !current_node->is_a(Type::CodeBlock)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_CodeBlock)) return;
CodeBlock_Node* nd = (CodeBlock_Node*)current_node;
if (v == LOAD) {
@@ -3558,7 +3558,7 @@ if (v == LOAD) {
}
}
Fl_Tabs code_tabs {uid f3cf
- callback {if (current_node && current_node->is_a(Type::Code))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_Code))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide
} {
@@ -3568,7 +3568,7 @@ if (v == LOAD) {
xywh {10 30 400 330} labelsize 11 resizable
} {
Fl_Text_Editor {} {uid ff87
- callback {if (!current_node || !current_node->is_a(Type::Code)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Code)) return;
Code_Node* nd = (Code_Node*)current_node;
if (v == LOAD) {
the_panel->label("Code Editor");
@@ -3600,7 +3600,7 @@ o->linenumber_size(o->Fl_Text_Display::textsize());}
}
}
Fl_Tabs func_tabs {uid 2983
- callback {if (current_node && current_node->is_a(Type::Function))
+ callback {if (current_node && current_node->is_a(FLD_NODE_TYPE_Function))
propagate_load((Fl_Group *)o,v);}
xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide resizable
} {
@@ -3621,7 +3621,7 @@ o->linenumber_size(o->Fl_Text_Display::textsize());}
xywh {95 50 1 20} labelfont 1 labelsize 11 align 4
}
Fl_Choice {} {uid 8105
- callback {if (!current_node || !current_node->is_a(Type::Function)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Function)) return;
Function_Node* nd = (Function_Node*)current_node;
if (v == LOAD) {
@@ -3656,7 +3656,7 @@ if (v == LOAD) {
}
}
Fl_Choice {} {uid 2fa7
- callback {if (!current_node || !current_node->is_a(Type::Function)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Function)) return;
Function_Node* nd = (Function_Node*)current_node;
if (v == LOAD) {
@@ -3692,7 +3692,7 @@ if (v == LOAD) {
}
Fl_Check_Button {} {uid 4f85
label {declare "C"}
- callback {if (!current_node || !current_node->is_a(Type::Function)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Function)) return;
Function_Node* nd = (Function_Node*)current_node;
if (v == LOAD) {
@@ -3721,7 +3721,7 @@ if (v == LOAD) {
label {Function
Name and
Args:}
- callback {if (!current_node || !current_node->is_a(Type::Function)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Function)) return;
Function_Node* nd = (Function_Node*)current_node;
if (v == LOAD) {
@@ -3752,7 +3752,7 @@ if (v == LOAD) {
} {
Fl_Text_Editor {} {uid 3fba
label {Return Type:}
- callback {if (!current_node || !current_node->is_a(Type::Function)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Function)) return;
Function_Node* nd = (Function_Node*)current_node;
update_current(o, v,
[nd](){return nd->return_type();},
@@ -3770,7 +3770,7 @@ update_current(o, v,
} {
Fl_Text_Editor {} {uid b95f
label {Comment:}
- callback {if (!current_node || !current_node->is_a(Type::Function)) return;
+ callback {if (!current_node || !current_node->is_a(FLD_NODE_TYPE_Function)) return;
Function_Node* nd = (Function_Node*)current_node;
if (v == LOAD) {