Go to the source code of this file.
Functions | |
static double | timer (gboolean start, gchar *message) |
show how much time did take a callback of another function | |
void | ws_gui_signal_hander (GError *error, GArray *words, gpointer user_data) |
handle dbus signals | |
void | ws_gui_search_home_handler (GError *error, GArray *word, gpointer user_data) |
void | ws_dbus_progress_bar (GError *error, GArray *words, gpointer user_data) |
handle signal from dbus and updates progress bar(in order to caching) | |
void | ws_gui_clear_list (GtkListStore *list, gpointer user_data) |
clean words list | |
void | ws_gui_dbus_return_words (GError *error, GArray *words, gpointer user_data) |
handle dbus signal and transfer words to the words list | |
void | ws_gui_dbus_return_translation (GError *error, GArray *words, gpointer user_data) |
handle dbus signal and convert message into readable text | |
void | ws_dbus_server_return_extracted_bzip (GError *error, GArray *words, gpointer user_data) |
handle dbus signal and load extracted dictionary | |
void | ws_gui_free_memory (gpointer user_data) |
is used to free memory, which was allocated | |
gboolean | hildon_key_press_listener (GtkWidget *widget, GdkEventKey *keyevent, gpointer user_data) |
handle keys press signals (hardware keys in device) | |
void | ws_gui_words_list_hide_from_menu (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
allow to hide words list from menu | |
void | ws_gui_words_list_hide (GtkToggleButton *togglebutton, gpointer user_data) |
allow to hide words list from toolbar | |
void | ws_gui_history_add (char *new_word, gpointer user_data) |
add word to the words history | |
void | ws_gui_history_back (GtkButton *button, gpointer user_data) |
display translation of word stored in the history (if available) | |
void | ws_gui_history_next (GtkButton *button, gpointer user_data) |
display translation of word stored in the history (if available) | |
void | ws_gui_check_history (gpointer user_data) |
check history and disable buttons or uncheck checkbuttons | |
GtkTreeModel * | create_and_fill_model (GArray *words_list, gpointer user_data) |
creates words list and fill it with content | |
GtkWidget * | create_view_and_model (GArray *words_list, gpointer user_data) |
creates model and view of words list | |
void | ws_gui_full_screen (GtkMenuItem *menuitem, gpointer user_data) |
switch view between full screen and normal mode | |
void | ws_gui_popup_search (GtkMenuItem *menuitem, gpointer user_data) |
search for selected text in a dictionary | |
void | ws_gui_html_select_all (GtkMenuItem *menuitem, gpointer user_data) |
allows to select whole text in translation (html) area | |
void | ws_gui_html_copy (GtkMenuItem *menuitem, gpointer user_data) |
allows to copy text from translation (html) area into clipboard | |
void | ws_gui_html_paste (GtkMenuItem *menuitem, gpointer user_data) |
allows to paste text from the clipboard into find toolbar entry | |
void | ws_gui_html_zoom_in (GtkMenuItem *menuitem, gpointer user_data) |
magnify translation (html) area | |
void | ws_gui_html_zoom_out (GtkMenuItem *menuitem, gpointer user_data) |
zoom out translation (html) area. | |
void | ws_gui_search (GtkWidget *widget, gpointer user_data) |
start search (sends typed word to the engine) | |
void | ws_gui_search_stop (GtkButton *button, gpointer user_data) |
abort search | |
void | ws_gui_on_exit (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
used when user closes the application | |
void | ws_gui_menu_quit (GtkMenuItem *menuitem, gpointer user_data) |
used when user closes the application from menu | |
void | ws_gui_fill_html (char *html_context, gpointer user_data) |
sets content of translation (html) area | |
void | ws_gui_read_adjustment (gpointer user_data) |
read current adjustment value | |
void | ws_gui_url_requested (GtkHTML *html, const char *url, GtkHTMLStream *stream) |
necessary to load images into translation (html) area | |
gboolean | ws_gui_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
handles button press event | |
gboolean | ws_gui_button_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
handles button release event | |
guint | ws_gui_show_popup (gpointer user_data) |
shows popup when user clicks and holds | |
void | ws_gui_check_clipboard (GtkWidget *widget, gpointer user_data) |
checks clipboard content | |
gchar * | format_html (gchar *received_string, gpointer user_data) |
allows to format html content | |
void | ws_gui_dictionary_open_bookmark (GtkMenuItem *menuitem, gpointer user_data) |
open bookmark window | |
void | ws_gui_dictionary_close_bookmark (GtkMenuItem *menuitem, gpointer user_data) |
close bookmark window | |
void | ws_gui_dictionary_add_bookmark (GtkMenuItem *menuitem, gpointer user_data) |
add bookmark to bookmarks database | |
void | ws_gui_dictionary_remove_bookmark (GtkMenuItem *menuitem, gpointer user_data) |
remove bookmark from database | |
void | ws_gui_dict_availablity (GtkMenuItem *menuitem, gpointer user_data) |
checks dictionaries availablity | |
void | ws_gui_set_bookmarks_sensitivity (gpointer user_data) |
sets sensitivity of Bookmarks menu items | |
void | ws_gui_set_bookmark_menu_items (GtkMenuItem *menuitem, gpointer user_data) |
sets sensitivity of Bookmarks menu items due to selection made | |
void | ws_gui_read_active_dictionaries (gpointer user_data) |
sets sensitivity of menu items due to dictionary mode | |
void | ws_gui_clear_array (GArray *history) |
void | ws_gui_view_cursor_changed (GtkTreeView *treeview, gpointer user_data) |
void | ws_gui_set_toolbar_avail (gpointer user_data) |
void | ws_refresh_search_results (gpointer user_data) |
Callbacks for GUI elements
Definition in file ws_gui_callbacks.c.