![]() |
ckb-next
beta-v0.2.8 at branch testing
ckb-next driver for corsair devices
|
#include <src/ckb/gradientdialogwidget.h>
Inheritance diagram for GradientDialogWidget:
Collaboration diagram for GradientDialogWidget: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().
Here is the caller graph for this function:
|
inline |
|
signal |
Definition at line 126 of file moc_gradientdialogwidget.cpp.
Referenced by mouseReleaseEvent(), and setStops().
Here is the caller graph for this function:
|
private |
Definition at line 138 of file gradientdialogwidget.cpp.
Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), selectedStop(), and stopRect().
Here is the caller graph for this function:
|
private |
Definition at line 30 of file gradientdialogwidget.cpp.
References _stops, and selectionColors().
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), moveCurrent(), and setCurrentColor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 255 of file gradientdialogwidget.cpp.
References _colors, fillRect(), makeStops(), right(), selected, selectedOffset, and selectedPos.
Here is the call graph for this function:
|
private |
Definition at line 222 of file gradientdialogwidget.cpp.
References _colors, colorAt(), fillRect(), makeStops(), mouseReleaseEvent(), selected, selectedOffset, selectedPos, selectedStop(), and stopRect().
Here is the call graph for this function:
|
private |
Definition at line 282 of file gradientdialogwidget.cpp.
References _colors, _current, currentChanged(), makeStops(), selected, selectedPos, selectedStop(), and selectionColors().
Referenced by mousePressEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 172 of file gradientdialogwidget.cpp.
References _colors, _current, _stops, fillRect(), selected, selectedPos, and stopRect().
Here is the call graph for this function:
|
private |
Definition at line 152 of file gradientdialogwidget.cpp.
References fillRect(), and selectedPos.
Referenced by mousePressEvent(), mouseReleaseEvent(), and selectionColors().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 160 of file gradientdialogwidget.cpp.
References _colors, selected, and selectedStop().
Referenced by makeStops(), and mouseReleaseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void GradientDialogWidget::setCurrentColor | ( | const QColor & | color | ) |
Definition at line 117 of file gradientdialogwidget.cpp.
References _colors, _current, makeStops(), and selected.
Referenced by GradientDialog::colorChanged().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 16 of file gradientdialogwidget.h.
References _stops.
Referenced by GradientDialog::currentChanged().
Here is the caller graph for this function:
|
private |
Definition at line 144 of file gradientdialogwidget.cpp.
References fillRect().
Referenced by mousePressEvent(), and paintEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 15 of file gradientdialogwidget.h.
References _stops.
Referenced by GradientDialog::getGradient(), GradientDialog::on_presetSave_clicked(), and setStops().
Here is the caller graph for this function:
|
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().