50 inline QPoint
dpi(
int index)
const {
if(index < 0 || index >=
DPI_COUNT)
return QPoint();
return QPoint(
dpiX[index],
dpiY[index]); }
51 void dpi(
int index,
const QPoint& newValue);
55 inline void dpi(
int index,
int newValue) {
dpi(index, QPoint(newValue, newValue)); }
73 quint64
pushDpi(
const QPoint& newDpi);
74 inline quint64
pushDpi(
int newDpi) {
return pushDpi(QPoint(newDpi, newDpi)); }
76 void popDpi(quint64 pushIdx);
110 void getIndicator(
indicator index, QColor& color1, QColor& color2, QColor& color3,
bool& software_enable,
i_hw& hardware_enable);
111 void setIndicator(
indicator index,
const QColor& color1,
const QColor& color2,
const QColor& color3 = QColor(),
bool software_enable =
true,
i_hw hardware_enable =
NORMAL);
115 void update(QFile&
cmd,
int notifyNumber,
bool force,
bool saveCustomDpi);
152 void _curDpi(
const QPoint& newDpi);
static const int HW_I_COUNT
void sniperDpi(const QPoint &newValue)
void sniperDpi(int newValue)
void _curDpi(const QPoint &newDpi)
void dpiIndicator(bool newDpiIndicator)
void dpiEnabled(int index, bool newEnabled)
bool dpiEnabled(int index) const
void dpiColor(int index, const QColor &newColor)
QColor dpiColor(int index) const
void iOpacity(float newIOpacity)
QMap< quint64, QPoint > pushedDpis
height liftHeight() const
void popDpi(quint64 pushIdx)
bool dpiIndicator() const
KbMode * modeParent() const
quint64 pushDpi(const QPoint &newDpi)
QPoint dpi(int index) const
static const int DPI_COUNT
void setIndicator(indicator index, const QColor &color1, const QColor &color2, const QColor &color3=QColor(), bool software_enable=true, i_hw hardware_enable=NORMAL)
void getIndicator(indicator index, QColor &color1, QColor &color2, QColor &color3, bool &software_enable, i_hw &hardware_enable)
void update(QFile &cmd, int notifyNumber, bool force, bool saveCustomDpi)
void dpi(int index, int newValue)
quint64 pushDpi(int newDpi)
QColor dpiClr[DPI_COUNT+1]
QColor iColor[I_COUNT][2]
const KbPerf & operator=(const KbPerf &rhs)
void lightIndicator(const char *name, QRgb rgba)
void applyIndicators(int modeIndex, const bool indicatorState[HW_I_COUNT])
void save(CkbSettings &settings)
void load(CkbSettings &settings)