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

Go to the source code of this file.

Functions

void size_change_request (GtkWidget *widget, void *user_data)
 
void on_settingsOKBtn_clicked (GtkWidget *widget, void *user_data)
 
void on_settingsApplyBtn_clicked (GtkWidget *widget, void *user_data)
 
void on_dlgSettings_close (GtkWidget *widget, void *user_data)
 
void on_settingsCancelBtn_clicked (GtkWidget *widget, void *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

◆ copy_attr()

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

Definition at line 51 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 142 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 79 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 232 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 185 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 173 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 96 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 246 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,
void *  user_data 
)

Definition at line 38 of file topviewsettings.c.

References xml.

◆ on_settingsApplyBtn_clicked()

void on_settingsApplyBtn_clicked ( GtkWidget *  widget,
void *  user_data 
)

Definition at line 29 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,
void *  user_data 
)

Definition at line 45 of file topviewsettings.c.

References xml.

◆ on_settingsOKBtn_clicked()

void on_settingsOKBtn_clicked ( GtkWidget *  widget,
void *  user_data 
)

Definition at line 24 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 121 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 57 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 216 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 198 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 155 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 105 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 302 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,
void *  user_data 
)

Definition at line 19 of file topviewsettings.c.

◆ update_graph_from_settings()

void update_graph_from_settings ( Agraph_t g)

Definition at line 272 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: