Changeset View
Changeset View
Standalone View
Standalone View
src/kded/tablethandler.h
Show All 23 Lines | |||||
24 | #include "tablethandlerinterface.h" | 24 | #include "tablethandlerinterface.h" | ||
25 | #include "tabletinformation.h" | 25 | #include "tabletinformation.h" | ||
26 | #include "screenrotation.h" | 26 | #include "screenrotation.h" | ||
27 | 27 | | |||
28 | #include <QtCore/QObject> | 28 | #include <QtCore/QObject> | ||
29 | #include <QtCore/QString> | 29 | #include <QtCore/QString> | ||
30 | #include <QtCore/QStringList> | 30 | #include <QtCore/QStringList> | ||
31 | 31 | | |||
32 | class QScreen; | ||||
33 | | ||||
32 | namespace Wacom | 34 | namespace Wacom | ||
33 | { | 35 | { | ||
34 | class ScreenSpace; | 36 | class ScreenSpace; | ||
35 | class TabletProfile; | 37 | class TabletProfile; | ||
36 | class TabletHandlerPrivate; | 38 | class TabletHandlerPrivate; | ||
37 | 39 | | |||
38 | class TabletHandler : public TabletHandlerInterface | 40 | class TabletHandler : public TabletHandlerInterface | ||
39 | { | 41 | { | ||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 109 | public Q_SLOTS: | |||
128 | /** | 130 | /** | ||
129 | * @brief Handles rotating the tablet. | 131 | * @brief Handles rotating the tablet. | ||
130 | * | 132 | * | ||
131 | * This slot has to be connected to the X event notifier and executed | 133 | * This slot has to be connected to the X event notifier and executed | ||
132 | * when the screen is rotated. | 134 | * when the screen is rotated. | ||
133 | * | 135 | * | ||
134 | * @param screenRotation The screen rotation. | 136 | * @param screenRotation The screen rotation. | ||
135 | */ | 137 | */ | ||
136 | void onScreenRotated(const ScreenRotation& screenRotation); | 138 | void onScreenRotated(const Qt::ScreenOrientation &newScreenRotation); | ||
139 | | ||||
140 | /** | ||||
141 | * @brief Handles screens being connected and disconnected | ||||
142 | * @param screen Screen being connected or disconnected | ||||
143 | */ | ||||
144 | void onScreenAddedRemoved(QScreen *screen); | ||||
145 | | ||||
146 | /** | ||||
147 | * @brief Handles changes in existing screen's geometry | ||||
148 | */ | ||||
149 | void onScreenGeometryChanged(); | ||||
137 | 150 | | |||
138 | /** | 151 | /** | ||
139 | * Toggles the stylus/eraser to absolute/relative mode | 152 | * Toggles the stylus/eraser to absolute/relative mode | ||
140 | */ | 153 | */ | ||
141 | void onTogglePenMode(); | 154 | void onTogglePenMode(); | ||
142 | 155 | | |||
143 | /** | 156 | /** | ||
144 | * Toggles the touch tool on/off | 157 | * Toggles the touch tool on/off | ||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |