From e11b585014136e047d2f88d07162f3119affdca0 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 4 May 2019 10:29:19 +0200 Subject: [PATCH] docs: interface --- resources/docs/docs/interface.md | 32 +++++++++++++--------- src/client/app/widgets/containers/modal.js | 2 +- src/client/app/widgets/containers/panel.js | 2 +- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/resources/docs/docs/interface.md b/resources/docs/docs/interface.md index 9b24289a..a555209a 100644 --- a/resources/docs/docs/interface.md +++ b/resources/docs/docs/interface.md @@ -1,8 +1,25 @@ # User interface +The interface is made of two main components: the widgets and the sidepanel. + +## Widgets + +All widgets are contained in the `root` widget, a special `panel` widget that can only contain tabs. + +### Interacting with widgets + +| Mouse | Touch | Description | +|---|---|---| +| Click | Tap | Handled at pressing time, not releasing. | +| Double Click | Double Tap | Some widgets handle double click / tap events. | +| Drag | Drag | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. | +| `Ctrl` + Drag | | Holding the `Ctrl` key while dragging with the mouse increases the gesture's precision by 10.| +| | Two-fingers drag (single target) | Using two fingers on a single-touch target increases the gesture's precision by 10. | + + ## Sidepanel -The sidepanel can be opened by clicking the navigation icon in the upper right corner or by pressing F10. +The sidepanel can be opened by clicking the navigation icon in the upper right corner or by pressing `F10`. ### State management @@ -21,19 +38,8 @@ By default, a dragging gesture can only affect the widget it started on. Enablin - make gestures affect every widgets no matter where they started - make sliders-like widgets respond as if their `snap` option is enabled -When traversing gestures are set to "Smart", these will only affect widgets that have the same type as the first touched widget. +When traversing gestures are set to `auto`, these will only affect widgets that have the same type as the first touched widget. ### Editor See [Editing sessions](/docs/editing-sessions.md). - -## Interactions - -| Mouse | Touch | Description | -|---|---|---| -| Click | Tap | Handled at pressing time, not releasing. | -| Double Click | Double Tap | Some widgets handle double click / tap events. | -| Right-click | Long touch | Widgets that have only one value input will give focus to it when receiving this event. When the editor is enabled, Right-click / Long touch spawns the editor's context menu. | -| Drag | Drag | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. | -| `Ctrl` + Drag | | Holding the `Ctrl` key while dragging with the mouse increases the gesture's precision by 10.| -| | Two-fingers drag (single target) | Using two on a single-touch target increases the gesture's precision by 10. | diff --git a/src/client/app/widgets/containers/modal.js b/src/client/app/widgets/containers/modal.js index f35e954b..312f2a59 100644 --- a/src/client/app/widgets/containers/modal.js +++ b/src/client/app/widgets/containers/modal.js @@ -10,7 +10,7 @@ module.exports = class Modal extends Panel { static description() { - return 'A toggle button that opens a popup panel.' + return 'A toggle button that opens a popup panel. Cannot contain tabs directly.' } diff --git a/src/client/app/widgets/containers/panel.js b/src/client/app/widgets/containers/panel.js index 9ab55e8b..0a9eecdb 100644 --- a/src/client/app/widgets/containers/panel.js +++ b/src/client/app/widgets/containers/panel.js @@ -8,7 +8,7 @@ class Panel extends Container { static description() { - return 'Widget container.' + return 'Widgets or Tabs container.' }