libyui  2.42.5
 All Classes Functions Variables Enumerations Friends
YItemShortcut Class Reference

#include <YShortcut.h>

Inheritance diagram for YItemShortcut:
YShortcut

Public Member Functions

 YItemShortcut (YWidget *widget, YItem *item)
 
virtual ~YItemShortcut ()
 
YItemitem () const
 
virtual void setShortcut (char newShortcut)
 
- Public Member Functions inherited from YShortcut
 YShortcut (YWidget *shortcut_widget)
 
virtual ~YShortcut ()
 
YWidgetwidget () 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

- Public Types inherited from YShortcut
enum  { None = 0 }
 
- Static Public Member Functions inherited from YShortcut
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)
 
- Protected Attributes inherited from YShortcut
YWidget_widget
 
std::string _shortcutString
 
bool _shortcutStringCached
 
std::string _cleanShortcutString
 
bool _cleanShortcutStringCached
 
int _preferred
 
int _shortcut
 
bool _conflict
 
bool _isButton
 
bool _isWizardButton
 
int _distinctShortcutChars
 

Detailed Description

Special case for widgets that can have multiple shortcuts based on items (like YDumbTab)

Definition at line 225 of file YShortcut.h.

Constructor & Destructor Documentation

YItemShortcut::YItemShortcut ( YWidget widget,
YItem item 
)
inline

Constructor.

Definition at line 231 of file YShortcut.h.

virtual YItemShortcut::~YItemShortcut ( )
inlinevirtual

Destructor.

Definition at line 239 of file YShortcut.h.

Member Function Documentation

std::string YItemShortcut::getShortcutString ( )
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.

YItem* YItemShortcut::item ( ) const
inline

Return the associated item.

Definition at line 244 of file YShortcut.h.

void YItemShortcut::setShortcut ( char  newShortcut)
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.


The documentation for this class was generated from the following files: