ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/gradientdialog.h>
Data Structures | |
struct | Preset |
Public Member Functions | |
GradientDialog (QWidget *parent=0) | |
~GradientDialog () | |
QGradientStops | getGradient (const QGradientStops &prevGradient) |
Private Slots | |
void | currentChanged (QColor color, bool spontaneous, int position) |
void | colorChanged (QColor color) |
void | on_presetList_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) |
void | on_presetName_textEdited (const QString &arg1) |
void | on_presetSave_clicked () |
void | on_presetDelete_clicked () |
void | on_stopPos_valueChanged (int arg1) |
void | on_stopOpacity_valueChanged (int arg1) |
Private Member Functions | |
void | addPreset (const Preset &preset) |
QIcon | makeIcon (const Preset &preset) |
void | updatePresets () |
void | setPreset (const QString &newPreset) |
Private Attributes | |
QMap< QString, Preset > | presets |
QString | currentPreset |
Ui::GradientDialog * | ui |
Definition at line 12 of file gradientdialog.h.
|
explicit |
Definition at line 11 of file gradientdialog.cpp.
References addPreset(), CkbSettings::childGroups(), CkbSettings::childKeys(), colorChanged(), currentChanged(), GradientDialog::Preset::gradient, prefsPath, presets, Ui_GradientDialog::setupUi(), Ui_GradientDialog::stopColor, ui, updatePresets(), CkbSettings::value(), and Ui_GradientDialog::widget.
GradientDialog::~GradientDialog | ( | ) |
Definition at line 77 of file gradientdialog.cpp.
References GradientDialog::Preset::builtIn, GradientDialog::Preset::gradient, GradientDialog::Preset::name, prefsPath, presets, CkbSettings::setValue(), and ui.
|
inlineprivate |
Definition at line 34 of file gradientdialog.h.
References GradientDialog::Preset::name, and presets.
Referenced by GradientDialog().
|
privateslot |
Definition at line 234 of file gradientdialog.cpp.
References GradientDialogWidget::setCurrentColor(), setPreset(), Ui_GradientDialog::stopOpacity, ui, and Ui_GradientDialog::widget.
Referenced by GradientDialog(), and on_stopOpacity_valueChanged().
|
privateslot |
Definition at line 128 of file gradientdialog.cpp.
References ColorButton::color(), setPreset(), Ui_GradientDialog::stopBox, Ui_GradientDialog::stopColor, GradientDialogWidget::stopCount(), Ui_GradientDialog::stopOpacity, Ui_GradientDialog::stopPos, ui, and Ui_GradientDialog::widget.
Referenced by GradientDialog().
QGradientStops GradientDialog::getGradient | ( | const QGradientStops & | prevGradient | ) |
Definition at line 67 of file gradientdialog.cpp.
References Ui_GradientDialog::presetDelete, Ui_GradientDialog::presetSave, GradientDialogWidget::setStops(), GradientDialogWidget::stops(), ui, and Ui_GradientDialog::widget.
Referenced by GradientButton::pickGradient().
|
private |
Definition at line 92 of file gradientdialog.cpp.
References GradientDialog::Preset::gradient, x, and y.
Referenced by updatePresets().
|
privateslot |
Definition at line 211 of file gradientdialog.cpp.
References GradientDialog::Preset::builtIn, current, currentPreset, GradientDialog::Preset::name, Ui_GradientDialog::presetDelete, presets, Ui_GradientDialog::presetSave, ui, and updatePresets().
|
privateslot |
Definition at line 174 of file gradientdialog.cpp.
References setPreset().
|
privateslot |
Definition at line 178 of file gradientdialog.cpp.
References currentPreset, presets, and setPreset().
|
privateslot |
Definition at line 183 of file gradientdialog.cpp.
References GradientDialog::Preset::builtIn, currentPreset, GradientDialog::Preset::name, Ui_GradientDialog::presetDelete, Ui_GradientDialog::presetName, presets, Ui_GradientDialog::presetSave, GradientDialogWidget::stops(), ui, updatePresets(), and Ui_GradientDialog::widget.
|
privateslot |
Definition at line 240 of file gradientdialog.cpp.
References ColorButton::color(), colorChanged(), setPreset(), Ui_GradientDialog::stopColor, and ui.
|
privateslot |
Definition at line 227 of file gradientdialog.cpp.
References GradientDialogWidget::moveCurrent(), setPreset(), Ui_GradientDialog::stopPos, ui, and Ui_GradientDialog::widget.
|
private |
Definition at line 151 of file gradientdialog.cpp.
References GradientDialog::Preset::builtIn, current, currentPreset, GradientDialog::Preset::gradient, GradientDialog::Preset::name, Ui_GradientDialog::presetDelete, Ui_GradientDialog::presetList, Ui_GradientDialog::presetName, presets, Ui_GradientDialog::presetSave, GradientDialogWidget::setStops(), ui, and Ui_GradientDialog::widget.
Referenced by colorChanged(), currentChanged(), on_presetList_currentItemChanged(), on_presetName_textEdited(), on_stopOpacity_valueChanged(), and on_stopPos_valueChanged().
|
private |
Definition at line 115 of file gradientdialog.cpp.
References currentPreset, makeIcon(), GradientDialog::Preset::name, Ui_GradientDialog::presetList, presets, and ui.
Referenced by GradientDialog(), on_presetDelete_clicked(), and on_presetSave_clicked().
|
private |
Definition at line 32 of file gradientdialog.h.
Referenced by on_presetDelete_clicked(), on_presetName_textEdited(), on_presetSave_clicked(), setPreset(), and updatePresets().
|
private |
Definition at line 31 of file gradientdialog.h.
Referenced by addPreset(), GradientDialog(), on_presetDelete_clicked(), on_presetName_textEdited(), on_presetSave_clicked(), setPreset(), updatePresets(), and ~GradientDialog().
|
private |
Definition at line 39 of file gradientdialog.h.
Referenced by colorChanged(), currentChanged(), getGradient(), GradientDialog(), on_presetDelete_clicked(), on_presetSave_clicked(), on_stopOpacity_valueChanged(), on_stopPos_valueChanged(), setPreset(), updatePresets(), and ~GradientDialog().