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 <cwkeyergui.h>
Public Member Functions | |
CWKeyerGUI (QWidget *parent=nullptr) | |
~CWKeyerGUI () | |
void | setCWKeyer (CWKeyer *cwKeyer) |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
void | setSettings (const CWKeyerSettings &settings) |
void | displaySettings () |
Public Member Functions inherited from Serializable | |
virtual | ~Serializable () |
Private Types | |
enum | KeyScope { NoKeyScope, DotKeyScope, DashKeyScope } |
Private Slots | |
void | on_cwTextClear_clicked (bool checked) |
void | on_cwTextEdit_editingFinished () |
void | on_cwSpeed_valueChanged (int value) |
void | on_playDots_toggled (bool checked) |
void | on_playDashes_toggled (bool checked) |
void | on_playText_toggled (bool checked) |
void | on_playLoopCW_toggled (bool checked) |
void | on_playStop_toggled (bool checked) |
void | on_keyingStyle_toggled (bool checked) |
void | on_keyDotCapture_toggled (bool checked) |
void | on_keyDashCapture_toggled (bool checked) |
void | on_keyboardKeyer_toggled (bool checked) |
void | commandKeyPressed (Qt::Key key, Qt::KeyboardModifiers keyModifiers, bool release) |
void | keyboardKeyPressed (Qt::Key key, Qt::KeyboardModifiers keyModifiers, bool release) |
Private Member Functions | |
void | applySettings (bool force=false) |
void | blockApplySettings (bool block) |
void | setKeyLabel (QLabel *label, Qt::Key key, Qt::KeyboardModifiers keyModifiers) |
Private Attributes | |
Ui::CWKeyerGUI * | ui |
CWKeyer * | m_cwKeyer |
CWKeyerSettings | m_settings |
bool | m_doApplySettings |
CommandKeyReceiver * | m_commandKeyReceiver |
KeyScope | m_keyScope |
Definition at line 38 of file cwkeyergui.h.
|
private |
Enumerator | |
---|---|
NoKeyScope | |
DotKeyScope | |
DashKeyScope |
Definition at line 55 of file cwkeyergui.h.
|
explicit |
Definition at line 30 of file cwkeyergui.cpp.
References m_commandKeyReceiver, CommandKeyReceiver::setRelease(), and ui.
CWKeyerGUI::~CWKeyerGUI | ( | ) |
Definition at line 43 of file cwkeyergui.cpp.
References m_commandKeyReceiver, and ui.
|
private |
Definition at line 290 of file cwkeyergui.cpp.
References CWKeyer::MsgConfigureCWKeyer::create(), CWKeyer::getInputMessageQueue(), m_cwKeyer, m_doApplySettings, m_settings, and MessageQueue::push().
Referenced by commandKeyPressed(), deserialize(), on_cwSpeed_valueChanged(), on_cwTextClear_clicked(), on_cwTextEdit_editingFinished(), on_keyboardKeyer_toggled(), on_keyingStyle_toggled(), on_playDashes_toggled(), on_playDots_toggled(), on_playLoopCW_toggled(), on_playText_toggled(), and resetToDefaults().
|
private |
Definition at line 346 of file cwkeyergui.cpp.
References m_doApplySettings.
Referenced by displaySettings().
|
privateslot |
Definition at line 221 of file cwkeyergui.cpp.
References applySettings(), DashKeyScope, DotKeyScope, m_commandKeyReceiver, CWKeyerSettings::m_dashKey, CWKeyerSettings::m_dashKeyModifiers, CWKeyerSettings::m_dotKey, CWKeyerSettings::m_dotKeyModifiers, m_keyScope, m_settings, setKeyLabel(), CommandKeyReceiver::setRelease(), and ui.
Referenced by on_keyDashCapture_toggled(), and on_keyDotCapture_toggled().
|
virtual |
Implements Serializable.
Definition at line 69 of file cwkeyergui.cpp.
References applySettings(), CWKeyerSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
void CWKeyerGUI::displaySettings | ( | ) |
Definition at line 299 of file cwkeyergui.cpp.
References arg(), blockApplySettings(), CWKeyerSettings::CWDashes, CWKeyerSettings::CWDots, CWKeyerSettings::CWKeyboard, CWKeyerSettings::CWNone, CWKeyerSettings::CWText, CWKeyerSettings::m_dashKey, CWKeyerSettings::m_dashKeyModifiers, CWKeyerSettings::m_dotKey, CWKeyerSettings::m_dotKeyModifiers, CWKeyerSettings::m_keyboardIambic, CWKeyerSettings::m_loop, CWKeyerSettings::m_mode, m_settings, CWKeyerSettings::m_text, CWKeyerSettings::m_wpm, setKeyLabel(), and ui.
Referenced by deserialize(), resetToDefaults(), and setCWKeyer().
|
privateslot |
Definition at line 264 of file cwkeyergui.cpp.
References CWKeyer::getSettings(), m_cwKeyer, CWKeyerSettings::m_dashKey, CWKeyerSettings::m_dashKeyModifiers, CWKeyerSettings::m_dotKey, CWKeyerSettings::m_dotKeyModifiers, CWKeyer::setKeyboardDashes(), CWKeyer::setKeyboardDots(), and CWKeyer::setKeyboardSilence().
Referenced by on_keyboardKeyer_toggled().
|
privateslot |
Definition at line 100 of file cwkeyergui.cpp.
References applySettings(), arg(), m_settings, CWKeyerSettings::m_wpm, and ui.
|
privateslot |
Definition at line 86 of file cwkeyergui.cpp.
References applySettings(), m_settings, CWKeyerSettings::m_text, and ui.
|
privateslot |
Definition at line 94 of file cwkeyergui.cpp.
References applySettings(), m_settings, CWKeyerSettings::m_text, and ui.
|
privateslot |
Definition at line 248 of file cwkeyergui.cpp.
References applySettings(), MainWindow::commandKeysConnect(), MainWindow::commandKeysDisconnect(), CWKeyerSettings::CWKeyboard, CWKeyerSettings::CWNone, MainWindow::getInstance(), keyboardKeyPressed(), CWKeyerSettings::m_mode, m_settings, and ui.
|
privateslot |
Definition at line 192 of file cwkeyergui.cpp.
References commandKeyPressed(), DashKeyScope, m_commandKeyReceiver, m_keyScope, NoKeyScope, CommandKeyReceiver::setRelease(), and ui.
|
privateslot |
Definition at line 165 of file cwkeyergui.cpp.
References commandKeyPressed(), DotKeyScope, m_commandKeyReceiver, m_keyScope, NoKeyScope, and ui.
|
privateslot |
Definition at line 159 of file cwkeyergui.cpp.
References applySettings(), CWKeyerSettings::m_keyboardIambic, and m_settings.
|
privateslot |
Definition at line 117 of file cwkeyergui.cpp.
References applySettings(), CWKeyerSettings::CWDashes, CWKeyerSettings::CWNone, CWKeyerSettings::m_mode, m_settings, and ui.
|
privateslot |
Definition at line 107 of file cwkeyergui.cpp.
References applySettings(), CWKeyerSettings::CWDots, CWKeyerSettings::CWNone, CWKeyerSettings::m_mode, m_settings, and ui.
|
privateslot |
Definition at line 144 of file cwkeyergui.cpp.
References applySettings(), CWKeyerSettings::m_loop, and m_settings.
|
privateslot |
Definition at line 150 of file cwkeyergui.cpp.
References m_cwKeyer, CWKeyer::resetText(), and CWKeyer::stopText().
|
privateslot |
Definition at line 127 of file cwkeyergui.cpp.
References applySettings(), CWKeyerSettings::CWNone, CWKeyerSettings::CWText, CWKeyerSettings::m_mode, m_settings, and ui.
void CWKeyerGUI::resetToDefaults | ( | ) |
Definition at line 57 of file cwkeyergui.cpp.
References applySettings(), displaySettings(), m_settings, and CWKeyerSettings::resetToDefaults().
Referenced by deserialize().
|
virtual |
Implements Serializable.
Definition at line 64 of file cwkeyergui.cpp.
References m_settings, and CWKeyerSettings::serialize().
void CWKeyerGUI::setCWKeyer | ( | CWKeyer * | cwKeyer | ) |
Definition at line 50 of file cwkeyergui.cpp.
References displaySettings(), CWKeyer::getSettings(), m_cwKeyer, and setSettings().
|
private |
Definition at line 328 of file cwkeyergui.cpp.
Referenced by commandKeyPressed(), and displaySettings().
|
inline |
Definition at line 51 of file cwkeyergui.h.
Referenced by setCWKeyer().
|
private |
Definition at line 67 of file cwkeyergui.h.
Referenced by commandKeyPressed(), CWKeyerGUI(), on_keyDashCapture_toggled(), on_keyDotCapture_toggled(), and ~CWKeyerGUI().
|
private |
Definition at line 64 of file cwkeyergui.h.
Referenced by applySettings(), keyboardKeyPressed(), on_playStop_toggled(), and setCWKeyer().
|
private |
Definition at line 66 of file cwkeyergui.h.
Referenced by applySettings(), and blockApplySettings().
|
private |
Definition at line 68 of file cwkeyergui.h.
Referenced by commandKeyPressed(), on_keyDashCapture_toggled(), and on_keyDotCapture_toggled().
|
private |
Definition at line 65 of file cwkeyergui.h.
Referenced by applySettings(), commandKeyPressed(), deserialize(), displaySettings(), on_cwSpeed_valueChanged(), on_cwTextClear_clicked(), on_cwTextEdit_editingFinished(), on_keyboardKeyer_toggled(), on_keyingStyle_toggled(), on_playDashes_toggled(), on_playDots_toggled(), on_playLoopCW_toggled(), on_playText_toggled(), resetToDefaults(), and serialize().
|
private |
Definition at line 62 of file cwkeyergui.h.
Referenced by commandKeyPressed(), CWKeyerGUI(), displaySettings(), on_cwSpeed_valueChanged(), on_cwTextClear_clicked(), on_cwTextEdit_editingFinished(), on_keyboardKeyer_toggled(), on_keyDashCapture_toggled(), on_keyDotCapture_toggled(), on_playDashes_toggled(), on_playDots_toggled(), on_playText_toggled(), and ~CWKeyerGUI().