Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

search_cb.c File Reference


Detailed Description

GUI filtering functions.

Author:
Raphael Manfredi

Richard Eckart

Date:
2001-2003

#include "gtk/gui.h"
#include <gdk/gdkkeysyms.h>
#include "search_cb.h"
#include "gtk/gtkcolumnchooser.h"
#include "gtk/search.h"
#include "gtk/statusbar.h"
#include "gtk/misc.h"
#include "gtk/columns.h"
#include "gtk/notebooks.h"
#include "gtk/gtk-missing.h"
#include "gtk/settings.h"
#include "if/gui_property.h"
#include "if/gui_property_priv.h"
#include "if/gnet_property.h"
#include "if/bridge/ui2c.h"
#include "lib/glib-missing.h"
#include "lib/iso3166.h"
#include "lib/utf8.h"
#include "lib/vendors.h"
#include "lib/override.h"

Functions

 RCSID ("$Id:search_cb.c, v 1.64 2006/02/03 00:00:41 cbiere Exp $")
void refresh_popups (void)
void on_combo_entry_searches_activate (GtkEditable *unused_editable, gpointer unused_udata)
void on_entry_search_activate (GtkEditable *unused_editable, gpointer unused_udata)
void on_entry_search_changed (GtkEditable *editable, gpointer unused_udata)
 When a search string is entered, activate the search button.

void on_search_popdown_switch (GtkWidget *unused_w, gpointer unused_data)
void on_search_notebook_switch (GtkNotebook *notebook, GtkNotebookPage *unused_page, gint page_num, gpointer unused_udata)
 When the user switches notebook tabs, update the rest of GUI.

void on_search_notebook_focus_tab (GtkNotebook *notebook, GtkNotebookTab unused_tab, gpointer unused_udata)
void on_tree_view_search_select_row (GtkTreeView *treeview, gpointer unused_udata)
void on_search_selected (GtkItem *unused_item, gpointer data)
void on_button_search_clicked (GtkButton *unused_button, gpointer unused_udata)
 Create a search based on query entered.

void on_button_search_clear_clicked (GtkButton *unused_button, gpointer unused_udata)
 Clear search results, de-activate clear search button.

void on_button_search_close_clicked (GtkButton *unused_button, gpointer unused_udata)
void on_popup_search_close_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
gboolean on_tree_view_search_results_key_press_event (GtkWidget *unused_widget, GdkEventKey *event, gpointer unused_udata)
gboolean on_tree_view_search_results_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer unused_udata)
gboolean on_tree_view_search_button_press_event (GtkWidget *unused_widget, GdkEventButton *event, gpointer unused_udata)
void on_button_search_filter_clicked (GtkButton *unused_button, gpointer unused_udata)
void on_button_search_download_clicked (GtkButton *unused_button, gpointer unused_udata)
gboolean on_tree_view_search_results_click_column (GtkTreeViewColumn *column, gpointer udata)
const gchar * search_get_vendor_from_record (const record_t *rc)
void search_update_tooltip (GtkTreeView *tv, GtkTreePath *path)
void search_update_details (GtkTreeView *tv, GtkTreePath *path)
void on_tree_view_search_results_select_row (GtkTreeView *tv, gpointer unused_udata)
 This function is called when the user selectes a row in the search results pane.

void on_button_search_passive_clicked (GtkButton *unused_button, gpointer unused_udata)
 Please add comment.

void on_popup_search_download_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_search_drop_name_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected results, create a filter based on name.

void on_popup_search_drop_sha1_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected results, create a filter based on sha1.

void on_popup_search_drop_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected results, create a filter based on host.

void on_popup_search_drop_name_global_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected results, create a global filter based on name.

void on_popup_search_drop_sha1_global_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected results, create a global filter based on sha1.

void on_popup_search_drop_host_global_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected results, create a global filter based on host.

void on_popup_search_autodownload_name_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_autodownload_sha1_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_new_from_selected_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_edit_filter_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_duplicate_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Create a new search identical to the current search.

void on_popup_search_restart_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_resume_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_stop_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Stop current search.

void on_popup_search_config_cols_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_expand_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_collapse_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Please add comment.

void on_popup_search_metadata_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Queue a bitzi queries from the search context menu.

void search_gui_browse_selected_helper (gpointer data, gpointer unused_udata)
void search_gui_browse_selected (void)
 Request host browsing for the selected entries.

void search_callbacks_shutdown (void)

Variables

search_t * search_selected = NULL


Function Documentation

void on_button_search_clear_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

Clear search results, de-activate clear search button.

void on_button_search_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

Create a search based on query entered.

void on_button_search_close_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

void on_button_search_download_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

void on_button_search_filter_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

void on_button_search_passive_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

Please add comment.

void on_combo_entry_searches_activate GtkEditable *  unused_editable,
gpointer  unused_udata
 

void on_entry_search_activate GtkEditable *  unused_editable,
gpointer  unused_udata
 

void on_entry_search_changed GtkEditable *  editable,
gpointer  unused_udata
 

When a search string is entered, activate the search button.

void on_popup_search_autodownload_name_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_autodownload_sha1_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_close_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_search_collapse_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_config_cols_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_download_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_search_drop_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected results, create a filter based on host.

void on_popup_search_drop_host_global_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected results, create a global filter based on host.

void on_popup_search_drop_name_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected results, create a filter based on name.

void on_popup_search_drop_name_global_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected results, create a global filter based on name.

void on_popup_search_drop_sha1_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected results, create a filter based on sha1.

void on_popup_search_drop_sha1_global_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected results, create a global filter based on sha1.

void on_popup_search_duplicate_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Create a new search identical to the current search.

Note:
Doesn't duplicate filters or passive searches yet.

void on_popup_search_edit_filter_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_expand_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_metadata_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Queue a bitzi queries from the search context menu.

void on_popup_search_new_from_selected_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_restart_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_resume_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Please add comment.

void on_popup_search_stop_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Stop current search.

void on_search_notebook_focus_tab GtkNotebook *  notebook,
GtkNotebookTab  unused_tab,
gpointer  unused_udata
 

void on_search_notebook_switch GtkNotebook *  notebook,
GtkNotebookPage *  unused_page,
gint  page_num,
gpointer  unused_udata
 

When the user switches notebook tabs, update the rest of GUI.

This may be obsolete as we removed the tabbed interface --Emile 27/12/03

void on_search_popdown_switch GtkWidget *  unused_w,
gpointer  unused_data
 

void on_search_selected GtkItem *  unused_item,
gpointer  data
 

gboolean on_tree_view_search_button_press_event GtkWidget *  unused_widget,
GdkEventButton *  event,
gpointer  unused_udata
 

gboolean on_tree_view_search_results_button_press_event GtkWidget *  widget,
GdkEventButton *  event,
gpointer  unused_udata
 

gboolean on_tree_view_search_results_click_column GtkTreeViewColumn *  column,
gpointer  udata
 

gboolean on_tree_view_search_results_key_press_event GtkWidget *  unused_widget,
GdkEventKey *  event,
gpointer  unused_udata
 

void on_tree_view_search_results_select_row GtkTreeView *  tv,
gpointer  unused_udata
 

This function is called when the user selectes a row in the search results pane.

Autoselection takes place here.

void on_tree_view_search_select_row GtkTreeView *  treeview,
gpointer  unused_udata
 

RCSID "$Id:search_cb.  c,
v 1.64 2006/02/03 00:00:41 cbiere Exp $" 
 

void refresh_popups void   )  [static]
 

void search_callbacks_shutdown void   ) 
 

const gchar* search_get_vendor_from_record const record_t rc  )  [static]
 

void search_gui_browse_selected void   ) 
 

Request host browsing for the selected entries.

void search_gui_browse_selected_helper gpointer  data,
gpointer  unused_udata
[static]
 

void search_update_details GtkTreeView *  tv,
GtkTreePath *  path
[static]
 

void search_update_tooltip GtkTreeView *  tv,
GtkTreePath *  path
 


Variable Documentation

search_t* search_selected = NULL [static]
 


Generated on Sun Feb 12 10:50:07 2006 for Gtk-Gnutella by doxygen 1.3.6