PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void add_loader_file_config_to_list ( SHPLOADERCONFIG loader_file_config)
static

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

References _, shp_loader_config::geo_col, import_file_list_store, IMPORT_FILENAME_COLUMN, IMPORT_GEOMETRY_COLUMN, IMPORT_MODE_COLUMN, IMPORT_POINTER_COLUMN, IMPORT_SCHEMA_COLUMN, IMPORT_SRID_COLUMN, IMPORT_TABLE_COLUMN, lw_asprintf(), shp_loader_config::schema, shp_loader_config::shp_file, shp_loader_config::sr_id, shp_loader_config::table, and update_filename_field_width().

Referenced by pgui_action_open_file_dialog(), and process_single_uri().

962 {
963  GtkTreeIter iter;
964  char *srid;
965 
966  /* Convert SRID into string */
967  lw_asprintf(&srid, "%d", loader_file_config->sr_id);
968 
969  gtk_list_store_insert_before(import_file_list_store, &iter, NULL);
970  gtk_list_store_set(import_file_list_store, &iter,
971  IMPORT_POINTER_COLUMN, loader_file_config,
972  IMPORT_FILENAME_COLUMN, loader_file_config->shp_file,
973  IMPORT_SCHEMA_COLUMN, loader_file_config->schema,
974  IMPORT_TABLE_COLUMN, loader_file_config->table,
975  IMPORT_GEOMETRY_COLUMN, loader_file_config->geo_col,
976  IMPORT_SRID_COLUMN, srid,
977  IMPORT_MODE_COLUMN, _("Create"),
978  -1);
979 
980  /* Update the filename field width */
982 
983  return;
984 }
#define _(String)
Definition: shpcommon.h:23
static void update_filename_field_width(void)
int lw_asprintf(result, va_alist)
GtkListStore * import_file_list_store
Definition: shp2pgsql-gui.c:58

Here is the call graph for this function:

Here is the caller graph for this function: