PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ pgui_create_dumper_options_dialog()

static void pgui_create_dumper_options_dialog ( )
static

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

2749 {
2750  GtkWidget *table_options;
2751  GtkWidget *align_options_center;
2752 
2753  dialog_dumper_options = gtk_dialog_new_with_buttons(_("Export Options"), GTK_WINDOW(window_main), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
2754 
2755  gtk_window_set_modal (GTK_WINDOW(dialog_dumper_options), TRUE);
2756  gtk_window_set_keep_above (GTK_WINDOW(dialog_dumper_options), TRUE);
2757  gtk_window_set_default_size (GTK_WINDOW(dialog_dumper_options), 180, -1);
2758 
2759  table_options = gtk_table_new(3, 3, TRUE);
2760  gtk_container_set_border_width (GTK_CONTAINER (table_options), 12);
2761  gtk_table_set_row_spacings(GTK_TABLE(table_options), 5);
2762  gtk_table_set_col_spacings(GTK_TABLE(table_options), 10);
2763 
2764  pgui_create_options_dialog_add_label(table_options, _("Include gid column in the exported table"), 0.0, 0);
2765  checkbutton_dumper_options_includegid = gtk_check_button_new();
2766  align_options_center = gtk_alignment_new( 0.5, 0.5, 0.0, 1.0 );
2767  gtk_table_attach_defaults(GTK_TABLE(table_options), align_options_center, 0, 1, 0, 1 );
2768  gtk_container_add (GTK_CONTAINER (align_options_center), checkbutton_dumper_options_includegid);
2769 
2770  pgui_create_options_dialog_add_label(table_options, _("Preserve case of column names"), 0.0, 1);
2771  checkbutton_dumper_options_keep_fieldname_case = gtk_check_button_new();
2772  align_options_center = gtk_alignment_new( 0.5, 0.5, 0.0, 1.0 );
2773  gtk_table_attach_defaults(GTK_TABLE(table_options), align_options_center, 0, 1, 1, 2 );
2774  gtk_container_add (GTK_CONTAINER (align_options_center), checkbutton_dumper_options_keep_fieldname_case);
2775 
2776  pgui_create_options_dialog_add_label(table_options, _("Escape column names"), 0.0, 2);
2777  checkbutton_dumper_options_unescapedattrs = gtk_check_button_new();
2778  align_options_center = gtk_alignment_new( 0.5, 0.5, 0.0, 1.0 );
2779  gtk_table_attach_defaults(GTK_TABLE(table_options), align_options_center, 0, 1, 2, 3 );
2780  gtk_container_add (GTK_CONTAINER (align_options_center), checkbutton_dumper_options_unescapedattrs);
2781 
2782  /* Catch the response from the dialog */
2783  g_signal_connect(dialog_dumper_options, "response", G_CALLBACK(pgui_action_dumper_options_close), dialog_dumper_options);
2784  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_dumper_options)->vbox), table_options, FALSE, FALSE, 0);
2785 
2786  /* Hook the delete event so we don't destroy the dialog (just hide) if cancelled */
2787  gtk_signal_connect(GTK_OBJECT(dialog_dumper_options), "delete_event", GTK_SIGNAL_FUNC(pgui_event_popup_delete), NULL);
2788 }
#define TRUE
Definition: dbfopen.c:169
#define FALSE
Definition: dbfopen.c:168
static gint pgui_event_popup_delete(GtkWidget *widget, GdkEvent *event, gpointer data)
static GtkWidget * dialog_dumper_options
static void pgui_action_dumper_options_close(GtkWidget *widget, gint response, gpointer data)
static GtkWidget * checkbutton_dumper_options_keep_fieldname_case
static void pgui_create_options_dialog_add_label(GtkWidget *table, const char *str, gfloat alignment, int row)
static GtkWidget * window_main
Definition: shp2pgsql-gui.c:50
static GtkWidget * checkbutton_dumper_options_unescapedattrs
static GtkWidget * checkbutton_dumper_options_includegid
#define _(String)
Definition: shpcommon.h:24

References _, checkbutton_dumper_options_includegid, checkbutton_dumper_options_keep_fieldname_case, checkbutton_dumper_options_unescapedattrs, dialog_dumper_options, FALSE, pgui_action_dumper_options_close(), pgui_create_options_dialog_add_label(), pgui_event_popup_delete(), TRUE, and window_main.

Referenced by main().

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