From 6d7faa93e10db58be531a630421555b4fe50f9f3 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 10 Dec 2021 15:16:35 +0100 Subject: Fluid: added keyboard shortcuts documentation. --- documentation/src/fluid.dox | 59 +++++++++++++++++++++++++++++++++++++++++++++ fluid/Fl_Window_Type.cxx | 5 ++-- fluid/widget_panel.cxx | 2 +- fluid/widget_panel.fl | 6 ++--- 4 files changed, 65 insertions(+), 7 deletions(-) diff --git a/documentation/src/fluid.dox b/documentation/src/fluid.dox index bad962d70..fd4cf4a38 100644 --- a/documentation/src/fluid.dox +++ b/documentation/src/fluid.dox @@ -19,6 +19,7 @@ Subchapters: \li \ref fluid_templates \li \ref fluid_i18n \li \ref fluid_limitations +\li \ref fluid_hotkeys \section fluid_what_is_fluid What is FLUID? @@ -1585,6 +1586,64 @@ blocks of code. However, static code and data generated by this segment (menu items, images, include statements, etc.) will still be generated and likely cause compile-time warnings. +\section fluid_hotkeys Keyboard Shortcuts + +On Apple computers, use the Apple Command key instead of Ctrl. + + + + + + + + + + + + + + + + + + + widget bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Key ComboFunction
`F1` widget properties dialog
`F2` move widget earlier in tree
`F3` move widget later in tree
`F7` group widgets
`F8` ungroup widgets
`Delete` delete selected widgets
`Ctrl-0..9` load design from history
`Alt-1` label text tiny
`Alt-2` lLabel text small
`Alt-3` label text normal
`Alt-4` label text medium
`Alt-5` label text large
`Alt-6` label text huge
`Ctrl-A` select all
`Shift-Ctrl-A` select none
`Alt-B`
`Ctrl-C` copy widgets
`Shift-Ctrl-C` generate C code
`Ctrl-G` grid setting dialog
`Alt-G` execute again
`Shift-Alt-G` FLTK settings dialog
`Ctrl-I` insert design into project
`Ctrl-N` new design
`Shift-Ctrl-N` new design from template
`Ctrl-O` open design file
`Shift-Ctrl-O` toggle overlays
`Ctrl-P` print all windows
`Alt-P` project settings
`Shift-Alt-P` Fluid settings dialog
`Ctrl-Q` quit Fluid
`Ctrl-S` save design
`Shift-Ctrl-S` save design with new name
`Shift-Alt-S` source view window
`Ctrl-U` duplicate widgets
`Ctrl-V` paste widgets
`Shift-Ctrl-W` write text strings
`Ctrl-X` cut selected Widgets
`Alt-X` show 'execute command' dialog
`Ctrl-Z` undo
`Shift-Ctrl-Z` redo
Key ComboFunction in interactive Window
`LMB` select one widget
`Shift-LMB` extend widget selection
`Shift-LMB-Drag` window only: resize proportional
`Tab` select next
`Shift-Tab` select previous
`Arrow` move by one unit
`Shift-Arrow` resize by one unit
`Ctrl-Arrow` move by grid units
`Shift-Ctrl-Arrow` resize by grid units
+ \htmlonly
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index ea2e4da54..e910b7153 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -1322,9 +1322,8 @@ int Fl_Window_Type::handle(int event) { case FL_Up: dx = 0; dy = -1; goto ARROW; case FL_Down: dx = 0; dy = +1; goto ARROW; ARROW: - // for some reason BOTTOM/TOP are swapped... should be fixed... - drag = (Fl::event_state(FL_SHIFT)) ? (RIGHT|TOP) : DRAG; - if (Fl::event_state(FL_CTRL)) {dx *= gridx; dy *= gridy;} + drag = (Fl::event_state(FL_SHIFT)) ? (RIGHT|BOTTOM) : DRAG; + if (Fl::event_state(FL_COMMAND)) {dx *= gridx; dy *= gridy;} moveallchildren(); drag = 0; return 1; diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx index f1f1e5394..7760654d9 100644 --- a/fluid/widget_panel.cxx +++ b/fluid/widget_panel.cxx @@ -107,7 +107,6 @@ Fl_Double_Window* make_widget_panel() { o->labelsize(11); o->callback((Fl_Callback*)propagate_load); o->when(FL_WHEN_NEVER); - o->hide(); { Fl_Group* o = new Fl_Group(95, 40, 309, 20, "Label:"); o->labelfont(1); o->labelsize(11); @@ -514,6 +513,7 @@ ive to the origin at construction time"); o->labelsize(11); o->callback((Fl_Callback*)propagate_load); o->when(FL_WHEN_NEVER); + o->hide(); { Fl_Group* o = new Fl_Group(95, 40, 309, 20, "Label Font:"); o->labelfont(1); o->labelsize(11); diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl index 482e229ea..f4f3bd3a2 100644 --- a/fluid/widget_panel.fl +++ b/fluid/widget_panel.fl @@ -40,7 +40,7 @@ Function {make_widget_panel()} { Fl_Group {} { label GUI callback propagate_load - xywh {10 30 400 330} labelsize 11 when 0 hide resizable + xywh {10 30 400 330} labelsize 11 when 0 resizable } { Fl_Group {} { label {Label:} @@ -436,8 +436,8 @@ Use Ctrl-J for newlines.} xywh {95 285 310 20} labelfont 1 labelsize 11 textsize } Fl_Group {} { label Style - callback propagate_load selected - xywh {10 30 400 330} labelsize 11 when 0 + callback propagate_load + xywh {10 30 400 330} labelsize 11 when 0 hide } { Fl_Group {} { label {Label Font:} -- cgit v1.2.3