![]() |
ImFusion C++ SDK 4.4.0
|
Public Types | |
| enum | SelectorOption { NoOptions = 0 , ShowEye = 1 << 0 , ShowLock = 1 << 1 , Selectable = 1 << 2 , HideZeroLabel = 1 << 3 , MultiSelection = 1 << 4 , ZeroLabelUnselectable = 1 << 5 } |
Public Member Functions | |
| LabelSelector (AnnotationActionSharedState::LabelMapSettings &settings, Flags< SelectorOption > options, QWidget *parent=nullptr) | |
| void | setBlankOverride (std::unique_ptr< Project::PixelwiseLabelType > blankOverride) |
| Project::PixelwiseLabelType * | blankOverride () const |
| const Project::PixelwiseLabelType * | activeLabel (bool withOverride=true) const |
| int | labelCount () const |
| QSize | sizeHint () const override |
| void | keyPressEvent (QKeyEvent *event) override |
| void | keyReleaseEvent (QKeyEvent *event) override |
| void | showEvent (QShowEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | addCustomContextMenuAction (const QString &text, std::function< void(void)> lambda) |
| Appends a custom context-menu action with the given text and callback. | |
| void | clearCustomContextMenuActions () |
| Clears all custom context menu actions. | |