diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2002-11-03 00:01:21 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2002-11-03 00:01:21 +0000 |
| commit | c3de2a22c058b26700cce7ebeb26ca20072dc50f (patch) | |
| tree | bcbd8e2be5c70d29fbd1d65028a3abac64c77310 /fluid/alignment_panel.cxx | |
| parent | f3078e51e015215432c375ccd24a2d3c93342c52 (diff) | |
Replaced 'callback' and 'code' input in FLUID with Fl_Text_Editor.
Made widget pannel resize only text fields (which I see as the
logical way to do it. Opinions welcome).
Matthias
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/alignment_panel.cxx')
| -rw-r--r-- | fluid/alignment_panel.cxx | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx index 3fb81e28b..352f531b7 100644 --- a/fluid/alignment_panel.cxx +++ b/fluid/alignment_panel.cxx @@ -136,12 +136,6 @@ static void cb_openlast_button(Fl_Check_Button*, void*) { fluid_prefs.set("open_previous_file", openlast_button->value()); } -Fl_Check_Button *openbin_button=(Fl_Check_Button *)0; - -static void cb_openbin_button(Fl_Check_Button*, void*) { - fluid_prefs.set("open_widget_bin", openbin_button->value()); -} - Fl_Check_Button *prevpos_button=(Fl_Check_Button *)0; static void cb_prevpos_button(Fl_Check_Button*, void*) { @@ -150,14 +144,14 @@ static void cb_prevpos_button(Fl_Check_Button*, void*) { Fl_Window* make_settings_window() { Fl_Window* w; - { Fl_Window* o = settings_window = new Fl_Window(255, 253, "GUI Settings"); + { Fl_Window* o = settings_window = new Fl_Window(255, 213, "GUI Settings"); w = o; - { Fl_Button* o = new Fl_Button(185, 215, 60, 25, "Close"); + { Fl_Button* o = new Fl_Button(185, 179, 60, 25, "Close"); o->tooltip("Close this dialog."); o->callback((Fl_Callback*)cb_Close1); } - { Fl_Tabs* o = new Fl_Tabs(10, 10, 235, 190); - { Fl_Group* o = new Fl_Group(10, 35, 235, 165, "GUI:"); + { Fl_Tabs* o = new Fl_Tabs(10, 10, 235, 158); + { Fl_Group* o = new Fl_Group(10, 35, 235, 133, "GUI:"); o->align(FL_ALIGN_TOP_LEFT); { Fl_Check_Button* o = tooltips_button = new Fl_Check_Button(20, 45, 215, 20, "Show Tooltips"); o->down_box(FL_DOWN_BOX); @@ -181,14 +175,7 @@ Fl_Window* make_settings_window() { fluid_prefs.get("open_previous_file", b, 0); openlast_button->value(b); } - { Fl_Check_Button* o = openbin_button = new Fl_Check_Button(20, 135, 215, 20, "Open Widget Bin on Startup"); - o->down_box(FL_DOWN_BOX); - o->callback((Fl_Callback*)cb_openbin_button); - int b; - fluid_prefs.get("open_widget_bin", b, 1); - openbin_button->value(b); - } - { Fl_Check_Button* o = prevpos_button = new Fl_Check_Button(20, 165, 215, 20, "Remember Window Positions"); + { Fl_Check_Button* o = prevpos_button = new Fl_Check_Button(20, 135, 215, 20, "Remember Window Positions"); o->down_box(FL_DOWN_BOX); o->callback((Fl_Callback*)cb_prevpos_button); int b; |
