PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void update_dumper_config_globals_from_options_ui ( SHPDUMPERCONFIG config)
static

Definition at line 799 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().

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