Merge tag 'v3.0.0-rc1'
[qemu/ar7.git] / ruby / rqemu.rb
blob1261c6aab5d36671036412e833daf599307da271
1 # source generated by foxGUIb 0.7.1
3 class QemuWindow
4         def initialize( parent)
5                 construct_widget_tree( parent)
6                 init if respond_to? 'init'
7         end
8         
9         def construct_widget_tree( parent)
10                 @topwin=
11                 FX::MainWindow.new(parent){|w|
12                         @qemuWindow=w
13                         w.wdg_name='qemuWindow'
14                         w.width=500
15                         w.shown=true
16                         w.y=227
17                         w.height=400
18                         w.title="rQEMU"
19                         w.x=272
20                         FX::MenuBar.new(@qemuWindow){|w|
21                                 @menubar=w
22                                 w.wdg_name='menubar'
23                                 w.frameStyle=12288
24                                 w.width=500
25                                 w.height=25
26                                 FX::MenuTitle.new(@menubar){|w|
27                                         @menutitle_file=w
28                                         w.wdg_name='menutitle_file'
29                                         w.text="File"
30                                         w.width=33
31                                         w.y=3
32                                         w.height=19
33                                         w.x=4
34                                         FX::MenuPane.new(@menutitle_file){|w|
35                                                 @menu_file=w
36                                                 w.wdg_name='menu_file'
37                                                 w.width=88
38                                                 w.y=124
39                                                 w.height=86
40                                                 w.x=220
41                                                 FX::MenuCommand.new(@menu_file){|w|
42                                                         @menu_file_open=w
43                                                         w.wdg_name='menu_file_open'
44                                                         w.text="Open..."
45                                                         w.width=84
46                                                         w.y=2
47                                                         w.height=20
48                                                         w.x=2
49                                                 }
50                                                 FX::MenuCommand.new(@menu_file){|w|
51                                                         @menu_file_close=w
52                                                         w.wdg_name='menu_file_close'
53                                                         w.text="Close"
54                                                         w.width=84
55                                                         w.y=22
56                                                         w.height=20
57                                                         w.x=2
58                                                 }
59                                                 FX::MenuCommand.new(@menu_file){|w|
60                                                         @menu_file_save=w
61                                                         w.wdg_name='menu_file_save'
62                                                         w.text="Save"
63                                                         w.width=84
64                                                         w.y=42
65                                                         w.height=20
66                                                         w.x=2
67                                                 }
68                                                 FX::MenuSeparator.new(@menu_file){|w|
69                                                         @menuseparator1=w
70                                                         w.wdg_name='menuseparator1'
71                                                         w.width=84
72                                                         w.y=62
73                                                         w.height=2
74                                                         w.x=2
75                                                 }
76                                                 FX::MenuCommand.new(@menu_file){|w|
77                                                         @menu_file_quit=w
78                                                         w.wdg_name='menu_file_quit'
79                                                         w.text="Quit"
80                                                         w.width=84
81                                                         w.y=64
82                                                         w.height=20
83                                                         w.x=2
84                                                 }
85                                         }
86                                 }
87                                 FX::MenuTitle.new(@menubar){|w|
88                                         @menutitle_edit=w
89                                         w.wdg_name='menutitle_edit'
90                                         w.text="Edit"
91                                         w.width=36
92                                         w.y=3
93                                         w.height=19
94                                         w.x=41
95                                         FX::MenuPane.new(@menutitle_edit){|w|
96                                                 @menu_edit=w
97                                                 w.wdg_name='menu_edit'
98                                                 w.width=78
99                                                 w.y=124
100                                                 w.height=64
101                                                 w.x=257
102                                                 FX::MenuCommand.new(@menu_edit){|w|
103                                                         @menu_edit_copy=w
104                                                         w.wdg_name='menu_edit_copy'
105                                                         w.text="Copy"
106                                                         w.width=74
107                                                         w.y=2
108                                                         w.height=20
109                                                         w.x=2
110                                                 }
111                                                 FX::MenuCommand.new(@menu_edit){|w|
112                                                         @menu_edit_cut=w
113                                                         w.wdg_name='menu_edit_cut'
114                                                         w.text="Cut"
115                                                         w.width=74
116                                                         w.y=22
117                                                         w.height=20
118                                                         w.x=2
119                                                 }
120                                                 FX::MenuCommand.new(@menu_edit){|w|
121                                                         @menu_edit_paste=w
122                                                         w.wdg_name='menu_edit_paste'
123                                                         w.text="Paste"
124                                                         w.width=74
125                                                         w.y=42
126                                                         w.height=20
127                                                         w.x=2
128                                                 }
129                                         }
130                                 }
131                                 FX::MenuTitle.new(@menubar){|w|
132                                         @menutitle_help=w
133                                         w.wdg_name='menutitle_help'
134                                         w.text="Help"
135                                         w.width=41
136                                         w.y=3
137                                         w.height=19
138                                         w.x=81
139                                         FX::MenuPane.new(@menutitle_help){|w|
140                                                 @menu_help=w
141                                                 w.wdg_name='menu_help'
142                                                 w.width=80
143                                                 w.y=124
144                                                 w.height=44
145                                                 w.x=297
146                                                 FX::MenuCommand.new(@menu_help){|w|
147                                                         @menu_help_help=w
148                                                         w.wdg_name='menu_help_help'
149                                                         w.text="Help"
150                                                         w.width=76
151                                                         w.y=2
152                                                         w.height=20
153                                                         w.x=2
154                                                 }
155                                                 FX::MenuCommand.new(@menu_help){|w|
156                                                         @menu_help_about=w
157                                                         w.wdg_name='menu_help_about'
158                                                         w.text="About"
159                                                         w.width=76
160                                                         w.y=22
161                                                         w.height=20
162                                                         w.x=2
163                                                 }
164                                         }
165                                 }
166                         }
167                         FX::ToolBar.new(@qemuWindow){|w|
168                                 @toolbar=w
169                                 w.wdg_name='toolbar'
170                                 w.frameStyle=12288
171                                 w.width=500
172                                 w.y=29
173                                 w.height=28
174                                 FX::Label.new(@toolbar){|w|
175                                         @toolbar_run=w
176                                         w.wdg_name='toolbar_run'
177                                         w.text="Run"
178                                         w.frameStyle=8192
179                                         w.width=30
180                                         w.y=4
181                                         w.height=21
182                                         w.x=3
183                                         @toolbar_run.connect(Fox::SEL_CLICKED){
184                                                 QEMU.run
185                                         }
186                                 }
187                                 FX::Label.new(@toolbar){|w|
188                                         @toolbar_suspend=w
189                                         w.wdg_name='toolbar_suspend'
190                                         w.text="Suspend"
191                                         w.frameStyle=8192
192                                         w.width=62
193                                         w.y=4
194                                         w.height=21
195                                         w.x=37
196                                 }
197                                 FX::Label.new(@toolbar){|w|
198                                         @toolbar_stop=w
199                                         w.wdg_name='toolbar_stop'
200                                         w.text="Stop"
201                                         w.frameStyle=8192
202                                         w.width=36
203                                         w.y=4
204                                         w.height=21
205                                         w.x=103
206                                 }
207                         }
208                         FX::VerticalFrame.new(@qemuWindow){|w|
209                                 @frame_main=w
210                                 w.wdg_name='frame_main'
211                                 w.width=500
212                                 w.y=61
213                                 w.height=339
214                                 FX::TreeList.new(@frame_main){|w|
215                                         @treelist_machine=w
216                                         w.wdg_name='treelist_machine'
217                                         w.width=500
218                                         w.height=312
219                                 }
220                                 FX::StatusBar.new(@frame_main){|w|
221                                         @statusbar=w
222                                         w.wdg_name='statusbar'
223                                         w.frameStyle=12288
224                                         w.width=500
225                                         w.y=312
226                                         w.height=27
227                                         w.layoutHints=1040
228                                         FX::StatusLine.new(@statusbar){|w|
229                                                 @statusline=w
230                                                 w.wdg_name='statusline'
231                                                 w.text="Running."
232                                                 w.normalText="Running."
233                                                 w.width=191
234                                                 w.y=3
235                                                 w.height=21
236                                                 w.x=198
237                                         }
238                                         FX::CheckButton.new(@statusbar){|w|
239                                                 @checkbutton2=w
240                                                 w.wdg_name='checkbutton2'
241                                                 w.checkButtonStyle=33554432
242                                                 w.width=103
243                                                 w.y=3
244                                                 w.height=19
245                                                 w.x=393
246                                         }
247                                 }
248                         }
249                 }
250         end
251         attr_reader :topwin
252         attr_reader :qemuWindow
253         attr_reader :menubar
254         attr_reader :menutitle_file
255         attr_reader :menu_file
256         attr_reader :menu_file_open
257         attr_reader :menu_file_close
258         attr_reader :menu_file_save
259         attr_reader :menuseparator1
260         attr_reader :menu_file_quit
261         attr_reader :menutitle_edit
262         attr_reader :menu_edit
263         attr_reader :menu_edit_copy
264         attr_reader :menu_edit_cut
265         attr_reader :menu_edit_paste
266         attr_reader :menutitle_help
267         attr_reader :menu_help
268         attr_reader :menu_help_help
269         attr_reader :menu_help_about
270         attr_reader :toolbar
271         attr_reader :toolbar_run
272         attr_reader :toolbar_suspend
273         attr_reader :toolbar_stop
274         attr_reader :frame_main
275         attr_reader :treelist_machine
276         attr_reader :statusbar
277         attr_reader :statusline
278         attr_reader :checkbutton2
281 #unit test
282 if __FILE__==$0
283         require 'libGUIb16'
284         app=FX::App.new
285         w=QemuWindow.new app
286         w.topwin.show(Fox::PLACEMENT_SCREEN)
287         app.create
288         app.run