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

« back to all changes in this revision

Viewing changes to src/gui/inputmethod/qwininputcontext_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
#ifndef QWININPUTCONTEXT_P_H
 
2
#define QWININPUTCONTEXT_P_H
 
3
 
 
4
#include <qinputcontext.h>
 
5
#include "qt_windows.h"
 
6
 
 
7
class QWinInputContext : public QInputContext
 
8
{
 
9
    Q_OBJECT
 
10
public:
 
11
    explicit QWinInputContext(QObject* parent = 0);
 
12
    virtual ~QWinInputContext();
 
13
 
 
14
    virtual QString identifierName() { return QLatin1String("win"); }
 
15
    virtual QString language();
 
16
 
 
17
    virtual void reset();
 
18
    virtual void update();
 
19
 
 
20
    virtual void mouseHandler(int x, QMouseEvent *event);
 
21
    virtual bool isComposing() const;
 
22
 
 
23
    virtual void setFocusWidget(QWidget *w);
 
24
 
 
25
    bool startComposition();
 
26
    bool endComposition();
 
27
    bool composition(LPARAM lparam);
 
28
 
 
29
    static void enable(QWidget *w, bool e);
 
30
    static void TranslateMessage(const MSG *msg);
 
31
    static LRESULT DefWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
 
32
private:
 
33
    void init();
 
34
};
 
35
 
 
36
#endif