ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/kperfwidget.h>
Data Structures | |
struct | IndicatorUi |
Public Types | |
typedef KbPerf::indicator | indicator |
typedef KbPerf::i_hw | i_hw |
Public Member Functions | |
KPerfWidget (QWidget *parent=0) | |
KPerfWidget::KPerfWidget sets up the UI for Keyboard Performace panel. More... | |
~KPerfWidget () | |
KPerfWidget::~KPerfWidget nothing unusual - just delete the ui object. More... | |
void | setPerf (KbPerf *newPerf, KbProfile *newProfile) |
Static Public Attributes | |
static const int | I_COUNT = KbPerf::I_COUNT |
static const int | HW_I_COUNT = KbPerf::HW_I_COUNT |
Private Types | |
enum | HwMode { NORMAL, ALWAYS_ON, ALWAYS_OFF, RGB, BOTH } |
Private Slots | |
void | uiUpdated (int index) |
void | on_intensityBox_valueChanged (int arg1) |
void | on_copyButton_clicked () |
Private Member Functions | |
HwMode | raw2Mode (bool sw_enable, i_hw hw_enable) |
KPerfWidget::raw2Mode return hardware mode depending on setiings in sw_enable and hw_enable. More... | |
void | mode2Raw (HwMode mode, bool &sw_enable, i_hw &hw_enable) |
KPerfWidget::mode2Raw Set values of sw_enable and hw_enable to hte value corresponding to input var mode. More... | |
Private Attributes | |
Ui::KPerfWidget * | ui |
KbPerf * | perf |
KbProfile * | profile |
IndicatorUi | indicators [I_COUNT] |
QList< QWidget * > | k95Widgets |
QSignalMapper | updateMapper |
Definition at line 16 of file kperfwidget.h.
struct KPerfWidget::IndicatorUi |
Definition at line 54 of file kperfwidget.h.
Data Fields | ||
---|---|---|
ColorButton * | color1 | |
ColorButton * | color2 | |
ColorButton * | color3 | |
QCheckBox * | enable | |
QComboBox * | hwEnable |
typedef KbPerf::i_hw KPerfWidget::i_hw |
Definition at line 29 of file kperfwidget.h.
Definition at line 28 of file kperfwidget.h.
|
private |
Enumerator | |
---|---|
NORMAL | |
ALWAYS_ON | |
ALWAYS_OFF | |
RGB | |
BOTH |
Definition at line 38 of file kperfwidget.h.
|
explicit |
parent |
Definition at line 10 of file kperfwidget.cpp.
References ColorButton::allowAlpha(), ColorButton::bigIcons(), Ui_KPerfWidget::capsBox, Ui_KPerfWidget::capsColorOff, Ui_KPerfWidget::capsColorOn, KPerfWidget::IndicatorUi::color1, KPerfWidget::IndicatorUi::color2, KPerfWidget::IndicatorUi::color3, KPerfWidget::IndicatorUi::enable, KPerfWidget::IndicatorUi::hwEnable, I_COUNT, indicators, Ui_KPerfWidget::k95Label1, Ui_KPerfWidget::k95Label2, Ui_KPerfWidget::k95Label3, Ui_KPerfWidget::k95Label4, Ui_KPerfWidget::k95Label5, Ui_KPerfWidget::k95Label6, Ui_KPerfWidget::k95Line, Ui_KPerfWidget::k95Spacer, k95Widgets, Ui_KPerfWidget::lightBox, Ui_KPerfWidget::lightColor1, Ui_KPerfWidget::lightColor2, Ui_KPerfWidget::lightColor3, Ui_KPerfWidget::lockBox, Ui_KPerfWidget::lockColorOff, Ui_KPerfWidget::lockColorOn, Ui_KPerfWidget::macroBox, Ui_KPerfWidget::macroColorOff, Ui_KPerfWidget::macroColorOn, Ui_KPerfWidget::modeBox, Ui_KPerfWidget::modeColorOff, Ui_KPerfWidget::modeColorOn, Ui_KPerfWidget::muteBox, Ui_KPerfWidget::muteColorNA, Ui_KPerfWidget::muteColorOff, Ui_KPerfWidget::muteColorOn, Ui_KPerfWidget::numBox, Ui_KPerfWidget::numColorOff, Ui_KPerfWidget::numColorOn, Ui_KPerfWidget::scrollBox, Ui_KPerfWidget::scrollColorOff, Ui_KPerfWidget::scrollColorOn, ColorButton::setLabel(), Ui_KPerfWidget::setupUi(), ui, uiUpdated(), and updateMapper.
KPerfWidget::~KPerfWidget | ( | ) |
Definition at line 61 of file kperfwidget.cpp.
References ui.
[IN] | mode |
[OUT] | sw_enable |
[OUT] | hw_enable |
[IN] | mode |
[OUT] | sw_enable |
[OUT] | hw_enable mode determines how colors at a key and separate indicators should be handled: Mode | sw | hw _ | _ | _ NORMAL | No color change at the key | use the separate indicator depending on key state ALWAYS_ON | No color change at the key | switch on separate indicator ALWAYS_OFF | No color change at the key | switch off separate indicator RGB | use color change at the key depending on color sliders | switch off separate indicator BOTH | use color change at the key depending on color sliders | use the separate indicator depending on key state |
Definition at line 100 of file kperfwidget.cpp.
References ALWAYS_OFF, ALWAYS_ON, BOTH, NORMAL, KbPerf::NORMAL, KbPerf::OFF, KbPerf::ON, and RGB.
Referenced by uiUpdated().
|
privateslot |
Definition at line 221 of file kperfwidget.cpp.
References KbProfile::currentMode(), KbProfile::modes(), perf, KbMode::perf(), profile, and ModeSelectDialog::selection().
|
privateslot |
Definition at line 215 of file kperfwidget.cpp.
References KbPerf::iOpacity(), and perf.
|
private |
sw_enable | |
hw_enable |
Definition at line 72 of file kperfwidget.cpp.
References ALWAYS_OFF, ALWAYS_ON, BOTH, NORMAL, KbPerf::NORMAL, KbPerf::OFF, KbPerf::ON, and RGB.
Referenced by setPerf().
Definition at line 125 of file kperfwidget.cpp.
References BOTH, ColorButton::color(), KPerfWidget::IndicatorUi::color1, KPerfWidget::IndicatorUi::color2, KPerfWidget::IndicatorUi::color3, KPerfWidget::IndicatorUi::enable, KbPerf::getIndicator(), HW_I_COUNT, KPerfWidget::IndicatorUi::hwEnable, I_COUNT, indicators, Ui_KPerfWidget::intensityBox, KbPerf::iOpacity(), KeyMap::K95, k95Widgets, KbProfile::keyMap(), Ui_KPerfWidget::label_12, Ui_KPerfWidget::label_14, Ui_KPerfWidget::label_17, KeyMap::model(), Ui_KPerfWidget::muteBox, Ui_KPerfWidget::muteColorNA, Ui_KPerfWidget::muteColorOff, Ui_KPerfWidget::muteColorOn, perf, profile, raw2Mode(), RGB, KeyMap::STRAFE, and ui.
Referenced by KbWidget::modeChanged().
|
privateslot |
Definition at line 187 of file kperfwidget.cpp.
References ColorButton::color(), KPerfWidget::IndicatorUi::color1, KPerfWidget::IndicatorUi::color2, KPerfWidget::IndicatorUi::color3, KPerfWidget::IndicatorUi::enable, indicators, mode2Raw(), KbPerf::NONE, perf, and KbPerf::setIndicator().
Referenced by KPerfWidget().
|
static |
Definition at line 27 of file kperfwidget.h.
Referenced by setPerf().
|
static |
Definition at line 26 of file kperfwidget.h.
Referenced by KPerfWidget(), and setPerf().
|
private |
Definition at line 59 of file kperfwidget.h.
Referenced by KPerfWidget(), setPerf(), and uiUpdated().
|
private |
Definition at line 60 of file kperfwidget.h.
Referenced by KPerfWidget(), and setPerf().
|
private |
Definition at line 34 of file kperfwidget.h.
Referenced by on_copyButton_clicked(), on_intensityBox_valueChanged(), setPerf(), and uiUpdated().
|
private |
Definition at line 35 of file kperfwidget.h.
Referenced by on_copyButton_clicked(), and setPerf().
|
private |
Definition at line 32 of file kperfwidget.h.
Referenced by KPerfWidget(), setPerf(), and ~KPerfWidget().
|
private |
Definition at line 62 of file kperfwidget.h.
Referenced by KPerfWidget().