summaryrefslogtreecommitdiffstats
path: root/kcontrol/access/kcmaccess.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/access/kcmaccess.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/access/kcmaccess.h')
-rw-r--r--kcontrol/access/kcmaccess.h111
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..c40152324
--- /dev/null
+++ b/kcontrol/access/kcmaccess.h
@@ -0,0 +1,111 @@
+/**
+ * kcmaccess.h
+ *
+ * Copyright (c) 2000 Matthias H�zer-Klpfel <hoelzer@kde.org>
+ *
+ */
+
+#ifndef __kcmaccess_h__
+#define __kcmaccess_h__
+
+
+#include <kcmodule.h>
+#include <knuminput.h>
+
+
+class QCheckBox;
+class QComboBox;
+class QLabel;
+class QLineEdit;
+class QPushButton;
+class QRadioButton;
+class KColorButton;
+class QSlider;
+class KNumInput;
+class KAboutData;
+
+class ExtendedIntNumInput : public KIntNumInput
+{
+ Q_OBJECT
+
+ public:
+ /**
+ * Constructs an input control for integer values
+ * with base 10 and initial value 0.
+ */
+ ExtendedIntNumInput(QWidget *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 KCModule
+{
+ Q_OBJECT
+
+public:
+
+ KAccessConfig(QWidget *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:
+
+ QCheckBox *systemBell, *customBell, *visibleBell;
+ QRadioButton *invertScreen, *flashScreen;
+ QLabel *soundLabel, *colorLabel;
+ QLineEdit *soundEdit;
+ QPushButton *soundButton;
+ KColorButton *colorButton;
+ ExtendedIntNumInput *durationSlider;
+
+ QCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff;
+ QCheckBox *stickyKeysBeep, *toggleKeysBeep, *kNotifyModifiers;
+ QPushButton *kNotifyModifiersButton;
+
+ QCheckBox *slowKeys, *bounceKeys;
+ ExtendedIntNumInput *slowKeysDelay, *bounceKeysDelay;
+ QCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep;
+ QCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep;
+
+ QCheckBox *gestures, *gestureConfirmation;
+ QCheckBox *timeout;
+ KIntNumInput *timeoutDelay;
+ QCheckBox *accessxBeep, *kNotifyAccessX;
+ QPushButton *kNotifyAccessXButton;
+};
+
+
+#endif