LIDL Soundboard  1.9.0
A simple soundboard, yet better than EXP Soundboard forsenE
CustomShortcutEdit Class Reference

The CustomShortcutEdit class. More...

#include <CustomShortcutEdit.h>

Inheritance diagram for CustomShortcutEdit:
Inheritance graph
Collaboration diagram for CustomShortcutEdit:
Collaboration graph

Public Slots

void sendSignal ()
 sendSignal This slot is called whenever the editing is done, could be replaced by lambda but i'm lazy today More...
 

Signals

void keyPressed ()
 keyPressed More...
 
void scanCodeChanged (int)
 scanCodeChanged More...
 
void virtualKeyChanged (int)
 virtualKeyChanged More...
 

Public Member Functions

 CustomShortcutEdit (QWidget *parent=nullptr)
 CustomShortcutEdit. More...
 
int getVirtualKey ()
 getVirtualKey More...
 
int getScanCode ()
 getScanCode More...
 
QString getText ()
 getText More...
 
void setVirtualKey (int)
 setVirtualKey More...
 
void setScanCode (int)
 setScanCode More...
 

Private Member Functions

void keyPressEvent (QKeyEvent *e)
 keyPressEvent More...
 

Private Attributes

int _virtualKey
 _virtualKey More...
 
int _scanCode
 _scanCode More...
 

Detailed Description

The CustomShortcutEdit class.

Version
1.7.0
Since
0.42

Constructor & Destructor Documentation

◆ CustomShortcutEdit()

CustomShortcutEdit::CustomShortcutEdit ( QWidget *  parent = nullptr)
explicit

CustomShortcutEdit.

Parameters
parent

References _scanCode, _virtualKey, and sendSignal().

Here is the call graph for this function:

Member Function Documentation

◆ getScanCode()

int CustomShortcutEdit::getScanCode ( )

getScanCode

Returns

References _scanCode.

Referenced by SoundboardMainUI::GenerateSaveFile(), and SoundboardMainUI::ProfileSwitched().

Here is the caller graph for this function:

◆ getText()

QString CustomShortcutEdit::getText ( )

getText

Returns

Referenced by SoundboardMainUI::GenerateSaveFile(), SoundboardMainUI::setStopShortcut(), and WrapperProperties::WrapperProperties().

Here is the caller graph for this function:

◆ getVirtualKey()

int CustomShortcutEdit::getVirtualKey ( )

getVirtualKey

Returns

References _virtualKey.

Referenced by SoundboardMainUI::GenerateSaveFile(), SoundboardMainUI::ProfileSwitched(), and WrapperProperties::WrapperProperties().

Here is the caller graph for this function:

◆ keyPressed

void CustomShortcutEdit::keyPressed ( )
signal

keyPressed

Referenced by keyPressEvent(), and WrapperProperties::WrapperProperties().

Here is the caller graph for this function:

◆ keyPressEvent()

void CustomShortcutEdit::keyPressEvent ( QKeyEvent *  e)
private

keyPressEvent

Parameters
e

References _scanCode, _virtualKey, and keyPressed().

◆ scanCodeChanged

void CustomShortcutEdit::scanCodeChanged ( int  )
signal

scanCodeChanged

Referenced by sendSignal(), setScanCode(), and SoundboardMainUI::SoundboardMainUI().

Here is the caller graph for this function:

◆ sendSignal

void CustomShortcutEdit::sendSignal ( )
slot

sendSignal This slot is called whenever the editing is done, could be replaced by lambda but i'm lazy today

References _scanCode, _virtualKey, scanCodeChanged(), and virtualKeyChanged().

Referenced by CustomShortcutEdit().

Here is the caller graph for this function:

◆ setScanCode()

void CustomShortcutEdit::setScanCode ( int  sc)

setScanCode

References _scanCode, and scanCodeChanged().

Referenced by SoundboardMainUI::ProfileSwitched().

Here is the caller graph for this function:

◆ setVirtualKey()

void CustomShortcutEdit::setVirtualKey ( int  vk)

setVirtualKey

References _virtualKey, and virtualKeyChanged().

Referenced by SoundboardMainUI::ProfileSwitched(), SoundboardMainUI::SoundboardMainUI(), and WrapperProperties::WrapperProperties().

Here is the caller graph for this function:

◆ virtualKeyChanged

void CustomShortcutEdit::virtualKeyChanged ( int  )
signal

virtualKeyChanged

Referenced by sendSignal(), setVirtualKey(), and SoundboardMainUI::SoundboardMainUI().

Here is the caller graph for this function:

Member Data Documentation

◆ _scanCode

int CustomShortcutEdit::_scanCode
private

◆ _virtualKey

int CustomShortcutEdit::_virtualKey
private

The documentation for this class was generated from the following files: