Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
topviewsettings.c File Reference
#include "topviewfuncs.h"
#include "topviewsettings.h"
#include "gui.h"
#include <cgraph/startswith.h>
#include <common/colorprocs.h>
#include "viewport.h"
Include dependency graph for topviewsettings.c:

Go to the source code of this file.

Functions

void color_change_request (GtkWidget *widget, gpointer user_data)
 
void size_change_request (GtkWidget *widget, gpointer user_data)
 
void on_settingsOKBtn_clicked (GtkWidget *widget, gpointer user_data)
 
void on_settingsApplyBtn_clicked (GtkWidget *widget, gpointer user_data)
 
void on_dlgSettings_close (GtkWidget *widget, gpointer user_data)
 
void on_settingsCancelBtn_clicked (GtkWidget *widget, gpointer user_data)
 
static void copy_attr (Agraph_t *destG, char *attrib, Agraph_t *g)
 
static void set_color_button_widget (char *attrib, char *widget_name)
 
static void get_color_button_widget_to_attribute (char *attrib, char *widget_name, Agraph_t *g)
 
static void get_text_widget_to_attribute (char *attrib, char *widget_name, Agraph_t *g)
 
static void set_text_widget (char *attrib, char *widget_name)
 
static void set_checkbox_widget (char *attrib, char *widget_name)
 
static void get_checkbox_widget_to_attribute (char *attrib, char *widget_name, Agraph_t *g)
 
static void set_spinbtn_widget (char *attrib, char *widget_name)
 
static void get_spinbtn_widget_to_attribute (char *attrib, char *widget_name, Agraph_t *g)
 
static void get_scalebtn_widget_to_attribute (char *attrib, char *widget_name, Agraph_t *g)
 
static void set_scalebtn_widget_to_attribute (char *attrib, char *widget_name)
 
static void set_combobox_widget (char *attrib, char *widget_name)
 
static void get_combobox_widget_to_attribute (char *attrib, char *widget_name, Agraph_t *g)
 
void load_settings_from_graph (void)
 
void update_graph_from_settings (Agraph_t *g)
 
void show_settings_form (void)
 

Function Documentation

◆ color_change_request()

void color_change_request ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 18 of file topviewsettings.c.

References refresh_filter::color, _ViewInfo::refresh, and view.

◆ copy_attr()

static void copy_attr ( Agraph_t destG,
char *  attrib,
Agraph_t g 
)
static

Definition at line 61 of file topviewsettings.c.

References agattr(), agget(), and AGRAPH.

Referenced by set_checkbox_widget(), set_color_button_widget(), set_combobox_widget(), set_scalebtn_widget_to_attribute(), set_spinbtn_widget(), and set_text_widget().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_checkbox_widget_to_attribute()

static void get_checkbox_widget_to_attribute ( char *  attrib,
char *  widget_name,
Agraph_t g 
)
static

Definition at line 153 of file topviewsettings.c.

References agattr(), AGRAPH, and xml.

Referenced by update_graph_from_settings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_color_button_widget_to_attribute()

static void get_color_button_widget_to_attribute ( char *  attrib,
char *  widget_name,
Agraph_t g 
)
static

Definition at line 90 of file topviewsettings.c.

References agattr(), AGRAPH, color(), and xml.

Referenced by update_graph_from_settings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_combobox_widget_to_attribute()

static void get_combobox_widget_to_attribute ( char *  attrib,
char *  widget_name,
Agraph_t g 
)
static

Definition at line 243 of file topviewsettings.c.

References agattr(), AGRAPH, and xml.

Referenced by update_graph_from_settings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_scalebtn_widget_to_attribute()

static void get_scalebtn_widget_to_attribute ( char *  attrib,
char *  widget_name,
Agraph_t g 
)
static

Definition at line 196 of file topviewsettings.c.

References agattr(), AGRAPH, and xml.

Referenced by update_graph_from_settings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_spinbtn_widget_to_attribute()

static void get_spinbtn_widget_to_attribute ( char *  attrib,
char *  widget_name,
Agraph_t g 
)
static

Definition at line 184 of file topviewsettings.c.

References agattr(), AGRAPH, and xml.

Referenced by update_graph_from_settings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_text_widget_to_attribute()

static void get_text_widget_to_attribute ( char *  attrib,
char *  widget_name,
Agraph_t g 
)
static

Definition at line 107 of file topviewsettings.c.

References agattr(), AGRAPH, and xml.

Referenced by update_graph_from_settings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_settings_from_graph()

void load_settings_from_graph ( void  )

Definition at line 257 of file topviewsettings.c.

References agget(), agnxtattr(), AGRAPH, systemgraphs::attrs_widgets, Agsym_s::name, NULL, set_checkbox_widget(), set_color_button_widget(), set_combobox_widget(), set_scalebtn_widget_to_attribute(), set_spinbtn_widget(), set_text_widget(), startswith(), _ViewInfo::systemGraphs, and view.

Referenced by refreshViewport(), and show_settings_form().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_dlgSettings_close()

void on_dlgSettings_close ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 46 of file topviewsettings.c.

References xml.

◆ on_settingsApplyBtn_clicked()

void on_settingsApplyBtn_clicked ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 37 of file topviewsettings.c.

References _ViewInfo::activeGraph, _ViewInfo::g, set_viewport_settings_from_template(), _ViewInfo::Topview, update_graph_from_settings(), updateSmGraph(), and view.

Referenced by on_settingsOKBtn_clicked().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_settingsCancelBtn_clicked()

void on_settingsCancelBtn_clicked ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 54 of file topviewsettings.c.

References xml.

◆ on_settingsOKBtn_clicked()

void on_settingsOKBtn_clicked ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 31 of file topviewsettings.c.

References on_settingsApplyBtn_clicked(), and xml.

Here is the call graph for this function:

◆ set_checkbox_widget()

static void set_checkbox_widget ( char *  attrib,
char *  widget_name 
)
static

Definition at line 132 of file topviewsettings.c.

References _ViewInfo::activeGraph, agget(), copy_attr(), systemgraphs::def_attrs, _ViewInfo::g, _ViewInfo::systemGraphs, view, and xml.

Referenced by load_settings_from_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_color_button_widget()

static void set_color_button_widget ( char *  attrib,
char *  widget_name 
)
static

Definition at line 67 of file topviewsettings.c.

References _ViewInfo::activeGraph, agget(), color(), colorxlate(), copy_attr(), systemgraphs::def_attrs, _ViewInfo::g, color_s::RGBA, RGBA_DOUBLE, _ViewInfo::systemGraphs, color_s::u, view, and xml.

Referenced by load_settings_from_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_combobox_widget()

static void set_combobox_widget ( char *  attrib,
char *  widget_name 
)
static

Definition at line 227 of file topviewsettings.c.

References _ViewInfo::activeGraph, agget(), copy_attr(), systemgraphs::def_attrs, _ViewInfo::g, _ViewInfo::systemGraphs, view, and xml.

Referenced by load_settings_from_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_scalebtn_widget_to_attribute()

static void set_scalebtn_widget_to_attribute ( char *  attrib,
char *  widget_name 
)
static

Definition at line 209 of file topviewsettings.c.

References _ViewInfo::activeGraph, agget(), copy_attr(), systemgraphs::def_attrs, _ViewInfo::g, _ViewInfo::systemGraphs, view, and xml.

Referenced by load_settings_from_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_spinbtn_widget()

static void set_spinbtn_widget ( char *  attrib,
char *  widget_name 
)
static

Definition at line 166 of file topviewsettings.c.

References _ViewInfo::activeGraph, agget(), copy_attr(), systemgraphs::def_attrs, _ViewInfo::g, _ViewInfo::systemGraphs, view, and xml.

Referenced by load_settings_from_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_text_widget()

static void set_text_widget ( char *  attrib,
char *  widget_name 
)
static

Definition at line 116 of file topviewsettings.c.

References _ViewInfo::activeGraph, agget(), copy_attr(), systemgraphs::def_attrs, _ViewInfo::g, _ViewInfo::systemGraphs, view, and xml.

Referenced by load_settings_from_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_settings_form()

void show_settings_form ( void  )

Definition at line 313 of file topviewsettings.c.

References _ViewInfo::activeGraph, load_settings_from_graph(), NULL, view, and xml.

Referenced by mTopviewSettingsSlot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ size_change_request()

void size_change_request ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 25 of file topviewsettings.c.

◆ update_graph_from_settings()

void update_graph_from_settings ( Agraph_t g)

Definition at line 283 of file topviewsettings.c.

References agget(), agnxtattr(), AGRAPH, systemgraphs::attrs_widgets, get_checkbox_widget_to_attribute(), get_color_button_widget_to_attribute(), get_combobox_widget_to_attribute(), get_scalebtn_widget_to_attribute(), get_spinbtn_widget_to_attribute(), get_text_widget_to_attribute(), Agsym_s::name, NULL, startswith(), _ViewInfo::systemGraphs, and view.

Referenced by on_settingsApplyBtn_clicked(), refreshViewport(), and run_gvpr().

Here is the call graph for this function:
Here is the caller graph for this function: