ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/kblightwidget.h>
Public Member Functions | |
KbLightWidget (QWidget *parent=0) | |
~KbLightWidget () | |
void | setLight (KbLight *newLight) |
void | setMonochrome () |
Private Slots | |
void | updateLight () |
void | newSelection (QStringList selection) |
void | changeColor (QColor newColor) |
void | changeAnim (KbAnim *newAnim) |
void | changeAnimKeys (QStringList keys) |
void | on_brightnessBox_activated (int index) |
void | on_animButton_clicked () |
void | on_bgButton_clicked () |
void | on_showAnimBox_clicked (bool checked) |
void | toggleSidelight () |
Private Attributes | |
KbLight * | light |
QStringList | currentSelection |
Ui::KbLightWidget * | ui |
Definition at line 15 of file kblightwidget.h.
|
explicit |
Definition at line 6 of file kblightwidget.cpp.
References Ui_KbLightWidget::animButton, Ui_KbLightWidget::animWidget, Ui_KbLightWidget::bgButton, changeAnim(), changeAnimKeys(), changeColor(), AnimScript::count(), CkbSettings::get(), Ui_KbLightWidget::keyWidget, newSelection(), Ui_KbLightWidget::setupUi(), Ui_KbLightWidget::showAnimBox, toggleSidelight(), and ui.
KbLightWidget::~KbLightWidget | ( | ) |
Definition at line 24 of file kblightwidget.cpp.
References ui.
|
privateslot |
Definition at line 121 of file kblightwidget.cpp.
References KeyWidget::clearSelection(), KbAnim::keys(), Ui_KbLightWidget::keyWidget, KeyWidget::setAnimationToSelection(), KeyWidget::setSelection(), and ui.
Referenced by KbLightWidget().
|
privateslot |
Definition at line 129 of file kblightwidget.cpp.
References Ui_KbLightWidget::keyWidget, KeyWidget::setAnimation(), and ui.
Referenced by KbLightWidget().
|
privateslot |
Definition at line 99 of file kblightwidget.cpp.
References KbLight::color(), KeyWidget::colorMap(), KbLight::colorMap(), currentSelection, Ui_KbLightWidget::keyWidget, light, and ui.
Referenced by KbLightWidget().
|
privateslot |
Definition at line 72 of file kblightwidget.cpp.
References Ui_KbLightWidget::animWidget, Ui_KbLightWidget::bgButton, ColorButton::color(), KbLight::colorMap(), currentSelection, KeyMap::isMouse(), light, KbLight::map(), Ui_KbLightWidget::selLabel, KbAnimWidget::setSelectedKeys(), and ui.
Referenced by KbLightWidget().
|
privateslot |
Definition at line 143 of file kblightwidget.cpp.
References KbAnimWidget::addAnim(), Ui_KbLightWidget::animWidget, AnimAddDialog::chosenPreset(), AnimAddDialog::chosenScript(), AnimScript::count(), currentSelection, Ui_KbLightWidget::keyWidget, light, AnimScript::preset(), AnimScript::presets(), KbLight::restartAnimation(), KeyWidget::selectAll(), and ui.
|
privateslot |
Definition at line 138 of file kblightwidget.cpp.
References currentSelection, Ui_KbLightWidget::keyWidget, KeyWidget::selectAll(), and ui.
|
privateslot |
Definition at line 133 of file kblightwidget.cpp.
References KbLight::dimming(), and light.
|
privateslot |
Definition at line 52 of file kblightwidget.cpp.
References KeyWidget::displayColorMap(), Ui_KbLightWidget::keyWidget, light, CkbSettings::set(), and ui.
Referenced by setLight().
void KbLightWidget::setLight | ( | KbLight * | newLight | ) |
Definition at line 28 of file kblightwidget.cpp.
References Ui_KbLightWidget::animWidget, KeyWidget::clearAnimation(), KbAnimWidget::clearSelection(), KeyWidget::clearSelection(), Ui_KbLightWidget::keyWidget, light, on_showAnimBox_clicked(), KeyWidget::setAnimation(), KbAnimWidget::setLight(), Ui_KbLightWidget::showAnimBox, ui, and updateLight().
Referenced by KbWidget::modeChanged().
void KbLightWidget::setMonochrome | ( | ) |
Definition at line 48 of file kblightwidget.cpp.
References Ui_KbLightWidget::keyWidget, KeyWidget::monochrome(), and ui.
Referenced by KbWidget::KbWidget().
|
privateslot |
Definition at line 107 of file kblightwidget.cpp.
References KbLight::color(), KeyWidget::colorMap(), KbLight::colorMap(), Ui_KbLightWidget::keyWidget, light, and ui.
Referenced by KbLightWidget().
|
privateslot |
Definition at line 66 of file kblightwidget.cpp.
References Ui_KbLightWidget::brightnessBox, KeyWidget::colorMap(), KbLight::colorMap(), KbLight::dimming(), Ui_KbLightWidget::keyWidget, light, KeyWidget::map(), KbLight::map(), and ui.
Referenced by setLight().
|
private |
Definition at line 44 of file kblightwidget.h.
Referenced by changeColor(), newSelection(), on_animButton_clicked(), and on_bgButton_clicked().
|
private |
Definition at line 43 of file kblightwidget.h.
Referenced by changeColor(), newSelection(), on_animButton_clicked(), on_brightnessBox_activated(), on_showAnimBox_clicked(), setLight(), toggleSidelight(), and updateLight().
|
private |
Definition at line 46 of file kblightwidget.h.
Referenced by changeAnim(), changeAnimKeys(), changeColor(), KbLightWidget(), newSelection(), on_animButton_clicked(), on_bgButton_clicked(), on_showAnimBox_clicked(), setLight(), setMonochrome(), toggleSidelight(), updateLight(), and ~KbLightWidget().