|
Data Structures |
struct | result_data |
struct | selection_ctx |
struct | menu_helper |
Defines |
#define | MAX_TAG_SHOWN 60 /**< Show only first chars of tag */ |
| Show only first chars of tag.
|
#define | SET(c, x) case (c): columns[i] = (x); break |
Functions |
| RCSID ("$Id:search.c, v 1.82 2006/02/01 23:21:35 cbiere Exp $") |
void | gui_search_create_tree_view (GtkWidget **sw, GtkWidget **tv, gpointer udata) |
| Create a new GtkTreeView for search results.
|
result_data * | get_result_data (GtkTreeModel *model, GtkTreeIter *iter) |
gpointer | search_gui_get_record (GtkTreeModel *model, GtkTreeIter *iter) |
void | search_gui_set_data (GtkTreeModel *model, struct result_data *rd) |
void | cell_renderer (GtkTreeViewColumn *unused_column, GtkCellRenderer *cell, GtkTreeModel *model, GtkTreeIter *iter, gpointer udata) |
GtkCellRenderer * | create_cell_renderer (gfloat xalign) |
GtkTreeViewColumn * | add_column (GtkTreeView *tv, const gchar *name, gint id, gint width, gfloat xalign, GtkTreeCellDataFunc cell_data_func, gint fg_col, gint bg_col) |
void | ht_unref_record (gpointer p) |
| Decrement refcount of hash table key entry.
|
void | add_parent_with_sha1 (GHashTable *ht, gpointer key, struct result_data *data) |
void | remove_parent_with_sha1 (GHashTable *ht, const gchar *sha1) |
result_data * | find_parent_with_sha1 (GHashTable *ht, gpointer key) |
gboolean | unref_record (GtkTreeModel *model, GtkTreePath *unused_path, GtkTreeIter *iter, gpointer ht_ptr) |
void | search_gui_clear_store (search_t *sch) |
void | search_gui_reset_search (search_t *sch) |
| Reset the internal model of the search.
|
gboolean | on_leave_notify (GtkWidget *widget, GdkEventCrossing *unused_event, gpointer unused_udata) |
gboolean | gui_search_update_tab_label_cb (gpointer p) |
void | search_gui_clear_search (search_t *sch) |
| Clear all results from search.
|
void | search_gui_close_search (search_t *sch) |
| Remove the search from the list of searches and free all associated ressources (including filter and gui stuff).
|
gboolean | search_gui_new_search_full (const gchar *querystr, time_t create_time, guint lifetime, guint32 reissue_timeout, gint sort_col, gint sort_order, flag_t flags, search_t **search) |
| Create a new search and start it.
|
gint | search_gui_cmp_size (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
| Search results.
|
gint | search_gui_cmp_count (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
gint | search_gui_cmp_strings (const gchar *a, const gchar *b) |
gint | search_gui_cmp_filename (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
gint | search_gui_cmp_charset (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
gint | search_gui_cmp_ext (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
gint | search_gui_cmp_meta (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
gint | search_gui_cmp_country (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
gint | search_gui_cmp_info (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer unused_udata) |
gchar * | search_gui_get_info (const record_t *rc, const gchar *vinfo) |
void | search_gui_add_record (search_t *sch, record_t *rc, GString *vinfo, GdkColor *fg, GdkColor *bg) |
| Adds the record to gth GtkCTree for this search.
|
const record_t * | search_gui_get_record_at_path (GtkTreeView *tv, GtkTreePath *path) |
void | search_gui_set_clear_button_sensitive (gboolean flag) |
void | download_selected_file (GtkTreeModel *model, GtkTreeIter *iter, GSList **sl) |
void | remove_selected_file (gpointer iter_ptr, gpointer model_ptr) |
void | download_selected_all_files (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
void | collect_all_iters (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
gboolean | search_gui_menu_select_helper (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
void | search_gui_menu_select (gint page) |
void | search_gui_download_files (void) |
| Download selected files.
|
void | search_gui_discard_files (void) |
| Discard selected files.
|
void | add_list_columns (GtkTreeView *tv) |
void | add_results_column (GtkTreeView *tv, const gchar *name, gint id, gint width, gfloat xalign, GtkTreeIterCompareFunc sortfunc, gpointer udata) |
GtkTreeModel * | create_searches_model (void) |
void | search_gui_init (void) |
void | search_gui_shutdown (void) |
const GList * | search_gui_get_searches (void) |
void | selection_counter_helper (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
gint | selection_counter (GtkTreeView *tv) |
void | search_gui_remove_search (search_t *sch) |
| Remove the search from the gui and update all widgets accordingly.
|
void | search_gui_set_current_search (search_t *sch) |
GtkTreeModel * | create_results_model (void) |
void | add_results_columns (GtkTreeView *treeview, gpointer udata) |
gboolean | search_by_regex (GtkTreeModel *model, gint column, const gchar *key, GtkTreeIter *iter, gpointer unused_data) |
gboolean | tree_view_search_update (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
void | gui_search_force_update_tab_label (search_t *sch, time_t now) |
| Like search_update_tab_label but always update the label.
|
gboolean | gui_search_update_tab_label (struct search *sch) |
| Update the label if nothing's changed or if the last update was recent.
|
void | gui_search_clear_results (void) |
| Removes all search results from the current search.
|
void | gui_search_get_colors (search_t *sch, GdkColor **mark_color, GdkColor **ignore_color, GdkColor **download_color) |
| Extract the mark/ignore/download color.
|
void | gui_search_set_enabled (struct search *sch, gboolean enabled) |
| Flag whether search is enabled.
|
void | search_gui_expand_all (void) |
| Expand all nodes in tree for current search.
|
void | search_gui_collapse_all (void) |
| Expand all nodes in tree for current search.
|
void | search_gui_start_massive_update (search_t *sch) |
void | search_gui_end_massive_update (search_t *sch) |
void | search_gui_request_bitzi_data (void) |
void | search_gui_metadata_update (const bitzi_data_t *data) |
| Metadata Update.
|
Variables |
GList * | searches = NULL |
| List of search structs.
|
GtkTreeView * | tree_view_search = NULL |
GtkNotebook * | notebook_search_results = NULL |
GtkButton * | button_search_clear = NULL |
gboolean | search_gui_shutting_down = FALSE |
GtkWidget * | default_search_tree_view = NULL |
GtkWidget * | default_scrolled_window = NULL |
tree_view_motion_t * | tvm_search |
| For cyclic updates of the tooltip.
|