cec-config-gui: read the configuration before initialising libCEC
[deb_libcec.git] / src / cec-config-gui / CecConfigGUI.Designer.cs
index d2331214015c983e1089d81286cc5e930a424d1c..4b5eabb61fd32e65b571460a3554e4ace1d9b673 100644 (file)
@@ -28,6 +28,7 @@
     /// </summary>
     private void InitializeComponent()
     {
+      this.components = new System.ComponentModel.Container();
       this.tabControl1 = new System.Windows.Forms.TabControl();
       this.Configuration = new System.Windows.Forms.TabPage();
       this.cbPowerOffOnStandby = new System.Windows.Forms.CheckBox();
       this.lPhysicalAddress = new System.Windows.Forms.Label();
       this.lConnectedDevice = new System.Windows.Forms.Label();
       this.lPortNumber = new System.Windows.Forms.Label();
+      this.tbButtons = new System.Windows.Forms.TabPage();
+      this.dgButtons = new System.Windows.Forms.DataGridView();
       this.LogOutput = new System.Windows.Forms.TabPage();
+      this.bSaveLog = new System.Windows.Forms.Button();
+      this.bClearLog = new System.Windows.Forms.Button();
+      this.cbLogDebug = new System.Windows.Forms.CheckBox();
+      this.cbLogTraffic = new System.Windows.Forms.CheckBox();
+      this.cbLogNotice = new System.Windows.Forms.CheckBox();
+      this.cbLogWarning = new System.Windows.Forms.CheckBox();
+      this.cbLogError = new System.Windows.Forms.CheckBox();
       this.tbLog = new System.Windows.Forms.TextBox();
       this.pProgress = new System.Windows.Forms.ProgressBar();
       this.lStatus = new System.Windows.Forms.Label();
+      this.helpPortNumber = new System.Windows.Forms.ToolTip(this.components);
+      this.helpConnectedHDMIDevice = new System.Windows.Forms.ToolTip(this.components);
+      this.helpPhysicalAddress = new System.Windows.Forms.ToolTip(this.components);
+      this.helpDeviceType = new System.Windows.Forms.ToolTip(this.components);
+      this.cecButtonConfigBindingSource = new System.Windows.Forms.BindingSource(this.components);
+      this.CecButtonName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+      this.playerButtonDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
       this.tabControl1.SuspendLayout();
       this.Configuration.SuspendLayout();
+      this.tbButtons.SuspendLayout();
+      ((System.ComponentModel.ISupportInitialize)(this.dgButtons)).BeginInit();
       this.LogOutput.SuspendLayout();
+      ((System.ComponentModel.ISupportInitialize)(this.cecButtonConfigBindingSource)).BeginInit();
       this.SuspendLayout();
       // 
       // tabControl1
       // 
       this.tabControl1.Controls.Add(this.Configuration);
+      this.tabControl1.Controls.Add(this.tbButtons);
       this.tabControl1.Controls.Add(this.LogOutput);
       this.tabControl1.Location = new System.Drawing.Point(12, 12);
       this.tabControl1.Name = "tabControl1";
       this.cbDeviceType.Size = new System.Drawing.Size(121, 21);
       this.cbDeviceType.TabIndex = 14;
       this.cbDeviceType.Text = "Recorder";
+      this.helpDeviceType.SetToolTip(this.cbDeviceType, "Set this to \'Player\' when your TV is having problems with \'Recorder\'");
       // 
       // bClose
       // 
       this.cbPortNumber.Size = new System.Drawing.Size(38, 21);
       this.cbPortNumber.TabIndex = 11;
       this.cbPortNumber.Text = "1";
+      this.helpPortNumber.SetToolTip(this.cbPortNumber, "The HDMI port number, to which you connected your USB-CEC adapter.");
       this.cbPortNumber.SelectedIndexChanged += new System.EventHandler(this.connectedDevice_SelectedIndexChanged);
       // 
       // lConnectedPhysicalAddress
       this.tbPhysicalAddress.Size = new System.Drawing.Size(38, 20);
       this.tbPhysicalAddress.TabIndex = 6;
       this.tbPhysicalAddress.Text = "1000";
+      this.helpPhysicalAddress.SetToolTip(this.tbPhysicalAddress, "The physical address of the adapter. Leave this untouched if you want to autodete" +
+              "ct this value.");
       this.tbPhysicalAddress.TextChanged += new System.EventHandler(this.tbPhysicalAddress_TextChanged);
       // 
       // cbConnectedDevice
       this.cbConnectedDevice.Name = "cbConnectedDevice";
       this.cbConnectedDevice.Size = new System.Drawing.Size(121, 21);
       this.cbConnectedDevice.TabIndex = 5;
+      this.helpConnectedHDMIDevice.SetToolTip(this.cbConnectedDevice, "The HDMI device to which the USB-CEC adapter is connected");
       this.cbConnectedDevice.SelectedIndexChanged += new System.EventHandler(this.connectedDevice_SelectedIndexChanged);
       // 
       // lDeviceType
       this.lPortNumber.TabIndex = 0;
       this.lPortNumber.Text = "HDMI Port number";
       // 
+      // tbButtons
+      // 
+      this.tbButtons.Controls.Add(this.dgButtons);
+      this.tbButtons.Location = new System.Drawing.Point(4, 22);
+      this.tbButtons.Name = "tbButtons";
+      this.tbButtons.Padding = new System.Windows.Forms.Padding(3);
+      this.tbButtons.Size = new System.Drawing.Size(592, 359);
+      this.tbButtons.TabIndex = 2;
+      this.tbButtons.Text = "Button Configuration";
+      this.tbButtons.UseVisualStyleBackColor = true;
+      // 
+      // dgButtons
+      // 
+      this.dgButtons.AllowUserToAddRows = false;
+      this.dgButtons.AllowUserToDeleteRows = false;
+      this.dgButtons.AllowUserToResizeColumns = false;
+      this.dgButtons.AllowUserToResizeRows = false;
+      this.dgButtons.AutoGenerateColumns = false;
+      this.dgButtons.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+      this.dgButtons.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.CecButtonName,
+            this.playerButtonDataGridViewTextBoxColumn});
+      this.dgButtons.DataSource = this.cecButtonConfigBindingSource;
+      this.dgButtons.Location = new System.Drawing.Point(7, 7);
+      this.dgButtons.Name = "dgButtons";
+      this.dgButtons.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
+      this.dgButtons.Size = new System.Drawing.Size(579, 346);
+      this.dgButtons.TabIndex = 0;
+      this.dgButtons.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dataGridView1_CellFormatting);
+      // 
       // LogOutput
       // 
+      this.LogOutput.Controls.Add(this.bSaveLog);
+      this.LogOutput.Controls.Add(this.bClearLog);
+      this.LogOutput.Controls.Add(this.cbLogDebug);
+      this.LogOutput.Controls.Add(this.cbLogTraffic);
+      this.LogOutput.Controls.Add(this.cbLogNotice);
+      this.LogOutput.Controls.Add(this.cbLogWarning);
+      this.LogOutput.Controls.Add(this.cbLogError);
       this.LogOutput.Controls.Add(this.tbLog);
       this.LogOutput.Location = new System.Drawing.Point(4, 22);
       this.LogOutput.Name = "LogOutput";
       this.LogOutput.Text = "Log Output";
       this.LogOutput.UseVisualStyleBackColor = true;
       // 
+      // bSaveLog
+      // 
+      this.bSaveLog.Location = new System.Drawing.Point(430, 330);
+      this.bSaveLog.Name = "bSaveLog";
+      this.bSaveLog.Size = new System.Drawing.Size(75, 23);
+      this.bSaveLog.TabIndex = 7;
+      this.bSaveLog.Text = "Save";
+      this.bSaveLog.UseVisualStyleBackColor = true;
+      this.bSaveLog.Click += new System.EventHandler(this.bSaveLog_Click);
+      // 
+      // bClearLog
+      // 
+      this.bClearLog.Location = new System.Drawing.Point(511, 330);
+      this.bClearLog.Name = "bClearLog";
+      this.bClearLog.Size = new System.Drawing.Size(75, 23);
+      this.bClearLog.TabIndex = 6;
+      this.bClearLog.Text = "Clear";
+      this.bClearLog.UseVisualStyleBackColor = true;
+      this.bClearLog.Click += new System.EventHandler(this.bClearLog_Click);
+      // 
+      // cbLogDebug
+      // 
+      this.cbLogDebug.AutoSize = true;
+      this.cbLogDebug.Location = new System.Drawing.Point(269, 336);
+      this.cbLogDebug.Name = "cbLogDebug";
+      this.cbLogDebug.Size = new System.Drawing.Size(58, 17);
+      this.cbLogDebug.TabIndex = 5;
+      this.cbLogDebug.Text = "Debug";
+      this.cbLogDebug.UseVisualStyleBackColor = true;
+      // 
+      // cbLogTraffic
+      // 
+      this.cbLogTraffic.AutoSize = true;
+      this.cbLogTraffic.Location = new System.Drawing.Point(207, 336);
+      this.cbLogTraffic.Name = "cbLogTraffic";
+      this.cbLogTraffic.Size = new System.Drawing.Size(56, 17);
+      this.cbLogTraffic.TabIndex = 4;
+      this.cbLogTraffic.Text = "Traffic";
+      this.cbLogTraffic.UseVisualStyleBackColor = true;
+      // 
+      // cbLogNotice
+      // 
+      this.cbLogNotice.AutoSize = true;
+      this.cbLogNotice.Checked = true;
+      this.cbLogNotice.CheckState = System.Windows.Forms.CheckState.Checked;
+      this.cbLogNotice.Location = new System.Drawing.Point(138, 336);
+      this.cbLogNotice.Name = "cbLogNotice";
+      this.cbLogNotice.Size = new System.Drawing.Size(62, 17);
+      this.cbLogNotice.TabIndex = 3;
+      this.cbLogNotice.Text = "Notices";
+      this.cbLogNotice.UseVisualStyleBackColor = true;
+      // 
+      // cbLogWarning
+      // 
+      this.cbLogWarning.AutoSize = true;
+      this.cbLogWarning.Checked = true;
+      this.cbLogWarning.CheckState = System.Windows.Forms.CheckState.Checked;
+      this.cbLogWarning.Location = new System.Drawing.Point(66, 336);
+      this.cbLogWarning.Name = "cbLogWarning";
+      this.cbLogWarning.Size = new System.Drawing.Size(66, 17);
+      this.cbLogWarning.TabIndex = 2;
+      this.cbLogWarning.Text = "Warning";
+      this.cbLogWarning.UseVisualStyleBackColor = true;
+      // 
+      // cbLogError
+      // 
+      this.cbLogError.AutoSize = true;
+      this.cbLogError.Checked = true;
+      this.cbLogError.CheckState = System.Windows.Forms.CheckState.Checked;
+      this.cbLogError.Location = new System.Drawing.Point(7, 336);
+      this.cbLogError.Name = "cbLogError";
+      this.cbLogError.Size = new System.Drawing.Size(53, 17);
+      this.cbLogError.TabIndex = 1;
+      this.cbLogError.Text = "Errors";
+      this.cbLogError.UseVisualStyleBackColor = true;
+      // 
       // tbLog
       // 
       this.tbLog.Location = new System.Drawing.Point(6, 6);
       this.tbLog.Multiline = true;
       this.tbLog.Name = "tbLog";
       this.tbLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
-      this.tbLog.Size = new System.Drawing.Size(580, 347);
+      this.tbLog.Size = new System.Drawing.Size(580, 318);
       this.tbLog.TabIndex = 0;
       // 
       // pProgress
       this.lStatus.TabIndex = 2;
       this.lStatus.Text = "Initialising...";
       // 
+      // cecButtonConfigBindingSource
+      // 
+      this.cecButtonConfigBindingSource.DataSource = typeof(CecConfigGui.CecButtonConfig);
+      // 
+      // CecButtonName
+      // 
+      this.CecButtonName.DataPropertyName = "CecButtonName";
+      this.CecButtonName.FillWeight = 260F;
+      this.CecButtonName.HeaderText = "Button";
+      this.CecButtonName.Name = "CecButtonName";
+      this.CecButtonName.ReadOnly = true;
+      this.CecButtonName.Width = 260;
+      // 
+      // playerButtonDataGridViewTextBoxColumn
+      // 
+      this.playerButtonDataGridViewTextBoxColumn.DataPropertyName = "PlayerButton";
+      this.playerButtonDataGridViewTextBoxColumn.FillWeight = 260F;
+      this.playerButtonDataGridViewTextBoxColumn.HeaderText = "Mapped to";
+      this.playerButtonDataGridViewTextBoxColumn.Name = "playerButtonDataGridViewTextBoxColumn";
+      this.playerButtonDataGridViewTextBoxColumn.Width = 260;
+      // 
       // CecConfigGUI
       // 
       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
       this.tabControl1.ResumeLayout(false);
       this.Configuration.ResumeLayout(false);
       this.Configuration.PerformLayout();
+      this.tbButtons.ResumeLayout(false);
+      ((System.ComponentModel.ISupportInitialize)(this.dgButtons)).EndInit();
       this.LogOutput.ResumeLayout(false);
       this.LogOutput.PerformLayout();
+      ((System.ComponentModel.ISupportInitialize)(this.cecButtonConfigBindingSource)).EndInit();
       this.ResumeLayout(false);
       this.PerformLayout();
 
     private System.Windows.Forms.CheckBox cbPowerOnStartup;
     private System.Windows.Forms.CheckBox cbUseTVMenuLanguage;
     private System.Windows.Forms.Label lPlayerConfig;
+    private System.Windows.Forms.ToolTip helpPortNumber;
+    private System.Windows.Forms.ToolTip helpConnectedHDMIDevice;
+    private System.Windows.Forms.ToolTip helpDeviceType;
+    private System.Windows.Forms.ToolTip helpPhysicalAddress;
+    private System.Windows.Forms.TabPage tbButtons;
+    private System.Windows.Forms.CheckBox cbLogDebug;
+    private System.Windows.Forms.CheckBox cbLogTraffic;
+    private System.Windows.Forms.CheckBox cbLogNotice;
+    private System.Windows.Forms.CheckBox cbLogWarning;
+    private System.Windows.Forms.CheckBox cbLogError;
+    private System.Windows.Forms.Button bClearLog;
+    private System.Windows.Forms.Button bSaveLog;
+    private System.Windows.Forms.DataGridView dgButtons;
+    private System.Windows.Forms.BindingSource cecButtonConfigBindingSource;
+    private System.Windows.Forms.DataGridViewTextBoxColumn CecButtonName;
+    private System.Windows.Forms.DataGridViewTextBoxColumn playerButtonDataGridViewTextBoxColumn;
   }
 }
\ No newline at end of file