Warning, file /plasma/wacomtablet/src/kded/xsetwacomproperty.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * This file is part of the KDE wacomtablet project. For copyright
0003  * information and license terms see the AUTHORS and COPYING files
0004  * in the top-level directory of this distribution.
0005  *
0006  * This program is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU General Public License as
0008  * published by the Free Software Foundation; either version 2 of
0009  * the License, or (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License
0017  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
0018  */
0019 
0020 #include "xsetwacomproperty.h"
0021 
0022 using namespace Wacom;
0023 
0024 // instances container specialization instantiation
0025 template<>
0026 XsetwacomPropertyTemplateSpecialization::PropertySetTemplateSpecialization::Container
0027     XsetwacomPropertyTemplateSpecialization::PropertySetTemplateSpecialization::instances =
0028         XsetwacomPropertyTemplateSpecialization::PropertySetTemplateSpecialization::Container();
0029 
0030 // ALWAYS MAKE SURE THIS LIST HAS AN ORDER WHICH CAN BE USED DIRECTLY WITH XSETWACOM!
0031 // SOME PROPERTIES NEED TO BE SET BEFORE OTHERS!
0032 //
0033 const XsetwacomProperty XsetwacomProperty::Button1(Property::Button1, QLatin1String("Button 1"));
0034 const XsetwacomProperty XsetwacomProperty::Button2(Property::Button2, QLatin1String("Button 2"));
0035 const XsetwacomProperty XsetwacomProperty::Button3(Property::Button3, QLatin1String("Button 3"));
0036 const XsetwacomProperty XsetwacomProperty::Button4(Property::Button4, QLatin1String("Button 4"));
0037 const XsetwacomProperty XsetwacomProperty::Button5(Property::Button5, QLatin1String("Button 5"));
0038 const XsetwacomProperty XsetwacomProperty::Button6(Property::Button6, QLatin1String("Button 6"));
0039 const XsetwacomProperty XsetwacomProperty::Button7(Property::Button7, QLatin1String("Button 7"));
0040 const XsetwacomProperty XsetwacomProperty::Button8(Property::Button8, QLatin1String("Button 8"));
0041 const XsetwacomProperty XsetwacomProperty::Button9(Property::Button9, QLatin1String("Button 9"));
0042 const XsetwacomProperty XsetwacomProperty::Button10(Property::Button10, QLatin1String("Button 10"));
0043 const XsetwacomProperty XsetwacomProperty::Button11(Property::Button11, QLatin1String("Button 11"));
0044 const XsetwacomProperty XsetwacomProperty::Button12(Property::Button12, QLatin1String("Button 12"));
0045 const XsetwacomProperty XsetwacomProperty::Button13(Property::Button13, QLatin1String("Button 13"));
0046 const XsetwacomProperty XsetwacomProperty::Button14(Property::Button14, QLatin1String("Button 14"));
0047 const XsetwacomProperty XsetwacomProperty::Button15(Property::Button15, QLatin1String("Button 15"));
0048 const XsetwacomProperty XsetwacomProperty::Button16(Property::Button16, QLatin1String("Button 16"));
0049 const XsetwacomProperty XsetwacomProperty::Button17(Property::Button17, QLatin1String("Button 17"));
0050 const XsetwacomProperty XsetwacomProperty::Button18(Property::Button18, QLatin1String("Button 18"));
0051 const XsetwacomProperty XsetwacomProperty::CursorProximity(Property::CursorProximity, QLatin1String("CursorProximity"));
0052 const XsetwacomProperty XsetwacomProperty::Gesture(Property::Gesture, QLatin1String("Gesture"));
0053 const XsetwacomProperty XsetwacomProperty::Mode(Property::Mode, QLatin1String("Mode"));
0054 const XsetwacomProperty XsetwacomProperty::PressureCurve(Property::PressureCurve, QLatin1String("PressureCurve"));
0055 const XsetwacomProperty XsetwacomProperty::RawSample(Property::RawSample, QLatin1String("RawSample"));
0056 const XsetwacomProperty XsetwacomProperty::RelWheelDown(Property::RelWheelDown, QLatin1String("RelWheelDown"));
0057 const XsetwacomProperty XsetwacomProperty::RelWheelUp(Property::RelWheelUp, QLatin1String("RelWheelUp"));
0058 const XsetwacomProperty XsetwacomProperty::Rotate(Property::Rotate, QLatin1String("Rotate"));
0059 const XsetwacomProperty XsetwacomProperty::MapToOutput(Property::MapToOutput, QLatin1String("MapToOutput")); // needs to be applied after rotation
0060 const XsetwacomProperty XsetwacomProperty::Area(Property::Area, QLatin1String("Area")); // needs to be applied after rotation
0061 const XsetwacomProperty XsetwacomProperty::ResetArea(Property::ResetArea, QLatin1String("ResetArea")); // special property which takes precedence over "Area".
0062 const XsetwacomProperty XsetwacomProperty::ScrollDistance(Property::ScrollDistance, QLatin1String("ScrollDistance"));
0063 const XsetwacomProperty XsetwacomProperty::StripLeftDown(Property::StripLeftDown, QLatin1String("StripLeftDown"));
0064 const XsetwacomProperty XsetwacomProperty::StripLeftUp(Property::StripLeftUp, QLatin1String("StripLeftUp"));
0065 const XsetwacomProperty XsetwacomProperty::StripRightDown(Property::StripRightDown, QLatin1String("StripRightDown"));
0066 const XsetwacomProperty XsetwacomProperty::StripRightUp(Property::StripRightUp, QLatin1String("StripRightUp"));
0067 const XsetwacomProperty XsetwacomProperty::Suppress(Property::Suppress, QLatin1String("Suppress"));
0068 const XsetwacomProperty XsetwacomProperty::TabletPcButton(Property::TabletPcButton, QLatin1String("TabletPcButton"));
0069 const XsetwacomProperty XsetwacomProperty::TapTime(Property::TapTime, QLatin1String("TapTime"));
0070 const XsetwacomProperty XsetwacomProperty::Threshold(Property::Threshold, QLatin1String("Threshold"));
0071 const XsetwacomProperty XsetwacomProperty::Touch(Property::Touch, QLatin1String("Touch"));
0072 const XsetwacomProperty XsetwacomProperty::ZoomDistance(Property::ZoomDistance, QLatin1String("ZoomDistance"));
0073 const XsetwacomProperty XsetwacomProperty::AbsWheel2Down(Property::AbsWheel2Down, QLatin1String("AbsWheel2Down"));
0074 const XsetwacomProperty XsetwacomProperty::AbsWheel2Up(Property::AbsWheel2Up, QLatin1String("AbsWheel2Up"));
0075 const XsetwacomProperty XsetwacomProperty::AbsWheelDown(Property::AbsWheelDown, QLatin1String("AbsWheelDown"));
0076 const XsetwacomProperty XsetwacomProperty::AbsWheelUp(Property::AbsWheelUp, QLatin1String("AbsWheelUp"));