kwin/autotests/libinput
Roman Gilg 87150816c7 [libinput] Rework device config writing and save enum of ScrollMode as integer
This is a larger patch rewriting some parts of the config saving functionality
in device.cpp in order to:

1. Make it possible to save ScrollMode as integer instead of using three booleans
2. Simplify the addition of new keys or types in the future

Changes in detail:
a) Adds new ConfigKey ScrollMethod and removed now unnecessary keys per method
b) Adds constructors to the ConfigData struct. This allows to create ConfigData
   entries for s_configData without the need of stating empty brackets and the
   useage of default values.
c) Use plain member function pointers instead of std::function, in order to
   compactify code and have better compile output in case something goes wrong.
c) Cleans up ScrollMethod functions and adds interface methods for transforming
   the saved integer into type enum libinput_config_scroll_method.
d) Adjusts auto test for loading the ScrollMethod value from the config file.

Reviewers: #kwin, graesslin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D3460
2016-11-22 19:18:15 +01:00
..
CMakeLists.txt [libinput] Load/store device configuration 2016-11-07 13:45:48 +01:00
context_test.cpp [libinput] A not valid LibInput::Context should return -1 as filedescriptor 2016-06-02 16:23:23 +02:00
device_test.cpp [libinput] Rework device config writing and save enum of ScrollMode as integer 2016-11-22 19:18:15 +01:00
gesture_event_test.cpp [libinput] Add support for gesture events 2016-08-08 09:15:06 +02:00
input_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
key_event_test.cpp [autotest/libinput] Verify that Event::create can handle a null argument 2016-05-31 10:15:44 +02:00
mock_libinput.cpp [libinput] Query defaultLeftHanded, save leftHanded, fix ScrollMode config 2016-11-22 14:49:01 +01:00
mock_libinput.h [libinput] Query defaultLeftHanded, save leftHanded, fix ScrollMode config 2016-11-22 14:49:01 +01:00
mock_udev.cpp [autotest/libinput] Add a basic test for Context 2016-06-02 15:55:34 +02:00
mock_udev.h [autotest/libinput] Add a basic test for Context 2016-06-02 15:55:34 +02:00
pointer_event_test.cpp Support for relative pointer motion events 2016-10-12 11:26:46 +02:00
touch_event_test.cpp [autotest/libinput] Add a mocked test for Libinput::TouchEvent 2016-05-31 10:14:28 +02:00