PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ update_dumper_config_globals_from_options_ui()

static void update_dumper_config_globals_from_options_ui ( SHPDUMPERCONFIG config)
static

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

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