Changeset View
Changeset View
Standalone View
Standalone View
kcms/input/backends/x11/evdev_settings.h
- This file was copied to kcms/input/backends/x11/libinput_settings.h.
Show All 14 Lines | |||||
15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | 16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef EVDEVSETTINGS_H | 20 | #ifndef EVDEVSETTINGS_H | ||
21 | #define EVDEVSETTINGS_H | 21 | #define EVDEVSETTINGS_H | ||
22 | 22 | | |||
23 | #include <KConfig> | 23 | class X11EvdevBackend; | ||
24 | | ||||
25 | class X11Backend; | | |||
26 | 24 | | |||
27 | enum class Handed { | 25 | enum class Handed { | ||
28 | Right = 0, | 26 | Right = 0, | ||
29 | Left = 1, | 27 | Left = 1, | ||
30 | NotSupported = -1 | 28 | NotSupported = -1 | ||
31 | }; | 29 | }; | ||
32 | 30 | | |||
33 | struct EvdevSettings | 31 | struct EvdevSettings | ||
34 | { | 32 | { | ||
35 | void save(); | 33 | void save(); | ||
36 | void load(X11Backend *); | 34 | void load(X11EvdevBackend *); | ||
37 | void apply(X11Backend *, bool force = false); | 35 | void apply(X11EvdevBackend *, bool force = false); | ||
38 | 36 | | |||
39 | bool handedEnabled; | 37 | bool handedEnabled; | ||
40 | bool handedNeedsApply; | 38 | bool handedNeedsApply; | ||
41 | Handed handed; | 39 | Handed handed; | ||
42 | double accelRate; | 40 | double accelRate; | ||
43 | int thresholdMove; | 41 | int thresholdMove; | ||
44 | int doubleClickInterval; | 42 | int doubleClickInterval; | ||
45 | int dragStartTime; | 43 | int dragStartTime; | ||
46 | int dragStartDist; | 44 | int dragStartDist; | ||
47 | bool singleClick; | 45 | bool singleClick; | ||
48 | int wheelScrollLines; | 46 | int wheelScrollLines; | ||
49 | bool reverseScrollPolarity; | 47 | bool reverseScrollPolarity; | ||
50 | QString currentAccelProfile; | | |||
51 | }; | 48 | }; | ||
52 | 49 | | |||
53 | #endif // EVDEVSETTINGS_H | 50 | #endif // EVDEVSETTINGS_H |