libyui
2.42.5
|
#include <YShortcut.h>
Public Member Functions | |
YItemShortcut (YWidget *widget, YItem *item) | |
virtual | ~YItemShortcut () |
YItem * | item () const |
virtual void | setShortcut (char newShortcut) |
![]() | |
YShortcut (YWidget *shortcut_widget) | |
virtual | ~YShortcut () |
YWidget * | widget () const |
const char * | widgetClass () const |
bool | isButton () const |
bool | isWizardButton () const |
std::string | shortcutString () |
std::string | cleanShortcutString () |
char | preferred () |
char | shortcut () |
void | clearShortcut () |
bool | conflict () |
void | setConflict (bool newConflictState=true) |
int | distinctShortcutChars () |
bool | hasValidShortcutChar () |
Protected Member Functions | |
virtual std::string | getShortcutString () |
Additional Inherited Members | |
![]() | |
enum | { None = 0 } |
![]() | |
static std::string | cleanShortcutString (std::string shortcutString) |
static char | shortcutMarker () |
static std::string::size_type | findShortcutPos (const std::string &str, std::string::size_type start_pos=0) |
static char | findShortcut (const std::string &str, std::string::size_type start_pos=0) |
static bool | isValid (char c) |
static char | normalized (char c) |
static std::string | getShortcutString (const YWidget *widget) |
![]() | |
YWidget * | _widget |
std::string | _shortcutString |
bool | _shortcutStringCached |
std::string | _cleanShortcutString |
bool | _cleanShortcutStringCached |
int | _preferred |
int | _shortcut |
bool | _conflict |
bool | _isButton |
bool | _isWizardButton |
int | _distinctShortcutChars |
Special case for widgets that can have multiple shortcuts based on items (like YDumbTab)
Definition at line 225 of file YShortcut.h.
Constructor.
Definition at line 231 of file YShortcut.h.
|
inlinevirtual |
Destructor.
Definition at line 239 of file YShortcut.h.
|
protectedvirtual |
Obtain the the shortcut property of this shortcut's widget - the string that contains "&" to designate a shortcut.
Reimplemented from YShortcut.
Definition at line 310 of file YShortcut.cc.
|
inline |
Return the associated item.
Definition at line 244 of file YShortcut.h.
|
virtual |
Set (override) the shortcut character. In this subclass, it will change the internally stored item.
Reimplemented from YShortcut.
Definition at line 320 of file YShortcut.cc.