ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
mperfwidget.h
Go to the documentation of this file.
1
#ifndef MPERFWIDGET_H
2
#define MPERFWIDGET_H
3
4
#include <QWidget>
5
#include <QSlider>
6
#include <QSpinBox>
7
#include <QCheckBox>
8
#include <QRadioButton>
9
#include <QSignalMapper>
10
#include "
kbperf.h
"
11
#include "
kbprofile.h
"
12
#include "
colorbutton.h
"
13
14
namespace
Ui {
15
class
MPerfWidget
;
16
}
17
18
class
MPerfWidget
:
public
QWidget
19
{
20
Q_OBJECT
21
22
public
:
23
explicit
MPerfWidget
(
QWidget
*parent = 0);
24
~MPerfWidget
();
25
26
void
setPerf
(
KbPerf
* newPerf,
KbProfile
* newProfile);
27
28
static
const
int
DPI_COUNT
=
KbPerf::DPI_COUNT
;
29
static
const
int
DPI_MIN
=
KbPerf::DPI_MIN
,
DPI_MAX
=
KbPerf::DPI_MAX
;
30
31
private
:
32
Ui::MPerfWidget
*
ui
;
33
34
KbPerf
*
perf
;
35
KbProfile
*
profile
;
36
37
struct
DpiUi
{
38
ColorButton
*
indicator
;
39
QSlider*
xSlider
, *
ySlider
;
40
QSpinBox*
xBox
, *
yBox
;
41
QCheckBox*
enableCheck
;
42
};
43
DpiUi
stages
[
DPI_COUNT
];
44
bool
_xyLink
;
45
bool
colorLink
;
46
47
QSignalMapper
buttonMapper1
,
buttonMapper2
;
48
QSignalMapper
sliderXMapper
,
sliderYMapper
;
49
QSignalMapper
boxXMapper
,
boxYMapper
;
50
QSignalMapper
enableMapper
;
51
52
// Hack: prevent recursive slot calls
53
bool
isSetting
;
54
55
private
slots:
56
void
colorClicked
(
int
index);
57
void
colorChanged
(
int
index);
58
void
sliderXMoved
(
int
index);
59
void
sliderYMoved
(
int
index);
60
void
boxXChanged
(
int
index);
61
void
boxYChanged
(
int
index);
62
void
enableChanged
(
int
index);
63
64
void
on_xyBox_clicked
(
bool
checked);
65
void
on_indicBox_clicked
(
bool
checked);
66
void
on_aSnapBox_clicked
(
bool
checked);
67
void
on_lHeightBox_activated
(
int
index);
68
void
on_copyButton_clicked
();
69
void
on_spinBox_valueChanged
(
int
arg1);
70
};
71
72
#endif // MPERFWIDGET_H
MPerfWidget::on_lHeightBox_activated
void on_lHeightBox_activated(int index)
Definition:
mperfwidget.cpp:205
MPerfWidget::sliderXMoved
void sliderXMoved(int index)
Definition:
mperfwidget.cpp:128
MPerfWidget::MPerfWidget
MPerfWidget(QWidget *parent=0)
Definition:
mperfwidget.cpp:8
MPerfWidget::on_xyBox_clicked
void on_xyBox_clicked(bool checked)
Definition:
mperfwidget.cpp:191
MPerfWidget::_xyLink
bool _xyLink
Definition:
mperfwidget.h:44
MPerfWidget::ui
Ui::MPerfWidget * ui
Definition:
mperfwidget.h:32
colorbutton.h
MPerfWidget::DPI_COUNT
static const int DPI_COUNT
Definition:
mperfwidget.h:28
QWidget
Ui::MPerfWidget
Definition:
ui_mperfwidget.h:768
MPerfWidget::DpiUi::enableCheck
QCheckBox * enableCheck
Definition:
mperfwidget.h:41
KbPerf::DPI_MIN
static const int DPI_MIN
Definition:
kbperf.h:47
ColorButton
Definition:
colorbutton.h:6
MPerfWidget::sliderXMapper
QSignalMapper sliderXMapper
Definition:
mperfwidget.h:48
kbperf.h
KbPerf::DPI_MAX
static const int DPI_MAX
Definition:
kbperf.h:47
MPerfWidget::DpiUi::xBox
QSpinBox * xBox
Definition:
mperfwidget.h:40
MPerfWidget::DpiUi::indicator
ColorButton * indicator
Definition:
mperfwidget.h:38
MPerfWidget::boxYMapper
QSignalMapper boxYMapper
Definition:
mperfwidget.h:49
MPerfWidget::buttonMapper2
QSignalMapper buttonMapper2
Definition:
mperfwidget.h:47
MPerfWidget::enableChanged
void enableChanged(int index)
Definition:
mperfwidget.cpp:187
MPerfWidget::colorClicked
void colorClicked(int index)
Definition:
mperfwidget.cpp:81
MPerfWidget::isSetting
bool isSetting
Definition:
mperfwidget.h:53
MPerfWidget::DpiUi::ySlider
QSlider * ySlider
Definition:
mperfwidget.h:39
MPerfWidget::profile
KbProfile * profile
Definition:
mperfwidget.h:35
MPerfWidget::enableMapper
QSignalMapper enableMapper
Definition:
mperfwidget.h:50
KbPerf
Definition:
kbperf.h:15
MPerfWidget::on_indicBox_clicked
void on_indicBox_clicked(bool checked)
Definition:
mperfwidget.cpp:197
MPerfWidget::colorChanged
void colorChanged(int index)
Definition:
mperfwidget.cpp:86
MPerfWidget::on_spinBox_valueChanged
void on_spinBox_valueChanged(int arg1)
Definition:
mperfwidget.cpp:219
KbProfile
Definition:
kbprofile.h:11
KbPerf::DPI_COUNT
static const int DPI_COUNT
Definition:
kbperf.h:46
MPerfWidget
Definition:
mperfwidget.h:18
MPerfWidget::sliderYMapper
QSignalMapper sliderYMapper
Definition:
mperfwidget.h:48
MPerfWidget::boxYChanged
void boxYChanged(int index)
Definition:
mperfwidget.cpp:172
MPerfWidget::colorLink
bool colorLink
Definition:
mperfwidget.h:45
MPerfWidget::on_aSnapBox_clicked
void on_aSnapBox_clicked(bool checked)
Definition:
mperfwidget.cpp:201
MPerfWidget::~MPerfWidget
~MPerfWidget()
Definition:
mperfwidget.cpp:56
MPerfWidget::DpiUi::yBox
QSpinBox * yBox
Definition:
mperfwidget.h:40
kbprofile.h
MPerfWidget::perf
KbPerf * perf
Definition:
mperfwidget.h:34
MPerfWidget::DPI_MIN
static const int DPI_MIN
Definition:
mperfwidget.h:29
MPerfWidget::boxXMapper
QSignalMapper boxXMapper
Definition:
mperfwidget.h:49
MPerfWidget::DPI_MAX
static const int DPI_MAX
Definition:
mperfwidget.h:29
MPerfWidget::DpiUi::xSlider
QSlider * xSlider
Definition:
mperfwidget.h:39
MPerfWidget::buttonMapper1
QSignalMapper buttonMapper1
Definition:
mperfwidget.h:47
MPerfWidget::on_copyButton_clicked
void on_copyButton_clicked()
Definition:
mperfwidget.cpp:209
MPerfWidget::stages
DpiUi stages[DPI_COUNT]
Definition:
mperfwidget.h:43
MPerfWidget::setPerf
void setPerf(KbPerf *newPerf, KbProfile *newProfile)
Definition:
mperfwidget.cpp:60
MPerfWidget::DpiUi
Definition:
mperfwidget.h:37
MPerfWidget::sliderYMoved
void sliderYMoved(int index)
Definition:
mperfwidget.cpp:142
MPerfWidget::boxXChanged
void boxXChanged(int index)
Definition:
mperfwidget.cpp:157
src
ckb
mperfwidget.h
Generated on Sat Jan 20 2018 16:59:28 for ckb-next by
1.8.6