12 #include <KUniqueApplication>
15 #include <Phonon/MediaObject>
18 #define explicit int_explicit // avoid compiler name clash in XKBlib.h
19 #include <X11/XKBlib.h>
26 class KAccessApp
: public KUniqueApplication
32 explicit KAccessApp(bool allowStyles
=true, bool GUIenabled
=true);
34 bool x11EventFilter(XEvent
*event
);
38 void setXkbOpcode(int opcode
);
44 void xkbStateNotify();
45 void xkbBellNotify(XkbBellNotifyEvent
*event
);
46 void xkbControlsNotify(XkbControlsNotifyEvent
*event
);
51 void activeWindowChanged(WId wid
);
60 void createDialogContents();
64 unsigned int features
;
65 unsigned int requestedFeatures
;
67 bool _systemBell
, _artsBell
, _visibleBell
, _visibleBellInvert
;
68 QColor _visibleBellColor
;
69 int _visibleBellPause
;
71 bool _gestures
, _gestureConfirmation
;
72 bool _kNotifyModifiers
, _kNotifyAccessX
;
76 Phonon::MediaObject
*_player
;
77 QString _currentPlayerSource
;
82 QLabel
*featuresLabel
;
83 KComboBox
*showModeCombobox
;
90 class VisualBell
: public QWidget
97 : QWidget(( QWidget
* )0, Qt::X11BypassWindowManagerHint
), _pause(pause
)
103 void paintEvent(QPaintEvent
*);