 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
8 #ifndef ecvShortcutDecorator_h
9 #define ecvShortcutDecorator_h
72 bool isEnabled()
const;
82 virtual void setEnabled(
bool enable,
bool refocusWhenEnabling =
false);
89 virtual void onShortcutEnabled();
95 virtual void onShortcutDisabled();
101 QFrame* decoratedFrame()
const;
106 bool eventFilter(QObject* obj, QEvent*
event)
override;
114 void markFrame(
bool active,
const QColor& frameColor);
133 #endif // ecvShortcutDecorator_h
Decorate a widget by highlighting its frame when keyboard shortcuts are active.
Definition: ecvShortcutDecorator.h:41
bool m_silent
Prevent recursive signaling inside onShortcutEnabled/onShortcutDisabled.
Definition: ecvShortcutDecorator.h:125
QObject Superclass
Definition: ecvShortcutDecorator.h:45
QList< QPointer< ecvModalShortcut > > m_shortcuts
Definition: ecvShortcutDecorator.h:118
Manage an action and/or widget's responsivity to a shortcut.
Definition: ecvModalShortcut.h:43
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
bool m_pressed
Definition: ecvShortcutDecorator.h:122
#define CV_DB_LIB_API
Definition: CV_db.h:15
bool m_allowRefocus
Definition: ecvShortcutDecorator.h:130