Number inputs with extended functionality
Whenever using Blender, I was fascinated by the extremely powerful number inputs. Similar ones can be found in GIMP.
As far as I know, The default SpinButton number inputs in GTK have only the following features:
- When input is focused:
a) You can input numbers directly via keyboard.
b) You can increase and decrease the value via up and down arrow keys.
c) You can increase and decrease the value via scrolling of the mouse wheel. - When input is not focused:
You can increase and decrease the value via buttons.
In Blender, there is the following additional functionality:
- a) You can adjust the value by clicking inside the input and dragging the mouse left and right.
b) If you hold Shift while dragging, a fine-tuning mode is active.
c) If there are minimum and maximum values for an input, the according percentage of the width has a different background color. - When there are multiple input fields underneath each other, you can click on one of them and then drag over to another; this way you can edit the value of all selected inputs at the same time.
- You can copy and paste values from one input to another by simply hovering the mouse over them and pressing
Ctrl+C
,Ctrl+V
The number inputs in GIMP are very similar. Probably they are custom-made, but I’d love to see them in other apps as well, so a default GTK implementation would be neat to make it easier for developers to use one of them.