ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/kbanimwidget.h>
Signals | |
void | animChanged (KbAnim *selection) |
void | didUpdateSelection (QStringList keys) |
Public Member Functions | |
KbAnimWidget (QWidget *parent=0) | |
~KbAnimWidget () | |
void | setLight (KbLight *newLight) |
void | addAnim (const AnimScript *base, const QStringList &keyList, const QString &name, const QMap< QString, QVariant > &preset) |
void | duplicateAnim (KbAnim *old) |
void | clearSelection () |
void | setSelectedKeys (const QStringList &keys) |
Private Slots | |
void | on_animList_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) |
void | on_animList_itemChanged (QListWidgetItem *item) |
void | on_animList_customContextMenuRequested (const QPoint &pos) |
void | on_nameBox_textEdited (const QString &arg1) |
void | on_opacityBox_valueChanged (double arg1) |
void | on_blendBox_activated (int index) |
void | on_keyButton_clicked () |
void | on_deleteButton_clicked () |
void | refreshList () |
void | reorderAnims () |
void | on_propertyButton_clicked () |
Private Member Functions | |
void | setCurrent (KbAnim *newCurrent) |
Private Attributes | |
KbLight * | light |
QHash< QUuid, KbAnim * > | animations |
KbAnim * | current |
QStringList | selectedKeys |
bool | noReorder |
Ui::KbAnimWidget * | ui |
Definition at line 15 of file kbanimwidget.h.
|
explicit |
Definition at line 7 of file kbanimwidget.cpp.
References Ui_KbAnimWidget::animList, reorderAnims(), setCurrent(), Ui_KbAnimWidget::setupUi(), and ui.
KbAnimWidget::~KbAnimWidget | ( | ) |
Definition at line 17 of file kbanimwidget.cpp.
References ui.
void KbAnimWidget::addAnim | ( | const AnimScript * | base, |
const QStringList & | keyList, | ||
const QString & | name, | ||
const QMap< QString, QVariant > & | preset | ||
) |
Definition at line 82 of file kbanimwidget.cpp.
References KbLight::addAnim(), animations, Ui_KbAnimWidget::animList, KbAnim::guid(), light, KbAnim::name(), Ui_KbAnimWidget::noAnimLabel, noReorder, on_propertyButton_clicked(), setCurrent(), and ui.
Referenced by KbLightWidget::on_animButton_clicked().
|
signal |
Definition at line 213 of file moc_kbanimwidget.cpp.
Referenced by setCurrent().
void KbAnimWidget::clearSelection | ( | ) |
Definition at line 77 of file kbanimwidget.cpp.
References Ui_KbAnimWidget::animList, setCurrent(), and ui.
Referenced by KbLightWidget::setLight().
|
signal |
Definition at line 220 of file moc_kbanimwidget.cpp.
Referenced by on_keyButton_clicked().
void KbAnimWidget::duplicateAnim | ( | KbAnim * | old | ) |
Definition at line 103 of file kbanimwidget.cpp.
References KbLight::animList(), Ui_KbAnimWidget::animList, KbLight::duplicateAnim(), light, Ui_KbAnimWidget::noAnimLabel, noReorder, refreshList(), setCurrent(), and ui.
Referenced by on_animList_customContextMenuRequested().
|
privateslot |
Definition at line 151 of file kbanimwidget.cpp.
References animations, and setCurrent().
|
privateslot |
Definition at line 169 of file kbanimwidget.cpp.
References animations, Ui_KbAnimWidget::animList, current, duplicateAnim(), on_deleteButton_clicked(), setCurrent(), and ui.
|
privateslot |
Definition at line 158 of file kbanimwidget.cpp.
References anim, animations, current, KbAnim::name(), Ui_KbAnimWidget::nameBox, noReorder, and ui.
|
privateslot |
Definition at line 205 of file kbanimwidget.cpp.
References current, and KbAnim::mode().
|
privateslot |
Definition at line 226 of file kbanimwidget.cpp.
References animations, KbLight::animList(), Ui_KbAnimWidget::animList, current, KbAnim::guid(), light, Ui_KbAnimWidget::noAnimLabel, KbLight::restartAnimation(), setCurrent(), and ui.
Referenced by on_animList_customContextMenuRequested().
|
privateslot |
Definition at line 210 of file kbanimwidget.cpp.
References KeyMap::contains(), current, didUpdateSelection(), KbAnim::keys(), light, KbLight::map(), KbLight::restartAnimation(), and selectedKeys.
|
privateslot |
Definition at line 191 of file kbanimwidget.cpp.
References Ui_KbAnimWidget::animList, current, KbAnim::name(), noReorder, and ui.
Referenced by on_propertyButton_clicked().
|
privateslot |
Definition at line 200 of file kbanimwidget.cpp.
References current, and KbAnim::opacity().
|
privateslot |
Definition at line 243 of file kbanimwidget.cpp.
References KbAnim::commitParams(), current, light, AnimSettingDialog::name(), Ui_KbAnimWidget::nameBox, on_nameBox_textEdited(), KbAnim::reInit(), KbAnim::resetParams(), KbLight::restartAnimation(), and ui.
Referenced by addAnim().
|
privateslot |
Definition at line 32 of file kbanimwidget.cpp.
References anim, animations, KbLight::animList(), Ui_KbAnimWidget::animList, KbAnim::guid(), light, KbAnim::name(), Ui_KbAnimWidget::noAnimLabel, noReorder, setCurrent(), and ui.
Referenced by duplicateAnim(), and setLight().
|
privateslot |
Definition at line 61 of file kbanimwidget.cpp.
References anim, animations, KbLight::animList(), Ui_KbAnimWidget::animList, light, noReorder, and ui.
Referenced by KbAnimWidget().
|
private |
Definition at line 118 of file kbanimwidget.cpp.
References Ui_KbAnimWidget::aCopyLabel, Ui_KbAnimWidget::aMissingLabel, Ui_KbAnimWidget::aNameLabel, animChanged(), Ui_KbAnimWidget::aVerLabel, Ui_KbAnimWidget::blendBox, AnimScript::copyright(), current, KbAnim::keys(), KbAnim::mode(), AnimScript::name(), KbAnim::name(), Ui_KbAnimWidget::nameBox, KbAnim::opacity(), Ui_KbAnimWidget::opacityBox, KbAnim::script(), KbAnim::scriptName(), selectedKeys, Ui_KbAnimWidget::selectionStack, ui, and AnimScript::version().
Referenced by addAnim(), clearSelection(), duplicateAnim(), KbAnimWidget(), on_animList_currentItemChanged(), on_animList_customContextMenuRequested(), on_deleteButton_clicked(), and refreshList().
void KbAnimWidget::setLight | ( | KbLight * | newLight | ) |
Definition at line 21 of file kbanimwidget.cpp.
References light, and refreshList().
Referenced by KbLightWidget::setLight().
void KbAnimWidget::setSelectedKeys | ( | const QStringList & | keys | ) |
Definition at line 143 of file kbanimwidget.cpp.
References Ui_KbAnimWidget::keyButton, selectedKeys, and ui.
Referenced by KbLightWidget::newSelection().
|
private |
Definition at line 53 of file kbanimwidget.h.
Referenced by addAnim(), on_animList_currentItemChanged(), on_animList_customContextMenuRequested(), on_animList_itemChanged(), on_deleteButton_clicked(), refreshList(), and reorderAnims().
|
private |
Definition at line 55 of file kbanimwidget.h.
Referenced by on_animList_customContextMenuRequested(), on_animList_itemChanged(), on_blendBox_activated(), on_deleteButton_clicked(), on_keyButton_clicked(), on_nameBox_textEdited(), on_opacityBox_valueChanged(), on_propertyButton_clicked(), and setCurrent().
|
private |
Definition at line 52 of file kbanimwidget.h.
Referenced by addAnim(), duplicateAnim(), on_deleteButton_clicked(), on_keyButton_clicked(), on_propertyButton_clicked(), refreshList(), reorderAnims(), and setLight().
|
private |
Definition at line 58 of file kbanimwidget.h.
Referenced by addAnim(), duplicateAnim(), on_animList_itemChanged(), on_nameBox_textEdited(), refreshList(), and reorderAnims().
|
private |
Definition at line 57 of file kbanimwidget.h.
Referenced by on_keyButton_clicked(), setCurrent(), and setSelectedKeys().
|
private |
Definition at line 60 of file kbanimwidget.h.
Referenced by addAnim(), clearSelection(), duplicateAnim(), KbAnimWidget(), on_animList_customContextMenuRequested(), on_animList_itemChanged(), on_deleteButton_clicked(), on_nameBox_textEdited(), on_propertyButton_clicked(), refreshList(), reorderAnims(), setCurrent(), setSelectedKeys(), and ~KbAnimWidget().