~ubuntu-branches/ubuntu/precise/hime/precise

« back to all changes in this revision

Viewing changes to src/qt4-im/hime-imcontext-qt.h

  • Committer: Package Import Robot
  • Author(s): Yao Wei (魏銘廷)
  • Date: 2012-01-14 00:24:08 UTC
  • Revision ID: package-import@ubuntu.com-20120114002408-e79gagbeg1rt8npv
Tags: upstream-0.9.9
Import upstream version 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2009 Edward Der-Hua Liu, Hsin-Chu, Taiwan
 
2
 *
 
3
 * This program is free software; you can redistribute it and/or modify
 
4
 * it under the terms of the GNU General Public License as published by
 
5
 * the Free Software Foundation; version 2 of the License.
 
6
 *
 
7
 * This program is distributed in the hope that it will be useful,
 
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
 * GNU General Public License for more details.
 
11
 *
 
12
 * You should have received a copy of the GNU General Public License along
 
13
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
14
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
15
 */
 
16
 
 
17
#include <QApplication>
 
18
#include <QEvent>
 
19
#include <QFont>
 
20
#include <QInputContext>
 
21
#include <QInputMethodEvent>
 
22
#include <QObject>
 
23
#include <QPoint>
 
24
#include <QWidget>
 
25
#include <QX11Info>
 
26
 
 
27
struct HIME_client_handle_S;
 
28
 
 
29
class HIMEIMContext: public QInputContext {
 
30
    public:
 
31
        HIMEIMContext ();
 
32
        ~HIMEIMContext ();
 
33
        bool x11FilterEvent (QWidget *widget, XEvent *event);
 
34
        bool filterEvent (const QEvent *event);
 
35
        void update();
 
36
        QString identifierName();
 
37
        QString language();
 
38
        void mouseHandler (int offset, QMouseEvent *event);
 
39
        void setFocusWidget (QWidget *widget);
 
40
        void widgetDestroyed (QWidget *widget);
 
41
        void reset ();
 
42
        HIME_client_handle_S *hime_ch;
 
43
        bool isComposing() const;
 
44
        void update_cursor(QWidget *);
 
45
        void update_preedit();
 
46
};