1 #include <QApplication> 2 #include <QEvent> 3 #include <QFont> 4 #include <QInputContext> 5 #include <QInputMethodEvent> 6 #include <QObject> 7 #include <QPoint> 8 #include <QWidget> 9 #include <QX11Info> 10 11 struct GCIN_client_handle_S; 12 13 class GCINIMContext: public QInputContext { 14 public: 15 GCINIMContext (); 16 ~GCINIMContext (); 17 bool x11FilterEvent (QWidget *widget, XEvent *event); 18 bool filterEvent (const QEvent *event); 19 void update(); 20 QString identifierName(); 21 QString language(); 22 void mouseHandler (int offset, QMouseEvent *event); 23 void setFocusWidget (QWidget *widget); 24 void widgetDestroyed (QWidget *widget); 25 void reset (); 26 GCIN_client_handle_S *gcin_ch; 27 bool isComposing() const; 28 void update_cursor(QWidget *); 29 void update_preedit(); 30 }; 31