AntiMicroX
Data Structures | Typedefs | Functions | Variables
PadderCommon Namespace Reference

Data Structures

struct  _springModeInfo
 

Typedefs

typedef struct PadderCommon::_springModeInfo springModeInfo
 

Functions

QString preferredProfileDir (AntiMicroSettings *settings)
 
QStringList arguments (const int &argc, char **argv)
 
QStringList parseArgumentsString (QString tempString)
 
void reloadTranslations (QTranslator *translator, QTranslator *appTranslator, QString language)
 Reload main application and base Qt translation files. More...
 
void lockInputDevices ()
 
void unlockInputDevices ()
 
QIcon loadIcon (const QString &name, const QString &fallback_location)
 Universal method for loading icons. More...
 
QIcon loadIcon (QString name)
 Universal method for loading icons if current theme does not have this icon, then look for replacement in resources. More...
 
void log_system_config ()
 
QString configPath ()
 
QString configFilePath ()
 
QString configLegacyFilePath ()
 
QString configAntimicroLegacyFilePath ()
 
const QString mouseDeviceName ("antimicrox Mouse Emulation")
 
const QString keyboardDeviceName ("antimicrox Keyboard Emulation")
 
const QString springMouseDeviceName ("antimicrox Abs Mouse Emulation")
 
QString getProfileName (QFileInfo &profile)
 Returns the "human-readable" name of the given profile. More...
 

Variables

QWaitCondition waitThisOut
 
QMutex sdlWaitMutex
 
QMutex inputDaemonMutex
 
bool editingBindings = false
 
MouseHelper mouseHelperObj
 
const QString configFileName = "antimicrox_settings.ini"
 
const int LATESTCONFIGFILEVERSION = 19
 
const int LATESTCONFIGMIGRATIONVERSION = 5
 
const QString localSocketKey = "antimicroxSignalListener"
 
const QString unhideCommand = "unhideWindow"
 
const QString githubProjectPage = "https://github.com/AntiMicroX/antimicrox/"
 
const QString githubIssuesPage = "https://github.com/AntiMicroX/antimicrox/issues"
 
const QString wikiPage = QString("%1/wiki").arg(githubProjectPage)
 
const int ANTIMICROX_MAJOR_VERSION = PROJECT_MAJOR_VERSION
 
const int ANTIMICROX_MINOR_VERSION = PROJECT_MINOR_VERSION
 
const int ANTIMICROX_PATCH_VERSION = PROJECT_PATCH_VERSION
 
const QString programVersion
 
const QString sdlVersionUsed
 
const QString sdlVersionCompiled
 

Typedef Documentation

◆ springModeInfo

Function Documentation

◆ arguments()

QStringList PadderCommon::arguments ( const int &  argc,
char **  argv 
)

◆ configAntimicroLegacyFilePath()

QString PadderCommon::configAntimicroLegacyFilePath ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ configFilePath()

QString PadderCommon::configFilePath ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ configLegacyFilePath()

QString PadderCommon::configLegacyFilePath ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ configPath()

QString PadderCommon::configPath ( )
inline
Here is the caller graph for this function:

◆ getProfileName()

QString PadderCommon::getProfileName ( QFileInfo &  profile)
inline

Returns the "human-readable" name of the given profile.

Here is the caller graph for this function:

◆ keyboardDeviceName()

const QString PadderCommon::keyboardDeviceName ( "antimicrox Keyboard Emulation"  )

◆ loadIcon() [1/2]

QIcon PadderCommon::loadIcon ( const QString &  name,
const QString &  fallback_location 
)

Universal method for loading icons.

Parameters
name- name of used icon
fallback_location- location of icon loaded when icon described by name not found
Returns
QIcon
Here is the caller graph for this function:

◆ loadIcon() [2/2]

QIcon PadderCommon::loadIcon ( QString  name)

Universal method for loading icons if current theme does not have this icon, then look for replacement in resources.

Parameters
name- name of used icon like "document-open" according to spec https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
Returns
QIcon

◆ lockInputDevices()

void PadderCommon::lockInputDevices ( )
Here is the caller graph for this function:

◆ log_system_config()

void PadderCommon::log_system_config ( )
Here is the caller graph for this function:

◆ mouseDeviceName()

const QString PadderCommon::mouseDeviceName ( "antimicrox Mouse Emulation"  )

◆ parseArgumentsString()

QStringList PadderCommon::parseArgumentsString ( QString  tempString)
Here is the caller graph for this function:

◆ preferredProfileDir()

QString PadderCommon::preferredProfileDir ( AntiMicroSettings settings)
Here is the caller graph for this function:

◆ reloadTranslations()

void PadderCommon::reloadTranslations ( QTranslator *  translator,
QTranslator *  appTranslator,
QString  language 
)

Reload main application and base Qt translation files.

Parameters
BasedQt translator
Applicationtranslator
Languagecode
Here is the caller graph for this function:

◆ springMouseDeviceName()

const QString PadderCommon::springMouseDeviceName ( "antimicrox Abs Mouse Emulation"  )

◆ unlockInputDevices()

void PadderCommon::unlockInputDevices ( )
Here is the caller graph for this function:

Variable Documentation

◆ ANTIMICROX_MAJOR_VERSION

const int PadderCommon::ANTIMICROX_MAJOR_VERSION = PROJECT_MAJOR_VERSION

◆ ANTIMICROX_MINOR_VERSION

const int PadderCommon::ANTIMICROX_MINOR_VERSION = PROJECT_MINOR_VERSION

◆ ANTIMICROX_PATCH_VERSION

const int PadderCommon::ANTIMICROX_PATCH_VERSION = PROJECT_PATCH_VERSION

◆ configFileName

const QString PadderCommon::configFileName = "antimicrox_settings.ini"

◆ editingBindings

bool PadderCommon::editingBindings = false

◆ githubIssuesPage

const QString PadderCommon::githubIssuesPage = "https://github.com/AntiMicroX/antimicrox/issues"

◆ githubProjectPage

const QString PadderCommon::githubProjectPage = "https://github.com/AntiMicroX/antimicrox/"

◆ inputDaemonMutex

QMutex PadderCommon::inputDaemonMutex

◆ LATESTCONFIGFILEVERSION

const int PadderCommon::LATESTCONFIGFILEVERSION = 19

◆ LATESTCONFIGMIGRATIONVERSION

const int PadderCommon::LATESTCONFIGMIGRATIONVERSION = 5

◆ localSocketKey

const QString PadderCommon::localSocketKey = "antimicroxSignalListener"

◆ mouseHelperObj

MouseHelper PadderCommon::mouseHelperObj

◆ programVersion

const QString PadderCommon::programVersion
Initial value:

◆ sdlVersionCompiled

const QString PadderCommon::sdlVersionCompiled
Initial value:
= ([] {
SDL_version compver;
SDL_VERSION(&compver);
return QString("%1.%2.%3").arg(compver.major).arg(compver.minor).arg(compver.patch);
})()

◆ sdlVersionUsed

const QString PadderCommon::sdlVersionUsed
Initial value:
= ([] {
SDL_version linkedver;
SDL_GetVersion(&linkedver);
return QString("%1.%2.%3").arg(linkedver.major).arg(linkedver.minor).arg(linkedver.patch);
})()

◆ sdlWaitMutex

QMutex PadderCommon::sdlWaitMutex

◆ unhideCommand

const QString PadderCommon::unhideCommand = "unhideWindow"

◆ waitThisOut

QWaitCondition PadderCommon::waitThisOut

◆ wikiPage

const QString PadderCommon::wikiPage = QString("%1/wiki").arg(githubProjectPage)
PadderCommon::ANTIMICROX_MINOR_VERSION
const int ANTIMICROX_MINOR_VERSION
Definition: common.h:149
PadderCommon::ANTIMICROX_PATCH_VERSION
const int ANTIMICROX_PATCH_VERSION
Definition: common.h:150
PadderCommon::ANTIMICROX_MAJOR_VERSION
const int ANTIMICROX_MAJOR_VERSION
Definition: common.h:148