Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_equalizer_column.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_EQUALIZER_COLUMN_H
8#define __KIS_EQUALIZER_COLUMN_H
9
10#include <QWidget>
11#include <QScopedPointer>
12#include <QSlider>
13
14#include "kritaanimationdocker_export.h"
15
16
17class KRITAANIMATIONDOCKER_EXPORT KisEqualizerColumn : public QWidget
18{
19 Q_OBJECT
20
21public:
22 KisEqualizerColumn(QWidget *parent, int id, const QString &title);
23 ~KisEqualizerColumn() override;
24
25 void setRightmost(bool value);
26
27 int value() const;
28 void setValue(int value);
29
30 bool state() const;
31 void setState(bool value);
32
33 void setForceDisabled(bool value);
34
35Q_SIGNALS:
36 void sigColumnChanged(int id, bool state, int value);
37
38private Q_SLOTS:
39 void slotSliderChanged(int value);
40 void slotButtonChanged(bool value);
41
42private:
43 struct Private;
44 const QScopedPointer<Private> m_d;
45
46 void updateState();
47};
48
49#endif /* __KIS_EQUALIZER_COLUMN_H */
float value(const T *src, size_t ch)
const QScopedPointer< Private > m_d
void sigColumnChanged(int id, bool state, int value)