PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ pgui_action_handle_dumper_edit()

static void pgui_action_handle_dumper_edit ( GtkCellRendererText *  renderer,
gchar *  path,
gchar *  new_text,
gpointer  column 
)
static

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

2366 {
2367  GtkTreeIter iter;
2368  gpointer gptr;
2369  gint columnindex;
2370  SHPDUMPERCONFIG *dumper_table_config;
2371 
2372  /* Empty doesn't fly */
2373  if (strlen(new_text) == 0)
2374  return;
2375 
2376  /* Update the model with the current edit change */
2377  columnindex = *(gint *)column;
2378  gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(export_table_list_store), &iter, path);
2379  gtk_list_store_set(export_table_list_store, &iter, columnindex, new_text, -1);
2380 
2381  /* Grab the SHPDUMPERCONFIG from the EXPORT_POINTER_COLUMN for the list store */
2382  gtk_tree_model_get(GTK_TREE_MODEL(export_table_list_store), &iter, EXPORT_POINTER_COLUMN, &gptr, -1);
2383  dumper_table_config = (SHPDUMPERCONFIG *)gptr;
2384 
2385  /* Update the configuration from the current UI data */
2386  update_dumper_table_config_from_listview_iter(&iter, dumper_table_config);
2387 
2388  /* Now refresh the listview UI row with the new configuration */
2389  gtk_list_store_set(export_table_list_store, &iter,
2390  EXPORT_SCHEMA_COLUMN, dumper_table_config->schema,
2391  EXPORT_TABLE_COLUMN, dumper_table_config->table,
2392  EXPORT_GEOMETRY_COLUMN, dumper_table_config->geo_col_name,
2393  EXPORT_FILENAME_COLUMN, dumper_table_config->shp_file,
2394  -1);
2395 
2396  return;
2397 }
static void update_dumper_table_config_from_listview_iter(GtkTreeIter *iter, SHPDUMPERCONFIG *dumper_table_config)
GtkListStore * export_table_list_store
Definition: shp2pgsql-gui.c:82
@ EXPORT_TABLE_COLUMN
@ EXPORT_SCHEMA_COLUMN
@ EXPORT_GEOMETRY_COLUMN
@ EXPORT_POINTER_COLUMN
@ EXPORT_FILENAME_COLUMN

References EXPORT_FILENAME_COLUMN, EXPORT_GEOMETRY_COLUMN, EXPORT_POINTER_COLUMN, EXPORT_SCHEMA_COLUMN, EXPORT_TABLE_COLUMN, export_table_list_store, shp_dumper_config::geo_col_name, shp_dumper_config::schema, shp_dumper_config::shp_file, shp_dumper_config::table, and update_dumper_table_config_from_listview_iter().

Referenced by pgui_create_export_table_table().

Here is the call graph for this function:
Here is the caller graph for this function: