1 /***************************************************************************
2 * Copyright (C) 2003,2005,2006 by Martin Koller *
4 * This file is part of the KDE Control Center Module for Joysticks *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20 ***************************************************************************/
37 // the widget which displays all buttons, values, etc.
38 class JoyWidget
: public QWidget
43 JoyWidget(QWidget
*parent
= 0);
47 // initialize list of possible devices and open the first available
51 // reset calibration values to their value when this KCM was started
52 void resetCalibration();
56 void deviceChanged(const QString
&dev
);
57 void traceChanged(bool);
58 void calibrateDevice();
61 void showDeviceProps(JoyDevice
*joy
); // fill widgets with given device parameters
62 void restoreCurrDev(); // restores the content of the combobox to reflect the current open device
66 QLabel
*message
; // in case of no device, show here a message rather than in a dialog
69 QTableWidget
*buttonTbl
;
70 QTableWidget
*axesTbl
;
72 QPushButton
*calibrate
;