SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <cwkeyersettings.h>
Public Types | |
enum | CWMode { CWNone, CWText, CWDots, CWDashes, CWKeyboard } |
Public Member Functions | |
CWKeyerSettings () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
bool | m_loop |
CWMode | m_mode |
int | m_sampleRate |
QString | m_text |
int | m_wpm |
bool | m_keyboardIambic |
Qt::Key | m_dotKey |
Qt::KeyboardModifiers | m_dotKeyModifiers |
Qt::Key | m_dashKey |
Qt::KeyboardModifiers | m_dashKeyModifiers |
Definition at line 27 of file cwkeyersettings.h.
Enumerator | |
---|---|
CWNone | |
CWText | |
CWDots | |
CWDashes | |
CWKeyboard |
Definition at line 30 of file cwkeyersettings.h.
CWKeyerSettings::CWKeyerSettings | ( | ) |
Definition at line 22 of file cwkeyersettings.cpp.
References resetToDefaults().
bool CWKeyerSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 59 of file cwkeyersettings.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_dashKey, m_dashKeyModifiers, m_dotKey, m_dotKeyModifiers, m_keyboardIambic, m_loop, m_mode, m_sampleRate, m_text, m_wpm, SimpleDeserializer::readBool(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by CWKeyerGUI::deserialize().
void CWKeyerSettings::resetToDefaults | ( | ) |
Definition at line 27 of file cwkeyersettings.cpp.
References CWNone, m_dashKey, m_dashKeyModifiers, m_dotKey, m_dotKeyModifiers, m_keyboardIambic, m_loop, m_mode, m_sampleRate, m_text, and m_wpm.
Referenced by CWKeyerSettings(), deserialize(), and CWKeyerGUI::resetToDefaults().
QByteArray CWKeyerSettings::serialize | ( | ) | const |
Definition at line 41 of file cwkeyersettings.cpp.
References SimpleSerializer::final(), m_dashKey, m_dashKeyModifiers, m_dotKey, m_dotKeyModifiers, m_keyboardIambic, m_loop, m_mode, m_sampleRate, m_text, m_wpm, SimpleSerializer::writeBool(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by CWKeyerGUI::serialize().
Qt::Key CWKeyerSettings::m_dashKey |
Definition at line 47 of file cwkeyersettings.h.
Referenced by CWKeyerGUI::commandKeyPressed(), deserialize(), CWKeyerGUI::displaySettings(), CWKeyerGUI::keyboardKeyPressed(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
Qt::KeyboardModifiers CWKeyerSettings::m_dashKeyModifiers |
Definition at line 48 of file cwkeyersettings.h.
Referenced by CWKeyerGUI::commandKeyPressed(), deserialize(), CWKeyerGUI::displaySettings(), CWKeyerGUI::keyboardKeyPressed(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
Qt::Key CWKeyerSettings::m_dotKey |
Definition at line 45 of file cwkeyersettings.h.
Referenced by CWKeyerGUI::commandKeyPressed(), deserialize(), CWKeyerGUI::displaySettings(), CWKeyerGUI::keyboardKeyPressed(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
Qt::KeyboardModifiers CWKeyerSettings::m_dotKeyModifiers |
Definition at line 46 of file cwkeyersettings.h.
Referenced by CWKeyerGUI::commandKeyPressed(), deserialize(), CWKeyerGUI::displaySettings(), CWKeyerGUI::keyboardKeyPressed(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
bool CWKeyerSettings::m_keyboardIambic |
Definition at line 44 of file cwkeyersettings.h.
Referenced by deserialize(), CWKeyerGUI::displaySettings(), CWKeyer::getSample(), CWKeyerGUI::on_keyingStyle_toggled(), resetToDefaults(), serialize(), and CWKeyer::webapiFormatChannelSettings().
bool CWKeyerSettings::m_loop |
Definition at line 39 of file cwkeyersettings.h.
Referenced by deserialize(), CWKeyerGUI::displaySettings(), CWKeyer::nextStateText(), CWKeyerGUI::on_playLoopCW_toggled(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
CWMode CWKeyerSettings::m_mode |
Definition at line 40 of file cwkeyersettings.h.
Referenced by CWKeyer::applySettings(), deserialize(), CWKeyerGUI::displaySettings(), CWKeyer::getSample(), CWKeyerGUI::on_keyboardKeyer_toggled(), CWKeyerGUI::on_playDashes_toggled(), CWKeyerGUI::on_playDots_toggled(), CWKeyerGUI::on_playText_toggled(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
int CWKeyerSettings::m_sampleRate |
Definition at line 41 of file cwkeyersettings.h.
Referenced by CWKeyer::applySettings(), deserialize(), resetToDefaults(), serialize(), CWKeyer::setSampleRate(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
QString CWKeyerSettings::m_text |
Definition at line 42 of file cwkeyersettings.h.
Referenced by CWKeyer::applySettings(), deserialize(), CWKeyerGUI::displaySettings(), CWKeyer::eom(), CWKeyer::nextStateText(), CWKeyerGUI::on_cwTextClear_clicked(), CWKeyerGUI::on_cwTextEdit_editingFinished(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().
int CWKeyerSettings::m_wpm |
Definition at line 43 of file cwkeyersettings.h.
Referenced by CWKeyer::applySettings(), deserialize(), CWKeyerGUI::displaySettings(), CWKeyerGUI::on_cwSpeed_valueChanged(), resetToDefaults(), serialize(), CWKeyer::webapiFormatChannelSettings(), NFMMod::webapiFormatChannelSettings(), and CWKeyer::webapiSettingsPutPatch().