Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tablet_debugger.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_TABLET_DEBUGGER_H
8#define __KIS_TABLET_DEBUGGER_H
9
10#include <QTabletEvent>
11#include <QLoggingCategory>
12
14{
15public:
18
19 void toggleDebugging();
20 bool debugEnabled() const;
21 bool initializationDebugEnabled() const;
22 bool debugRawTabletValues() const;
23
24 bool shouldEatDriverShortcuts() const;
25
26 QString eventToString(const QMouseEvent &ev, const QString &prefix);
27 QString eventToString(const QKeyEvent &ev, const QString &prefix);
28 QString eventToString(const QWheelEvent &ev, const QString &prefix);
29 QString eventToString(const QTouchEvent &ev, const QString &prefix);
30 QString eventToString(const QTabletEvent &ev, const QString &prefix);
31 QString eventToString(const QEvent &ev, const QString &prefix);
32
33 static QString tabletDeviceToString(const QTabletEvent &event);
34 static QString pointerTypeToString(const QTabletEvent &event);
35 static QString exTypeToString(QEvent::Type type);
36
37
38private:
41};
42
43#endif /* __KIS_TABLET_DEBUGGER_H */
QString eventToString(const QMouseEvent &ev, const QString &prefix)
static KisTabletDebugger * instance()
static QString pointerTypeToString(const QTabletEvent &event)
static QString tabletDeviceToString(const QTabletEvent &event)
static QString exTypeToString(QEvent::Type type)
bool initializationDebugEnabled() const
bool shouldEatDriverShortcuts() const
bool debugRawTabletValues() const