diff options
Diffstat (limited to 'fluid/panels')
| -rw-r--r-- | fluid/panels/widget_panel.cxx | 12 | ||||
| -rw-r--r-- | fluid/panels/widget_panel.fl | 20 |
2 files changed, 14 insertions, 18 deletions
diff --git a/fluid/panels/widget_panel.cxx b/fluid/panels/widget_panel.cxx index 5556a19fa..5f84c911f 100644 --- a/fluid/panels/widget_panel.cxx +++ b/fluid/panels/widget_panel.cxx @@ -2696,13 +2696,11 @@ static void cb_Base(Fl_Input* o, void* v) { Class_Node* nd = (Class_Node*)current_node; if (v == LOAD) { - o->value( nd->base_class_name() ); + o->value( nd->base_class().c_str() ); } else { - const char *nn = nd->base_class_name(); - if ( ( nn && (strcmp(nn, o->value()) != 0)) - || (!nn && (strcmp("", o->value()) != 0)) ) - { - nd->base_class_name( o->value() ); + auto nn = nd->base_class(); + if (nn != o->value()) { + nd->base_class( o->value() ); Fluid.proj.set_modflag(1); } } @@ -3263,7 +3261,6 @@ Fl_Double_Window* make_widget_panel() { widget_tabs->labelcolor(FL_BACKGROUND2_COLOR); widget_tabs->callback((Fl_Callback*)cb_widget_tabs); widget_tabs->when(FL_WHEN_NEVER); - widget_tabs->hide(); { wp_gui_tab = new Fl_Group(10, 30, 400, 330, "GUI"); wp_gui_tab->labelsize(11); wp_gui_tab->callback((Fl_Callback*)propagate_load); @@ -4351,6 +4348,7 @@ Fl_Double_Window* make_widget_panel() { class_tabs->labelsize(11); class_tabs->labelcolor(FL_WHITE); class_tabs->callback((Fl_Callback*)cb_class_tabs); + class_tabs->hide(); { class_tabs_main = new Fl_Group(10, 30, 400, 330, "Class"); class_tabs_main->labelsize(11); class_tabs_main->callback((Fl_Callback*)propagate_load); diff --git a/fluid/panels/widget_panel.fl b/fluid/panels/widget_panel.fl index 17c545d15..f2b2cbfbf 100644 --- a/fluid/panels/widget_panel.fl +++ b/fluid/panels/widget_panel.fl @@ -80,7 +80,7 @@ decl {\#include <FL/Fl_Menu_Item.H>} {private global decl {\#include <FL/Fl_File_Chooser.H>} {private global } -decl {\#include <ctype.h>} {selected private global +decl {\#include <ctype.h>} {private global } decl {\#define ZERO_ENTRY 1000} {private global @@ -489,8 +489,8 @@ Function {make_widget_panel()} { } { Fl_Tabs widget_tabs { callback {if (current_widget) - propagate_load((Fl_Group *)o,v);} - xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 7 when 0 hide + propagate_load((Fl_Group *)o,v);} selected + xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 7 when 0 code0 {o->show();} } { Fl_Group wp_gui_tab { @@ -2975,8 +2975,8 @@ if (v == LOAD) { } Fl_Tabs class_tabs { callback {if (current_node && current_node->is_a(Type::Class)) - propagate_load((Fl_Group *)o,v);} open - xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 + propagate_load((Fl_Group *)o,v);} + xywh {10 10 400 350} selection_color 12 labelsize 11 labelcolor 255 hide } { Fl_Group class_tabs_main { label Class @@ -3096,13 +3096,11 @@ if (v == LOAD) { Class_Node* nd = (Class_Node*)current_node; if (v == LOAD) { - o->value( nd->base_class_name() ); + o->value( nd->base_class().c_str() ); } else { - const char *nn = nd->base_class_name(); - if ( ( nn && (strcmp(nn, o->value()) != 0)) - || (!nn && (strcmp("", o->value()) != 0)) ) - { - nd->base_class_name( o->value() ); + auto nn = nd->base_class(); + if (nn != o->value()) { + nd->base_class( o->value() ); Fluid.proj.set_modflag(1); } }} |
