Improved the selection dragging on the tree view. The selection moves now only when the dragging starts on the tree view. With the old implementation, double-clicking the gadget would change the selection, because the mouse is still pressed when the main window is shown.
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.resetMenuItem = new System.Windows.Forms.MenuItem();
81 this.menuItem6 = new System.Windows.Forms.MenuItem();
82 this.exitMenuItem = new System.Windows.Forms.MenuItem();
83 this.viewMenuItem = new System.Windows.Forms.MenuItem();
84 this.resetMinMaxMenuItem = new System.Windows.Forms.MenuItem();
85 this.MenuItem3 = new System.Windows.Forms.MenuItem();
86 this.hiddenMenuItem = new System.Windows.Forms.MenuItem();
87 this.plotMenuItem = new System.Windows.Forms.MenuItem();
88 this.gadgetMenuItem = new System.Windows.Forms.MenuItem();
89 this.MenuItem1 = new System.Windows.Forms.MenuItem();
90 this.columnsMenuItem = new System.Windows.Forms.MenuItem();
91 this.valueMenuItem = new System.Windows.Forms.MenuItem();
92 this.minMenuItem = new System.Windows.Forms.MenuItem();
93 this.maxMenuItem = new System.Windows.Forms.MenuItem();
94 this.optionsMenuItem = new System.Windows.Forms.MenuItem();
95 this.startMinMenuItem = new System.Windows.Forms.MenuItem();
96 this.minTrayMenuItem = new System.Windows.Forms.MenuItem();
97 this.minCloseMenuItem = new System.Windows.Forms.MenuItem();
98 this.startupMenuItem = new System.Windows.Forms.MenuItem();
99 this.separatorMenuItem = new System.Windows.Forms.MenuItem();
100 this.temperatureUnitsMenuItem = new System.Windows.Forms.MenuItem();
101 this.celciusMenuItem = new System.Windows.Forms.MenuItem();
102 this.fahrenheitMenuItem = new System.Windows.Forms.MenuItem();
103 this.MenuItem4 = new System.Windows.Forms.MenuItem();
104 this.hddMenuItem = new System.Windows.Forms.MenuItem();
105 this.helpMenuItem = new System.Windows.Forms.MenuItem();
106 this.aboutMenuItem = new System.Windows.Forms.MenuItem();
107 this.treeContextMenu = 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;
168 this.nodeTextBoxText.UseCompatibleTextRendering = true;
172 this.nodeTextBoxValue.DataPropertyName = "Value";
173 this.nodeTextBoxValue.IncrementalSearchEnabled = true;
174 this.nodeTextBoxValue.LeftMargin = 3;
175 this.nodeTextBoxValue.ParentColumn = this.value;
176 this.nodeTextBoxValue.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
177 this.nodeTextBoxValue.UseCompatibleTextRendering = true;
181 this.nodeTextBoxMin.DataPropertyName = "Min";
182 this.nodeTextBoxMin.IncrementalSearchEnabled = true;
183 this.nodeTextBoxMin.LeftMargin = 3;
184 this.nodeTextBoxMin.ParentColumn = this.min;
185 this.nodeTextBoxMin.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
186 this.nodeTextBoxMin.UseCompatibleTextRendering = true;
190 this.nodeTextBoxMax.DataPropertyName = "Max";
191 this.nodeTextBoxMax.IncrementalSearchEnabled = true;
192 this.nodeTextBoxMax.LeftMargin = 3;
193 this.nodeTextBoxMax.ParentColumn = this.max;
194 this.nodeTextBoxMax.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
195 this.nodeTextBoxMax.UseCompatibleTextRendering = true;
199 this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
202 this.optionsMenuItem,
207 this.fileMenuItem.Index = 0;
208 this.fileMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
209 this.saveReportMenuItem,
210 this.sumbitReportMenuItem,
215 this.fileMenuItem.Text = "File";
217 // saveReportMenuItem
219 this.saveReportMenuItem.Index = 0;
220 this.saveReportMenuItem.Text = "Save Report...";
221 this.saveReportMenuItem.Click += new System.EventHandler(this.saveReportMenuItem_Click);
223 // sumbitReportMenuItem
225 this.sumbitReportMenuItem.Index = 1;
226 this.sumbitReportMenuItem.Text = "Submit Report...";
227 this.sumbitReportMenuItem.Click += new System.EventHandler(this.sumbitReportMenuItem_Click);
231 this.MenuItem2.Index = 2;
232 this.MenuItem2.Text = "-";
236 this.resetMenuItem.Index = 3;
237 this.resetMenuItem.Text = "Reset";
238 this.resetMenuItem.Click += new System.EventHandler(this.resetClick);
242 this.menuItem6.Index = 4;
243 this.menuItem6.Text = "-";
247 this.exitMenuItem.Index = 5;
248 this.exitMenuItem.Text = "Exit";
249 this.exitMenuItem.Click += new System.EventHandler(this.exitClick);
253 this.viewMenuItem.Index = 1;
254 this.viewMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
255 this.resetMinMaxMenuItem,
261 this.columnsMenuItem});
262 this.viewMenuItem.Text = "View";
264 // resetMinMaxMenuItem
266 this.resetMinMaxMenuItem.Index = 0;
267 this.resetMinMaxMenuItem.Text = "Reset Min/Max";
268 this.resetMinMaxMenuItem.Click += new System.EventHandler(this.resetMinMaxMenuItem_Click);
272 this.MenuItem3.Index = 1;
273 this.MenuItem3.Text = "-";
277 this.hiddenMenuItem.Index = 2;
278 this.hiddenMenuItem.Text = "Show Hidden Sensors";
282 this.plotMenuItem.Index = 3;
283 this.plotMenuItem.Text = "Show Plot";
287 this.gadgetMenuItem.Index = 4;
288 this.gadgetMenuItem.Text = "Show Gadget";
292 this.MenuItem1.Index = 5;
293 this.MenuItem1.Text = "-";
297 this.columnsMenuItem.Index = 6;
298 this.columnsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
302 this.columnsMenuItem.Text = "Columns";
306 this.valueMenuItem.Index = 0;
307 this.valueMenuItem.Text = "Value";
311 this.minMenuItem.Index = 1;
312 this.minMenuItem.Text = "Min";
316 this.maxMenuItem.Index = 2;
317 this.maxMenuItem.Text = "Max";
321 this.optionsMenuItem.Index = 2;
322 this.optionsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
323 this.startMinMenuItem,
324 this.minTrayMenuItem,
325 this.minCloseMenuItem,
326 this.startupMenuItem,
327 this.separatorMenuItem,
328 this.temperatureUnitsMenuItem,
331 this.optionsMenuItem.Text = "Options";
335 this.startMinMenuItem.Index = 0;
336 this.startMinMenuItem.Text = "Start Minimized";
340 this.minTrayMenuItem.Index = 1;
341 this.minTrayMenuItem.Text = "Minimize To Tray";
345 this.minCloseMenuItem.Index = 2;
346 this.minCloseMenuItem.Text = "Minimize On Close";
350 this.startupMenuItem.Index = 3;
351 this.startupMenuItem.Text = "Run On Windows Startup";
355 this.separatorMenuItem.Index = 4;
356 this.separatorMenuItem.Text = "-";
358 // temperatureUnitsMenuItem
360 this.temperatureUnitsMenuItem.Index = 5;
361 this.temperatureUnitsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
362 this.celciusMenuItem,
363 this.fahrenheitMenuItem});
364 this.temperatureUnitsMenuItem.Text = "Temperature Unit";
368 this.celciusMenuItem.Index = 0;
369 this.celciusMenuItem.Text = "Celcius";
370 this.celciusMenuItem.Click += new System.EventHandler(this.celciusMenuItem_Click);
372 // fahrenheitMenuItem
374 this.fahrenheitMenuItem.Index = 1;
375 this.fahrenheitMenuItem.Text = "Fahrenheit";
376 this.fahrenheitMenuItem.Click += new System.EventHandler(this.fahrenheitMenuItem_Click);
380 this.MenuItem4.Index = 6;
381 this.MenuItem4.Text = "-";
385 this.hddMenuItem.Index = 7;
386 this.hddMenuItem.Text = "Read HDD sensors";
390 this.helpMenuItem.Index = 3;
391 this.helpMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
392 this.aboutMenuItem});
393 this.helpMenuItem.Text = "Help";
397 this.aboutMenuItem.Index = 0;
398 this.aboutMenuItem.Text = "About";
399 this.aboutMenuItem.Click += new System.EventHandler(this.aboutMenuItem_Click);
403 this.saveFileDialog.DefaultExt = "txt";
404 this.saveFileDialog.FileName = "OpenHardwareMonitor.Report.txt";
405 this.saveFileDialog.Filter = "Text Documents|*.txt|All Files|*.*";
406 this.saveFileDialog.RestoreDirectory = true;
407 this.saveFileDialog.Title = "Save Report As";
411 this.timer.Interval = 1000;
412 this.timer.Tick += new System.EventHandler(this.timer_Tick);
416 this.splitContainer.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised;
417 this.splitContainer.Color = System.Drawing.SystemColors.Control;
418 this.splitContainer.Cursor = System.Windows.Forms.Cursors.Default;
419 this.splitContainer.Location = new System.Drawing.Point(12, 12);
420 this.splitContainer.Name = "splitContainer";
421 this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
423 // splitContainer.Panel1
425 this.splitContainer.Panel1.Controls.Add(this.treeView);
427 // splitContainer.Panel2
429 this.splitContainer.Panel2.Controls.Add(this.plotPanel);
430 this.splitContainer.Panel2.Cursor = System.Windows.Forms.Cursors.Default;
431 this.splitContainer.Size = new System.Drawing.Size(386, 483);
432 this.splitContainer.SplitterDistance = 354;
433 this.splitContainer.SplitterWidth = 5;
434 this.splitContainer.TabIndex = 3;
438 this.treeView.BackColor = System.Drawing.SystemColors.Window;
439 this.treeView.BorderStyle = System.Windows.Forms.BorderStyle.None;
440 this.treeView.Columns.Add(this.sensor);
441 this.treeView.Columns.Add(this.value);
442 this.treeView.Columns.Add(this.min);
443 this.treeView.Columns.Add(this.max);
444 this.treeView.DefaultToolTipProvider = null;
445 this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
446 this.treeView.DragDropMarkColor = System.Drawing.Color.Black;
447 this.treeView.FullRowSelect = true;
448 this.treeView.GridLineStyle = Aga.Controls.Tree.GridLineStyle.Horizontal;
449 this.treeView.LineColor = System.Drawing.SystemColors.ControlDark;
450 this.treeView.Location = new System.Drawing.Point(0, 0);
451 this.treeView.Model = null;
452 this.treeView.Name = "treeView";
453 this.treeView.NodeControls.Add(this.nodeImage);
454 this.treeView.NodeControls.Add(this.nodeCheckBox);
455 this.treeView.NodeControls.Add(this.nodeTextBoxText);
456 this.treeView.NodeControls.Add(this.nodeTextBoxValue);
457 this.treeView.NodeControls.Add(this.nodeTextBoxMin);
458 this.treeView.NodeControls.Add(this.nodeTextBoxMax);
459 this.treeView.SelectedNode = null;
460 this.treeView.Size = new System.Drawing.Size(386, 354);
461 this.treeView.TabIndex = 0;
462 this.treeView.Text = "treeView";
463 this.treeView.UseColumns = true;
464 this.treeView.NodeMouseDoubleClick += new System.EventHandler<Aga.Controls.Tree.TreeNodeAdvMouseEventArgs>(this.treeView_NodeMouseDoubleClick);
465 this.treeView.Click += new System.EventHandler(this.treeView_Click);
466 this.treeView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeView_MouseDown);
467 this.treeView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.treeView_MouseMove);
468 this.treeView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.treeView_MouseUp);
472 this.plotPanel.Dock = System.Windows.Forms.DockStyle.Fill;
473 this.plotPanel.Location = new System.Drawing.Point(0, 0);
474 this.plotPanel.Name = "plotPanel";
475 this.plotPanel.Size = new System.Drawing.Size(386, 124);
476 this.plotPanel.TabIndex = 0;
480 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
481 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
482 this.ClientSize = new System.Drawing.Size(418, 554);
483 this.Controls.Add(this.splitContainer);
484 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
485 this.Menu = this.mainMenu;
486 this.Name = "MainForm";
487 this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
488 this.Text = "Open Hardware Monitor";
489 this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed);
490 this.Load += new System.EventHandler(this.MainForm_Load);
491 this.ResizeEnd += new System.EventHandler(this.MainForm_MoveOrResize);
492 this.Move += new System.EventHandler(this.MainForm_MoveOrResize);
493 this.splitContainer.Panel1.ResumeLayout(false);
494 this.splitContainer.Panel2.ResumeLayout(false);
495 this.splitContainer.ResumeLayout(false);
496 this.ResumeLayout(false);
502 private Aga.Controls.Tree.TreeViewAdv treeView;
503 private System.Windows.Forms.MainMenu mainMenu;
504 private System.Windows.Forms.MenuItem fileMenuItem;
505 private System.Windows.Forms.MenuItem exitMenuItem;
506 private Aga.Controls.Tree.TreeColumn sensor;
507 private Aga.Controls.Tree.TreeColumn value;
508 private Aga.Controls.Tree.TreeColumn min;
509 private Aga.Controls.Tree.TreeColumn max;
510 private Aga.Controls.Tree.NodeControls.NodeIcon nodeImage;
511 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxText;
512 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxValue;
513 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxMin;
514 private Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBoxMax;
515 private SplitContainerAdv splitContainer;
516 private PlotPanel plotPanel;
517 private System.Windows.Forms.MenuItem viewMenuItem;
518 private System.Windows.Forms.MenuItem plotMenuItem;
519 private Aga.Controls.Tree.NodeControls.NodeCheckBox nodeCheckBox;
520 private System.Windows.Forms.MenuItem helpMenuItem;
521 private System.Windows.Forms.MenuItem aboutMenuItem;
522 private System.Windows.Forms.MenuItem saveReportMenuItem;
523 private System.Windows.Forms.MenuItem optionsMenuItem;
524 private System.Windows.Forms.MenuItem hddMenuItem;
525 private System.Windows.Forms.MenuItem minTrayMenuItem;
526 private System.Windows.Forms.MenuItem separatorMenuItem;
527 private System.Windows.Forms.ContextMenu treeContextMenu;
528 private System.Windows.Forms.MenuItem startMinMenuItem;
529 private System.Windows.Forms.MenuItem startupMenuItem;
530 private System.Windows.Forms.SaveFileDialog saveFileDialog;
531 private System.Windows.Forms.Timer timer;
532 private System.Windows.Forms.MenuItem hiddenMenuItem;
533 private System.Windows.Forms.MenuItem MenuItem1;
534 private System.Windows.Forms.MenuItem columnsMenuItem;
535 private System.Windows.Forms.MenuItem valueMenuItem;
536 private System.Windows.Forms.MenuItem minMenuItem;
537 private System.Windows.Forms.MenuItem maxMenuItem;
538 private System.Windows.Forms.MenuItem temperatureUnitsMenuItem;
539 private System.Windows.Forms.MenuItem MenuItem4;
540 private System.Windows.Forms.MenuItem celciusMenuItem;
541 private System.Windows.Forms.MenuItem fahrenheitMenuItem;
542 private System.Windows.Forms.MenuItem sumbitReportMenuItem;
543 private System.Windows.Forms.MenuItem MenuItem2;
544 private System.Windows.Forms.MenuItem resetMinMaxMenuItem;
545 private System.Windows.Forms.MenuItem MenuItem3;
546 private System.Windows.Forms.MenuItem gadgetMenuItem;
547 private System.Windows.Forms.MenuItem minCloseMenuItem;
548 private System.Windows.Forms.MenuItem resetMenuItem;
549 private System.Windows.Forms.MenuItem menuItem6;