if (settings()->value("options/disableHideAlert", false).toBool())
return false;
QMessageBox msgBox;
msgBox.setWindowTitle(tr("Lightscreen"));
msgBox.setText(tr("You have chosen to hide Lightscreen when there's no system tray icon, so you will not be able to access the program <b>unless you have selected a hotkey to do so</b>.<br>What do you want to do?"));
msgBox.setText(tr("There's a new version of Lightscreen available.<br>Would you like to see more information?<br>(<em>You can turn this notification off</em>)"));
- Convert Cocoa modifer flags to Carbon modifier flags.
- @param modifierFlags one or more of the flags <tt>NSShiftKeyMask</tt>, <tt>NSControlKeyMask</tt>, <tt>NSAlternateKeyMask</tt>, <tt>NSCommandKeyMask</tt>
- @abstract Class for translating between key codes and key characters.
- @discussion The key code for each key character can change between hardware and with localisation, <tt>NDKeyboardLayout</tt> handles translation between key codes and key characters as well as for generating strings for display purposes.
- initialise a keyboard layout for the current keyboard, if that fails a keyboard layout for one of the languages
- returned from <tt>[NSLocale preferredLanguages]</tt> is attempted and if finally if that fails a keyboard layout
- for the most recently used ASCII-capable keyboard is created. If that fails then this method returns <tt>nil</tt>.
- */
-- (id)init;
-/*!
- @method initWithLanguage:
- @abstract initialise a keyboard layout.
- @discussion Initialises a KeyboardLayout with an <tt>TISInputSourceRef</tt> for the supplied language.
- */
-- (id)initWithLanguage:(NSString *)langauge;
-/*!
- @method initWithInputSource:
- @abstract initialise a keyboard layout.
- @discussion Initialises a KeyboardLayout with an <tt>TISInputSourceRef</tt>, this method is called with the result from <tt>initWithInputSource:TISCopyCurrentKeyboardInputSource()</tt>.
- @discussion <tt>stringForCharacter:modifierFlags:</tt> returns a string that can be displayed to the user, For example command-z would produce ⌘Z, shift-T would produce ⇧T.
- @param character The unmodified character on the keyboard.
- @discussion <tt>stringForKeyCode:modifierFlags:</tt> returns a string that can be displayed to the user. This method is called by <tt>stringForCharacter::modifierFlags</tt> and is problem more useful most of the time.
- @param keyCode A value specifying the virtual key code that is to be translated. For ADB keyboards, virtual key codes are in the range from 0 to 127.
- @abstract Get the key character for a given key code.
- @discussion The character returned is the unmodified version on the keyboard.
- @param keyCode A value specifying the virtual key code that is to be translated. For ADB keyboards, virtual key codes are in the range from 0 to 127.
- @result The character for the unmodified version of the key.
- */
-- (unichar)characterForKeyCode:(UInt16)keyCode;
-/*!
- @method keyCodeForCharacter:numericPad:
- @abstract Get the key code for a given key character.
- @discussion The character pass in must be the unshifter character for the key, for example to get the key code for the '?' on keyboards where you type shift-/ to get '?' you should pass in the character '/"
- @param character The unmodified character on the keyboard.
- @param numericPad For the keycode of a key on the keypad where the same character is also on the main keyboard this flag needs to be <tt>YES</tt>.