1
/****************************************************************************
4
** Definition of QMultiInputContext class
6
** Copyright (C) 2004 immodule for Qt Project. All rights reserved.
8
** This file is written to contribute to Trolltech AS under their own
9
** licence. You may use this file under your Qt license. Following
10
** description is copied from their original file headers. Contact
11
** immodule-qt@freedesktop.org if any conditions of this licensing are
14
****************************************************************************/
16
/****************************************************************************
18
** Copyright (C) 1992-2004 Trolltech AS. All rights reserved.
20
** This file is part of the input method module of the Qt Toolkit.
22
** Licensees holding valid Qt Preview licenses may use this file in
23
** accordance with the Qt Preview License Agreement provided with the
26
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
27
** information about Qt Commercial License Agreements.
29
** Contact info@trolltech.com if any conditions of this licensing are
32
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
33
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
35
****************************************************************************/
37
#ifndef QMULTIINPUTCONTEXT_H
38
#define QMULTIINPUTCONTEXT_H
44
#include <qnamespace.h>
46
#include <qinputcontext.h>
51
class QMultiInputContext : public QInputContext
56
~QMultiInputContext();
58
QString identifierName();
62
bool x11FilterEvent( QWidget *keywidget, XEvent *event );
64
bool filterEvent( const QEvent *event );
68
void mouseHandler( int x, QMouseEvent *event );
70
bool isComposing() const;
72
QList<QAction *> actions();
74
QWidget *focusWidget() const;
75
void setFocusWidget(QWidget *w);
77
void widgetDestroyed( QWidget *w );
79
QInputContext *slave() { return slaves.at(current); }
80
const QInputContext *slave() const { return slaves.at(current); }
83
void changeSlave(QAction *);
87
QList<QInputContext *> slaves;
94
#endif // QMULTIINPUTCONTEXT_H