Back to index

im-sdk  12.3.91
property_data.h
Go to the documentation of this file.
00001 #ifndef _PROPERTY_DATA_H_
00002 #define _PROPERTY_DATA_H_
00003 
00004 #include "ime.h"
00005 #include "gdk/gdk.h"
00006 #include "vkb_layout.h"
00007 
00008 typedef struct _ime_module_t {
00009     int  version;
00010     char *uuid;
00011     char *name;
00012     char *author;
00013     char *hinting;
00014     char *copyright;
00015     char *icon_file;
00016 
00017     int  enabled;
00018 
00019     ImePropertyListRec *property_list;
00020 
00021     GdkPixbuf *icon_pixbuf;
00022 
00023     int num_vkbs;
00024     vkb_layout_t **vkbs;
00025 } ime_module_t;
00026 
00027 typedef struct _property_data_t {
00028 
00029     /* iiim server properties */
00030     int  time_stamp;
00031     char fkey_vkb;
00032 
00033     /* statusbar properties */
00034     int show_ime_button;
00035     int show_qjbj_button;
00036     int show_punct_button;
00037     int show_vkb_button;
00038     int show_utility_button;
00039     int show_with_vertical;
00040 
00041     int pos_x_palette;
00042     int pos_y_palette;
00043 
00044     int tooltips_enabled;
00045     int beep_enabled;
00046 
00047     /* composite style for preedit/candidates */
00048     int composite_style;
00049 
00050     /* ime modules */
00051     int num_ime_modules;
00052     ime_module_t **ime_modules;
00053 
00054 } property_data_t;
00055 
00056 #define DATA_PROPERTY_DATA_INFO    "property_data_info"
00057 
00058 enum {
00059     PROPERTY_DATA_FOR_LOCAL_PROFILE = 0,
00060     PROPERTY_DATA_FOR_IME_CONFIG,
00061     PROPERTY_DATA_FOR_SERVER_NOTIFICATION,
00062     PROPERTY_DATA_FOR_ALL
00063 };
00064 
00065 #endif /* _PROPERTY_DATA_H_ */