~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kcontrol/access/kcmaccess.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * kcmaccess.h
 
3
 *
 
4
 * Copyright (c) 2000 Matthias H�zer-Klpfel <hoelzer@kde.org>
 
5
 *
 
6
 */
 
7
 
 
8
#ifndef __kcmaccess_h__
 
9
#define __kcmaccess_h__
 
10
 
 
11
 
 
12
#define KDE3_SUPPORT
 
13
#include <kcmodule.h>
 
14
#undef KDE3_SUPPORT
 
15
#include <knuminput.h>
 
16
 
 
17
 
 
18
class QCheckBox;
 
19
class QLabel;
 
20
class QLineEdit;
 
21
class QPushButton;
 
22
class QRadioButton;
 
23
class KColorButton;
 
24
class QSlider;
 
25
 
 
26
class ExtendedIntNumInput : public KIntNumInput
 
27
{
 
28
        Q_OBJECT
 
29
 
 
30
        public:
 
31
    /**
 
32
          * Constructs an input control for integer values
 
33
          * with base 10 and initial value 0.
 
34
          */
 
35
                ExtendedIntNumInput(QWidget *parent=0);
 
36
 
 
37
    /**
 
38
          * Destructor
 
39
          */
 
40
                virtual ~ExtendedIntNumInput();
 
41
 
 
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
 
47
          */
 
48
                void setRange(int min, int max, int step=1, bool slider=true);
 
49
 
 
50
        private Q_SLOTS:
 
51
                void slotSpinValueChanged(int);
 
52
                void slotSliderValueChanged(int);
 
53
 
 
54
        private:
 
55
                int min, max;
 
56
                int sliderMax;
 
57
};
 
58
 
 
59
class KAccessConfig : public KCModule
 
60
{
 
61
  Q_OBJECT
 
62
 
 
63
public:
 
64
 
 
65
  KAccessConfig( QWidget *parent, const QVariantList& );
 
66
  virtual ~KAccessConfig();
 
67
 
 
68
  void load();
 
69
  void save();
 
70
  void defaults();
 
71
 
 
72
protected Q_SLOTS:
 
73
 
 
74
  void configChanged();
 
75
  void checkAccess();
 
76
  void invertClicked();
 
77
  void flashClicked();
 
78
  void selectSound();
 
79
  void changeFlashScreenColor();
 
80
  void configureKNotify();
 
81
 
 
82
private:
 
83
 
 
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;
 
91
 
 
92
  QCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff;
 
93
  QCheckBox *stickyKeysBeep, *toggleKeysBeep, *kNotifyModifiers;
 
94
  QPushButton *kNotifyModifiersButton;
 
95
 
 
96
  QCheckBox *slowKeys, *bounceKeys;
 
97
  ExtendedIntNumInput *slowKeysDelay, *bounceKeysDelay;
 
98
  QCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep;
 
99
  QCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep;
 
100
 
 
101
  QCheckBox *gestures, *gestureConfirmation;
 
102
  QCheckBox *timeout;
 
103
  KIntNumInput *timeoutDelay;
 
104
  QCheckBox *accessxBeep, *kNotifyAccessX;
 
105
  QPushButton *kNotifyAccessXButton;
 
106
};
 
107
 
 
108
 
 
109
#endif