home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / include / private / qinputcontext_p.h < prev    next >
C/C++ Source or Header  |  2001-10-01  |  717b  |  39 lines

  1. #ifndef QINPUTCONTEXT_P_H
  2. #define QINPUTCONTEXT_P_H
  3.  
  4. #include "qwindowdefs.h"
  5. #include "qt_x11.h"
  6.  
  7. class QKeyEvent;
  8. class QWidget;
  9.  
  10.  
  11. class QInputContext
  12. {
  13. public:
  14.     QInputContext(QWidget *); // should be a toplevel widget
  15.     ~QInputContext();
  16.  
  17.     void setFocus();
  18.     void setComposePosition(int, int);
  19.     void setComposeArea(int, int, int, int);
  20.     void reset();
  21.  
  22. #if defined(Q_WS_X11)
  23.     int lookupString(XKeyEvent *, QCString &, KeySym *, Status *) const;
  24.     void setXFontSet(QFont *);
  25. #endif // Q_WS_X11
  26.  
  27.     void *ic;
  28.     QString text, lastcompose;
  29.     QWidget *focusWidget;
  30.     bool composing;
  31. #ifdef    Q_WS_X11
  32.     QFont font;
  33.     XFontSet fontset;
  34. #endif // Q_WS_X11
  35. };
  36.  
  37.  
  38. #endif // QINPUTCONTEXT_P_H
  39.