~ubuntu-branches/ubuntu/hardy/uim/hardy

« back to all changes in this revision

Viewing changes to xim/ximserver.h

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-07-06 22:17:24 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060706221724-6sobw1fcsxj647hp
Tags: 1:1.1.0-1.2
* Non-maintainer upload.
* Added -Wno-cast-align to CFLAGS, as per the RM's recommendations:

  < vorlon> Sesse: -Wno-cast-align and to hell with it :P

  Really fixes FTBFS. (Really Closes: #375081)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
  Copyright (c) 2003-2005 uim Project http://uim.freedesktop.org/
 
3
  Copyright (c) 2003-2006 uim Project http://uim.freedesktop.org/
4
4
 
5
5
  All rights reserved.
6
6
 
133
133
    bool is_push(); // for distinguish from release
134
134
    void print();
135
135
private:
136
 
    int revise_mod(int uim_mod);
137
136
    int mKey;
138
137
    int mModifier;
139
138
    KeySym mXKeySym;
140
139
    int mXKeyState;
141
140
    bool m_bPush;
142
 
    bool mAltOn;
143
 
    bool mMetaOn;
144
 
    bool mHyperOn;
145
 
    bool mSuperOn;
 
141
    int mModState;
 
142
    int mPreModState;
146
143
    Compose *mCompose;
147
144
    XimIC *mIc;
148
145
};
182
179
    void customContext(const char *custom, const char *val);
183
180
    void createUimContext(const char *engine);
184
181
    void configuration_changed();
 
182
    void switch_app_global_im(const char *name);
 
183
    void switch_system_global_im(const char *name);
185
184
public:
186
185
    static void commit_cb(void *ptr, const char *str);
187
186
    static void clear_cb(void *ptr);
194
193
    static void update_prop_list_cb(void *ptr, const char *str);
195
194
    static void update_prop_label_cb(void *ptr, const char *str);
196
195
    static void configuration_changed_cb(void *ptr);
 
196
    static void switch_app_global_im_cb(void *ptr, const char *name);
 
197
    static void switch_system_global_im_cb(void *ptr, const char *name);
197
198
    static InputContext *focusedContext();
198
199
    static void deletefocusedContext();
199
200
private:
200
201
    void commit_string(char *);
201
202
    void clear_pe_stat();
202
203
    void review_im(const char *engine);
 
204
    char *get_caret_state_label_from_prop_list(const char *str);
203
205
 
204
206
    XimIC *mXic;
205
207
    XimServer *mServer;