~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to xim/ximserver.h

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2009-03-01 12:57:00 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090301125700-0ykjdq0zgj55e3n3
Tags: 1:1.5.5-1
New upstream release and final upload by current maintainter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
  Copyright (c) 2003-2008 uim Project http://code.google.com/p/uim/
 
3
  Copyright (c) 2003-2009 uim Project http://code.google.com/p/uim/
4
4
 
5
5
  All rights reserved.
6
6
 
44
44
#include "uim/uim.h"
45
45
#include "compose.h"
46
46
 
 
47
#define UIM_XIM_USE_NEW_PAGE_HANDLING 1
47
48
 
48
49
// preedit ornament
49
50
#define PE_NORMAL 0
53
54
 
54
55
typedef wchar_t uchar;
55
56
typedef std::list<uchar> uString;
 
57
#if UIM_XIM_USE_NEW_PAGE_HANDLING
 
58
typedef std::vector<const char *> CandList;
 
59
#endif
56
60
struct pe_ustring {
57
61
    uString s;
58
62
    int stat;
169
173
    void candidate_shift_page(int direction);
170
174
    void candidate_deactivate();
171
175
    void candidate_update();
 
176
#if UIM_XIM_USE_NEW_PAGE_HANDLING
 
177
    void prepare_page_candidates(int page);
 
178
    int prepare_page_candidates_by_index(int index);
 
179
#endif
172
180
    void update_prop_list(const char *str);
173
181
    void update_prop_label(const char *str);
174
182
    bool hasActiveCandwin();
210
218
    Convdisp *mConvdisp;
211
219
    uim_context mUc;
212
220
    bool mCandwinActive;
213
 
    int mDisplayLimit;
 
221
    uint mDisplayLimit;
 
222
#if UIM_XIM_USE_NEW_PAGE_HANDLING
 
223
    uint mNumCandidates;
 
224
#endif
214
225
    int mNumPage;
215
226
    int current_cand_selection;
216
227
    int current_page;
217
228
    bool need_hilite_selected_cand;
218
229
    std::vector<const char *> active_candidates;
 
230
#if UIM_XIM_USE_NEW_PAGE_HANDLING
 
231
    std::vector<CandList> mCandidateSlot;
 
232
#endif
219
233
    char *mEngineName;
220
234
    char *mLocaleName;
221
235
    bool mCaretStateShown;