Graphviz 13.1.3~dev.20250829.0113
|
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "gui.h"
#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdk.h>
#include "viewport.h"
#include "frmobjectui.h"
#include <assert.h>
#include "gvprpipe.h"
#include <stdint.h>
#include <string.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
#include <util/strcasecmp.h>
#include <util/startswith.h>
#include <util/strview.h>
#include <util/unreachable.h>
Go to the source code of this file.
Functions | |
static char * | safestrdup (const char *src) |
static int | get_object_type (void) |
static attr_t * | new_attr (void) |
static attr_t * | new_attr_with_ref (Agsym_t *sym) |
static attr_t * | new_attr_ref (attr_t *refAttr) |
static void | reset_attr_list_widgets (attr_list *l) |
static attr_list * | attr_list_new (bool with_widgets) |
static int | attr_compare_core (const void *key, const void *candidate) |
static int | attr_compare (const void *x, const void *y) |
static void | attr_list_add (attr_list *l, attr_t *a) |
static attr_data_type | get_attr_data_type (char c) |
static void | object_type_helper (strview_t a, int *t) |
static void | set_attr_object_type (const char *str, int *t) |
static attr_t * | binarySearch (attr_list *l, const char *searchKey) |
static int | cmp (const void *key, const void *candidate) |
static void | create_filtered_list (const char *prefix, attr_list *sl, attr_list *tl) |
static void | filter_attributes (const char *prefix, topview *t) |
_BB void | on_txtAttr_changed (GtkWidget *widget, void *user_data) |
static void | doApply (void) |
_BB void | on_attrApplyBtn_clicked (GtkWidget *widget, void *user_data) |
_BB void | on_attrRB0_clicked (GtkWidget *widget, void *user_data) |
_BB void | on_attrProg_toggled (GtkWidget *widget, void *user_data) |
_BB void | on_attrAddBtn_clicked (GtkWidget *widget, void *user_data) |
attr_list * | load_attr_list (Agraph_t *g) |
static void | set_header_text (void) |
void | showAttrsWidget (void) |
static void | gvpr_select (const char *attrname, const char *regex_str, int objType) |
_BB void | on_attrSearchBtn_clicked (GtkWidget *widget, void *user_data) |
Variables | |
static int | sel_node |
static int | sel_edge |
static int | sel_graph |
|
static |
Definition at line 138 of file frmobjectui.c.
References attr_compare_core().
Referenced by attr_list_add().
|
static |
Definition at line 132 of file frmobjectui.c.
Referenced by attr_compare(), and binarySearch().
Definition at line 144 of file frmobjectui.c.
References attr_compare(), attr_list::attributes, id, LIST_APPEND, LIST_GET, LIST_SIZE, and LIST_SORT.
Referenced by create_filtered_list(), load_attr_list(), and on_attrAddBtn_clicked().
|
static |
Definition at line 107 of file frmobjectui.c.
References Color_Widget_bg(), attr_list::fLabels, gv_alloc(), id, MAX_FILTERED_ATTR_COUNT, and xml.
Referenced by filter_attributes(), and load_attr_list().
Definition at line 210 of file frmobjectui.c.
References attr_compare_core(), attr_list::attributes, LIST_FRONT, LIST_SIZE, LIST_SYNC, and NULL.
Referenced by doApply(), load_attr_list(), and on_attrAddBtn_clicked().
|
static |
Definition at line 221 of file frmobjectui.c.
References attr_t::name.
Referenced by add_edges_in_G(), addVertex(), create_filtered_list(), dttree(), dtvsearch(), gv_list_sort_(), and strview_cmp().
Definition at line 226 of file frmobjectui.c.
References attr_list_add(), attr_list::attributes, cmp(), get_object_type(), attr_t::index, LIST_FRONT, LIST_GET, LIST_SIZE, LIST_SYNC, attr_t::name, new_attr_ref(), attr_t::objType, and prefix.
Referenced by filter_attributes().
|
static |
Definition at line 344 of file frmobjectui.c.
References _ViewInfo::activeGraph, agattr_text(), AGEDGE, agfstnode(), agfstout(), AGNODE, agnxtnode(), agnxtout(), AGRAPH, agset(), agxset(), topview::attributes, binarySearch(), ED_selected, _ViewInfo::g, get_object_type(), ND_selected, NULL, attr_t::propagate, _ViewInfo::Topview, view, and xml.
Referenced by on_attrApplyBtn_clicked().
|
static |
Definition at line 252 of file frmobjectui.c.
References AGEDGE, AGNODE, AGRAPH, attr_list_new(), attr_list::attributes, topview::attributes, Color_Widget_bg(), create_filtered_list(), attr_list::fLabels, get_object_type(), LIST_GET, LIST_IS_EMPTY, LIST_SIZE, prefix, reset_attr_list_widgets(), sel_edge, sel_graph, sel_node, and xml.
Referenced by on_attrAddBtn_clicked(), on_attrRB0_clicked(), on_txtAttr_changed(), and showAttrsWidget().
|
static |
Definition at line 154 of file frmobjectui.c.
References attr_alpha, attr_bool, attr_float, and attr_int.
Referenced by load_attr_list().
|
static |
Definition at line 42 of file frmobjectui.c.
References AGEDGE, AGNODE, AGRAPH, and xml.
Referenced by create_filtered_list(), doApply(), filter_attributes(), on_attrAddBtn_clicked(), and on_attrSearchBtn_clicked().
|
static |
Definition at line 602 of file frmobjectui.c.
References _ViewInfo::activeGraph, AGEDGE, AGNODE, agxbdisown(), agxbprint(), free(), _ViewInfo::g, run_gvpr(), set_header_text(), and view.
Referenced by on_attrSearchBtn_clicked().
Definition at line 479 of file frmobjectui.c.
References _ViewInfo::activeGraph, AGEDGE, AGNODE, agnxtattr(), AGRAPH, attr_list_add(), attr_list_new(), binarySearch(), attr_t::defValE, attr_t::defValG, attr_t::defValN, _ViewInfo::g, get_attr_data_type(), gv_strdup(), attr_t::index, attr_t::name, new_attr(), new_attr_with_ref(), NULL, attr_t::objType, set_attr_object_type(), smyrnaPath(), attr_t::type, and view.
Referenced by initSmGraph().
|
static |
Definition at line 56 of file frmobjectui.c.
References gv_alloc().
Referenced by load_attr_list(), new_attr_with_ref(), and on_attrAddBtn_clicked().
Definition at line 83 of file frmobjectui.c.
References attr_t::defValE, attr_t::defValG, attr_t::defValN, gv_alloc(), gv_strdup(), attr_t::name, safestrdup(), and attr_t::value.
Referenced by create_filtered_list().
Definition at line 60 of file frmobjectui.c.
References AGEDGE, AGNODE, AGRAPH, Agsym_s::defval, attr_t::defValE, attr_t::defValG, attr_t::defValN, gv_strdup(), Agsym_s::kind, attr_t::name, Agsym_s::name, new_attr(), attr_t::objType, safestrdup(), and UNREACHABLE.
Referenced by load_attr_list().
|
static |
Definition at line 175 of file frmobjectui.c.
References strview_str_eq().
Referenced by set_attr_object_type().
_BB void on_attrAddBtn_clicked | ( | GtkWidget * | widget, |
void * | user_data | ||
) |
Definition at line 425 of file frmobjectui.c.
References _ViewInfo::activeGraph, agattr_text(), AGEDGE, AGNODE, AGRAPH, attr_alpha, attr_list_add(), topview::attributes, binarySearch(), attr_t::defValE, attr_t::defValG, attr_t::defValN, filter_attributes(), _ViewInfo::g, get_object_type(), gv_strdup(), attr_t::index, attr_t::name, new_attr(), NULL, attr_t::objType, attr_t::propagate, safestrdup(), _ViewInfo::Topview, attr_t::type, attr_t::value, view, attr_t::widget, and xml.
_BB void on_attrApplyBtn_clicked | ( | GtkWidget * | widget, |
void * | user_data | ||
) |
Definition at line 400 of file frmobjectui.c.
References doApply().
_BB void on_attrProg_toggled | ( | GtkWidget * | widget, |
void * | user_data | ||
) |
Definition at line 419 of file frmobjectui.c.
_BB void on_attrRB0_clicked | ( | GtkWidget * | widget, |
void * | user_data | ||
) |
Definition at line 407 of file frmobjectui.c.
References filter_attributes(), _ViewInfo::Topview, view, and xml.
_BB void on_attrSearchBtn_clicked | ( | GtkWidget * | widget, |
void * | user_data | ||
) |
Definition at line 631 of file frmobjectui.c.
References get_object_type(), gvpr_select(), and xml.
_BB void on_txtAttr_changed | ( | GtkWidget * | widget, |
void * | user_data | ||
) |
Definition at line 339 of file frmobjectui.c.
References filter_attributes(), _ViewInfo::Topview, and view.
|
static |
Definition at line 95 of file frmobjectui.c.
References attr_list::fLabels, id, and MAX_FILTERED_ATTR_COUNT.
Referenced by filter_attributes().
|
static |
Definition at line 36 of file frmobjectui.c.
References gv_strdup(), and NULL.
Referenced by new_attr_ref(), new_attr_with_ref(), and on_attrAddBtn_clicked().
|
static |
Definition at line 191 of file frmobjectui.c.
References strview_t::data, NULL, object_type_helper(), strview_t::size, startswith(), str, and strview().
Referenced by load_attr_list().
|
static |
Definition at line 555 of file frmobjectui.c.
References _ViewInfo::activeGraph, agfstnode(), agfstout(), agnxtnode(), agnxtout(), Color_Widget_bg(), _ViewInfo::g, ND_selected, sel_edge, sel_graph, sel_node, view, and xml.
Referenced by gvpr_select(), and showAttrsWidget().
void showAttrsWidget | ( | void | ) |
Definition at line 583 of file frmobjectui.c.
References _ViewInfo::activeGraph, ATTR_NOTEBOOK_IDX, filter_attributes(), NULL, set_header_text(), _ViewInfo::Topview, view, and xml.
Referenced by attrList(), and mAttributesSlot().
|
static |
Definition at line 33 of file frmobjectui.c.
Referenced by filter_attributes(), and set_header_text().
|
static |
Definition at line 34 of file frmobjectui.c.
Referenced by filter_attributes(), and set_header_text().
|
static |
Definition at line 32 of file frmobjectui.c.
Referenced by filter_attributes(), and set_header_text().