Version: 9.15.0
SUIT_ShortcutMgr.cxx File Reference
#include "SUIT_ShortcutMgr.h"
#include "SUIT_Session.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_MessageBox.h"
#include "Tools/SUIT_extensions.h"
#include "Tools/SUIT_SentenceMatcher.h"
#include <QAction>
#include <QtxAction.h>
#include <QApplication>
#include <QActionEvent>
#include <QKeySequence>
#include <QDebug>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonParseError>
#include <QFile>
#include <list>
#include <iostream>
#include <string>
#include <sstream>
#include <stdexcept>

Functions

bool ShCutDbg (const QString &theString)
 Prints theString to std::wcout, if SUIT_ShortcutMgr debug logging is enabled. More...
 
bool ShCutDbg (const char *src)
 Prints theString to std::wcout, if SUIT_ShortcutMgr debug logging is enabled. More...
 
void Warning (const QString &theString)
 
void Warning (const char *src)
 

Variables

const std::wstring SHORTCUT_MGR_LOG_PREFIX = L"SHORTCUT_MGR_DBG: "
 
static const QKeySequence NO_KEYSEQUENCE = QKeySequence(QString(""))
 
static const QString NO_ACTION = QString("")
 
static const QString TOKEN_SEPARATOR = QString("/")
 Separates tokens in action ID. More...
 
static const QString META_ACTION_PREFIX = QString("#")
 
static const QString SECTION_NAME_PREFIX = QString("shortcuts_vA1.0")
 Prefix of names of shortcut setting sections in preference files. More...
 
const QString DEFAULT_LANG = QString("en")
 
const QString LANG_SECTION = QString("language")
 
static const QString SECTION_NAME_ACTION_ASSET_FILE_PATHS = QString("action_assets")
 
const QString SECTION_NAME_ACTION_ID_MUTATION_FILE_PATHS = "actionID_mutations"
 

Function Documentation

◆ ShCutDbg() [1/2]

bool ShCutDbg ( const char *  src)

Prints theString to std::wcout, if SUIT_ShortcutMgr debug logging is enabled.

References ShCutDbg(), and SHORTCUT_MGR_LOG_PREFIX.

◆ ShCutDbg() [2/2]

bool ShCutDbg ( const QString &  theString)

Prints theString to std::wcout, if SUIT_ShortcutMgr debug logging is enabled.

References SHORTCUT_MGR_LOG_PREFIX.

◆ Warning() [1/2]

void Warning ( const char *  src)

◆ Warning() [2/2]

void Warning ( const QString &  theString)

Variable Documentation

◆ DEFAULT_LANG

const QString DEFAULT_LANG = QString("en")

◆ LANG_SECTION

const QString LANG_SECTION = QString("language")

◆ META_ACTION_PREFIX

const QString META_ACTION_PREFIX = QString("#")
static

◆ NO_ACTION

const QString NO_ACTION = QString("")
static

◆ NO_KEYSEQUENCE

const QKeySequence NO_KEYSEQUENCE = QKeySequence(QString(""))
static

◆ SECTION_NAME_ACTION_ASSET_FILE_PATHS

const QString SECTION_NAME_ACTION_ASSET_FILE_PATHS = QString("action_assets")
static

◆ SECTION_NAME_ACTION_ID_MUTATION_FILE_PATHS

const QString SECTION_NAME_ACTION_ID_MUTATION_FILE_PATHS = "actionID_mutations"

◆ SECTION_NAME_PREFIX

const QString SECTION_NAME_PREFIX = QString("shortcuts_vA1.0")
static

Prefix of names of shortcut setting sections in preference files.

◆ SHORTCUT_MGR_LOG_PREFIX

const std::wstring SHORTCUT_MGR_LOG_PREFIX = L"SHORTCUT_MGR_DBG: "

◆ TOKEN_SEPARATOR

const QString TOKEN_SEPARATOR = QString("/")
static

Separates tokens in action ID.