Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_timed_signal_threshold.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_TIMED_SIGNAL_THRESHOLD_H
8#define __KIS_TIMED_SIGNAL_THRESHOLD_H
9
10#include "kritaimage_export.h"
11#include <QScopedPointer>
12#include <QObject>
13
14
21class KRITAIMAGE_EXPORT KisTimedSignalThreshold : public QObject
22{
23 Q_OBJECT
24public:
25 KisTimedSignalThreshold(int delay, int cancelDelay = -1, QObject *parent = 0);
26 ~KisTimedSignalThreshold() override;
27
28public Q_SLOTS:
32 void forceDone();
33
39 void start();
40
44 void stop();
45
49 void setEnabled(bool value);
50
51
55 void setDelayThreshold(int delay, int cancelDelay = -1);
56
57Q_SIGNALS:
58 void timeout();
59
60private:
61 struct Private;
62 const QScopedPointer<Private> m_d;
63};
64
65#endif /* __KIS_TIMED_SIGNAL_THRESHOLD_H */
float value(const T *src, size_t ch)
const QScopedPointer< Private > m_d