OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 using System; | |
6 using System.Collections.Generic; | |
7 using System.ComponentModel; | |
8 using System.Windows.Forms; | |
9 using Google.NaClVsx.DebugSupport; | |
10 using Google.NaClVsx.DebugSupport.DWARF; | |
11 using Microsoft.VisualStudio; | |
12 using Microsoft.Win32; | |
13 using NaClVsx; | |
14 | |
15 namespace SymbolDBViewer | |
16 { | |
17 partial class NexeLoader | |
18 { | |
19 /// <summary> | |
20 /// Required designer variable. Most of the contents of this file are | |
21 /// generated by the VS Design GUI and are not to be modified. | |
22 /// </summary> | |
23 private System.ComponentModel.IContainer components = null; | |
24 | |
25 /// <summary> | |
26 /// Clean up any resources being used. | |
27 /// </summary> | |
28 /// <param name="disposing">true if managed resources should be disposed; | |
29 /// otherwise, false.</param> | |
30 protected override void Dispose(bool disposing) { | |
31 if (disposing && (components != null)) { | |
32 components.Dispose(); | |
33 } | |
34 base.Dispose(disposing); | |
35 } | |
36 | |
37 #region Windows Form Designer generated code | |
38 | |
39 /// <summary> | |
40 /// Required method for Designer support - do not modify | |
41 /// the contents of this method with the code editor. | |
42 /// </summary> | |
43 private void InitializeComponent() { | |
44 this.nexeChooserDialog_ = new System.Windows.Forms.OpenFileDialog(); | |
45 this.symbolDbTreeView_ = new System.Windows.Forms.TreeView(); | |
46 this.loadStatusStrip_ = new System.Windows.Forms.StatusStrip(); | |
47 this.statusLabel_ = new System.Windows.Forms.ToolStripStatusLabel(); | |
48 this.loadButton_ = new System.Windows.Forms.Button(); | |
49 this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); | |
50 this.fileNameLabel_ = new System.Windows.Forms.Label(); | |
51 this.searchTextBox_ = new System.Windows.Forms.TextBox(); | |
52 this.searchButton_ = new System.Windows.Forms.Button(); | |
53 this.collapseAllButton_ = new System.Windows.Forms.Button(); | |
54 this.searchNavBackButton_ = new System.Windows.Forms.Button(); | |
55 this.searchNavLabel_ = new System.Windows.Forms.Label(); | |
56 this.searchNavForwardButton_ = new System.Windows.Forms.Button(); | |
57 this.dieLoader_ = new SymbolDBViewer.DIELoader(); | |
58 this.fileLoader_ = new SymbolDBViewer.SourceFileLoader(); | |
59 this.locationLoader_ = new SymbolDBViewer.SourceLocationLoader(); | |
60 this.scopeTransitionLoader_ = new SymbolDBViewer.ScopeTransitionLoader(); | |
61 this.callFrameLoader_ = new SymbolDBViewer.CallFrameLoader(); | |
62 this.locListLoader_ = new SymbolDBViewer.LocListLoader(); | |
63 this.loadStatusStrip_.SuspendLayout(); | |
64 this.flowLayoutPanel1.SuspendLayout(); | |
65 this.SuspendLayout(); | |
66 // | |
67 // nexeChooserDialog_ | |
68 // | |
69 this.nexeChooserDialog_.FileName = "openFileDialog1"; | |
70 // | |
71 // symbolDbTreeView_ | |
72 // | |
73 this.symbolDbTreeView_.Dock = System.Windows.Forms.DockStyle.Fill; | |
74 this.symbolDbTreeView_.Location = new System.Drawing.Point(0, 29); | |
75 this.symbolDbTreeView_.Name = "symbolDbTreeView_"; | |
76 this.symbolDbTreeView_.Size = new System.Drawing.Size(756, 559); | |
77 this.symbolDbTreeView_.TabIndex = 2; | |
78 // | |
79 // loadStatusStrip_ | |
80 // | |
81 this.loadStatusStrip_.Items.AddRange(new System.Windows.Forms.ToolStripIte
m[] { | |
82 this.statusLabel_}); | |
83 this.loadStatusStrip_.Location = new System.Drawing.Point(0, 611); | |
84 this.loadStatusStrip_.Name = "loadStatusStrip_"; | |
85 this.loadStatusStrip_.Size = new System.Drawing.Size(756, 22); | |
86 this.loadStatusStrip_.TabIndex = 4; | |
87 this.loadStatusStrip_.Text = "statusStrip1"; | |
88 // | |
89 // statusLabel_ | |
90 // | |
91 this.statusLabel_.Name = "statusLabel_"; | |
92 this.statusLabel_.Size = new System.Drawing.Size(48, 17); | |
93 this.statusLabel_.Text = "Inactive"; | |
94 // | |
95 // loadButton_ | |
96 // | |
97 this.loadButton_.Dock = System.Windows.Forms.DockStyle.Bottom; | |
98 this.loadButton_.Location = new System.Drawing.Point(0, 588); | |
99 this.loadButton_.Name = "loadButton_"; | |
100 this.loadButton_.Size = new System.Drawing.Size(756, 23); | |
101 this.loadButton_.TabIndex = 6; | |
102 this.loadButton_.Text = "Load a Nexe"; | |
103 this.loadButton_.UseVisualStyleBackColor = true; | |
104 this.loadButton_.Click += new System.EventHandler(this.HandleLoadButtonCli
ck); | |
105 // | |
106 // flowLayoutPanel1 | |
107 // | |
108 this.flowLayoutPanel1.AutoSize = true; | |
109 this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.Gro
wAndShrink; | |
110 this.flowLayoutPanel1.Controls.Add(this.fileNameLabel_); | |
111 this.flowLayoutPanel1.Controls.Add(this.searchTextBox_); | |
112 this.flowLayoutPanel1.Controls.Add(this.searchButton_); | |
113 this.flowLayoutPanel1.Controls.Add(this.collapseAllButton_); | |
114 this.flowLayoutPanel1.Controls.Add(this.searchNavBackButton_); | |
115 this.flowLayoutPanel1.Controls.Add(this.searchNavLabel_); | |
116 this.flowLayoutPanel1.Controls.Add(this.searchNavForwardButton_); | |
117 this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top; | |
118 this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); | |
119 this.flowLayoutPanel1.Name = "flowLayoutPanel1"; | |
120 this.flowLayoutPanel1.Size = new System.Drawing.Size(756, 29); | |
121 this.flowLayoutPanel1.TabIndex = 7; | |
122 // | |
123 // fileNameLabel_ | |
124 // | |
125 this.fileNameLabel_.Anchor = System.Windows.Forms.AnchorStyles.Left; | |
126 this.fileNameLabel_.AutoSize = true; | |
127 this.fileNameLabel_.Location = new System.Drawing.Point(3, 8); | |
128 this.fileNameLabel_.Name = "fileNameLabel_"; | |
129 this.fileNameLabel_.Size = new System.Drawing.Size(82, 13); | |
130 this.fileNameLabel_.TabIndex = 2; | |
131 this.fileNameLabel_.Text = "No nexe loaded"; | |
132 this.fileNameLabel_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
; | |
133 // | |
134 // searchTextBox_ | |
135 // | |
136 this.searchTextBox_.Location = new System.Drawing.Point(91, 3); | |
137 this.searchTextBox_.Name = "searchTextBox_"; | |
138 this.searchTextBox_.Size = new System.Drawing.Size(100, 20); | |
139 this.searchTextBox_.TabIndex = 3; | |
140 // | |
141 // searchButton_ | |
142 // | |
143 this.searchButton_.Location = new System.Drawing.Point(197, 3); | |
144 this.searchButton_.Name = "searchButton_"; | |
145 this.searchButton_.Size = new System.Drawing.Size(75, 23); | |
146 this.searchButton_.TabIndex = 4; | |
147 this.searchButton_.Text = "Search"; | |
148 this.searchButton_.UseVisualStyleBackColor = true; | |
149 this.searchButton_.Click += new System.EventHandler(this.SearchButtonClick
); | |
150 // | |
151 // closeAllButton_ | |
152 // | |
153 this.collapseAllButton_.Location = new System.Drawing.Point(278, 3); | |
154 this.collapseAllButton_.Name = "collapseAllButton_"; | |
155 this.collapseAllButton_.Size = new System.Drawing.Size(75, 23); | |
156 this.collapseAllButton_.TabIndex = 5; | |
157 this.collapseAllButton_.Text = "Close All"; | |
158 this.collapseAllButton_.UseVisualStyleBackColor = true; | |
159 this.collapseAllButton_.Click += new System.EventHandler(this.CloseAllButt
onClick); | |
160 // | |
161 // searchNavBackButton_ | |
162 // | |
163 this.searchNavBackButton_.Location = new System.Drawing.Point(359, 3); | |
164 this.searchNavBackButton_.Name = "searchNavBackButton_"; | |
165 this.searchNavBackButton_.Size = new System.Drawing.Size(75, 23); | |
166 this.searchNavBackButton_.TabIndex = 6; | |
167 this.searchNavBackButton_.Text = "<<"; | |
168 this.searchNavBackButton_.UseVisualStyleBackColor = true; | |
169 this.searchNavBackButton_.Click += new System.EventHandler(this.SearchNavB
ackButtonClick); | |
170 // | |
171 // searchNavLabel_ | |
172 // | |
173 this.searchNavLabel_.Anchor = System.Windows.Forms.AnchorStyles.Left; | |
174 this.searchNavLabel_.AutoSize = true; | |
175 this.searchNavLabel_.Location = new System.Drawing.Point(440, 8); | |
176 this.searchNavLabel_.Name = "searchNavLabel_"; | |
177 this.searchNavLabel_.Size = new System.Drawing.Size(24, 13); | |
178 this.searchNavLabel_.TabIndex = 7; | |
179 this.searchNavLabel_.Text = "0/0"; | |
180 // | |
181 // searchNavForwardButton_ | |
182 // | |
183 this.searchNavForwardButton_.Location = new System.Drawing.Point(470, 3); | |
184 this.searchNavForwardButton_.Name = "searchNavForwardButton_"; | |
185 this.searchNavForwardButton_.Size = new System.Drawing.Size(75, 23); | |
186 this.searchNavForwardButton_.TabIndex = 8; | |
187 this.searchNavForwardButton_.Text = ">>"; | |
188 this.searchNavForwardButton_.UseVisualStyleBackColor = true; | |
189 this.searchNavForwardButton_.Click += new System.EventHandler(this.SearchN
avForwardButtonClick); | |
190 // | |
191 // dieLoader_ | |
192 // | |
193 this.dieLoader_.WorkerReportsProgress = true; | |
194 this.dieLoader_.DoWork += new System.ComponentModel.DoWorkEventHandler(die
Loader_.PopulateTree); | |
195 this.dieLoader_.RunWorkerCompleted += new System.ComponentModel.RunWorkerC
ompletedEventHandler(this.UpdateTreeView); | |
196 this.dieLoader_.ProgressChanged += new System.ComponentModel.ProgressChang
edEventHandler(this.PopulateNodesProgressChanged); | |
197 // | |
198 // fileLoader_ | |
199 // | |
200 this.fileLoader_.WorkerReportsProgress = true; | |
201 this.fileLoader_.DoWork += new System.ComponentModel.DoWorkEventHandler(fi
leLoader_.PopulateTree); | |
202 this.fileLoader_.RunWorkerCompleted += new System.ComponentModel.RunWorker
CompletedEventHandler(this.UpdateTreeView); | |
203 this.fileLoader_.ProgressChanged += new System.ComponentModel.ProgressChan
gedEventHandler(this.PopulateNodesProgressChanged); | |
204 // | |
205 // locationLoader_ | |
206 // | |
207 this.locationLoader_.WorkerReportsProgress = true; | |
208 this.locationLoader_.DoWork += new System.ComponentModel.DoWorkEventHandle
r(locationLoader_.PopulateTree); | |
209 this.locationLoader_.RunWorkerCompleted += new System.ComponentModel.RunWo
rkerCompletedEventHandler(this.UpdateTreeView); | |
210 this.locationLoader_.ProgressChanged += new System.ComponentModel.Progress
ChangedEventHandler(this.PopulateNodesProgressChanged); | |
211 // | |
212 // scopeTransitionLoader_ | |
213 // | |
214 this.scopeTransitionLoader_.WorkerReportsProgress = true; | |
215 this.scopeTransitionLoader_.DoWork += new System.ComponentModel.DoWorkEven
tHandler(scopeTransitionLoader_.PopulateTree); | |
216 this.scopeTransitionLoader_.RunWorkerCompleted += new System.ComponentMode
l.RunWorkerCompletedEventHandler(this.UpdateTreeView); | |
217 this.scopeTransitionLoader_.ProgressChanged += new System.ComponentModel.P
rogressChangedEventHandler(this.PopulateNodesProgressChanged); | |
218 // | |
219 // callFrameLoader_ | |
220 // | |
221 this.callFrameLoader_.WorkerReportsProgress = true; | |
222 this.callFrameLoader_.DoWork += new System.ComponentModel.DoWorkEventHandl
er(callFrameLoader_.PopulateTree); | |
223 this.callFrameLoader_.RunWorkerCompleted += new System.ComponentModel.RunW
orkerCompletedEventHandler(this.UpdateTreeView); | |
224 this.callFrameLoader_.ProgressChanged += new System.ComponentModel.Progres
sChangedEventHandler(this.PopulateNodesProgressChanged); | |
225 // | |
226 // locListLoader_ | |
227 // | |
228 this.locListLoader_.WorkerReportsProgress = true; | |
229 this.locListLoader_.DoWork += new System.ComponentModel.DoWorkEventHandler
(locListLoader_.PopulateTree); | |
230 this.locListLoader_.RunWorkerCompleted += new System.ComponentModel.RunWor
kerCompletedEventHandler(this.UpdateTreeView); | |
231 this.locListLoader_.ProgressChanged += new System.ComponentModel.ProgressC
hangedEventHandler(this.PopulateNodesProgressChanged); | |
232 // | |
233 // NexeLoader | |
234 // | |
235 this.AcceptButton = this.searchButton_; | |
236 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); | |
237 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
238 this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; | |
239 this.ClientSize = new System.Drawing.Size(756, 633); | |
240 this.Controls.Add(this.symbolDbTreeView_); | |
241 this.Controls.Add(this.flowLayoutPanel1); | |
242 this.Controls.Add(this.loadButton_); | |
243 this.Controls.Add(this.loadStatusStrip_); | |
244 this.Name = "NexeLoader"; | |
245 this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; | |
246 this.Text = "SymbolDBViewer"; | |
247 this.loadStatusStrip_.ResumeLayout(false); | |
248 this.loadStatusStrip_.PerformLayout(); | |
249 this.flowLayoutPanel1.ResumeLayout(false); | |
250 this.flowLayoutPanel1.PerformLayout(); | |
251 this.ResumeLayout(false); | |
252 this.PerformLayout(); | |
253 | |
254 } | |
255 | |
256 #endregion | |
257 | |
258 | |
259 /// <summary> | |
260 /// The actual symbol database, which can load a nexe. | |
261 /// </summary> | |
262 private SymbolDatabase symbolDatabase_; | |
263 /// <summary> | |
264 /// A file chooser for the user to select a nexe. | |
265 /// </summary> | |
266 private OpenFileDialog nexeChooserDialog_; | |
267 /// <summary> | |
268 /// The TreeView of the contents of symbolDatabase once it has finished | |
269 /// loading. | |
270 /// </summary> | |
271 private TreeView symbolDbTreeView_; | |
272 /// <summary> | |
273 /// This is used for reporting load progress in case he/she wonders | |
274 /// what's taking so long. | |
275 /// </summary> | |
276 private StatusStrip loadStatusStrip_; | |
277 /// <summary> | |
278 /// The button which fires the event that causes the nexe to be | |
279 /// selected and loaded. | |
280 /// </summary> | |
281 private Button loadButton_; | |
282 /// <summary> | |
283 /// This is the label whose text will actually indicate load progress | |
284 /// and status. | |
285 /// </summary> | |
286 private ToolStripStatusLabel statusLabel_; | |
287 /// <summary> | |
288 /// This is the text box where the user can type is search string. | |
289 /// </summary> | |
290 private TextBox searchTextBox_; | |
291 /// <summary> | |
292 /// This button fires the event that starts the search. | |
293 /// </summary> | |
294 private Button searchButton_; | |
295 /// <summary> | |
296 /// This background worker loads the DIE entries. | |
297 /// </summary> | |
298 private DIELoader dieLoader_; | |
299 /// <summary> | |
300 /// This background workder laods the file entries. | |
301 /// </summary> | |
302 private SourceFileLoader fileLoader_; | |
303 /// <summary> | |
304 /// This background worker loads the location entries. | |
305 /// </summary> | |
306 private SourceLocationLoader locationLoader_; | |
307 /// <summary> | |
308 /// This background worker loads the scope transition entries. | |
309 /// </summary> | |
310 private ScopeTransitionLoader scopeTransitionLoader_; | |
311 /// <summary> | |
312 /// This background workder loads the call frame entries. | |
313 /// </summary> | |
314 private CallFrameLoader callFrameLoader_; | |
315 /// <summary> | |
316 /// This background worker loads the location list entries. | |
317 /// </summary> | |
318 private LocListLoader locListLoader_; | |
319 /// <summary> | |
320 /// This layout helps with the buttons and labels anchored on the top of | |
321 /// the form. | |
322 /// </summary> | |
323 private FlowLayoutPanel flowLayoutPanel1; | |
324 /// <summary> | |
325 /// This label displays the name of the nexe that is currently loaded | |
326 /// into the SymbolDBViewer. | |
327 /// </summary> | |
328 private Label fileNameLabel_; | |
329 /// <summary> | |
330 /// This button collapses any opened nodes in the symbolDbTreeView_. | |
331 /// </summary> | |
332 private Button collapseAllButton_; | |
333 /// <summary> | |
334 /// This button navigates down an entry in the search results. | |
335 /// </summary> | |
336 private Button searchNavBackButton_; | |
337 /// <summary> | |
338 /// This label indicates which search result was most recently navigated | |
339 /// to. | |
340 /// </summary> | |
341 private Label searchNavLabel_; | |
342 /// <summary> | |
343 /// This button navigates up an entry in the search results. | |
344 /// </summary> | |
345 private Button searchNavForwardButton_; | |
346 } | |
347 } | |
348 | |
OLD | NEW |