4 * Copyright (c) 1997 Patrick Dowler dowler@morgul.fsh.uvic.ca
6 * Requires the Qt widget libraries, available at no cost at
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28 #include <kapplication.h>
31 class Ui_KeyboardConfigWidget
;
33 class KeyboardConfig
: public KCModule
37 KeyboardConfig(QWidget
*parent
, const QVariantList
&args
);
43 QString
quickHelp() const;
45 static void init_keyboard();
50 void delaySliderChanged (int value
);
51 void delaySpinboxChanged (int value
);
52 void rateSliderChanged (int value
);
53 void rateSpinboxChanged (double value
);
58 void setRepeat( int flag
, int delay
, double rate
);
59 void setRepeatRate( int );
60 void setNumLockState( int );
64 int getNumLockState();
67 int clickVolume
, keyboardRepeat
;
68 int numlockState
; // 0 = on, 1 = off, 2 = don't change
69 Ui_KeyboardConfigWidget
* ui
;
72 void numlockx_change_numlock_state( bool set_P
);
73 void set_repeatrate(int delay
, double rate
);