1
/* Copyright (C) 2009 Edward Der-Hua Liu, Hsin-Chu, Taiwan
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.
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.
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.
17
#include <QApplication>
20
#include <QInputContext>
21
#include <QInputMethodEvent>
27
struct HIME_client_handle_S;
29
class HIMEIMContext: public QInputContext {
33
bool x11FilterEvent (QWidget *widget, XEvent *event);
34
bool filterEvent (const QEvent *event);
36
QString identifierName();
38
void mouseHandler (int offset, QMouseEvent *event);
39
void setFocusWidget (QWidget *widget);
40
void widgetDestroyed (QWidget *widget);
42
HIME_client_handle_S *hime_ch;
43
bool isComposing() const;
44
void update_cursor(QWidget *);
45
void update_preedit();