return attr;
}
-
static attr_t *new_attr_with_ref(Agsym_t * sym)
{
attr_t *attr = new_attr();
}
}
-
-
static void free_attr_list_widgets(attr_list * l)
{
int id;
static void attr_list_sort(attr_list * l)
{
qsort(l->attributes, l->attr_count, sizeof(attr_t *), attr_compare);
-
}
static void attr_list_add(attr_list *l, attr_t *a) {
/*update indices */
for (id = 0; id < l->attr_count; id++)
l->attributes[id]->index = id;
-
-
-
}
+
static attr_data_type get_attr_data_type(char c)
{
switch (c) {
break;
}
return attr_alpha;
-
}
+
static void object_type_helper(char *a, int *t)
{
if (strcmp(a, "GRAPH") == 0)
static void set_attr_object_type(char *str, int *t)
{
-
char *a;
a = strtok(str, " ");
object_type_helper(a, t);
while ((a = strtok(NULL, " or ")))
object_type_helper(a, t);
-
}
static attr_t *binarySearch(attr_list * l, char *searchKey)
return NULL;
}
-
-
-
-
-
static attr_t *pBinarySearch(attr_list * l, char *searchKey)
{
char buf[512];
}
}
return NULL;
-
}
static void create_filtered_list(char *prefix, attr_list * sl, attr_list * tl)
attr_list_add(tl, new_attr_ref(at));
}
}
+
static void filter_attributes(char *prefix, topview * t)
{
-
int ind;
int tmp;
gtk_toggle_button_set_active((GtkToggleButton *)
glade_xml_get_widget(xml, "attrProg"), 0);
-
-
-
if (strlen(prefix) == 0) {
gtk_widget_hide(glade_xml_get_widget(xml, "attrAddBtn"));
gtk_widget_hide(glade_xml_get_widget(xml, "attrApplyBtn"));
Color_Widget_bg("white", glade_xml_get_widget(xml, "txtAttr"));
}
-
for (ind = 0; ind < fl->attr_count; ind++) {
if (strcasecmp(prefix, fl->attributes[ind]->name) == 0) { /*an existing attribute */
"attrProg"),
fl->attributes[0]->propagate);
break;
-
}
}
view->Topview);
}
-
static void set_refresh_filters(ViewInfo * v, int type, char *name)
{
if (strcasecmp(name, "pos") == 0)
fprintf(stderr, "on_attrAddBtn_clicked: unknown object kind %d\n",
objKind);
filter_attributes(attr_name, view->Topview);
-
}
attr_list *load_attr_list(Agraph_t * g)
else if (objType == AGEDGE)
agxbprint(&sf, "E[%s==\"%s\"]{selected = \"1\"}", attr, regex_str);
-
-
bf2 = agxbdisown(&sf);
argc = 1;