ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/kbmode.h>
Signals | |
void | updated () |
Public Member Functions | |
KbMode (Kb *parent, const KeyMap &keyMap, const QString &guid="", const QString &modified="") | |
KbMode (Kb *parent, const KeyMap &keyMap, CkbSettings &settings) | |
KbMode (Kb *parent, const KeyMap &keyMap, const KbMode &other) | |
KbMode::KbMode. More... | |
~KbMode () | |
KbMode::~KbMode Destructor may be used for Debugging (issue #38 with SIGSEGV). Insert qDebug-statement. More... | |
const QString & | name () const |
void | name (const QString &newName) |
UsbId & | id () |
void | id (const UsbId &newId) |
void | newId () |
void | keyMap (const KeyMap &keyMap) |
KbLight * | light () |
KbBind * | bind () |
KbPerf * | perf () |
void | save (CkbSettings &settings) |
bool | needsSave () const |
void | setNeedsSave () |
void | setNeedsUpdate () |
Private Slots | |
void | doUpdate () |
Private Attributes | |
QString | _name |
UsbId | _id |
KbLight * | _light |
KbBind * | _bind |
KbPerf * | _perf |
bool | _needsSave |
KbMode::KbMode | ( | Kb * | parent, |
const KeyMap & | keyMap, | ||
const QString & | guid = "" , |
||
const QString & | modified = "" |
||
) |
Definition at line 4 of file kbmode.cpp.
References _id, _light, doUpdate(), UsbId::guid, and updated().
KbMode::KbMode | ( | Kb * | parent, |
const KeyMap & | keyMap, | ||
CkbSettings & | settings | ||
) |
Definition at line 30 of file kbmode.cpp.
References _bind, _id, _light, _name, _perf, CkbSettings::contains(), doUpdate(), UsbId::guid, UsbId::hwModified, UsbId::hwModifiedString(), KbPerf::load(), KbBind::load(), KbLight::load(), UsbId::modified, updated(), and CkbSettings::value().
parent | Kb as parent (append to the Keyboard list |
keyMap | Map to copy from |
other | Mode to copy from Constructor to copy an existing Keyboard-Mode KbMode &other |
Definition at line 21 of file kbmode.cpp.
References _light, doUpdate(), and updated().
KbMode::~KbMode | ( | ) |
Definition at line 89 of file kbmode.cpp.
|
inline |
Definition at line 61 of file kbmode.h.
References _bind.
Referenced by KbPerf::bind(), Kb::currentBind(), Kb::frameUpdate(), KbBindWidget::on_copyButton_clicked(), and Kb::readNotify().
|
privateslot |
Definition at line 82 of file kbmode.cpp.
References updated().
Referenced by KbMode().
|
inline |
Definition at line 52 of file kbmode.h.
References _id.
Referenced by KbProfile::find(), Kb::hwSave(), KbProfile::KbProfile(), KbWidget::on_modesList_customContextMenuRequested(), KbWidget::on_modesList_itemChanged(), KbWidget::on_modesList_itemClicked(), KbWidget::profileChanged(), Kb::readNotify(), and KbProfile::save().
|
inline |
Definition at line 53 of file kbmode.h.
References _id, _needsSave, and newId().
void KbMode::keyMap | ( | const KeyMap & | keyMap | ) |
Definition at line 60 of file kbmode.cpp.
References _bind, _light, _needsSave, KbLight::map(), and KbBind::map().
Referenced by KbProfile::keyMap().
|
inline |
Definition at line 60 of file kbmode.h.
References _light.
Referenced by Kb::currentLight(), Kb::frameUpdate(), Kb::hwSave(), KbBind::light(), KbPerf::light(), Kb::readNotify(), and Kb::updateLayout().
|
inline |
Definition at line 50 of file kbmode.h.
References _name.
Referenced by Kb::hwSave(), ModeSelectDialog::ModeSelectDialog(), KbWidget::on_modesList_itemChanged(), KbWidget::profileChanged(), Kb::readNotify(), and RebindWidget::setBind().
|
inline |
bool KbMode::needsSave | ( | ) | const |
Definition at line 78 of file kbmode.cpp.
References _bind, _light, _needsSave, _perf, KbPerf::needsSave(), KbBind::needsSave(), and KbLight::needsSave().
Referenced by KbProfile::needsSave().
void KbMode::newId | ( | ) |
Definition at line 52 of file kbmode.cpp.
References _id, _light, _needsSave, anim, KbLight::animList(), and KbAnim::newId().
Referenced by id(), KbProfile::newId(), and KbWidget::on_modesList_customContextMenuRequested().
|
inline |
Definition at line 62 of file kbmode.h.
References _perf.
Referenced by Kb::currentPerf(), Kb::frameUpdate(), Kb::hwSave(), KPerfWidget::on_copyButton_clicked(), MPerfWidget::on_copyButton_clicked(), KbBind::perf(), and Kb::readNotify().
void KbMode::save | ( | CkbSettings & | settings | ) |
Definition at line 66 of file kbmode.cpp.
References _bind, _id, _light, _name, _needsSave, _perf, UsbId::guidString(), UsbId::hwModifiedString(), UsbId::modifiedString(), UsbId::newModified(), KbPerf::save(), KbBind::save(), KbLight::save(), and CkbSettings::setValue().
Referenced by KbProfile::save().
|
inline |
Definition at line 67 of file kbmode.h.
References _needsSave.
Referenced by Kb::hwSave(), and Kb::readNotify().
|
inline |
Definition at line 68 of file kbmode.h.
References _bind, _perf, KbBind::setNeedsUpdate(), and KbPerf::setNeedsUpdate().
Referenced by KbProfile::setNeedsUpdate().
|
signal |
Definition at line 131 of file moc_kbmode.cpp.
Referenced by doUpdate(), and KbMode().
|
private |
Definition at line 78 of file kbmode.h.
Referenced by bind(), KbMode(), keyMap(), needsSave(), save(), and setNeedsUpdate().
|
private |
|
private |
|
private |
|
private |
Definition at line 81 of file kbmode.h.
Referenced by id(), keyMap(), name(), needsSave(), newId(), save(), and setNeedsSave().
|
private |
Definition at line 79 of file kbmode.h.
Referenced by KbMode(), needsSave(), perf(), save(), and setNeedsUpdate().