Author: sh-sh-sh Date: Fri Jul 11 16:05:28 2008 New Revision: 49002 URL: http://svn.opensuse.org/viewcvs/yast?rev=49002&view=rev Log: docs Modified: trunk/libyui/src/YShortcut.cc trunk/libyui/src/YShortcut.h Modified: trunk/libyui/src/YShortcut.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui/src/YShortcut.cc?rev=49002... ============================================================================== --- trunk/libyui/src/YShortcut.cc (original) +++ trunk/libyui/src/YShortcut.cc Fri Jul 11 16:05:28 2008 @@ -173,9 +173,9 @@ int YShortcut::distinctShortcutChars() { - if ( _distinctShortcutChars < 0 ) // chache this value - it's expensive! + if ( _distinctShortcutChars < 0 ) // cache this value - it's expensive! { - // Create and initiazlize "contained" array - what possible shortcut + // Create and initialize "contained" array - what possible shortcut // characters are contained in that string? bool contained[ sizeof(char) << 8 ]; Modified: trunk/libyui/src/YShortcut.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui/src/YShortcut.h?rev=49002&... ============================================================================== --- trunk/libyui/src/YShortcut.h (original) +++ trunk/libyui/src/YShortcut.h Fri Jul 11 16:05:28 2008 @@ -74,9 +74,9 @@ bool isWizardButton() const { return _isWizardButton; } /** - * Returns the complete shortcut string ( which may or may not contain "& " ), + * Returns the complete shortcut string (which may or may not contain "&"), * i.e. the value of the widget's shortcut property. For PushButtons, this - * is the label on the button ( e.g., "& Details..." ), for other widgets + * is the label on the button ( e.g., "&Details..." ), for other widgets * usually the caption above it. * * This value is chached, i.e. this isn't a too expensive operation. @@ -85,19 +85,19 @@ /** * Returns the shortcut string ( from the widget's shortcut property ) - * without any "& " markers. + * without any "&" markers. **/ string cleanShortcutString(); /** * Static version of the above for general use: - * Returns the specified string without any "& " markers. + * Returns the specified string without any "&" markers. **/ static string cleanShortcutString( string shortcutString ); /** * The preferred shortcut character, i.e. the character that had been - * preceded by "& " before checking / resolving conflicts began. + * preceded by "&" before checking / resolving conflicts began. **/ char preferred(); @@ -131,22 +131,23 @@ void setConflict( bool newConflictState = true ) { _conflict = newConflictState; } /** - * Obtain the number of distinct valid shortcut characters in the shortcut string, - * i.e. how many different shortcuts that widget could get. + * Obtain the number of distinct valid shortcut characters in the shortcut + * string, i.e. how many different shortcuts that widget could get. **/ int distinctShortcutChars(); /** - * Static function: Returns the character used for marking keyboard shortcuts. + * Static function: Returns the character used for marking keyboard + * shortcuts. **/ static char shortcutMarker() { return '&'; } /** - * Static function: Find the next occurrence of the shortcut marker ( '& ' ) in a - * string, beginning at starting position start_pos. + * Static function: Find the next occurrence of the shortcut marker ('&') + * in a string, beginning at starting position start_pos. * - * Returns string::npos if not found or the position of the shortcut marker ( ! ) - * if found. + * Returns string::npos if not found or the position of the shortcut marker + * (not the shortcut character!) if found. **/ static string::size_type findShortcutPos( const string & str, string::size_type start_pos = 0 ); @@ -171,7 +172,7 @@ static char normalized( char c ); /** - * Obtain a widget's shortcut property - the string that contains "& " to + * Obtain a widget's shortcut property - the string that contains "&" to * designate a shortcut. **/ static string getShortcutString( const YWidget * widget ); @@ -181,7 +182,7 @@ /** * Obtain the the shortcut property of this shortcut's widget - the string - * that contains "& " to designate a shortcut. + * that contains "&" to designate a shortcut. **/ virtual string getShortcutString(); @@ -241,7 +242,7 @@ /** * Obtain the the shortcut property of this shortcut's widget - the string - * that contains "& " to designate a shortcut. + * that contains "&" to designate a shortcut. **/ virtual string getShortcutString(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org