diff --git a/src/blackcore/context_application.h b/src/blackcore/context_application.h index 103d31717..394be6390 100644 --- a/src/blackcore/context_application.h +++ b/src/blackcore/context_application.h @@ -150,7 +150,7 @@ namespace BlackCore //! Remote enabled version of file exists virtual bool existsFile(const QString &fileName) = 0; - + //! Change settings void changeSettings(uint typeValue); private: diff --git a/src/blackcore/input_manager.h b/src/blackcore/input_manager.h index 7253c766a..3522506bf 100644 --- a/src/blackcore/input_manager.h +++ b/src/blackcore/input_manager.h @@ -19,6 +19,7 @@ namespace BlackCore { + //! Input manager handling hotkey function calls class CInputManager : public QObject { Q_OBJECT diff --git a/src/blackinput/keyboard.h b/src/blackinput/keyboard.h index bdd3606a6..166b7836a 100644 --- a/src/blackinput/keyboard.h +++ b/src/blackinput/keyboard.h @@ -40,6 +40,7 @@ namespace BlackInput //! Destructor virtual ~IKeyboard() {} + //! Set the list of keys to monitor virtual void setKeysToMonitor(const BlackMisc::Hardware::CKeyboardKeyList &keylist) = 0; /*! @@ -76,7 +77,10 @@ namespace BlackInput */ void keySelectionFinished(BlackMisc::Hardware::CKeyboardKey key); + //! Key down void keyDown(const BlackMisc::Hardware::CKeyboardKey &); + + //! Key up void keyUp(const BlackMisc::Hardware::CKeyboardKey &); protected: diff --git a/src/blackmisc/setkeyboardhotkey.h b/src/blackmisc/setkeyboardhotkey.h index eecaa20d6..afbb89091 100644 --- a/src/blackmisc/setkeyboardhotkey.h +++ b/src/blackmisc/setkeyboardhotkey.h @@ -93,14 +93,19 @@ namespace BlackMisc //! Set object void setObject(const CSettingKeyboardHotkey &obj); + //! Cleanup key void cleanup() { m_key.cleanup(); } + //! Get modifier1 as string QString getModifier1AsString() const { return m_key.getModifier1AsString(); } + //! Get modifier2 as string QString getModifier2AsString() const { return m_key.getModifier1AsString(); } + //! Modifiers static QStringList modifiers() { return Hardware::CKeyboardKey::modifiers(); } + //! Create string representation static QString toStringRepresentation(int key) { return Hardware::CKeyboardKey::toStringRepresentation(key); } //! \copydoc CValueObject::setPropertyByIndex