diff options
Diffstat (limited to 'kcontrol/access/kcmaccess.h')
-rw-r--r-- | kcontrol/access/kcmaccess.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/kcontrol/access/kcmaccess.h b/kcontrol/access/kcmaccess.h new file mode 100644 index 000000000..14a441a59 --- /dev/null +++ b/kcontrol/access/kcmaccess.h @@ -0,0 +1,111 @@ +/** + * kcmaccess.h + * + * Copyright (c) 2000 Matthias H�zer-Klpfel <[email protected]> + * + */ + +#ifndef __kcmaccess_h__ +#define __kcmaccess_h__ + + +#include <tdecmodule.h> +#include <knuminput.h> + + +class TQCheckBox; +class TQComboBox; +class TQLabel; +class TQLineEdit; +class TQPushButton; +class TQRadioButton; +class KColorButton; +class TQSlider; +class KNumInput; +class TDEAboutData; + +class ExtendedIntNumInput : public KIntNumInput +{ + Q_OBJECT + + public: + /** + * Constructs an input control for integer values + * with base 10 and initial value 0. + */ + ExtendedIntNumInput(TQWidget *parent=0, const char *name=0); + + /** + * Destructor + */ + virtual ~ExtendedIntNumInput(); + + /** + * @param min minimum value + * @param max maximum value + * @param step step size for the QSlider + * @param slider whether the slider is created or not + */ + void setRange(int min, int max, int step=1, bool slider=true); + + private slots: + void slotSpinValueChanged(int); + void slotSliderValueChanged(int); + + private: + int min, max; + int sliderMax; +}; + +class KAccessConfig : public TDECModule +{ + Q_OBJECT + +public: + + KAccessConfig(TQWidget *parent = 0L, const char *name = 0L); + virtual ~KAccessConfig(); + + void load(); + void load(bool useDefaults); + void save(); + void defaults(); + +protected slots: + + void configChanged(); + void checkAccess(); + void invertClicked(); + void flashClicked(); + void selectSound(); + void changeFlashScreenColor(); + void configureKNotify(); + +private: + + TQCheckBox *systemBell, *customBell, *visibleBell; + TQRadioButton *invertScreen, *flashScreen; + TQLabel *soundLabel, *colorLabel; + TQLineEdit *soundEdit; + TQPushButton *soundButton; + KColorButton *colorButton; + ExtendedIntNumInput *durationSlider; + + TQCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff; + TQCheckBox *stickyKeysBeep, *toggleKeysBeep, *kNotifyModifiers; + TQPushButton *kNotifyModifiersButton; + + TQCheckBox *slowKeys, *bounceKeys; + ExtendedIntNumInput *slowKeysDelay, *bounceKeysDelay; + TQCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep; + TQCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep; + + TQCheckBox *gestures, *gestureConfirmation; + TQCheckBox *timeout; + KIntNumInput *timeoutDelay; + TQCheckBox *accessxBeep, *kNotifyAccessX; + TQPushButton *kNotifyAccessXButton; +}; + + +#endif |