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

filter.h File Reference

#include "gui.h"
#include "filter_core.h"

Go to the source code of this file.

Enumerations

enum  {
  nb_filt_page_buttons = 0, nb_filt_page_text, nb_filt_page_ip, nb_filt_page_size,
  nb_filt_page_jump, nb_filt_page_sha1, nb_filt_page_flag, nb_filt_page_state,
  nb_filt_page_num
}
 Notebook tabs in the filter detail notebook. More...


Functions

void filter_gui_edit_ip_rule (rule_t *)
 Load a ip rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_jump_rule (rule_t *)
 Load a jump rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_rule (rule_t *)
 Load the given rule into the detail view.

void filter_gui_edit_size_rule (rule_t *)
 Load a size rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_text_rule (rule_t *)
 Load a text rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_sha1_rule (rule_t *)
 Load a sha1 rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_flag_rule (rule_t *)
 Load a flag rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_state_rule (rule_t *)
 Load a state rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_filter_add (filter_t *f, GList *ruleset)
void filter_gui_filter_clear_list (void)
void filter_gui_filter_remove (filter_t *f)
void filter_gui_filter_set_enabled (filter_t *f, gboolean active)
 Tell the gui a given filter is enabled/disabled.

void filter_gui_filter_set (filter_t *, gboolean, gboolean, GList *)
 Don't use this directly.

void filter_gui_init (void)
 Initialize the contents of the dialog editor and some internal variables like the roots in the filter list etc.

void filter_gui_rebuild_target_combos (GList *filters)
void filter_gui_set_ruleset (GList *ruleset)
 Fetch the rule which is currently edited.

void filter_gui_update_filter_stats (void)
void filter_gui_update_rule_stats (void)
void filter_gui_show_dialog (void)
 Show the dialog on screen and set position.

rule_tfilter_gui_get_rule (void)
void filter_gui_update_rule_count (filter_t *f, GList *ruleset)
guint64 filter_update_size (GtkEntry *entry)

Variables

GtkWidget * filter_dialog
GtkWidget * popup_filter_rule


Enumeration Type Documentation

anonymous enum
 

Notebook tabs in the filter detail notebook.

Enumeration values:
nb_filt_page_buttons 
nb_filt_page_text 
nb_filt_page_ip 
nb_filt_page_size 
nb_filt_page_jump 
nb_filt_page_sha1 
nb_filt_page_flag 
nb_filt_page_state 
nb_filt_page_num 


Function Documentation

void filter_gui_edit_flag_rule rule_t  ) 
 

Load a flag rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_ip_rule rule_t  ) 
 

Load a ip rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_jump_rule rule_t  ) 
 

Load a jump rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_rule rule_t  ) 
 

Load the given rule into the detail view.

void filter_gui_edit_sha1_rule rule_t  ) 
 

Load a sha1 rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_size_rule rule_t  ) 
 

Load a size rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_state_rule rule_t  ) 
 

Load a state rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_edit_text_rule rule_t  ) 
 

Load a text rule into the rule edtior or clear it if the rule is NULL.

void filter_gui_filter_add filter_t f,
GList *  ruleset
 

void filter_gui_filter_clear_list void   ) 
 

void filter_gui_filter_remove filter_t f  ) 
 

void filter_gui_filter_set filter_t f,
gboolean  removable,
gboolean  active,
GList *  ruleset
 

Don't use this directly.

Better use filter_set from filter.c. Tell the gui to set itself up to work on the given filter. The information about removeable/active state and ruleset are not taken from the filter!

Note:
This does not rebuild the target combos.

void filter_gui_filter_set_enabled filter_t f,
gboolean  active
 

Tell the gui a given filter is enabled/disabled.

If the filter given is NULL, then the widget will be set insensitive and inactive.

rule_t* filter_gui_get_rule void   ) 
 

void filter_gui_init void   ) 
 

Initialize the contents of the dialog editor and some internal variables like the roots in the filter list etc.

void filter_gui_rebuild_target_combos GList *  filters  ) 
 

void filter_gui_set_ruleset GList *  ruleset  ) 
 

Fetch the rule which is currently edited.

Returns:
a completely new rule_t item in new memory.

void filter_gui_show_dialog void   ) 
 

Show the dialog on screen and set position.

void filter_gui_update_filter_stats void   ) 
 

void filter_gui_update_rule_count filter_t f,
GList *  ruleset
 

void filter_gui_update_rule_stats void   ) 
 

guint64 filter_update_size GtkEntry *  entry  ) 
 


Variable Documentation

GtkWidget* filter_dialog
 

GtkWidget* popup_filter_rule
 


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