PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ update_dumper_config_globals_from_options_ui()

static void update_dumper_config_globals_from_options_ui ( SHPDUMPERCONFIG config)
static

Definition at line 797 of file shp2pgsql-gui.c.

798{
799 gboolean includegid = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_dumper_options_includegid));
800 gboolean keep_fieldname_case = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_dumper_options_keep_fieldname_case));
801 gboolean unescapedattrs = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_dumper_options_unescapedattrs));
802
803 /* Include gid or not */
804 if (includegid)
805 config->includegid = 1;
806 else
807 config->includegid = 0;
808
809 /* Keep fieldname case */
810 if (keep_fieldname_case)
811 config->keep_fieldname_case = 1;
812 else
813 config->keep_fieldname_case = 0;
814
815 /* Escape column names or not */
816 if (unescapedattrs)
817 config->unescapedattrs = 1;
818 else
819 config->unescapedattrs = 0;
820
821 return;
822}
static GtkWidget * checkbutton_dumper_options_keep_fieldname_case
static GtkWidget * checkbutton_dumper_options_unescapedattrs
static GtkWidget * checkbutton_dumper_options_includegid

References checkbutton_dumper_options_includegid, checkbutton_dumper_options_keep_fieldname_case, checkbutton_dumper_options_unescapedattrs, shp_dumper_config::includegid, shp_dumper_config::keep_fieldname_case, and shp_dumper_config::unescapedattrs.

Referenced by pgui_set_dumper_configs_from_options_ui().

Here is the caller graph for this function: