Right now, in the "Label" mode the user has a one-pixel cursor to change labelings. The left click action is add to label, right click is remove from label.
However we want the right click to be usable for the new context menu from #14.
This enhancements consists of several parts.
Enhance the ModeWidget to contain more controls when in Label mode. This is similar to the ProgressBar enhancement of the control widget in FalseColorDock. See falsecolor_sel.ui and how it is used for inspiration.
In the new part of the widget, include the following items:
Several buttons depicting different cursor sizes to choose from
A rubber button which makes the cursor remove labeling (set label to zero) for all pixels of same label, shortcut 'x' for this button
Implement different cursor sizes for drawing in the bandview. Ideally, the cursor would consist of a mask like this:
a list of changed pixels is amended
After a while, the list of changes is submitted so that the viewports get incremental updates to their binning.
This needs to be taken into account when making the change.
Right now, in the "Label" mode the user has a one-pixel cursor to change labelings. The left click action is add to label, right click is remove from label. However we want the right click to be usable for the new context menu from #14.
This enhancements consists of several parts.
cursor 1:
cursor 2:
Cursor 3:
When drawing labels, three things happen: