summaryrefslogtreecommitdiff
path: root/fluid/alignment_panel.fl
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-02-26 20:27:19 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-02-26 20:27:19 +0000
commit5b49a9ae51218ae045043725fd6484dcc828935f (patch)
tree7d541bdaf2e1be17642c340228dd84c14cb4e8bb /fluid/alignment_panel.fl
parent3145a0d0107e9b0808aa7cc8fbdff0dba66bab3c (diff)
Added visual gudelines for widget distances and sizes to fluid. It is disabled by default, but can be enabled in the "Grid" dialog box. I am not sure if this is actually a good change, but thanks to SVN I'll risk a commit to get some feedback fro the early adopters.
Fluid now indicates a "good" (according to some Apple guidelines, but that's not permanent y any means) distance of widgets to the window border, indicates vertical and horizontal alignment with other widgets, shows "good" sizes for buttons, and indicates a good distance between two buttons at the same y-position. Achtung, Baby: I wrote this on a WIndows machine, hoping that SVN will replce CR/LF with LF's, as promised by the documentation. Unix users: please check and blame me! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/alignment_panel.fl')
-rw-r--r--fluid/alignment_panel.fl26
1 files changed, 16 insertions, 10 deletions
diff --git a/fluid/alignment_panel.fl b/fluid/alignment_panel.fl
index 31e6bc9f1..e991c8bc5 100644
--- a/fluid/alignment_panel.fl
+++ b/fluid/alignment_panel.fl
@@ -1,5 +1,5 @@
# data file for the Fltk User Interface Designer (fluid)
-version 1.0103
+version 1.0107
header_name {.h}
code_name {.cxx}
decl {\#include <FL/Fl_Text_Buffer.H>} {public
@@ -12,7 +12,7 @@ Function {make_project_window()} {open
} {
Fl_Window project_window {
label {Project Settings} open
- xywh {469 112 365 210}
+ xywh {217 589 365 210} type Double
code0 {\#include <FL/Fl_Preferences.H>}
code1 {\#include <FL/Fl_Tooltip.H>} modal visible
} {
@@ -103,14 +103,14 @@ decl {extern void i18n_cb(Fl_Choice *,void *);} {public
decl {extern Fl_Preferences fluid_prefs;} {public
}
-decl {Fl_Text_Buffer *shell_run_buffer;} {selected public
+decl {Fl_Text_Buffer *shell_run_buffer;} {public
}
Function {make_settings_window()} {open
} {
Fl_Window settings_window {
label {GUI Settings} open
- xywh {340 243 255 210} visible
+ xywh {321 150 255 210} type Double visible
} {
Fl_Button {} {
label Close
@@ -167,7 +167,7 @@ Function {make_shell_window()} {open
} {
Fl_Window shell_window {
label {Shell Command} open
- xywh {630 219 450 145} visible
+ xywh {588 153 450 145} type Double visible
} {
Fl_Tabs {} {open
xywh {10 10 430 90}
@@ -222,7 +222,7 @@ Function {make_shell_window()} {open
}
Fl_Window shell_run_window {
label {Shell Command Output} open
- xywh {693 386 555 435} resizable visible
+ xywh {592 332 555 435} type Double resizable visible
} {
Fl_Return_Button shell_run_button {
label Close
@@ -241,14 +241,14 @@ Function {make_grid_window()} {open
} {
Fl_Window grid_window {
label Grid open
- xywh {1120 236 155 175} visible
+ xywh {51 589 155 208} type Double visible
} {
Fl_Tabs {} {
- xywh {10 10 135 120} align 5
+ xywh {10 10 135 150} align 5
} {
Fl_Group {} {
label Grid
- xywh {10 30 135 100} align 5
+ xywh {10 30 135 130} align 5
} {
Fl_Input horizontal_input {
label {Horizontal:}
@@ -271,12 +271,18 @@ Function {make_grid_window()} {open
tooltip {Snap to grid within this many pixels.} xywh {95 100 40 20} type Int box THIN_DOWN_BOX
code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
}
+ Fl_Check_Button guides_toggle {
+ label {Show Guides}
+ user_data 4 user_data_type long
+ callback guides_cb selected
+ tooltip {Show distance and alignment guides in overlay} xywh {30 125 105 25} down_box DOWN_BOX
+ }
}
}
Fl_Button {} {
label Close
callback {grid_window->hide();}
- tooltip {Close this dialog.} xywh {85 140 60 25}
+ tooltip {Close this dialog.} xywh {85 170 60 25}
}
}
}