ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/mperfwidget.h>
Data Structures | |
struct | DpiUi |
Public Member Functions | |
MPerfWidget (QWidget *parent=0) | |
~MPerfWidget () | |
void | setPerf (KbPerf *newPerf, KbProfile *newProfile) |
Static Public Attributes | |
static const int | DPI_COUNT = KbPerf::DPI_COUNT |
static const int | DPI_MIN = KbPerf::DPI_MIN |
static const int | DPI_MAX = KbPerf::DPI_MAX |
Private Slots | |
void | colorClicked (int index) |
void | colorChanged (int index) |
void | sliderXMoved (int index) |
void | sliderYMoved (int index) |
void | boxXChanged (int index) |
void | boxYChanged (int index) |
void | enableChanged (int index) |
void | on_xyBox_clicked (bool checked) |
void | on_indicBox_clicked (bool checked) |
void | on_aSnapBox_clicked (bool checked) |
void | on_lHeightBox_activated (int index) |
void | on_copyButton_clicked () |
void | on_spinBox_valueChanged (int arg1) |
Private Attributes | |
Ui::MPerfWidget * | ui |
KbPerf * | perf |
KbProfile * | profile |
DpiUi | stages [DPI_COUNT] |
bool | _xyLink |
bool | colorLink |
QSignalMapper | buttonMapper1 |
QSignalMapper | buttonMapper2 |
QSignalMapper | sliderXMapper |
QSignalMapper | sliderYMapper |
QSignalMapper | boxXMapper |
QSignalMapper | boxYMapper |
QSignalMapper | enableMapper |
bool | isSetting |
Definition at line 18 of file mperfwidget.h.
struct MPerfWidget::DpiUi |
Definition at line 37 of file mperfwidget.h.
Data Fields | ||
---|---|---|
QCheckBox * | enableCheck | |
ColorButton * | indicator | |
QSpinBox * | xBox | |
QSlider * | xSlider | |
QSpinBox * | yBox | |
QSlider * | ySlider |
|
explicit |
Definition at line 8 of file mperfwidget.cpp.
References _xyLink, ColorButton::allowAlpha(), ColorButton::bigIcons(), boxXChanged(), boxXMapper, boxYChanged(), boxYMapper, buttonMapper1, buttonMapper2, colorChanged(), colorClicked(), DPI_COUNT, Ui_MPerfWidget::eBox1, Ui_MPerfWidget::eBox2, Ui_MPerfWidget::eBox3, Ui_MPerfWidget::eBox4, Ui_MPerfWidget::eBox5, enableChanged(), MPerfWidget::DpiUi::enableCheck, enableMapper, Ui_MPerfWidget::iButton0, Ui_MPerfWidget::iButton1, Ui_MPerfWidget::iButton2, Ui_MPerfWidget::iButton3, Ui_MPerfWidget::iButton4, Ui_MPerfWidget::iButton5, Ui_MPerfWidget::iButtonO, MPerfWidget::DpiUi::indicator, ColorButton::setLabel(), Ui_MPerfWidget::setupUi(), sliderXMapper, sliderXMoved(), sliderYMapper, sliderYMoved(), stages, ui, MPerfWidget::DpiUi::xBox, Ui_MPerfWidget::xBox0, Ui_MPerfWidget::xBox1, Ui_MPerfWidget::xBox2, Ui_MPerfWidget::xBox3, Ui_MPerfWidget::xBox4, Ui_MPerfWidget::xBox5, MPerfWidget::DpiUi::xSlider, Ui_MPerfWidget::xSlider0, Ui_MPerfWidget::xSlider1, Ui_MPerfWidget::xSlider2, Ui_MPerfWidget::xSlider3, Ui_MPerfWidget::xSlider4, Ui_MPerfWidget::xSlider5, Ui_MPerfWidget::xyBox, MPerfWidget::DpiUi::yBox, Ui_MPerfWidget::yBox0, Ui_MPerfWidget::yBox1, Ui_MPerfWidget::yBox2, Ui_MPerfWidget::yBox3, Ui_MPerfWidget::yBox4, Ui_MPerfWidget::yBox5, MPerfWidget::DpiUi::ySlider, Ui_MPerfWidget::ySlider0, Ui_MPerfWidget::ySlider1, Ui_MPerfWidget::ySlider2, Ui_MPerfWidget::ySlider3, Ui_MPerfWidget::ySlider4, and Ui_MPerfWidget::ySlider5.
MPerfWidget::~MPerfWidget | ( | ) |
Definition at line 56 of file mperfwidget.cpp.
References ui.
|
privateslot |
Definition at line 157 of file mperfwidget.cpp.
References _xyLink, KbPerf::dpi(), dpiLog(), perf, SET_END, SET_START, stages, MPerfWidget::DpiUi::xBox, MPerfWidget::DpiUi::xSlider, and MPerfWidget::DpiUi::yBox.
Referenced by MPerfWidget().
|
privateslot |
Definition at line 172 of file mperfwidget.cpp.
References _xyLink, KbPerf::dpi(), dpiLog(), perf, SET_END, SET_START, stages, MPerfWidget::DpiUi::xBox, MPerfWidget::DpiUi::yBox, and MPerfWidget::DpiUi::ySlider.
Referenced by MPerfWidget().
|
privateslot |
Definition at line 86 of file mperfwidget.cpp.
References ColorButton::color(), colorLink, DPI_COUNT, KbPerf::dpiColor(), Ui_MPerfWidget::iButtonO, MPerfWidget::DpiUi::indicator, KbPerf::OTHER, perf, stages, and ui.
Referenced by MPerfWidget().
|
privateslot |
Definition at line 81 of file mperfwidget.cpp.
References colorLink.
Referenced by MPerfWidget().
|
privateslot |
Definition at line 187 of file mperfwidget.cpp.
References KbPerf::dpiEnabled(), perf, and stages.
Referenced by MPerfWidget().
|
privateslot |
Definition at line 201 of file mperfwidget.cpp.
References KbPerf::angleSnap(), and perf.
|
privateslot |
Definition at line 209 of file mperfwidget.cpp.
References KbProfile::currentMode(), KbProfile::modes(), perf, KbMode::perf(), profile, and ModeSelectDialog::selection().
|
privateslot |
Definition at line 197 of file mperfwidget.cpp.
References KbPerf::dpiIndicator(), and perf.
|
privateslot |
Definition at line 205 of file mperfwidget.cpp.
References KbPerf::liftHeight(), and perf.
|
privateslot |
Definition at line 219 of file mperfwidget.cpp.
References KbPerf::iOpacity(), and perf.
|
privateslot |
Definition at line 191 of file mperfwidget.cpp.
References _xyLink, CkbSettings::set(), and xyLinkPath.
Definition at line 60 of file mperfwidget.cpp.
References _xyLink, KbPerf::angleSnap(), Ui_MPerfWidget::aSnapBox, ColorButton::color(), KbPerf::dpi(), DPI_COUNT, KbPerf::dpiColor(), KbPerf::dpiEnabled(), KbPerf::dpiIndicator(), MPerfWidget::DpiUi::enableCheck, Ui_MPerfWidget::iButtonO, MPerfWidget::DpiUi::indicator, Ui_MPerfWidget::indicBox, KbPerf::iOpacity(), Ui_MPerfWidget::lHeightBox, KbPerf::liftHeight(), KbPerf::OTHER, perf, profile, Ui_MPerfWidget::spinBox, stages, ui, MPerfWidget::DpiUi::xBox, and MPerfWidget::DpiUi::yBox.
Referenced by KbWidget::modeChanged().
|
privateslot |
Definition at line 128 of file mperfwidget.cpp.
References _xyLink, KbPerf::dpi(), dpiExp(), dpiRound(), perf, SET_END, SET_START, stages, MPerfWidget::DpiUi::xBox, MPerfWidget::DpiUi::xSlider, and MPerfWidget::DpiUi::ySlider.
Referenced by MPerfWidget().
|
privateslot |
Definition at line 142 of file mperfwidget.cpp.
References _xyLink, KbPerf::dpi(), dpiExp(), dpiRound(), perf, SET_END, SET_START, stages, ui, Ui_MPerfWidget::xyBox, MPerfWidget::DpiUi::yBox, and MPerfWidget::DpiUi::ySlider.
Referenced by MPerfWidget().
|
private |
Definition at line 44 of file mperfwidget.h.
Referenced by boxXChanged(), boxYChanged(), MPerfWidget(), on_xyBox_clicked(), setPerf(), sliderXMoved(), and sliderYMoved().
|
private |
Definition at line 49 of file mperfwidget.h.
Referenced by MPerfWidget().
|
private |
Definition at line 49 of file mperfwidget.h.
Referenced by MPerfWidget().
|
private |
Definition at line 47 of file mperfwidget.h.
Referenced by MPerfWidget().
|
private |
Definition at line 47 of file mperfwidget.h.
Referenced by MPerfWidget().
|
private |
Definition at line 45 of file mperfwidget.h.
Referenced by colorChanged(), and colorClicked().
|
static |
Definition at line 28 of file mperfwidget.h.
Referenced by colorChanged(), MPerfWidget(), and setPerf().
|
static |
Definition at line 29 of file mperfwidget.h.
|
static |
Definition at line 29 of file mperfwidget.h.
|
private |
Definition at line 50 of file mperfwidget.h.
Referenced by MPerfWidget().
|
private |
Definition at line 53 of file mperfwidget.h.
|
private |
Definition at line 34 of file mperfwidget.h.
Referenced by boxXChanged(), boxYChanged(), colorChanged(), enableChanged(), on_aSnapBox_clicked(), on_copyButton_clicked(), on_indicBox_clicked(), on_lHeightBox_activated(), on_spinBox_valueChanged(), setPerf(), sliderXMoved(), and sliderYMoved().
|
private |
Definition at line 35 of file mperfwidget.h.
Referenced by on_copyButton_clicked(), and setPerf().
|
private |
Definition at line 48 of file mperfwidget.h.
Referenced by MPerfWidget().
|
private |
Definition at line 48 of file mperfwidget.h.
Referenced by MPerfWidget().
Definition at line 43 of file mperfwidget.h.
Referenced by boxXChanged(), boxYChanged(), colorChanged(), enableChanged(), MPerfWidget(), setPerf(), sliderXMoved(), and sliderYMoved().
|
private |
Definition at line 32 of file mperfwidget.h.
Referenced by colorChanged(), MPerfWidget(), setPerf(), sliderYMoved(), and ~MPerfWidget().