26 #ifndef YShortcutManager_h 27 #define YShortcutManager_h 30 #include "YShortcut.h" 119 YWidgetListConstIterator end );
175 #endif // YShortcutManager_h bool _used[sizeof(char)<< 8]
Flags for used shortcut characters.
int _conflictCount
Counter for shortcut conflicts.
virtual ~YShortcutManager()
Destructor.
void clearShortcutList()
Delete all members of the internal shortcut list, then empty the list.
Helper class to manage keyboard shortcuts within one dialog and resolve keyboard shortcut conflicts...
YDialog * dialog()
Returns the dialog this shortcut manager works on.
void resolveAllConflicts()
Resolve shortcut conflicts.
Helper class for shortcut management: This class holds data about the shortcut for one single widget...
YShortcutList _shortcutList
List of all the shortcuts in this dialog.
int findShortestWizardButton(const YShortcutList &conflictList)
Find the shortest wizard button in 'conflictList', if there is any.
int conflictCount()
Returns the number of shortcut conflicts.
void checkShortcuts(bool autoResolve=true)
Check the keyboard shortcuts of all children of this dialog (not for sub-dialogs!).
unsigned findShortestWidget(const YShortcutList &conflictList)
Find the shortest widget in 'conflictList'.
int _wanted[sizeof(char)<< 8]
Counters for wanted shortcut characters.
YDialog * _dialog
The dialog this shortcut manager works on.
A window in the desktop environment.
void findShortcutWidgets(YWidgetListConstIterator begin, YWidgetListConstIterator end)
Recursively search all widgets between iterators 'begin' and 'end' (not those of any sub-dialogs!) fo...
YShortcutManager(YDialog *dialog)
Constructor.
void resolveConflict(YShortcut *shortcut)
Pick a new shortcut character for 'shortcut' - one that isn't marked as used in the '_used' array...