00001 /* 00002 * SCIM Bridge 00003 * 00004 * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> 00005 * 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version.* 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the 00014 * GNU Lesser General Public License for more details.* 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this program; if not, write to the 00017 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 00018 * Boston, MA 02111-1307 USA 00019 */ 00020 00027 #ifndef SCIMBRIDGEMESSAGECONSTANT_H_ 00028 #define SCIMBRIDGEMESSAGECONSTANT_H_ 00029 00030 #include "scim-bridge.h" 00031 00035 static const char SCIM_BRIDGE_MESSAGE_SET_PREEDIT_MODE[] = "set_preedit_mode"; 00036 00040 static const char SCIM_BRIDGE_MESSAGE_PREEDIT_MODE_CHANGED[] = "preedit_mode_changed"; 00041 00045 static const char SCIM_BRIDGE_MESSAGE_EMBEDDED[] = "embedded"; 00046 00050 static const char SCIM_BRIDGE_MESSAGE_FLOATING[] = "floating"; 00051 00055 static const char SCIM_BRIDGE_MESSAGE_HANGING[] = "hanging"; 00056 00060 static const char SCIM_BRIDGE_MESSAGE_ANY[] = "any"; 00061 00065 static const char SCIM_BRIDGE_MESSAGE_UPDATE_PREEDIT[] = "update_preedit"; 00066 00070 static const char SCIM_BRIDGE_MESSAGE_PREEDIT_UPDATED[] = "preedit_updated"; 00071 00075 static const char SCIM_BRIDGE_MESSAGE_SET_PREEDIT_STRING[] = "set_preedit_string"; 00076 00080 static const char SCIM_BRIDGE_MESSAGE_SET_PREEDIT_ATTRIBUTES[] = "set_preedit_attributes"; 00081 00085 static const char SCIM_BRIDGE_MESSAGE_SET_PREEDIT_CURSOR_POSITION[] = "set_preedit_cursor_position"; 00086 00090 static const char SCIM_BRIDGE_MESSAGE_SET_PREEDIT_SHOWN[] = "set_preedit_shown"; 00091 00095 static const char SCIM_BRIDGE_MESSAGE_CHANGE_FOCUS[] = "change_focus"; 00096 00100 static const char SCIM_BRIDGE_MESSAGE_FOCUS_CHANGED[] = "focus_changed"; 00101 00105 static const char SCIM_BRIDGE_MESSAGE_HANDLE_KEY_EVENT[] = "handle_key_event"; 00106 00110 static const char SCIM_BRIDGE_MESSAGE_KEY_EVENT_HANDLED[] ="key_event_handled"; 00111 00115 static const char SCIM_BRIDGE_MESSAGE_SET_CURSOR_LOCATION[] = "set_cursor_location"; 00116 00120 static const char SCIM_BRIDGE_MESSAGE_CURSOR_LOCATION_CHANGED[] = "cursor_location_changed"; 00121 00125 static const char SCIM_BRIDGE_MESSAGE_REGISTER_IMCONTEXT[] = "register_imcontext"; 00126 00130 static const char SCIM_BRIDGE_MESSAGE_IMCONTEXT_REGISTERED[] = "imcontext_registered"; 00131 00135 static const char SCIM_BRIDGE_MESSAGE_DEREGISTER_IMCONTEXT[] = "deregister_imcontext"; 00136 00140 static const char SCIM_BRIDGE_MESSAGE_IMCONTEXT_DEREGISTERED[] = "imcontext_deregister"; 00141 00145 static const char SCIM_BRIDGE_MESSAGE_RESET_IMCONTEXT[] = "reset_imcontext"; 00146 00150 static const char SCIM_BRIDGE_MESSAGE_IMCONTEXT_RESETED[] = "imcontext_reseted"; 00151 00155 static const char SCIM_BRIDGE_MESSAGE_FORWARD_KEY_EVENT[] = "forward_key_event"; 00156 00160 static const char SCIM_BRIDGE_MESSAGE_SET_COMMIT_STRING[] = "set_commit_string"; 00161 00165 static const char SCIM_BRIDGE_MESSAGE_COMMIT_STRING[] = "commit_string"; 00166 00170 static const char SCIM_BRIDGE_MESSAGE_STRING_COMMITED[] = "string_commited"; 00171 00175 static const char SCIM_BRIDGE_MESSAGE_BEEP[] = "beep"; 00176 00180 static const char SCIM_BRIDGE_MESSAGE_GET_SURROUNDING_TEXT[] = "get_surrounding_text"; 00181 00185 static const char SCIM_BRIDGE_MESSAGE_DELETE_SURROUNDING_TEXT[] = "delete_surrounding_text"; 00186 00190 static const char SCIM_BRIDGE_MESSAGE_REPLACE_SURROUNDING_TEXT[] = "replace_surrounding_text"; 00191 00195 static const char SCIM_BRIDGE_MESSAGE_SURROUNDING_TEXT_GOTTEN[] = "surrounding_text_gotten"; 00196 00200 static const char SCIM_BRIDGE_MESSAGE_SURROUNDING_TEXT_DELETED[] = "surrounding_text_deleted"; 00201 00205 static const char SCIM_BRIDGE_MESSAGE_SURROUNDING_TEXT_REPLACED[] = "surrounding_text_replaced"; 00206 00210 static const char SCIM_BRIDGE_MESSAGE_SHIFT[] = "shift"; 00211 00215 static const char SCIM_BRIDGE_MESSAGE_CONTROL[] = "control"; 00216 00220 static const char SCIM_BRIDGE_MESSAGE_ALT[] = "alt"; 00221 00225 static const char SCIM_BRIDGE_MESSAGE_META[] = "meta"; 00226 00230 static const char SCIM_BRIDGE_MESSAGE_SUPER[] = "super"; 00231 00235 static const char SCIM_BRIDGE_MESSAGE_HYPER[] = "hyper"; 00236 00240 static const char SCIM_BRIDGE_MESSAGE_CAPS_LOCK[] = "caps_lock"; 00241 00245 static const char SCIM_BRIDGE_MESSAGE_NUM_LOCK[] = "num_lock"; 00246 00250 static const char SCIM_BRIDGE_MESSAGE_UNKNOWN[] = "unknown"; 00251 00255 static const char SCIM_BRIDGE_MESSAGE_TRUE[] = "true"; 00256 00260 static const char SCIM_BRIDGE_MESSAGE_FALSE[] = "false"; 00261 00265 static const char SCIM_BRIDGE_MESSAGE_NONE[] = "none"; 00266 00270 static const char SCIM_BRIDGE_MESSAGE_DECORATE[] = "decoreate"; 00271 00275 static const char SCIM_BRIDGE_MESSAGE_FOREGROUND[] = "foreground"; 00276 00280 static const char SCIM_BRIDGE_MESSAGE_BACKGROUND[] = "background"; 00281 00285 static const char SCIM_BRIDGE_MESSAGE_COLOR[] = "#"; 00286 00290 static const char SCIM_BRIDGE_MESSAGE_UNDERLINE[] = "underline"; 00291 00295 static const char SCIM_BRIDGE_MESSAGE_HIGHLIGHT[] = "highlight"; 00296 00300 static const char SCIM_BRIDGE_MESSAGE_REVERSE[] = "reverse"; 00301 #endif /*SCIMBRIDGEMESSAGECONSTANT_H_*/