ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
kbanimwidget.h
Go to the documentation of this file.
1
#ifndef KBANIMWIDGET_H
2
#define KBANIMWIDGET_H
3
4
#include <QListWidgetItem>
5
#include <QTimer>
6
#include <QWidget>
7
#include "
animscript.h
"
8
#include "
kbanim.h
"
9
#include "
kblight.h
"
10
11
namespace
Ui {
12
class
KbAnimWidget
;
13
}
14
15
class
KbAnimWidget
:
public
QWidget
16
{
17
Q_OBJECT
18
19
public
:
20
explicit
KbAnimWidget
(
QWidget
*parent = 0);
21
~KbAnimWidget
();
22
23
void
setLight
(
KbLight
* newLight);
24
void
addAnim
(
const
AnimScript
* base,
const
QStringList& keyList,
const
QString& name,
const
QMap<QString, QVariant>& preset);
25
void
duplicateAnim
(
KbAnim
* old);
26
27
void
clearSelection
();
28
29
void
setSelectedKeys
(
const
QStringList& keys);
30
31
signals:
32
void
animChanged
(
KbAnim
* selection);
33
void
didUpdateSelection
(QStringList keys);
34
35
private
slots:
36
void
on_animList_currentItemChanged
(QListWidgetItem *
current
, QListWidgetItem *previous);
37
void
on_animList_itemChanged
(QListWidgetItem *item);
38
void
on_animList_customContextMenuRequested
(
const
QPoint &pos);
39
void
on_nameBox_textEdited
(
const
QString &arg1);
40
void
on_opacityBox_valueChanged
(
double
arg1);
41
void
on_blendBox_activated
(
int
index);
42
void
on_keyButton_clicked
();
43
void
on_deleteButton_clicked
();
44
45
void
refreshList
();
46
void
reorderAnims
();
47
48
49
void
on_propertyButton_clicked
();
50
51
private
:
52
KbLight
*
light
;
53
QHash<QUuid, KbAnim*>
animations
;
54
55
KbAnim
*
current
;
56
void
setCurrent
(
KbAnim
* newCurrent);
57
QStringList
selectedKeys
;
58
bool
noReorder
;
59
60
Ui::KbAnimWidget
*
ui
;
61
};
62
63
#endif // KBANIMWIDGET_H
KbAnimWidget::on_propertyButton_clicked
void on_propertyButton_clicked()
Definition:
kbanimwidget.cpp:243
KbAnimWidget::KbAnimWidget
KbAnimWidget(QWidget *parent=0)
Definition:
kbanimwidget.cpp:7
KbAnimWidget::setCurrent
void setCurrent(KbAnim *newCurrent)
Definition:
kbanimwidget.cpp:118
KbAnimWidget::on_nameBox_textEdited
void on_nameBox_textEdited(const QString &arg1)
Definition:
kbanimwidget.cpp:191
KbAnimWidget::on_deleteButton_clicked
void on_deleteButton_clicked()
Definition:
kbanimwidget.cpp:226
KbAnimWidget::light
KbLight * light
Definition:
kbanimwidget.h:52
QWidget
AnimScript
Definition:
animscript.h:16
KbAnimWidget::setLight
void setLight(KbLight *newLight)
Definition:
kbanimwidget.cpp:21
KbAnimWidget::reorderAnims
void reorderAnims()
Definition:
kbanimwidget.cpp:61
kblight.h
KbAnimWidget::on_animList_currentItemChanged
void on_animList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous)
Definition:
kbanimwidget.cpp:151
KbAnimWidget::on_blendBox_activated
void on_blendBox_activated(int index)
Definition:
kbanimwidget.cpp:205
kbanim.h
KbAnimWidget::selectedKeys
QStringList selectedKeys
Definition:
kbanimwidget.h:57
KbLight
Definition:
kblight.h:17
KbAnimWidget::current
KbAnim * current
Definition:
kbanimwidget.h:55
KbAnimWidget::refreshList
void refreshList()
Definition:
kbanimwidget.cpp:32
Ui::KbAnimWidget
Definition:
ui_kbanimwidget.h:269
KbAnimWidget::duplicateAnim
void duplicateAnim(KbAnim *old)
Definition:
kbanimwidget.cpp:103
KbAnimWidget::addAnim
void addAnim(const AnimScript *base, const QStringList &keyList, const QString &name, const QMap< QString, QVariant > &preset)
Definition:
kbanimwidget.cpp:82
KbAnim
Definition:
kbanim.h:11
KbAnimWidget::on_animList_itemChanged
void on_animList_itemChanged(QListWidgetItem *item)
Definition:
kbanimwidget.cpp:158
KbAnimWidget::~KbAnimWidget
~KbAnimWidget()
Definition:
kbanimwidget.cpp:17
KbAnimWidget::animChanged
void animChanged(KbAnim *selection)
Definition:
moc_kbanimwidget.cpp:213
KbAnimWidget::noReorder
bool noReorder
Definition:
kbanimwidget.h:58
animscript.h
KbAnimWidget::setSelectedKeys
void setSelectedKeys(const QStringList &keys)
Definition:
kbanimwidget.cpp:143
KbAnimWidget::on_opacityBox_valueChanged
void on_opacityBox_valueChanged(double arg1)
Definition:
kbanimwidget.cpp:200
KbAnimWidget::animations
QHash< QUuid, KbAnim * > animations
Definition:
kbanimwidget.h:53
KbAnimWidget::clearSelection
void clearSelection()
Definition:
kbanimwidget.cpp:77
KbAnimWidget::on_keyButton_clicked
void on_keyButton_clicked()
Definition:
kbanimwidget.cpp:210
KbAnimWidget::didUpdateSelection
void didUpdateSelection(QStringList keys)
Definition:
moc_kbanimwidget.cpp:220
KbAnimWidget::on_animList_customContextMenuRequested
void on_animList_customContextMenuRequested(const QPoint &pos)
Definition:
kbanimwidget.cpp:169
KbAnimWidget
Definition:
kbanimwidget.h:15
KbAnimWidget::ui
Ui::KbAnimWidget * ui
Definition:
kbanimwidget.h:60
src
ckb
kbanimwidget.h
Generated on Sat Jan 20 2018 16:59:28 for ckb-next by
1.8.6