Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDlgCustomTabletResolution.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISDLGCUSTOMTABLETRESOLUTION_H
8#define KISDLGCUSTOMTABLETRESOLUTION_H
9
10#include <QDialog>
11#include "kritaui_export.h"
12
13namespace Ui {
15}
16
17class KRITAUI_EXPORT KisDlgCustomTabletResolution : public QDialog
18{
19 Q_OBJECT
20
21public:
22 enum Mode {
23 USE_WINTAB = 0,
25 USE_CUSTOM
26 };
27
28 void accept() override;
29
30public:
31 explicit KisDlgCustomTabletResolution(QWidget *parent = nullptr);
33
34 static QRect calcNativeScreenRect();
35 static Mode getTabletMode(QRect *customRect);
36
37 static void applyConfiguration(Mode mode, const QRect &customRect);
38
39private:
40 Ui::KisDlgCustomTabletResolution *ui;
41};
42
43#endif // KISDLGCUSTOMTABLETRESOLUTION_H
Ui::KisDlgCustomTabletResolution * ui