ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/gradientdialogwidget.h>
Signals | |
void | currentChanged (QColor color, bool spontaneous, int position) |
Public Member Functions | |
GradientDialogWidget (QWidget *parent=0) | |
void | setStops (const QGradientStops &stops) |
QGradientStops | stops () |
int | stopCount () |
QColor | colorAt (int position) |
int | current () |
int | moveCurrent (int to) |
void | setCurrentColor (const QColor &color) |
Private Member Functions | |
QRect | fillRect () |
QRect | stopRect (int pos) |
int | selectedStop () |
QMap< int, QColor > | selectionColors () |
void | makeStops () |
void | paintEvent (QPaintEvent *) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
Private Attributes | |
QColor | selected |
int | selectedPos |
int | selectedOffset |
int | _current |
QMap< int, QColor > | _colors |
QGradientStops | _stops |
Definition at line 8 of file gradientdialogwidget.h.
|
explicit |
Definition at line 6 of file gradientdialogwidget.cpp.
QColor GradientDialogWidget::colorAt | ( | int | position | ) |
Definition at line 65 of file gradientdialogwidget.cpp.
References _stops.
Referenced by mousePressEvent().
|
inline |
|
signal |
Definition at line 126 of file moc_gradientdialogwidget.cpp.
Referenced by mouseReleaseEvent(), and setStops().
|
private |
Definition at line 138 of file gradientdialogwidget.cpp.
Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), selectedStop(), and stopRect().
|
private |
Definition at line 30 of file gradientdialogwidget.cpp.
References _stops, and selectionColors().
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), moveCurrent(), and setCurrentColor().
|
private |
Definition at line 255 of file gradientdialogwidget.cpp.
References _colors, fillRect(), left, makeStops(), right(), selected, selectedOffset, selectedPos, and top.
|
private |
Definition at line 222 of file gradientdialogwidget.cpp.
References _colors, colorAt(), fillRect(), makeStops(), mouseReleaseEvent(), selected, selectedOffset, selectedPos, selectedStop(), stopRect(), x, and y.
|
private |
Definition at line 282 of file gradientdialogwidget.cpp.
References _colors, _current, currentChanged(), makeStops(), selected, selectedPos, selectedStop(), and selectionColors().
Referenced by mousePressEvent().
int GradientDialogWidget::moveCurrent | ( | int | to | ) |
Definition at line 94 of file gradientdialogwidget.cpp.
References _colors, _current, makeStops(), and selected.
Referenced by GradientDialog::on_stopPos_valueChanged().
|
private |
Definition at line 172 of file gradientdialogwidget.cpp.
References _colors, _current, _stops, fillRect(), selected, selectedPos, stopRect(), x, and y.
|
private |
Definition at line 152 of file gradientdialogwidget.cpp.
References fillRect(), and selectedPos.
Referenced by mousePressEvent(), mouseReleaseEvent(), and selectionColors().
|
private |
Definition at line 160 of file gradientdialogwidget.cpp.
References _colors, selected, and selectedStop().
Referenced by makeStops(), and mouseReleaseEvent().
void GradientDialogWidget::setCurrentColor | ( | const QColor & | color | ) |
Definition at line 117 of file gradientdialogwidget.cpp.
References _colors, _current, makeStops(), and selected.
Referenced by GradientDialog::colorChanged().
void GradientDialogWidget::setStops | ( | const QGradientStops & | stops | ) |
Definition at line 12 of file gradientdialogwidget.cpp.
References _colors, _current, _stops, currentChanged(), and stops().
Referenced by GradientDialog::getGradient(), and GradientDialog::setPreset().
|
inline |
Definition at line 16 of file gradientdialogwidget.h.
References _stops.
Referenced by GradientDialog::currentChanged().
|
private |
Definition at line 144 of file gradientdialogwidget.cpp.
References fillRect().
Referenced by mousePressEvent(), and paintEvent().
|
inline |
Definition at line 15 of file gradientdialogwidget.h.
References _stops.
Referenced by GradientDialog::getGradient(), GradientDialog::on_presetSave_clicked(), and setStops().
|
private |
Definition at line 31 of file gradientdialogwidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), moveCurrent(), paintEvent(), selectionColors(), setCurrentColor(), and setStops().
|
private |
Definition at line 30 of file gradientdialogwidget.h.
Referenced by current(), mouseReleaseEvent(), moveCurrent(), paintEvent(), setCurrentColor(), and setStops().
|
private |
Definition at line 32 of file gradientdialogwidget.h.
Referenced by colorAt(), makeStops(), paintEvent(), setStops(), stopCount(), and stops().
|
private |
Definition at line 28 of file gradientdialogwidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), moveCurrent(), paintEvent(), selectionColors(), and setCurrentColor().
|
private |
Definition at line 29 of file gradientdialogwidget.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 29 of file gradientdialogwidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), paintEvent(), and selectedStop().