Back to index

im-sdk  12.3.91
IIIMLineEdit.hh
Go to the documentation of this file.
00001 #ifndef IIIMLINEDIT_HH_
00002 #define IIIMLINEDIT_HH_
00003 #include <iiimcf.h>
00004 #include <qlineedit.h>
00005 #include "IIIMPreedit.hh"
00006 #include "IIIMStatus.hh"
00007 #include "IIIMLookupChoice.hh"
00008 
00009 class IIIMLineEdit : public QLineEdit
00010 {
00011     Q_OBJECT;
00012 
00013     int iiimcf_flag;
00014     IIIMCF_handle handle;
00015     IIIMCF_context ctx;
00016     IIIMPreeditWidget *ppw;
00017     IIIMStatusWidget *psw;
00018     IIIMLookupChoiceWidget *plw;
00019 
00020     IIIMCF_language get_language(
00021        const char *id
00022     );
00023     IIIMPreeditWidget *get_preedit();
00024     IIIMStatusWidget *get_status();
00025     IIIMLookupChoiceWidget *get_lookup_choice();
00026     IIIMCF_context get_context();
00027     void toggle_im(
00028        IIIMCF_context c,
00029        bool flag
00030     );
00031     void commit_string();
00032     void deal_with_iiimcf_event();
00033     void update_UI();
00034 
00035     void resizeEvent(
00036        QResizeEvent *pre
00037     );
00038     void moveEvent(
00039        QMoveEvent *pme
00040     );
00041 
00042   protected:
00043     void keyPressEvent(
00044        QKeyEvent *e
00045     );
00046 
00047   signals:
00048     void ref_changed();
00049 
00050   public:
00051     IIIMLineEdit(
00052        IIIMCF_handle iiimcfhandle,
00053        QWidget *parent = 0,
00054        const char *name = 0
00055     );
00056     ~IIIMLineEdit();
00057 };
00058 #endif
00059 
00060 /* Local Variables: */
00061 /* c-file-style: "iiim-project" */
00062 /* End: */
00063 
00064