109class TabletSettingsTab :
public WdgTabletSettings
115 TabletSettingsTab( TQWidget *parent = 0,
const char *name = 0 );
119 void applySettings();
122 void slotActivateDevice(
int deviceIndex);
123 void slotSetDeviceEnabled(
bool enabled);
124 void slotConfigureDevice();
125 void applyTabletDeviceSettings();
127#ifdef EXTENDED_X11_TABLET_SUPPORT
130 class DeviceSettings {
132 DeviceSettings(KisCanvasWidget::X11TabletDevice *tabletDevice,
bool enabled,
133 TQ_INT32 xAxis, TQ_INT32 yAxis, TQ_INT32 pressureAxis,
134 TQ_INT32 xTiltAxis, TQ_INT32 yTiltAxis, TQ_INT32 wheelAxis,
135 TQ_INT32 toolIDAxis, TQ_INT32 serialNumberAxis);
138 void applySettings();
140 void setEnabled(
bool enabled);
141 bool enabled()
const;
143 TQ_INT32 numAxes()
const;
145 void setXAxis(TQ_INT32 axis);
146 void setYAxis(TQ_INT32 axis);
147 void setPressureAxis(TQ_INT32 axis);
148 void setXTiltAxis(TQ_INT32 axis);
149 void setYTiltAxis(TQ_INT32 axis);
150 void setWheelAxis(TQ_INT32 axis);
151 void setToolIDAxis(TQ_INT32 axis);
152 void setSerialNumberAxis(TQ_INT32 axis);
154 TQ_INT32 xAxis()
const;
155 TQ_INT32 yAxis()
const;
156 TQ_INT32 pressureAxis()
const;
157 TQ_INT32 xTiltAxis()
const;
158 TQ_INT32 yTiltAxis()
const;
159 TQ_INT32 wheelAxis()
const;
160 TQ_INT32 toolIDAxis()
const;
161 TQ_INT32 serialNumberAxis()
const;
164 KisCanvasWidget::X11TabletDevice *m_tabletDevice;
169 TQ_INT32 m_pressureAxis;
170 TQ_INT32 m_xTiltAxis;
171 TQ_INT32 m_yTiltAxis;
172 TQ_INT32 m_wheelAxis;
173 TQ_INT32 m_toolIDAxis;
174 TQ_INT32 m_serialNumberAxis;
177 class TabletDeviceSettingsDialog :
public KDialogBase {
178 typedef KDialogBase super;
181 TabletDeviceSettingsDialog(
const TQString& deviceName,
182 DeviceSettings settings,
183 TQWidget *parent = 0,
184 const char *name = 0);
185 virtual ~TabletDeviceSettingsDialog();
187 DeviceSettings settings();
190 WdgTabletDeviceSettings *m_page;
191 DeviceSettings m_settings;
194 void initTabletDevices();
196 TQValueVector<DeviceSettings> m_deviceSettings;