Back to index

im-sdk  12.3.91
Public Member Functions | Private Member Functions | Private Attributes
IIIMPreeditWidget Class Reference

#include <IIIMPreedit.hh>

Collaboration diagram for IIIMPreeditWidget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void update_im ()
 IIIMPreeditWidget (IIIMCF_context ctx, QWidget *parent=0, const char *name=0, WFlags f=0)
 ~IIIMPreeditWidget ()

Private Member Functions

void drawContents (QPainter *p)
QSize sizeHint () const

Private Attributes

QSize currentsize
IIIMCF_context ctx

Detailed Description

Definition at line 7 of file IIIMPreedit.hh.


Constructor & Destructor Documentation

IIIMPreeditWidget::IIIMPreeditWidget ( IIIMCF_context  ctx,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0 
)

Definition at line 45 of file IIIMPreedit.cpp.

  : QFrame(parent, name, f)
{
    ctx = x_ctx;
    setBackgroundMode(Qt::PaletteBase);
}

Definition at line 56 of file IIIMPreedit.cpp.

{
}

Member Function Documentation

void IIIMPreeditWidget::drawContents ( QPainter *  p) [private]

Definition at line 6 of file IIIMPreedit.cpp.

{
    int cpos;
    IIIMCF_text text;
    IIIMF_status st;

    if (!ctx) return;
    st = iiimcf_get_preedit_text(ctx, &text, &cpos);
    if (st != IIIMF_STATUS_SUCCESS) return;
    IIIMText imt(text);
    currentsize = imt.draw(p, this, contentsRect());

    adjustSize();
}

Here is the call graph for this function:

QSize IIIMPreeditWidget::sizeHint ( ) const [private]

Definition at line 24 of file IIIMPreedit.cpp.

{
    return currentsize;
}

Definition at line 30 of file IIIMPreedit.cpp.

{
    int cpos;
    IIIMF_status st;
    IIIMCF_text text;

    st = iiimcf_get_preedit_text(ctx, &text, &cpos);
    if (st == IIIMF_STATUS_SUCCESS) {
       show();
       repaint();
    } else {
       hide();
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 10 of file IIIMPreedit.hh.

Definition at line 9 of file IIIMPreedit.hh.


The documentation for this class was generated from the following files: