add more spacing
[personal-kdebase.git] / workspace / kcontrol / access / kcmaccess.h
blob9685e1fdb8982f702524e103cd1ed1fca96a0926
1 /**
2 * kcmaccess.h
4 * Copyright (c) 2000 Matthias H�zer-Klpfel <hoelzer@kde.org>
6 */
8 #ifndef __kcmaccess_h__
9 #define __kcmaccess_h__
12 #define KDE3_SUPPORT
13 #include <kcmodule.h>
14 #undef KDE3_SUPPORT
15 #include <knuminput.h>
18 class QCheckBox;
19 class QLabel;
20 class QLineEdit;
21 class QPushButton;
22 class QRadioButton;
23 class KColorButton;
24 class QSlider;
26 class ExtendedIntNumInput : public KIntNumInput
28 Q_OBJECT
30 public:
31 /**
32 * Constructs an input control for integer values
33 * with base 10 and initial value 0.
35 ExtendedIntNumInput(QWidget *parent=0);
37 /**
38 * Destructor
40 virtual ~ExtendedIntNumInput();
42 /**
43 * @param min minimum value
44 * @param max maximum value
45 * @param step step size for the QSlider
46 * @param slider whether the slider is created or not
48 void setRange(int min, int max, int step=1, bool slider=true);
50 private Q_SLOTS:
51 void slotSpinValueChanged(int);
52 void slotSliderValueChanged(int);
54 private:
55 int min, max;
56 int sliderMax;
59 class KAccessConfig : public KCModule
61 Q_OBJECT
63 public:
65 KAccessConfig( QWidget *parent, const QStringList& );
66 virtual ~KAccessConfig();
68 void load();
69 void save();
70 void defaults();
72 protected Q_SLOTS:
74 void configChanged();
75 void checkAccess();
76 void invertClicked();
77 void flashClicked();
78 void selectSound();
79 void changeFlashScreenColor();
80 void configureKNotify();
82 private:
84 QCheckBox *systemBell, *customBell, *visibleBell;
85 QRadioButton *invertScreen, *flashScreen;
86 QLabel *soundLabel, *colorLabel;
87 QLineEdit *soundEdit;
88 QPushButton *soundButton;
89 KColorButton *colorButton;
90 ExtendedIntNumInput *durationSlider;
92 QCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff;
93 QCheckBox *stickyKeysBeep, *toggleKeysBeep, *kNotifyModifiers;
94 QPushButton *kNotifyModifiersButton;
96 QCheckBox *slowKeys, *bounceKeys;
97 ExtendedIntNumInput *slowKeysDelay, *bounceKeysDelay;
98 QCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep;
99 QCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep;
101 QCheckBox *gestures, *gestureConfirmation;
102 QCheckBox *timeout;
103 KIntNumInput *timeoutDelay;
104 QCheckBox *accessxBeep, *kNotifyAccessX;
105 QPushButton *kNotifyAccessXButton;
109 #endif