PostGIS 3.0.6dev-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 795 of file shp2pgsql-gui.c.

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