1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
|
/*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "selection_cb.h"
#include "task_window.h"
#include "support.h"
GtkWidget*
create_task_window (void)
{
GtkWidget *task_window;
GtkWidget *selection_window_vbox;
GtkWidget *frame;
GtkWidget *vbox1;
GtkWidget *options_frame;
GtkWidget *hbox2;
GtkWidget *inactive_options_checkbutton;
GtkWidget *required_label;
GtkWidget *selection_window_instruction_label;
GtkWidget *selection_window_hseparator;
GtkWidget *hbox1;
GtkWidget *hbuttonbox1;
GtkWidget *help_button;
GtkWidget *selection_window_hbuttonbox;
GtkWidget *selection_window_cancel_button;
GtkWidget *selection_window_prev_button;
GtkWidget *selection_window_prev_button_hbox;
GtkWidget *selection_window_prev_button_arrow;
GtkWidget *selection_window_prev_button_label;
GtkWidget *selection_window_next_button;
GtkWidget *selection_window_next_button_label;
GtkTooltips *tooltips;
tooltips = gtk_tooltips_new ();
task_window = gtk_window_new (GTK_WINDOW_DIALOG);
gtk_widget_set_name (task_window, "task_window");
gtk_object_set_data (GTK_OBJECT (task_window), "task_window", task_window);
gtk_widget_set_usize (task_window, 630, 475);
gtk_window_set_title (GTK_WINDOW (task_window), _("Selection Configuration"));
gtk_window_set_position (GTK_WINDOW (task_window), GTK_WIN_POS_CENTER);
gtk_window_set_policy (GTK_WINDOW (task_window), FALSE, FALSE, FALSE);
selection_window_vbox = gtk_vbox_new (FALSE, 0);
gtk_widget_set_name (selection_window_vbox, "selection_window_vbox");
gtk_widget_ref (selection_window_vbox);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_vbox", selection_window_vbox,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_vbox);
gtk_container_add (GTK_CONTAINER (task_window), selection_window_vbox);
gtk_container_set_border_width (GTK_CONTAINER (selection_window_vbox), 3);
frame = gtk_frame_new (_("Configuration Options"));
gtk_widget_set_name (frame, "frame");
gtk_widget_ref (frame);
gtk_object_set_data_full (GTK_OBJECT (task_window), "frame", frame,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (selection_window_vbox), frame, TRUE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (frame), 2);
vbox1 = gtk_vbox_new (FALSE, 0);
gtk_widget_set_name (vbox1, "vbox1");
gtk_widget_ref (vbox1);
gtk_object_set_data_full (GTK_OBJECT (task_window), "vbox1", vbox1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox1);
gtk_container_add (GTK_CONTAINER (frame), vbox1);
options_frame = gtk_frame_new (NULL);
gtk_widget_set_name (options_frame, "options_frame");
gtk_widget_ref (options_frame);
gtk_object_set_data_full (GTK_OBJECT (task_window), "options_frame", options_frame,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (options_frame);
gtk_box_pack_start (GTK_BOX (vbox1), options_frame, TRUE, TRUE, 0);
gtk_widget_set_usize (options_frame, -2, 290);
gtk_frame_set_shadow_type (GTK_FRAME (options_frame), GTK_SHADOW_NONE);
hbox2 = gtk_hbox_new (FALSE, 0);
gtk_widget_set_name (hbox2, "hbox2");
gtk_widget_ref (hbox2);
gtk_object_set_data_full (GTK_OBJECT (task_window), "hbox2", hbox2,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox1), hbox2, TRUE, TRUE, 6);
inactive_options_checkbutton = gtk_check_button_new_with_label (_("Display all options"));
gtk_widget_set_name (inactive_options_checkbutton, "inactive_options_checkbutton");
gtk_widget_ref (inactive_options_checkbutton);
gtk_object_set_data_full (GTK_OBJECT (task_window), "inactive_options_checkbutton", inactive_options_checkbutton,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (inactive_options_checkbutton);
gtk_box_pack_start (GTK_BOX (hbox2), inactive_options_checkbutton, FALSE, FALSE, 15);
gtk_tooltips_set_tip (tooltips, inactive_options_checkbutton, _("Toggling this check button allows you to see all options including those that the plug-in does not expect you to change for this operation"), NULL);
required_label = gtk_label_new (_("(*) Indicates field is required"));
gtk_widget_set_name (required_label, "required_label");
gtk_widget_ref (required_label);
gtk_object_set_data_full (GTK_OBJECT (task_window), "required_label", required_label,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (required_label);
gtk_box_pack_start (GTK_BOX (hbox2), required_label, TRUE, TRUE, 0);
gtk_label_set_justify (GTK_LABEL (required_label), GTK_JUSTIFY_RIGHT);
gtk_misc_set_alignment (GTK_MISC (required_label), 0.93, 0.5);
selection_window_instruction_label = gtk_label_new (_("Answer the plugin configuration choices to continue"));
gtk_widget_set_name (selection_window_instruction_label, "selection_window_instruction_label");
gtk_widget_ref (selection_window_instruction_label);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_instruction_label", selection_window_instruction_label,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_instruction_label);
gtk_box_pack_start (GTK_BOX (selection_window_vbox), selection_window_instruction_label, FALSE, FALSE, 12);
selection_window_hseparator = gtk_hseparator_new ();
gtk_widget_set_name (selection_window_hseparator, "selection_window_hseparator");
gtk_widget_ref (selection_window_hseparator);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_hseparator", selection_window_hseparator,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_hseparator);
gtk_box_pack_start (GTK_BOX (selection_window_vbox), selection_window_hseparator, FALSE, FALSE, 0);
hbox1 = gtk_hbox_new (FALSE, 0);
gtk_widget_set_name (hbox1, "hbox1");
gtk_widget_ref (hbox1);
gtk_object_set_data_full (GTK_OBJECT (task_window), "hbox1", hbox1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox1);
gtk_box_pack_start (GTK_BOX (selection_window_vbox), hbox1, FALSE, FALSE, 5);
hbuttonbox1 = gtk_hbutton_box_new ();
gtk_widget_set_name (hbuttonbox1, "hbuttonbox1");
gtk_widget_ref (hbuttonbox1);
gtk_object_set_data_full (GTK_OBJECT (task_window), "hbuttonbox1", hbuttonbox1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbuttonbox1);
gtk_box_pack_start (GTK_BOX (hbox1), hbuttonbox1, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 15);
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_START);
gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox1), 9);
gtk_button_box_set_child_size (GTK_BUTTON_BOX (hbuttonbox1), 118, 47);
help_button = gtk_button_new_with_label (_("Help"));
gtk_widget_set_name (help_button, "help_button");
gtk_widget_ref (help_button);
gtk_object_set_data_full (GTK_OBJECT (task_window), "help_button", help_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (help_button);
gtk_container_add (GTK_CONTAINER (hbuttonbox1), help_button);
GTK_WIDGET_SET_FLAGS (help_button, GTK_CAN_DEFAULT);
gtk_tooltips_set_tip (tooltips, help_button, _("Get help on this dialog window"), NULL);
selection_window_hbuttonbox = gtk_hbutton_box_new ();
gtk_widget_set_name (selection_window_hbuttonbox, "selection_window_hbuttonbox");
gtk_widget_ref (selection_window_hbuttonbox);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_hbuttonbox", selection_window_hbuttonbox,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_hbuttonbox);
gtk_box_pack_start (GTK_BOX (hbox1), selection_window_hbuttonbox, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (selection_window_hbuttonbox), 15);
gtk_button_box_set_layout (GTK_BUTTON_BOX (selection_window_hbuttonbox), GTK_BUTTONBOX_END);
gtk_button_box_set_spacing (GTK_BUTTON_BOX (selection_window_hbuttonbox), 9);
gtk_button_box_set_child_size (GTK_BUTTON_BOX (selection_window_hbuttonbox), 118, 47);
selection_window_cancel_button = gtk_button_new_with_label (_("Cancel"));
gtk_widget_set_name (selection_window_cancel_button, "selection_window_cancel_button");
gtk_widget_ref (selection_window_cancel_button);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_cancel_button", selection_window_cancel_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_cancel_button);
gtk_container_add (GTK_CONTAINER (selection_window_hbuttonbox), selection_window_cancel_button);
GTK_WIDGET_SET_FLAGS (selection_window_cancel_button, GTK_CAN_DEFAULT);
gtk_tooltips_set_tip (tooltips, selection_window_cancel_button, _("Cancel the operation"), NULL);
selection_window_prev_button = gtk_button_new ();
gtk_widget_set_name (selection_window_prev_button, "selection_window_prev_button");
gtk_widget_ref (selection_window_prev_button);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_prev_button", selection_window_prev_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_prev_button);
gtk_container_add (GTK_CONTAINER (selection_window_hbuttonbox), selection_window_prev_button);
GTK_WIDGET_SET_FLAGS (selection_window_prev_button, GTK_CAN_DEFAULT);
gtk_tooltips_set_tip (tooltips, selection_window_prev_button, _("Move to previous window"), NULL);
selection_window_prev_button_hbox = gtk_hbox_new (FALSE, 0);
gtk_widget_set_name (selection_window_prev_button_hbox, "selection_window_prev_button_hbox");
gtk_widget_ref (selection_window_prev_button_hbox);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_prev_button_hbox", selection_window_prev_button_hbox,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_prev_button_hbox);
gtk_container_add (GTK_CONTAINER (selection_window_prev_button), selection_window_prev_button_hbox);
selection_window_prev_button_arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_OUT);
gtk_widget_set_name (selection_window_prev_button_arrow, "selection_window_prev_button_arrow");
gtk_widget_ref (selection_window_prev_button_arrow);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_prev_button_arrow", selection_window_prev_button_arrow,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_prev_button_arrow);
gtk_box_pack_start (GTK_BOX (selection_window_prev_button_hbox), selection_window_prev_button_arrow, TRUE, TRUE, 0);
selection_window_prev_button_label = gtk_label_new (_("Previous"));
gtk_widget_set_name (selection_window_prev_button_label, "selection_window_prev_button_label");
gtk_widget_ref (selection_window_prev_button_label);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_prev_button_label", selection_window_prev_button_label,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_prev_button_label);
gtk_box_pack_start (GTK_BOX (selection_window_prev_button_hbox), selection_window_prev_button_label, FALSE, FALSE, 0);
gtk_misc_set_padding (GTK_MISC (selection_window_prev_button_label), 10, 0);
selection_window_next_button = gtk_button_new ();
gtk_widget_set_name (selection_window_next_button, "selection_window_next_button");
gtk_widget_ref (selection_window_next_button);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_next_button", selection_window_next_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_next_button);
gtk_container_add (GTK_CONTAINER (selection_window_hbuttonbox), selection_window_next_button);
GTK_WIDGET_SET_FLAGS (selection_window_next_button, GTK_CAN_DEFAULT);
gtk_tooltips_set_tip (tooltips, selection_window_next_button, _("Complete the operation"), NULL);
selection_window_next_button_label = gtk_label_new (_("Finish"));
gtk_widget_set_name (selection_window_next_button_label, "selection_window_next_button_label");
gtk_widget_ref (selection_window_next_button_label);
gtk_object_set_data_full (GTK_OBJECT (task_window), "selection_window_next_button_label", selection_window_next_button_label,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (selection_window_next_button_label);
gtk_container_add (GTK_CONTAINER (selection_window_next_button), selection_window_next_button_label);
gtk_signal_connect (GTK_OBJECT (help_button), "clicked",
GTK_SIGNAL_FUNC (on_options_window_help_button_clicked),
NULL);
gtk_widget_grab_default (selection_window_next_button);
gtk_object_set_data (GTK_OBJECT (task_window), "tooltips", tooltips);
return task_window;
}
|