~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/gui/inputmethod/qwsinputcontext_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** $Id: .emacs,v 1.3 1998/02/20 15:06:53 agulbra Exp $
 
3
**
 
4
** Definition of something or other
 
5
**
 
6
** Created : 979899
 
7
**
 
8
** Copyright (C) 1997 by Troll Tech AS.  All rights reserved.
 
9
**
 
10
****************************************************************************/
 
11
 
 
12
#ifndef QWSINPUTCONTEXT_P_H
 
13
#define QWSINPUTCONTEXT_P_H
 
14
 
 
15
#include "qinputcontext.h"
 
16
 
 
17
#ifndef QT_NO_QWS_IM
 
18
 
 
19
class QWSIMEvent;
 
20
class QWSIMQueryEvent;
 
21
class QWSIMInitEvent;
 
22
 
 
23
class QWSInputContext : public QInputContext
 
24
{
 
25
    Q_OBJECT
 
26
public:
 
27
    explicit QWSInputContext(QObject* parent = 0);
 
28
    ~QWSInputContext() {}
 
29
 
 
30
 
 
31
    QString identifierName() { return QString(); }
 
32
    QString language() { return QString(); }
 
33
 
 
34
    void reset();
 
35
    void update();
 
36
    void mouseHandler( int x, QMouseEvent *event);
 
37
 
 
38
    void setFocusWidget( QWidget *w );
 
39
    void widgetDestroyed(QWidget *w);
 
40
 
 
41
    bool isComposing() const;
 
42
 
 
43
    static QWidget *activeWidget();
 
44
    static bool translateIMEvent(QWidget *w, const QWSIMEvent *e);
 
45
    static bool translateIMQueryEvent(QWidget *w, const QWSIMQueryEvent *e);
 
46
    static bool translateIMInitEvent(const QWSIMInitEvent *e);
 
47
};
 
48
#endif // QT_NO_QWS_IM
 
49
#endif