00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _gtk2_search_cb_h_
00027 #define _gtk2_search_cb_h_
00028
00029 #include <gtk/gtk.h>
00030
00031 void on_combo_entry_searches_activate(GtkEditable *editable, gpointer user_data);
00032 void on_entry_search_activate(GtkEditable *editable, gpointer user_data);
00033 void on_entry_search_changed(GtkEditable *editable, gpointer unused_udata);
00034 void on_search_popdown_switch(GtkWidget * w, gpointer data);
00035 void on_search_notebook_switch(GtkNotebook * notebook, GtkNotebookPage * page, gint page_num, gpointer user_data);
00036 void on_search_notebook_focus_tab(GtkNotebook * notebook, GtkNotebookTab arg1, gpointer user_data);
00037 void on_tree_view_search_select_row(GtkTreeView * tree_view, gpointer user_data);
00038 void on_search_selected(GtkItem * i, gpointer data);
00039 void on_button_search_clicked(GtkButton *button, gpointer user_data);
00040 void on_button_search_clear_clicked(GtkButton * button, gpointer user_data);
00041 void on_button_search_close_clicked(GtkButton *button, gpointer user_data);
00042 void on_button_search_download_clicked(GtkButton *button, gpointer user_data);
00043
00044 gboolean on_tree_view_search_results_key_press_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data);
00045 gboolean on_tree_view_search_button_press_event(GtkWidget *widget,
00046 GdkEventButton *event, gpointer unused_udata);
00047 gboolean on_tree_view_search_results_button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data);
00048 void on_button_search_filter_clicked (GtkButton *button, gpointer user_data);
00049 gboolean on_tree_view_search_results_click_column(GtkTreeViewColumn * tree_view_column, gpointer user_data);
00050 void on_tree_view_search_results_select_row(GtkTreeView * tree_view, gpointer user_data);
00051 void on_tree_view_search_results_unselect_row(GtkTreeView * tree_view, gint row, gint column, GdkEvent * event, gpointer user_data);
00052 void on_tree_view_search_results_resize_column(GtkTreeView * tree_view, gint column, gint width, gpointer user_data);
00053 void on_button_search_passive_clicked (GtkButton *button, gpointer user_data);
00054
00055 void search_update_tooltip(GtkTreeView *tv, GtkTreePath *path);
00056 void search_callbacks_shutdown(void);
00057
00058
00059
00060
00061
00062
00063
00064 void on_popup_search_download_activate(GtkMenuItem *menuitem, gpointer user_data);
00065 void on_popup_search_drop_name_activate(GtkMenuItem *menuitem, gpointer user_data);
00066 void on_popup_search_drop_sha1_activate(GtkMenuItem *menuitem, gpointer user_data);
00067 void on_popup_search_drop_host_activate(GtkMenuItem *menuitem, gpointer user_data);
00068 void on_popup_search_drop_name_global_activate(GtkMenuItem *menuitem, gpointer user_data);
00069 void on_popup_search_drop_sha1_global_activate(GtkMenuItem *menuitem, gpointer user_data);
00070 void on_popup_search_drop_host_global_activate(GtkMenuItem *menuitem, gpointer user_data);
00071 void on_popup_search_autodownload_name_activate(GtkMenuItem *menuitem, gpointer user_data);
00072 void on_popup_search_autodownload_sha1_activate(GtkMenuItem *menuitem, gpointer user_data);
00073 void on_popup_search_edit_filter_activate(GtkMenuItem *menuitem, gpointer user_data);
00074 void on_popup_search_clear_results_activate(GtkMenuItem *menuitem, gpointer user_data);
00075 void on_popup_search_close_activate(GtkMenuItem *menuitem, gpointer user_data);
00076 void on_popup_search_duplicate_activate(GtkMenuItem *menuitem, gpointer user_data);
00077 void on_popup_search_restart_activate(GtkMenuItem *menuitem, gpointer user_data);
00078 void on_popup_search_resume_activate(GtkMenuItem *menuitem, gpointer user_data);
00079 void on_popup_search_stop_activate(GtkMenuItem *menuitem, gpointer user_data);
00080 void on_popup_search_config_cols_activate(GtkMenuItem *menuitem, gpointer user_data);
00081 void on_popup_search_new_from_selected_activate(GtkMenuItem *menuitem, gpointer user_data);
00082 void on_popup_search_expand_all_activate (GtkMenuItem *menuitem, gpointer user_data);
00083 void on_popup_search_collapse_all_activate (GtkMenuItem *menuitem, gpointer user_data);
00084 void on_popup_search_metadata_activate(GtkMenuItem *menuitem, gpointer user_data);
00085
00086 gpointer search_gui_get_record(GtkTreeModel *model, GtkTreeIter *iter);
00087 #endif