00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00030 #ifndef _WS_GUI_CALLBACKS
00031 #define _WS_GUI_CALLBACKS
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037
00038 #include <ws_gui.h>
00039
00040
00041 #include <sys/types.h>
00042 #include <sys/stat.h>
00043 #include <sys/time.h>
00044 #include <fcntl.h>
00045 #include <unistd.h>
00046
00047 #define TIMER_START TRUE
00048 #define TIMER_STOP FALSE
00049
00050
00051
00052 void ws_gui_search_home_handler(GError *error, GArray *word, gpointer user_data);
00053
00054
00058 void ws_gui_signal_hander (GError *error, GArray *words, gpointer user_data);
00059
00063 void ws_dbus_progress_bar(GError *error, GArray *words, gpointer user_data);
00064
00068 void ws_gui_clear_list (GtkListStore* list, gpointer user_data);
00069
00073 void ws_gui_dbus_return_words (GError *error,
00074 GArray *words,
00075 gpointer user_data);
00076
00080 void ws_gui_dbus_return_translation (GError *error,
00081 GArray *words,
00082 gpointer user_data);
00083
00087 void ws_dbus_server_return_extracted_bzip(GError *error,
00088 GArray *words,
00089 gpointer user_data);
00090
00094 void ws_gui_free_memory(gpointer user_data);
00095
00099 gboolean hildon_key_press_listener (GtkWidget * widget,
00100 GdkEventKey * keyevent,
00101 gpointer user_data);
00102
00106 void ws_gui_words_list_hide_from_menu(GtkCheckMenuItem *checkmenuitem,
00107 gpointer user_data);
00108
00112 void ws_gui_words_list_hide(GtkToggleButton *togglebutton, gpointer user_data);
00113
00117 void ws_gui_history_add(char *new_word, gpointer user_data);
00118
00122 void ws_gui_history_back(GtkButton *button, gpointer user_data);
00123
00127 void ws_gui_history_next(GtkButton *button, gpointer user_data);
00128
00132 void ws_gui_check_history(gpointer user_data);
00133
00137 GtkWidget * create_view_and_model (GArray *words_list, gpointer user_data);
00138
00142 GtkTreeModel * create_and_fill_model (GArray *words_list, gpointer user_data);
00143
00147 void ws_gui_full_screen(GtkMenuItem *menuitem, gpointer user_data);
00148
00152 void ws_gui_popup_search(GtkMenuItem *menuitem, gpointer user_data);
00153
00157 void ws_gui_html_select_all(GtkMenuItem *menuitem, gpointer user_data);
00158
00162 void ws_gui_html_copy(GtkMenuItem *menuitem, gpointer user_data);
00163
00167 void ws_gui_html_paste(GtkMenuItem *menuitem, gpointer user_data);
00168
00172 void ws_gui_html_zoom_in(GtkMenuItem *menuitem, gpointer user_data);
00173
00177 void ws_gui_html_zoom_out(GtkMenuItem *menuitem, gpointer user_data);
00178
00182 void ws_gui_search(GtkWidget * widget, gpointer user_data);
00183
00187 void ws_gui_search_stop(GtkButton *button, gpointer user_data);
00188
00192 void ws_gui_on_exit (GtkWidget *widget, GdkEvent *event, gpointer user_data);
00193
00197 void ws_gui_menu_quit(GtkMenuItem *menuitem, gpointer user_data);
00198
00202 void ws_gui_fill_html(char *html_context, gpointer user_data);
00203
00207 void ws_gui_read_adjustment(gpointer user_data);
00208
00212 void ws_gui_url_requested (GtkHTML *html, const char *url,
00213 GtkHTMLStream *stream);
00214
00218 gboolean ws_gui_button_press (GtkWidget *widget,
00219 GdkEventButton *event,
00220 gpointer user_data);
00221
00225 gboolean ws_gui_button_release (GtkWidget *widget,
00226 GdkEventButton *event,
00227 gpointer user_data);
00228
00232 guint ws_gui_show_popup(gpointer user_data);
00233
00237 void ws_gui_check_clipboard (GtkWidget *widget, gpointer user_data);
00238
00242 void ws_gui_dict_availablity(GtkMenuItem *menuitem, gpointer user_data);
00243
00247 gchar * format_html (gchar * received_string, gpointer user_data);
00248
00252 void ws_gui_set_bookmarks_sensitivity(gpointer user_data);
00253
00257 void ws_gui_set_bookmark_menu_items(GtkMenuItem *menuitem, gpointer user_data);
00258
00262 void ws_gui_read_active_dictionaries(gpointer user_data);
00263
00264 void ws_gui_clear_array(GArray *history);
00265
00266 void ws_gui_view_cursor_changed(GtkTreeView *treeview, gpointer user_data);
00267
00268 void ws_gui_set_toolbar_avail(gpointer user_data);
00269
00270 void ws_refresh_search_results(gpointer user_data);
00271
00272 #ifdef __cplusplus
00273 }
00274 #endif
00275
00276 #endif