add more spacing
[personal-kdebase.git] / workspace / kcontrol / keyboard / kcmmisc.h
blobd0f0d3e944701f760e141953e3291a7a8124b6be
1 /*
2 * keyboard.h
4 * Copyright (c) 1997 Patrick Dowler dowler@morgul.fsh.uvic.ca
6 * Requires the Qt widget libraries, available at no cost at
7 * http://www.troll.no/
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.
24 #ifndef __KCMMISC_H__
25 #define __KCMMISC_H__
28 #include <kapplication.h>
29 #include <kcmodule.h>
31 class Ui_KeyboardConfigWidget;
33 class KeyboardConfig : public KCModule
35 Q_OBJECT
36 public:
37 KeyboardConfig(QWidget *parent, const QVariantList &args);
39 void save();
40 void load();
41 void defaults();
43 QString quickHelp() const;
45 static void init_keyboard();
47 private slots:
48 void changed();
50 void delaySliderChanged (int value);
51 void delaySpinboxChanged (int value);
52 void rateSliderChanged (int value);
53 void rateSpinboxChanged (double value);
55 private:
57 void setClick( int );
58 void setRepeat( int flag, int delay, double rate);
59 void setRepeatRate( int );
60 void setNumLockState( int );
62 int getClick();
63 int getRepeatRate();
64 int getNumLockState();
66 int sliderMax;
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);
75 #endif