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

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().

793 {
794  gboolean includegid = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_dumper_options_includegid));
795  gboolean keep_fieldname_case = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_dumper_options_keep_fieldname_case));
796  gboolean unescapedattrs = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_dumper_options_unescapedattrs));
797 
798  /* Include gid or not */
799  if (includegid)
800  config->includegid = 1;
801  else
802  config->includegid = 0;
803 
804  /* Keep fieldname case */
805  if (keep_fieldname_case)
806  config->keep_fieldname_case = 1;
807  else
808  config->keep_fieldname_case = 0;
809 
810  /* Escape column names or not */
811  if (unescapedattrs)
812  config->unescapedattrs = 1;
813  else
814  config->unescapedattrs = 0;
815 
816  return;
817 }
static GtkWidget * checkbutton_dumper_options_keep_fieldname_case
static GtkWidget * checkbutton_dumper_options_unescapedattrs
static GtkWidget * checkbutton_dumper_options_includegid
Here is the caller graph for this function: