Logo Search packages:      
Sourcecode: fcitx-sunpinyin version File versions  Download package

void FcitxWindowHandler::updateCandidates ( const ICandidateList *  pcl ) [virtual]

sunpinyin called this function while updating candidate words

Parameters:
pclcandidate list
Returns:
void

Definition at line 51 of file handler.cpp.

{
    wstring cand_str;
    for (int i = 0, sz = pcl->size(); i < sz; i++) {
        const TWCHAR* pcand = pcl->candiString(i);
        cand_str = pcand;
        TIConvSrcPtr src = (TIConvSrcPtr)(cand_str.c_str());
        WCSTOMBS(eim->CandTable[i], (const TWCHAR*) src, MAX_CAND_LEN);
    }

    eim->CandWordCount = pcl->size();

    candidate_flag = true;
}

Generated by  Doxygen 1.6.0   Back to index