diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-05-10 12:06:31 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-05-10 12:06:31 +0000 |
| commit | e42fac099f8d56e24987183edaf0e3d2386770b8 (patch) | |
| tree | 88c3c3d2f19a752fc8fa22ada59ed05c350cfa8c /fluid/alignment_panel.fl | |
| parent | ee1d3823a0e6c1d62554311341dc01cc002b5a1a (diff) | |
Annoyed by the limitation in Fluid to generate keyboard shortucts for either Mac or Win32/Linux, I added a Project option. If checked, all keyboard shortcuts containing the modifier FL_CTRL or FL_META will instead be writte as FL_COMMAND|shortcut. This will generate FL_META shortcuts on the Mac and FL_CTRL shortcuts on the PC.
This is compatible to old Fluid files. The .fl file will not change (except for the project wide setting itself) and no information is lost. As the only limitation, it is not possible to write any combination of FL_META and FL_CTRL while "use FL_COMMAND" is set.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/alignment_panel.fl')
| -rw-r--r-- | fluid/alignment_panel.fl | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/fluid/alignment_panel.fl b/fluid/alignment_panel.fl index d8a38e53f..db155c688 100644 --- a/fluid/alignment_panel.fl +++ b/fluid/alignment_panel.fl @@ -44,25 +44,25 @@ Function {make_project_window()} {open } { Fl_Window project_window { label {Project Settings} - xywh {312 395 345 190} type Double + xywh {312 395 358 207} type Double code0 {\#include <FL/Fl_Preferences.H>} code1 {\#include <FL/Fl_Tooltip.H>} modal visible } { Fl_Button {} { label Close callback {project_window->hide();} - tooltip {Close this dialog.} xywh {293 160 42 20} labelsize 11 + tooltip {Close this dialog.} xywh {293 175 52 20} labelsize 11 } Fl_Tabs {} {open - xywh {10 10 325 140} selection_color 12 labelsize 11 + xywh {10 10 335 151} selection_color 12 labelsize 11 } { Fl_Group {} { label Output open - xywh {10 30 325 116} labelsize 11 + xywh {10 30 335 131} labelsize 11 } { Fl_Box {} { label {Use "name.ext" to set name or just ".ext" to set extension.} - xywh {20 40 304 15} labelsize 11 align 148 + xywh {15 40 325 15} labelsize 11 align 144 } Fl_Input header_file_input { label {Header File:} @@ -76,15 +76,20 @@ Function {make_project_window()} {open callback code_input_cb tooltip {The name of the generated code file.} xywh {97 85 227 20} box THIN_DOWN_BOX labelfont 1 labelsize 11 when 1 textfont 4 textsize 11 } - Fl_Light_Button include_H_from_C_button { + Fl_Check_Button include_H_from_C_button { label {Include Header from Code} callback include_H_from_C_button_cb - tooltip {Include the header file from the code file.} xywh {166 110 158 20} value 1 labelsize 11 + tooltip {Include the header file from the code file.} xywh {95 110 145 20} down_box DOWN_BOX labelsize 11 + } + Fl_Check_Button use_FL_COMMAND_button { + label {Generate menu shortcuts using FL_COMMAND} + callback use_FL_COMMAND_button_cb selected + tooltip {Replace FL_CTRL with FL_COMMAND when generating menu shortcut code.} xywh {95 130 245 20} down_box DOWN_BOX labelsize 11 } } Fl_Group {} { label Internationalization open - xywh {10 30 325 116} labelsize 11 hide + xywh {10 30 335 131} labelsize 11 hide } { Fl_Choice i18n_type_chooser { label {Use:} @@ -280,7 +285,7 @@ Function {make_shell_window()} {open } Fl_Button {} { label Cancel - callback {shell_window->hide();} selected + callback {shell_window->hide();} xywh {285 90 72 25} } } |
