Added license to the WMI stuff and refactored a few things a little.
3 Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 The contents of this file are subject to the Mozilla Public License Version
6 1.1 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
9 http://www.mozilla.org/MPL/
11 Software distributed under the License is distributed on an "AS IS" basis,
12 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 for the specific language governing rights and limitations under the License.
15 The Original Code is the Open Hardware Monitor code.
17 The Initial Developer of the Original Code is
18 Michael Möller <m.moeller@gmx.ch>.
19 Portions created by the Initial Developer are Copyright (C) 2009-2010
20 the Initial Developer. All Rights Reserved.
24 Alternatively, the contents of this file may be used under the terms of
25 either the GNU General Public License Version 2 or later (the "GPL"), or
26 the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 in which case the provisions of the GPL or the LGPL are applicable instead
28 of those above. If you wish to allow use of your version of this file only
29 under the terms of either the GPL or the LGPL, and not to allow others to
30 use your version of this file under the terms of the MPL, indicate your
31 decision by deleting the provisions above and replace them with the notice
32 and other provisions required by the GPL or the LGPL. If you do not delete
33 the provisions above, a recipient may use your version of this file under
34 the terms of any one of the MPL, the GPL or the LGPL.
38 namespace OpenHardwareMonitor.GUI {
39 partial class MainForm {
41 /// Required designer variable.
43 private System.ComponentModel.IContainer components = null;
46 /// Clean up any resources being used.
48 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
49 protected override void Dispose(bool disposing) {
50 if (disposing && (components != null)) {
53 base.Dispose(disposing);
56 #region Windows Form Designer generated code
59 /// Required method for Designer support - do not modify
60 /// the contents of this method with the code editor.
62 private void InitializeComponent() {
63 this.components = new System.ComponentModel.Container();
64 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
65 this.sensor = new Aga.Controls.Tree.TreeColumn();
66 this.value = new Aga.Controls.Tree.TreeColumn();
67 this.min = new Aga.Controls.Tree.TreeColumn();
68 this.max = new Aga.Controls.Tree.TreeColumn();
69 this.nodeImage = new Aga.Controls.Tree.NodeControls.NodeIcon();
70 this.nodeCheckBox = new Aga.Controls.Tree.NodeControls.NodeCheckBox();
71 this.nodeTextBoxText = new Aga.Controls.Tree.NodeControls.NodeTextBox();
72 this.nodeTextBoxValue = new Aga.Controls.Tree.NodeControls.NodeTextBox();
73 this.nodeTextBoxMin = new Aga.Controls.Tree.NodeControls.NodeTextBox();
74 this.nodeTextBoxMax = new Aga.Controls.Tree.NodeControls.NodeTextBox();
75 this.mainMenu = new System.Windows.Forms.MainMenu(this.components);
76 this.fileMenuItem = new System.Windows.Forms.MenuItem();
77 this.saveReportMenuItem = new System.Windows.Forms.MenuItem();
78 this.sumbitReportMenuItem = new System.Windows.Forms.MenuItem();
79 this.MenuItem2 = new System.Windows.Forms.MenuItem();
80 this.exitMenuItem = new System.Windows.Forms.MenuItem();
81 this.viewMenuItem = new System.Windows.Forms.MenuItem();
82 this.resetMinMaxMenuItem = new System.Windows.Forms.MenuItem();
83 this.MenuItem3 = new System.Windows.Forms.MenuItem();
84 this.hiddenMenuItem = new System.Windows.Forms.MenuItem();
85 this.plotMenuItem = new System.Windows.Forms.MenuItem();
86 this.gadgetMenuItem = new System.Windows.Forms.MenuItem();
87 this.MenuItem1 = new System.Windows.Forms.MenuItem();
88 this.columnsMenuItem = new System.Windows.Forms.MenuItem();
89 this.valueMenuItem = new System.Windows.Forms.MenuItem();
90 this.minMenuItem = new System.Windows.Forms.MenuItem();
91 this.maxMenuItem = new System.Windows.Forms.MenuItem();
92 this.optionsMenuItem = new System.Windows.Forms.MenuItem();
93 this.startMinMenuItem = new System.Windows.Forms.MenuItem();
94 this.minTrayMenuItem = new System.Windows.Forms.MenuItem();
95 this.minCloseMenuItem = new System.Windows.Forms.MenuItem();
96 this.startupMenuItem = new System.Windows.Forms.MenuItem();
97 this.separatorMenuItem = new System.Windows.Forms.MenuItem();
98 this.temperatureUnitsMenuItem = new System.Windows.Forms.MenuItem();
99 this.celciusMenuItem = new System.Windows.Forms.MenuItem();
100 this.fahrenheitMenuItem = new System.Windows.Forms.MenuItem();
101 this.MenuItem4 = new System.Windows.Forms.MenuItem();
102 this.hddMenuItem = new System.Windows.Forms.MenuItem();
103 this.menuItem5 = new System.Windows.Forms.MenuItem();
104 this.wmiMenuItem = new System.Windows.Forms.MenuItem();
105 this.helpMenuItem = new System.Windows.Forms.MenuItem();
106 this.aboutMenuItem = new System.Windows.Forms.MenuItem();
107 this.sensorContextMenu = new System.Windows.Forms.ContextMenu();
108 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
109 this.timer = new System.Windows.Forms.Timer(this.components);
110 this.splitContainer = new OpenHardwareMonitor.GUI.SplitContainerAdv();
111 this.treeView = new Aga.Controls.Tree.TreeViewAdv();
112 this.plotPanel = new OpenHardwareMonitor.GUI.PlotPanel();
113 this.splitContainer.Panel1.SuspendLayout();
114 this.splitContainer.Panel2.SuspendLayout();
115 this.splitContainer.SuspendLayout();
116 this.SuspendLayout();
120 this.sensor.Header = "Sensor";
121 this.sensor.SortOrder = System.Windows.Forms.SortOrder.None;
122 this.sensor.TooltipText = null;
123 this.sensor.Width = 250;
127 this.value.Header = "Value";
128 this.value.SortOrder = System.Windows.Forms.SortOrder.None;
129 this.value.TooltipText = null;
130 this.value.Width = 100;
134 this.min.Header = "Min";
135 this.min.SortOrder = System.Windows.Forms.SortOrder.None;
136 this.min.TooltipText = null;
137 this.min.Width = 100;
141 this.max.Header = "Max";
142 this.max.SortOrder = System.Windows.Forms.SortOrder.None;
143 this.max.TooltipText = null;
144 this.max.Width = 100;
148 this.nodeImage.DataPropertyName = "Image";
149 this.nodeImage.LeftMargin = 1;
150 this.nodeImage.ParentColumn = this.sensor;
151 this.nodeImage.ScaleMode = Aga.Controls.Tree.ImageScaleMode.Fit;
155 this.nodeCheckBox.DataPropertyName = "Plot";
156 this.nodeCheckBox.EditEnabled = true;
157 this.nodeCheckBox.LeftMargin = 3;
158 this.nodeCheckBox.ParentColumn = this.sensor;
162 this.nodeTextBoxText.DataPropertyName = "Text";
163 this.nodeTextBoxText.EditEnabled = true;
164 this.nodeTextBoxText.IncrementalSearchEnabled = true;
165 this.nodeTextBoxText.LeftMargin = 3;
166 this.nodeTextBoxText.ParentColumn = this.sensor;
167 this.nodeTextBoxText.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
171 this.nodeTextBoxValue.DataPropertyName = "Value";
172 this.nodeTextBoxValue.IncrementalSearchEnabled = true;
173 this.nodeTextBoxValue.LeftMargin = 3;
174 this.nodeTextBoxValue.ParentColumn = this.value;
175 this.nodeTextBoxValue.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
179 this.nodeTextBoxMin.DataPropertyName = "Min";
180 this.nodeTextBoxMin.IncrementalSearchEnabled = true;
181 this.nodeTextBoxMin.LeftMargin = 3;
182 this.nodeTextBoxMin.ParentColumn = this.min;
183 this.nodeTextBoxMin.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
187 this.nodeTextBoxMax.DataPropertyName = "Max";
188 this.nodeTextBoxMax.IncrementalSearchEnabled = true;
189 this.nodeTextBoxMax.LeftMargin = 3;
190 this.nodeTextBoxMax.ParentColumn = this.max;
191 this.nodeTextBoxMax.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
195 this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
198 this.optionsMenuItem,
203 this.fileMenuItem.Index = 0;
204 this.fileMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
205 this.saveReportMenuItem,
206 this.sumbitReportMenuItem,
209 this.fileMenuItem.Text = "File";
211 // saveReportMenuItem
213 this.saveReportMenuItem.Index = 0;
214 this.saveReportMenuItem.Text = "Save Report...";
215 this.saveReportMenuItem.Click += new System.EventHandler(this.saveReportMenuItem_Click);
217 // sumbitReportMenuItem
219 this.sumbitReportMenuItem.Index = 1;
220 this.sumbitReportMenuItem.Text = "Submit Report...";
221 this.sumbitReportMenuItem.Click += new System.EventHandler(this.sumbitReportMenuItem_Click);
225 this.MenuItem2.Index = 2;
226 this.MenuItem2.Text = "-";
230 this.exitMenuItem.Index = 3;
231 this.exitMenuItem.Text = "Exit";
232 this.exitMenuItem.Click += new System.EventHandler(this.exitClick);
236 this.viewMenuItem.Index = 1;
237 this.viewMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
238 this.resetMinMaxMenuItem,
244 this.columnsMenuItem});
245 this.viewMenuItem.Text = "View";
247 // resetMinMaxMenuItem
249 this.resetMinMaxMenuItem.Index = 0;
250 this.resetMinMaxMenuItem.Text = "Reset Min/Max";
251 this.resetMinMaxMenuItem.Click += new System.EventHandler(this.resetMinMaxMenuItem_Click);
255 this.MenuItem3.Index = 1;
256 this.MenuItem3.Text = "-";
260 this.hiddenMenuItem.Index = 2;
261 this.hiddenMenuItem.Text = "Show Hidden Sensors";
265 this.plotMenuItem.Index = 3;
266 this.plotMenuItem.Text = "Show Plot";
270 this.gadgetMenuItem.Index = 4;
271 this.gadgetMenuItem.Text = "Show Gadget";
275 this.MenuItem1.Index = 5;
276 this.MenuItem1.Text = "-";
280 this.columnsMenuItem.Index = 6;
281 this.columnsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
285 this.columnsMenuItem.Text = "Columns";
289 this.valueMenuItem.Index = 0;
290 this.valueMenuItem.Text = "Value";
294 this.minMenuItem.Index = 1;
295 this.minMenuItem.Text = "Min";
299 this.maxMenuItem.Index = 2;
300 this.maxMenuItem.Text = "Max";
304 this.optionsMenuItem.Index = 2;
305 this.optionsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
306 this.startMinMenuItem,
307 this.minTrayMenuItem,
308 this.minCloseMenuItem,
309 this.startupMenuItem,
310 this.separatorMenuItem,
311 this.temperatureUnitsMenuItem,
316 this.optionsMenuItem.Text = "Options";
320 this.startMinMenuItem.Index = 0;
321 this.startMinMenuItem.Text = "Start Minimized";
325 this.minTrayMenuItem.Index = 1;
326 this.minTrayMenuItem.Text = "Minimize To Tray";
330 this.minCloseMenuItem.Index = 2;
331 this.minCloseMenuItem.Text = "Minimize On Close";
335 this.startupMenuItem.Index = 3;
336 this.startupMenuItem.Text = "Run On Windows Startup";
340 this.separatorMenuItem.Index = 4;
341 this.separatorMenuItem.Text = "-";
343 // temperatureUnitsMenuItem
345 this.temperatureUnitsMenuItem.Index = 5;
346 this.temperatureUnitsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
347 this.celciusMenuItem,
348 this.fahrenheitMenuItem});
349 this.temperatureUnitsMenuItem.Text = "Temperature Unit";
353 this.celciusMenuItem.Index = 0;
354 this.celciusMenuItem.Text = "Celcius";
355 this.celciusMenuItem.Click += new System.EventHandler(this.celciusMenuItem_Click);
357 // fahrenheitMenuItem
359 this.fahrenheitMenuItem.Index = 1;
360 this.fahrenheitMenuItem.Text = "Fahrenheit";
361 this.fahrenheitMenuItem.Click += new System.EventHandler(this.fahrenheitMenuItem_Click);
365 this.MenuItem4.Index = 6;
366 this.MenuItem4.Text = "-";
370 this.hddMenuItem.Index = 7;
371 this.hddMenuItem.Text = "Read HDD sensors";
375 this.menuItem5.Index = 8;
376 this.menuItem5.Text = "-";
380 this.wmiMenuItem.Index = 9;
381 this.wmiMenuItem.Text = "Enable WMI Provider";
385 this.helpMenuItem.Index = 3;
386 this.helpMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
387 this.aboutMenuItem});
388 this.helpMenuItem.Text = "Help";
392 this.aboutMenuItem.Index = 0;
393 this.aboutMenuItem.Text = "About";
394 this.aboutMenuItem.Click += new System.EventHandler(this.aboutMenuItem_Click);
398 this.saveFileDialog.DefaultExt = "txt";
399 this.saveFileDialog.FileName = "OpenHardwareMonitor.Report.txt";
400 this.saveFileDialog.Filter = "Text Documents|*.txt|All Files|*.*";
401 this.saveFileDialog.RestoreDirectory = true;
402 this.saveFileDialog.Title = "Save Report As";
406 this.timer.Interval = 1000;
407 this.timer.Tick += new System.EventHandler(this.timer_Tick);
411 this.splitContainer.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised;
412 this.splitContainer.Color = System.Drawing.SystemColors.Control;
413 this.splitContainer.Cursor = System.Windows.Forms.Cursors.Default;
414 this.splitContainer.Location = new System.Drawing.Point(12, 12);
415 this.splitContainer.Name = "splitContainer";
416 this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
418 // splitContainer.Panel1
420 this.splitContainer.Panel1.Controls.Add(this.treeView);
422 // splitContainer.Panel2
424 this.splitContainer.Panel2.Controls.Add(this.plotPanel);
425 this.splitContainer.Panel2.Cursor = System.Windows.Forms.Cursors.Default;
426 this.splitContainer.Size = new System.Drawing.Size(386, 483);
427 this.splitContainer.SplitterDistance = 354;
428 this.splitContainer.SplitterWidth = 5;
429 this.splitContainer.TabIndex = 3;
433 this.treeView.BackColor = System.Drawing.SystemColors.Window;
434 this.treeView.BorderStyle = System.Windows.Forms.BorderStyle.None;
435 this.treeView.Columns.Add(this.sensor);
436 this.treeView.Columns.Add(this.value);
437 this.treeView.Columns.Add(this.min);
438 this.treeView.Columns.Add(this.max);
439 this.treeView.DefaultToolTipProvider = null;
440 this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
441 this.treeView.DragDropMarkColor = System.Drawing.Color.Black;
442 this.treeView.FullRowSelect = true;
443 this.treeView.GridLineStyle = Aga.Controls.Tree.GridLineStyle.Horizontal;
444 this.treeView.LineColor = System.Drawing.SystemColors.ControlDark;
445 this.treeView.Location = new System.Drawing.Point(0, 0);
446 this.treeView.Model = null;
447 this.treeView.Name = "treeView";
448 this.treeView.NodeControls.Add(this.nodeImage);
449 this.treeView.NodeControls.Add(this.nodeCheckBox);
450 this.treeView.NodeControls.Add(this.nodeTextBoxText);
451 this.treeView.NodeControls.Add(this.nodeTextBoxValue);
452 this.treeView.NodeControls.Add(this.nodeTextBoxMin);
453 this.treeView.NodeControls.Add(this.nodeTextBoxMax);
454 this.treeView.RowHeight = 18;
455 this.treeView.SelectedNode = null;
456 this.treeView.Size = new System.Drawing.Size(386, 354);
457 this.treeView.TabIndex = 0;
458 this.treeView.Text = "treeView";
459 this.treeView.UseColumns = true;
460 this.treeView.NodeMouseDoubleClick += new System.EventHandler<Aga.Controls.Tree.TreeNodeAdvMouseEventArgs>(this.treeView_NodeMouseDoubleClick);
461 this.treeView.Click += new System.EventHandler(this.treeView_Click);
465 this.plotPanel.Dock = System.Windows.Forms.DockStyle.Fill;
466 this.plotPanel.Location = new System.Drawing.Point(0, 0);
467 this.plotPanel.Name = "plotPanel";
468 this.plotPanel.Size = new System.Drawing.Size(386, 124);
469 this.plotPanel.TabIndex = 0;
473 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
474 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
475 this.ClientSize = new System.Drawing.Size(418, 554);
476 this.Controls.Add(this.splitContainer);
477 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
478 this.Menu = this.mainMenu;
479 this.Name = "MainForm";
480 this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
481 this.Text = "Open Hardware Monitor";
482 this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed);
483 this.Load += new System.EventHandler(this.MainForm_Load);
484 this.splitContainer.Panel1.ResumeLayout(false);
485 this.splitContainer.Panel2.ResumeLayout(false);
486 this.splitContainer.ResumeLayout(false);
487 this.ResumeLayout(false);
493 private Aga.Controls.Tree.TreeViewAdv treeView;
494 private System.Windows.Forms.MainMenu mainMenu;
495 private System.Windows.Forms.MenuItem fileMenuItem;
496 private System.Windows.Forms.MenuItem exitMenuItem;
497 private Aga.Controls.Tree.TreeColumn sensor;
498 private Aga.Controls.Tree.TreeColumn value;
499 private Aga.Controls.Tree.TreeColumn min;
500 private Aga.Controls.Tree.TreeColumn max;
501 private Aga.Controls.Tree.NodeControls.NodeIcon nodeImage;
502 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxText;
503 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxValue;
504 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxMin;
505 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxMax;
506 private SplitContainerAdv splitContainer;
507 private PlotPanel plotPanel;
508 private System.Windows.Forms.MenuItem viewMenuItem;
509 private System.Windows.Forms.MenuItem plotMenuItem;
510 private Aga.Controls.Tree.NodeControls.NodeCheckBox nodeCheckBox;
511 private System.Windows.Forms.MenuItem helpMenuItem;
512 private System.Windows.Forms.MenuItem aboutMenuItem;
513 private System.Windows.Forms.MenuItem saveReportMenuItem;
514 private System.Windows.Forms.MenuItem optionsMenuItem;
515 private System.Windows.Forms.MenuItem hddMenuItem;
516 private System.Windows.Forms.MenuItem minTrayMenuItem;
517 private System.Windows.Forms.MenuItem separatorMenuItem;
518 private System.Windows.Forms.ContextMenu sensorContextMenu;
519 private System.Windows.Forms.MenuItem startMinMenuItem;
520 private System.Windows.Forms.MenuItem startupMenuItem;
521 private System.Windows.Forms.SaveFileDialog saveFileDialog;
522 private System.Windows.Forms.Timer timer;
523 private System.Windows.Forms.MenuItem hiddenMenuItem;
524 private System.Windows.Forms.MenuItem MenuItem1;
525 private System.Windows.Forms.MenuItem columnsMenuItem;
526 private System.Windows.Forms.MenuItem valueMenuItem;
527 private System.Windows.Forms.MenuItem minMenuItem;
528 private System.Windows.Forms.MenuItem maxMenuItem;
529 private System.Windows.Forms.MenuItem temperatureUnitsMenuItem;
530 private System.Windows.Forms.MenuItem MenuItem4;
531 private System.Windows.Forms.MenuItem celciusMenuItem;
532 private System.Windows.Forms.MenuItem fahrenheitMenuItem;
533 private System.Windows.Forms.MenuItem sumbitReportMenuItem;
534 private System.Windows.Forms.MenuItem MenuItem2;
535 private System.Windows.Forms.MenuItem resetMinMaxMenuItem;
536 private System.Windows.Forms.MenuItem MenuItem3;
537 private System.Windows.Forms.MenuItem gadgetMenuItem;
538 private System.Windows.Forms.MenuItem minCloseMenuItem;
539 private System.Windows.Forms.MenuItem menuItem5;
540 private System.Windows.Forms.MenuItem wmiMenuItem;