~ubuntu-branches/ubuntu/precise/hime/precise

« back to all changes in this revision

Viewing changes to src/hime-module.c

  • Committer: Package Import Robot
  • Author(s): Yao Wei (魏銘廷)
  • Date: 2012-01-14 00:24:08 UTC
  • Revision ID: package-import@ubuntu.com-20120114002408-e79gagbeg1rt8npv
Tags: upstream-0.9.9
Import upstream version 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2011 Edward Der-Hua Liu, Hsin-Chu, Taiwan
 
2
 *
 
3
 * This library is free software; you can redistribute it and/or
 
4
 * modify it under the terms of the GNU Lesser General Public
 
5
 * License as published by the Free Software Foundation; either
 
6
 * version 2.1 of the License, or (at your option) any later version.
 
7
 *
 
8
 * This library is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
 * Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public
 
14
 * License along with this library; if not, write to the Free Software
 
15
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
16
 */
 
17
 
 
18
#include "hime.h"
 
19
#include "gtab.h"
 
20
#include "pho.h"
 
21
#include "tsin.h"
 
22
#include "gst.h"
 
23
#include "im-client/hime-im-client-attr.h"
 
24
#include "hime-module.h"
 
25
#include "win-sym.h"
 
26
 
 
27
void init_tsin_selection_win(),disp_selections(int x, int y),hide_selections_win();
 
28
void disp_arrow_up(),disp_arrow_down(), set_tsin_pho_mode();
 
29
void set_sele_text(int tN, int i, char *text, int len);
 
30
void tsin_set_eng_ch(int nmod);
 
31
int get_widget_xy(GtkWidget *win, GtkWidget *widget, int *rx, int *ry);
 
32
void get_win_size(GtkWidget *win, int *width, int *height);
 
33
void exec_hime_setup();
 
34
void load_tab_pho_file();
 
35
void clear_sele();
 
36
void send_utf8_ch(char *s);
 
37
extern gboolean force_show;
 
38
 
 
39
void init_HIME_module_main_functions(HIME_module_main_functions *func)
 
40
{
 
41
  func->mf_show_win_sym = show_win_sym;
 
42
  func->mf_hide_win_sym = hide_win_sym;
 
43
  func->mf_move_win_sym = move_win_sym;
 
44
  func->mf_toggle_win_sym = toggle_win_sym;
 
45
 
 
46
  func->mf_init_tsin_selection_win = init_tsin_selection_win;
 
47
  func->mf_clear_sele = clear_sele;
 
48
  func->mf_disp_selections = disp_selections;
 
49
  func->mf_hide_selections_win = hide_selections_win;
 
50
  func->mf_disp_arrow_up = disp_arrow_up;
 
51
  func->mf_disp_arrow_down = disp_arrow_down;
 
52
  func->mf_set_sele_text = set_sele_text;
 
53
  func->mf_set_win1_cb = set_win1_cb;
 
54
 
 
55
  func->mf_tsin_set_eng_ch = tsin_set_eng_ch;
 
56
  func->mf_tsin_pho_mode = tsin_pho_mode;
 
57
  func->mf_set_tsin_pho_mode = set_tsin_pho_mode;
 
58
 
 
59
  func->mf_get_widget_xy = get_widget_xy;
 
60
  func->mf_get_win_size = get_win_size;
 
61
  func->mf_change_win_bg = change_win_bg;
 
62
  func->mf_set_label_font_size = set_label_font_size;
 
63
  func->mf_set_no_focus = set_no_focus;
 
64
 
 
65
 
 
66
  func->mf_current_time = current_time;
 
67
 
 
68
  func->mf_exec_hime_setup = exec_hime_setup;
 
69
  func->mf_hime_edit_display_ap_only = hime_edit_display_ap_only;
 
70
  func->mf_inmd_switch_popup_handler = inmd_switch_popup_handler;
 
71
  func->mf_load_tab_pho_file = load_tab_pho_file;
 
72
  func->mf_send_text = send_text;
 
73
  func->mf_send_utf8_ch = send_utf8_ch;
 
74
  func->mf_utf8_str_N = utf8_str_N;
 
75
 
 
76
  func->mf_phkbm = &phkbm;
 
77
  func->mf_tss = &tss;
 
78
  func->mf_tsin_chinese_english_toggle_key = &tsin_chinese_english_toggle_key;
 
79
 
 
80
  func->mf_hime_pop_up_win = &hime_pop_up_win;
 
81
  func->mf_hime_font_size = &hime_font_size;
 
82
  func->mf_hime_win_color_fg = &hime_win_color_fg;
 
83
 
 
84
  func->mf_hime_win_color_use = &hime_win_color_use;
 
85
  func->mf_tsin_cursor_color = &tsin_cursor_color;
 
86
  func->mf_pho_selkey = &pho_selkey;
 
87
  func->mf_force_show = &force_show;
 
88
  func->mf_win_x = &win_x;
 
89
  func->mf_win_y = &win_y;
 
90
  func->mf_win_xl = &win_xl;
 
91
  func->mf_win_yl = &win_yl;
 
92
  func->mf_dpy_xl = &dpy_xl;
 
93
  func->mf_dpy_yl = &dpy_yl;
 
94
  func->mf_pho_chars = pho_chars;
 
95
}