libquentier 0.5.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
Public Types | Public Slots | Signals | Public Member Functions | List of all members
quentier::ShortcutManager Class Reference
Inheritance diagram for quentier::ShortcutManager:
Inheritance graph
[legend]
Collaboration diagram for quentier::ShortcutManager:
Collaboration graph
[legend]

Public Types

enum  QuentierShortcutKey {
  NewNote = 5000 , NewTag , NewNotebook , NewSavedSearch ,
  AddAttachment , SaveAttachment , OpenAttachment , CopyAttachment ,
  CutAttachment , RemoveAttachment , RenameAttachment , AddAccount ,
  ExitAccount , SwitchAccount , AccountInfo , NoteSearch ,
  NewNoteSearch , ShowNotes , ShowNotebooks , ShowTags ,
  ShowSavedSearches , ShowDeletedNotes , ShowStatusBar , ShowToolBar ,
  PasteUnformatted , Font , UpperIndex , LowerIndex ,
  AlignLeft , AlignCenter , AlignRight , AlignFull ,
  IncreaseIndentation , DecreaseIndentation , IncreaseFontSize , DecreaseFontSize ,
  InsertNumberedList , InsertBulletedList , Strikethrough , Highlight ,
  InsertTable , InsertRow , InsertColumn , RemoveRow ,
  RemoveColumn , InsertHorizontalLine , InsertToDoTag , EditHyperlink ,
  CopyHyperlink , RemoveHyperlink , Encrypt , Decrypt ,
  DecryptPermanently , BackupLocalStorage , RestoreLocalStorage , UpgradeLocalStorage ,
  LocalStorageStatus , SpellCheck , SpellCheckIgnoreWord , SpellCheckAddWordToUserDictionary ,
  SaveImage , AnnotateImage , ImageRotateClockwise , ImageRotateCounterClockwise ,
  Synchronize , FullSync , ImportFolders , Preferences ,
  ReleaseNotes , ViewLogs , About , UnknownKey = 100000
}
 

Public Slots

void setUserShortcut (int key, QKeySequence shortcut, const Account &account, QString context={})
 
void setNonStandardUserShortcut (QString nonStandardKey, QKeySequence shortcut, const Account &account, QString context={})
 
void setDefaultShortcut (int key, QKeySequence shortcut, const Account &account, QString context={})
 
void setNonStandardDefaultShortcut (QString nonStandardKey, QKeySequence shortcut, const Account &account, QString context={})
 

Signals

void shortcutChanged (int key, QKeySequence shortcut, const Account &account, QString context)
 
void nonStandardShortcutChanged (QString nonStandardKey, QKeySequence shortcut, const Account &account, QString context)
 

Public Member Functions

 ShortcutManager (QObject *parent=nullptr)
 
QKeySequence shortcut (const int key, const Account &account, const QString &context={}) const
 
QKeySequence shortcut (const QString &nonStandardKey, const Account &account, const QString &context={}) const
 
QKeySequence defaultShortcut (const int key, const Account &account, const QString &context={}) const
 
QKeySequence defaultShortcut (const QString &nonStandardKey, const Account &account, const QString &context={}) const
 
QKeySequence userShortcut (const int key, const Account &account, const QString &context={}) const
 
QKeySequence userShortcut (const QString &nonStandardKey, const Account &account, const QString &context={}) const
 

Member Function Documentation

◆ defaultShortcut() [1/2]

QKeySequence quentier::ShortcutManager::defaultShortcut ( const int  key,
const Account account,
const QString &  context = {} 
) const
Returns
Default shortcut for the standard key if present, otherwise empty key sequence

◆ defaultShortcut() [2/2]

QKeySequence quentier::ShortcutManager::defaultShortcut ( const QString &  nonStandardKey,
const Account account,
const QString &  context = {} 
) const
Returns
Default shortcut for the non-standard key if present, otherwise empty key sequence

◆ shortcut() [1/2]

QKeySequence quentier::ShortcutManager::shortcut ( const int  key,
const Account account,
const QString &  context = {} 
) const
Returns
Active shortcut for the standard key - either the user defined shortcut (if present) or the default one (if present as well)

◆ shortcut() [2/2]

QKeySequence quentier::ShortcutManager::shortcut ( const QString &  nonStandardKey,
const Account account,
const QString &  context = {} 
) const
Returns
Active shortcut for the non-standard key - either the user defined shortcut (if present) or the default one (if present as well)

◆ userShortcut() [1/2]

QKeySequence quentier::ShortcutManager::userShortcut ( const int  key,
const Account account,
const QString &  context = {} 
) const
Returns
User defined shortcut for the standard key if present, otherwise empty key sequence

◆ userShortcut() [2/2]

QKeySequence quentier::ShortcutManager::userShortcut ( const QString &  nonStandardKey,
const Account account,
const QString &  context = {} 
) const
Returns
User defined shortcut for the non-standard key if present, otherwise empty key sequence