summaryrefslogtreecommitdiff
path: root/fluid/alignment_panel.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2002-10-31 18:49:05 +0000
committerMatthias Melcher <fltk@matthiasm.com>2002-10-31 18:49:05 +0000
commitf4a60090ba4f4256eeb03d5378d301fd3df40e5c (patch)
treedf62156629861157da8d612f72bf93a6570de8ee /fluid/alignment_panel.cxx
parent270c364bb35f116443ba78f5cff1f51efc3beebc (diff)
Added WidgetBin/ToolBox to fluid. Made fluid remember window
positions (only main and toolbox yet). Toolbox can be switched off. Position remeber function can be switched off. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/alignment_panel.cxx')
-rw-r--r--fluid/alignment_panel.cxx36
1 files changed, 31 insertions, 5 deletions
diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx
index d735808d5..3fb81e28b 100644
--- a/fluid/alignment_panel.cxx
+++ b/fluid/alignment_panel.cxx
@@ -1,4 +1,4 @@
-// generated by Fast Light User Interface Designer (fluid) version 1.0100
+// generated by Fast Light User Interface Designer (fluid) version 1.0102
#include "alignment_panel.h"
@@ -136,16 +136,28 @@ 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*) {
+ fluid_prefs.set("prev_window_pos", prevpos_button->value());
+}
+
Fl_Window* make_settings_window() {
Fl_Window* w;
- { Fl_Window* o = settings_window = new Fl_Window(255, 175, "GUI Settings");
+ { Fl_Window* o = settings_window = new Fl_Window(255, 253, "GUI Settings");
w = o;
- { Fl_Button* o = new Fl_Button(185, 145, 60, 25, "Close");
+ { Fl_Button* o = new Fl_Button(185, 215, 60, 25, "Close");
o->tooltip("Close this dialog.");
o->callback((Fl_Callback*)cb_Close1);
}
- { Fl_Tabs* o = new Fl_Tabs(10, 10, 235, 125);
- { Fl_Group* o = new Fl_Group(10, 35, 235, 100, "GUI:");
+ { Fl_Tabs* o = new Fl_Tabs(10, 10, 235, 190);
+ { Fl_Group* o = new Fl_Group(10, 35, 235, 165, "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);
@@ -169,6 +181,20 @@ 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");
+ o->down_box(FL_DOWN_BOX);
+ o->callback((Fl_Callback*)cb_prevpos_button);
+ int b;
+ fluid_prefs.get("prev_window_pos", b, 1);
+ prevpos_button->value(b);
+ }
o->end();
}
o->end();