/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/Linux/interface.c
ViewVC logotype

Contents of /branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/Linux/interface.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations) (download)
Tue Sep 7 06:17:51 2010 UTC (10 years, 7 months ago) by william
File MIME type: text/plain
File size: 9843 byte(s)
create working branch for pcsx2-0.9.7-r3113-debug
1 /*
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
3 */
4
5 #ifdef HAVE_CONFIG_H
6 # include <config.h>
7 #endif
8
9 #include <sys/types.h>
10 #include <sys/stat.h>
11 #include <unistd.h>
12 #include <string.h>
13 #include <stdio.h>
14
15 #include <gdk/gdkkeysyms.h>
16 #include <gtk/gtk.h>
17
18 #include "callbacks.h"
19 #include "interface.h"
20 #include "support.h"
21
22 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
23 g_object_set_data_full (G_OBJECT (component), name, \
24 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
25
26 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
27 g_object_set_data (G_OBJECT (component), name, widget)
28
29 GtkWidget*
30 create_Config (void)
31 {
32 GtkWidget *Config;
33 GtkWidget *vbox1;
34 GtkWidget *hbox1;
35 GtkWidget *GtkEntry_Iso;
36 GtkWidget *button5;
37 GtkWidget *hbox2;
38 GtkWidget *GtkProgressBar_Progress;
39 GtkWidget *button6;
40 GtkWidget *hbox4;
41 GtkWidget *label2;
42 GtkWidget *GtkCombo_Method;
43 GList *GtkCombo_Method_items = NULL;
44 GtkWidget *combo_entry1;
45 GtkWidget *hbuttonbox2;
46 GtkWidget *GtkButton_Compress;
47 GtkWidget *GtkButton_Decompress;
48 GtkWidget *hbox3;
49 GtkWidget *label1;
50 GtkWidget *GtkEntry_CdDev;
51 GtkWidget *hbuttonbox3;
52 GtkWidget *GtkButton_Create;
53 GtkWidget *GtkButton_CreateZ;
54 GtkWidget *checkBlockDump;
55 GtkWidget *hbuttonbox1;
56 GtkWidget *button1;
57 GtkWidget *button2;
58
59 Config = gtk_window_new (GTK_WINDOW_TOPLEVEL);
60 gtk_widget_set_name (Config, "Config");
61 gtk_container_set_border_width (GTK_CONTAINER (Config), 5);
62 gtk_window_set_title (GTK_WINDOW (Config), _("CDVD Config Dialog"));
63
64 vbox1 = gtk_vbox_new (FALSE, 5);
65 gtk_widget_set_name (vbox1, "vbox1");
66 gtk_widget_show (vbox1);
67 gtk_container_add (GTK_CONTAINER (Config), vbox1);
68 gtk_container_set_border_width (GTK_CONTAINER (vbox1), 5);
69
70 hbox1 = gtk_hbox_new (FALSE, 10);
71 gtk_widget_set_name (hbox1, "hbox1");
72 gtk_widget_show (hbox1);
73 gtk_box_pack_start (GTK_BOX (vbox1), hbox1, TRUE, TRUE, 0);
74
75 GtkEntry_Iso = gtk_entry_new ();
76 gtk_widget_set_name (GtkEntry_Iso, "GtkEntry_Iso");
77 gtk_widget_show (GtkEntry_Iso);
78 gtk_box_pack_start (GTK_BOX (hbox1), GtkEntry_Iso, TRUE, TRUE, 0);
79
80 button5 = gtk_button_new_with_mnemonic (_("Select Iso"));
81 gtk_widget_set_name (button5, "button5");
82 gtk_widget_show (button5);
83 gtk_box_pack_start (GTK_BOX (hbox1), button5, FALSE, FALSE, 0);
84
85 hbox2 = gtk_hbox_new (FALSE, 10);
86 gtk_widget_set_name (hbox2, "hbox2");
87 gtk_widget_show (hbox2);
88 gtk_box_pack_start (GTK_BOX (vbox1), hbox2, FALSE, FALSE, 0);
89
90 GtkProgressBar_Progress = gtk_progress_bar_new ();
91 gtk_widget_set_name (GtkProgressBar_Progress, "GtkProgressBar_Progress");
92 gtk_widget_show (GtkProgressBar_Progress);
93 gtk_box_pack_start (GTK_BOX (hbox2), GtkProgressBar_Progress, TRUE, FALSE, 0);
94
95 button6 = gtk_button_new_with_mnemonic (_("Stop"));
96 gtk_widget_set_name (button6, "button6");
97 gtk_widget_show (button6);
98 gtk_box_pack_end (GTK_BOX (hbox2), button6, FALSE, FALSE, 0);
99
100 hbox4 = gtk_hbox_new (FALSE, 5);
101 gtk_widget_set_name (hbox4, "hbox4");
102 gtk_widget_show (hbox4);
103 gtk_box_pack_start (GTK_BOX (vbox1), hbox4, TRUE, TRUE, 0);
104
105 label2 = gtk_label_new (_("Compression Method:"));
106 gtk_widget_set_name (label2, "label2");
107 gtk_widget_show (label2);
108 gtk_box_pack_start (GTK_BOX (hbox4), label2, FALSE, FALSE, 0);
109 gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_CENTER);
110
111 GtkCombo_Method = gtk_combo_new ();
112 g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Method)->popwin),
113 "GladeParentKey", GtkCombo_Method);
114 gtk_widget_set_name (GtkCombo_Method, "GtkCombo_Method");
115 gtk_widget_show (GtkCombo_Method);
116 gtk_box_pack_start (GTK_BOX (hbox4), GtkCombo_Method, TRUE, FALSE, 0);
117 GtkCombo_Method_items = g_list_append (GtkCombo_Method_items, (gpointer) "");
118 gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Method), GtkCombo_Method_items);
119 g_list_free (GtkCombo_Method_items);
120
121 combo_entry1 = GTK_COMBO (GtkCombo_Method)->entry;
122 gtk_widget_set_name (combo_entry1, "combo_entry1");
123 gtk_widget_show (combo_entry1);
124
125 hbuttonbox2 = gtk_hbutton_box_new ();
126 gtk_widget_set_name (hbuttonbox2, "hbuttonbox2");
127 gtk_widget_show (hbuttonbox2);
128 gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox2, TRUE, TRUE, 0);
129
130 GtkButton_Compress = gtk_button_new_with_mnemonic (_("Compress Iso"));
131 gtk_widget_set_name (GtkButton_Compress, "GtkButton_Compress");
132 gtk_widget_show (GtkButton_Compress);
133 gtk_container_add (GTK_CONTAINER (hbuttonbox2), GtkButton_Compress);
134 GTK_WIDGET_SET_FLAGS (GtkButton_Compress, GTK_CAN_DEFAULT);
135
136 GtkButton_Decompress = gtk_button_new_with_mnemonic (_("Decompress Iso"));
137 gtk_widget_set_name (GtkButton_Decompress, "GtkButton_Decompress");
138 gtk_widget_show (GtkButton_Decompress);
139 gtk_container_add (GTK_CONTAINER (hbuttonbox2), GtkButton_Decompress);
140 GTK_WIDGET_SET_FLAGS (GtkButton_Decompress, GTK_CAN_DEFAULT);
141
142 hbox3 = gtk_hbox_new (FALSE, 5);
143 gtk_widget_set_name (hbox3, "hbox3");
144 gtk_widget_show (hbox3);
145 gtk_box_pack_start (GTK_BOX (vbox1), hbox3, FALSE, FALSE, 0);
146
147 label1 = gtk_label_new (_("Cdrom Device: "));
148 gtk_widget_set_name (label1, "label1");
149 gtk_widget_show (label1);
150 gtk_box_pack_start (GTK_BOX (hbox3), label1, FALSE, FALSE, 0);
151 gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_CENTER);
152
153 GtkEntry_CdDev = gtk_entry_new ();
154 gtk_widget_set_name (GtkEntry_CdDev, "GtkEntry_CdDev");
155 gtk_widget_show (GtkEntry_CdDev);
156 gtk_box_pack_start (GTK_BOX (hbox3), GtkEntry_CdDev, TRUE, TRUE, 0);
157
158 hbuttonbox3 = gtk_hbutton_box_new ();
159 gtk_widget_set_name (hbuttonbox3, "hbuttonbox3");
160 gtk_widget_show (hbuttonbox3);
161 gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox3, TRUE, TRUE, 0);
162
163 GtkButton_Create = gtk_button_new_with_mnemonic (_("Create Iso"));
164 gtk_widget_set_name (GtkButton_Create, "GtkButton_Create");
165 gtk_widget_show (GtkButton_Create);
166 gtk_container_add (GTK_CONTAINER (hbuttonbox3), GtkButton_Create);
167 GTK_WIDGET_SET_FLAGS (GtkButton_Create, GTK_CAN_DEFAULT);
168
169 GtkButton_CreateZ = gtk_button_new_with_mnemonic (_("Create Compressed Iso"));
170 gtk_widget_set_name (GtkButton_CreateZ, "GtkButton_CreateZ");
171 gtk_widget_show (GtkButton_CreateZ);
172 gtk_container_add (GTK_CONTAINER (hbuttonbox3), GtkButton_CreateZ);
173 GTK_WIDGET_SET_FLAGS (GtkButton_CreateZ, GTK_CAN_DEFAULT);
174
175 checkBlockDump = gtk_check_button_new_with_mnemonic (_("Create a dump of the running iso"));
176 gtk_widget_set_name (checkBlockDump, "checkBlockDump");
177 gtk_widget_show (checkBlockDump);
178 gtk_box_pack_start (GTK_BOX (vbox1), checkBlockDump, FALSE, FALSE, 0);
179
180 hbuttonbox1 = gtk_hbutton_box_new ();
181 gtk_widget_set_name (hbuttonbox1, "hbuttonbox1");
182 gtk_widget_show (hbuttonbox1);
183 gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, TRUE, TRUE, 0);
184
185 button1 = gtk_button_new_from_stock ("gtk-ok");
186 gtk_widget_set_name (button1, "button1");
187 gtk_widget_show (button1);
188 gtk_container_add (GTK_CONTAINER (hbuttonbox1), button1);
189 GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT);
190
191 button2 = gtk_button_new_from_stock ("gtk-cancel");
192 gtk_widget_set_name (button2, "button2");
193 gtk_widget_show (button2);
194 gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2);
195 GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);
196
197 g_signal_connect ((gpointer) button5, "clicked",
198 G_CALLBACK (OnFileSel),
199 NULL);
200 g_signal_connect ((gpointer) button6, "clicked",
201 G_CALLBACK (OnStop),
202 NULL);
203 g_signal_connect ((gpointer) GtkButton_Compress, "clicked",
204 G_CALLBACK (OnCompress),
205 NULL);
206 g_signal_connect ((gpointer) GtkButton_Decompress, "clicked",
207 G_CALLBACK (OnDecompress),
208 NULL);
209 g_signal_connect ((gpointer) GtkButton_Create, "clicked",
210 G_CALLBACK (OnCreate),
211 NULL);
212 g_signal_connect ((gpointer) GtkButton_CreateZ, "clicked",
213 G_CALLBACK (OnCreateZ),
214 NULL);
215 g_signal_connect ((gpointer) button1, "clicked",
216 G_CALLBACK (OnOk),
217 NULL);
218 g_signal_connect ((gpointer) button2, "clicked",
219 G_CALLBACK (OnCancel),
220 NULL);
221
222 /* Store pointers to all widgets, for use by lookup_widget(). */
223 GLADE_HOOKUP_OBJECT_NO_REF (Config, Config, "Config");
224 GLADE_HOOKUP_OBJECT (Config, vbox1, "vbox1");
225 GLADE_HOOKUP_OBJECT (Config, hbox1, "hbox1");
226 GLADE_HOOKUP_OBJECT (Config, GtkEntry_Iso, "GtkEntry_Iso");
227 GLADE_HOOKUP_OBJECT (Config, button5, "button5");
228 GLADE_HOOKUP_OBJECT (Config, hbox2, "hbox2");
229 GLADE_HOOKUP_OBJECT (Config, GtkProgressBar_Progress, "GtkProgressBar_Progress");
230 GLADE_HOOKUP_OBJECT (Config, button6, "button6");
231 GLADE_HOOKUP_OBJECT (Config, hbox4, "hbox4");
232 GLADE_HOOKUP_OBJECT (Config, label2, "label2");
233 GLADE_HOOKUP_OBJECT (Config, GtkCombo_Method, "GtkCombo_Method");
234 GLADE_HOOKUP_OBJECT (Config, combo_entry1, "combo_entry1");
235 GLADE_HOOKUP_OBJECT (Config, hbuttonbox2, "hbuttonbox2");
236 GLADE_HOOKUP_OBJECT (Config, GtkButton_Compress, "GtkButton_Compress");
237 GLADE_HOOKUP_OBJECT (Config, GtkButton_Decompress, "GtkButton_Decompress");
238 GLADE_HOOKUP_OBJECT (Config, hbox3, "hbox3");
239 GLADE_HOOKUP_OBJECT (Config, label1, "label1");
240 GLADE_HOOKUP_OBJECT (Config, GtkEntry_CdDev, "GtkEntry_CdDev");
241 GLADE_HOOKUP_OBJECT (Config, hbuttonbox3, "hbuttonbox3");
242 GLADE_HOOKUP_OBJECT (Config, GtkButton_Create, "GtkButton_Create");
243 GLADE_HOOKUP_OBJECT (Config, GtkButton_CreateZ, "GtkButton_CreateZ");
244 GLADE_HOOKUP_OBJECT (Config, checkBlockDump, "checkBlockDump");
245 GLADE_HOOKUP_OBJECT (Config, hbuttonbox1, "hbuttonbox1");
246 GLADE_HOOKUP_OBJECT (Config, button1, "button1");
247 GLADE_HOOKUP_OBJECT (Config, button2, "button2");
248
249 return Config;
250 }
251

  ViewVC Help
Powered by ViewVC 1.1.22