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.h | |
| 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.h')
| -rw-r--r-- | fluid/alignment_panel.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fluid/alignment_panel.h b/fluid/alignment_panel.h index fb2c96ace..0706d165d 100644 --- a/fluid/alignment_panel.h +++ b/fluid/alignment_panel.h @@ -46,9 +46,11 @@ extern void header_input_cb(Fl_Input*, void*); extern Fl_Input *header_file_input; extern void code_input_cb(Fl_Input*, void*); extern Fl_Input *code_file_input; -#include <FL/Fl_Light_Button.H> -extern void include_H_from_C_button_cb(Fl_Light_Button*, void*); -extern Fl_Light_Button *include_H_from_C_button; +#include <FL/Fl_Check_Button.H> +extern void include_H_from_C_button_cb(Fl_Check_Button*, void*); +extern Fl_Check_Button *include_H_from_C_button; +extern void use_FL_COMMAND_button_cb(Fl_Check_Button*, void*); +extern Fl_Check_Button *use_FL_COMMAND_button; #include <FL/Fl_Choice.H> extern void i18n_type_cb(Fl_Choice*, void*); extern Fl_Choice *i18n_type_chooser; @@ -66,7 +68,6 @@ extern void scheme_cb(Fl_Choice *, void *); extern Fl_Double_Window *settings_window; extern void scheme_cb(Fl_Choice*, void*); extern Fl_Choice *scheme_choice; -#include <FL/Fl_Check_Button.H> extern Fl_Check_Button *tooltips_button; extern Fl_Check_Button *completion_button; extern Fl_Check_Button *openlast_button; |
