1 #ifndef __GLOBAL_H__ 2 #define __GLOBAL_H__ 3 4 #ifdef _GLOBAL 5 #define global 6 #else 7 #define global extern 8 #endif 9 10 11 global GtkWidget *main_window; 12 global GtkWidget *hidden_entry; 13 global GtkWidget *word_entry; 14 global GtkWidget *combo_method; 15 global GtkWidget *combo_word; 16 global GtkWidget *button_mode; 17 global GtkWidget *button_start; 18 global GtkWidget *button_auto; 19 global GtkWidget *button_popup; 20 global GtkWidget *button_back; 21 global GtkWidget *button_forward; 22 global GtkWidget *status_bar; 23 24 global GtkTooltips *tooltip; 25 26 27 global GList *search_result; 28 global RESULT *current_result; 29 30 global GList *ending_list; 31 global GList *ending_list_ja; 32 33 global GdkFont *font_normal; 34 global GdkFont *font_bold; 35 global GdkFont *font_superscript; 36 global GdkFont *font_italic; 37 38 global gint font_height; 39 global gint font_width; 40 global gint font_ascent; 41 global gint font_descent; 42 43 global gchar *fs_codeset; 44 45 global struct _search_method search_method[64]; 46 47 global gint bstarting_up; 48 global gint max_search; 49 global gint max_heading; 50 global gint max_remember_words; 51 global gint dict_button_length; 52 global gint auto_interval; 53 global gint auto_minchar; 54 global gint auto_maxchar; 55 global gint bshow_menu_bar; 56 global gint bshow_status_bar; 57 global gint bshow_dict_bar; 58 global gint bshow_tree_tab; 59 global gint bending_only_nohit; 60 global gint bending_correction; 61 global gint bshow_popup_title; 62 global gint bbeep_on_nohit; 63 global gint bignore_locks; 64 global gint popup_width; 65 global gint popup_height; 66 global gchar *wave_template; 67 global gchar *mpeg_template; 68 global gchar *browser_template; 69 global gchar *open_template; 70 global gint bbrowser_external; 71 global gint buse_http_proxy; 72 global gint window_x, window_y; 73 global gint window_width, window_height; 74 global gint tree_width, tree_height; 75 global gint bsmooth_scroll; 76 global gint scroll_step; 77 global gint scroll_time; 78 global gint scroll_margin; 79 global gint bsort_by_dictionary; 80 global gint pane_direction; 81 global gint tab_position; 82 global gint bignore_case; 83 global gint bsuppress_hidden_files; 84 global gint bemphasize_keyword; 85 global gint bshow_image; 86 global gint bshow_splash; 87 global gint bword_search_automatic; 88 global gint additional_lines; 89 global gint additional_chars; 90 global gint cache_size; 91 global gint max_bytes_to_guess; 92 global gint bshow_filename; 93 global gint bheading_auto_calc; 94 global gint benable_button_color; 95 global gint selection_mode; 96 global gint bplay_sound_internally; 97 98 99 100 global gint line_space; 101 global gint h_space; 102 global gint v_space; 103 global gint h_border; 104 global gint v_border; 105 global gint gaiji_adjustment; 106 107 108 global gchar *user_dir; 109 global gchar *temp_dir; 110 global gchar *package_dir; 111 global gchar *cache_dir; 112 113 global gchar *fontset_normal; 114 global gchar *fontset_bold; 115 global gchar *fontset_italic; 116 global gchar *fontset_subscript; 117 global gchar *fontset_superscript; 118 119 global gchar *color_str[NUM_COLORS]; 120 global GdkColor colors[NUM_COLORS]; 121 122 global GtkTreeStore *web_store; 123 global GtkTreeStore *dict_store; 124 global GtkListStore *stemming_en_store; 125 global GtkListStore *stemming_ja_store; 126 global GtkListStore *shortcut_store; 127 global GtkListStore *filter_store; 128 global GtkListStore *dirgroup_store; 129 130 global GtkTextTag *tag_keyword; 131 global GtkTextTag *tag_bold; 132 global GtkTextTag *tag_link; 133 global GtkTextTag *tag_sound; 134 global GtkTextTag *tag_movie; 135 global GtkTextTag *tag_italic; 136 global GtkTextTag *tag_superscript; 137 global GtkTextTag *tag_subscript; 138 global GtkTextTag *tag_center; 139 global GtkTextTag *tag_plain; 140 global GtkTextTag *tag_gaiji; 141 global GtkTextTag *tag_colored; 142 global GtkTextTag *tag_reverse; 143 global GtkTextTag *tag_indent[MAX_INDENT]; 144 145 #endif /* __GLOBAL_H__ */ 146