general overhaul & add presets

This commit is contained in:
Vincent BOUQUET
2024-03-03 00:39:13 +01:00
parent ff57991f2d
commit ac1a6cf8d3
6 changed files with 569 additions and 33 deletions

131
StreamViewer.Designer.cs generated
View File

@@ -38,6 +38,13 @@ namespace robospot_camera_finder
btnZoomMin = new Button();
btnZoomMax = new Button();
grpSACN = new GroupBox();
gbPresetBtns = new GroupBox();
btnPresetClr = new Button();
btnPresetRec = new Button();
btnPreset4 = new Button();
btnPreset3 = new Button();
btnPreset2 = new Button();
btnPreset1 = new Button();
cbEnableSACN = new CheckBox();
tbTilt = new TrackBar();
cbEnableXboxCtrl = new CheckBox();
@@ -48,10 +55,13 @@ namespace robospot_camera_finder
numUniv = new NumericUpDown();
timerDMX = new System.Windows.Forms.Timer(components);
splitContainerMain = new SplitContainer();
labelSerial = new Label();
tbSerial = new TextBox();
btnSidePanel = new Button();
((System.ComponentModel.ISupportInitialize)videoView).BeginInit();
((System.ComponentModel.ISupportInitialize)tbZoom).BeginInit();
grpSACN.SuspendLayout();
gbPresetBtns.SuspendLayout();
((System.ComponentModel.ISupportInitialize)tbTilt).BeginInit();
((System.ComponentModel.ISupportInitialize)tbPan).BeginInit();
((System.ComponentModel.ISupportInitialize)numDMXAddr).BeginInit();
@@ -69,7 +79,7 @@ namespace robospot_camera_finder
videoView.Location = new Point(12, 12);
videoView.MediaPlayer = null;
videoView.Name = "videoView";
videoView.Size = new Size(730, 490);
videoView.Size = new Size(730, 453);
videoView.TabIndex = 0;
videoView.TabStop = false;
videoView.Text = "videoView";
@@ -124,6 +134,7 @@ namespace robospot_camera_finder
// grpSACN
//
grpSACN.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
grpSACN.Controls.Add(gbPresetBtns);
grpSACN.Controls.Add(cbEnableSACN);
grpSACN.Controls.Add(tbTilt);
grpSACN.Controls.Add(cbEnableXboxCtrl);
@@ -139,6 +150,93 @@ namespace robospot_camera_finder
grpSACN.TabStop = false;
grpSACN.Text = "sACN Control";
//
// gbPresetBtns
//
gbPresetBtns.Controls.Add(btnPresetClr);
gbPresetBtns.Controls.Add(btnPresetRec);
gbPresetBtns.Controls.Add(btnPreset4);
gbPresetBtns.Controls.Add(btnPreset3);
gbPresetBtns.Controls.Add(btnPreset2);
gbPresetBtns.Controls.Add(btnPreset1);
gbPresetBtns.Location = new Point(6, 287);
gbPresetBtns.Name = "gbPresetBtns";
gbPresetBtns.Size = new Size(224, 94);
gbPresetBtns.TabIndex = 7;
gbPresetBtns.TabStop = false;
gbPresetBtns.Text = "Presets";
//
// btnPresetClr
//
btnPresetClr.Enabled = false;
btnPresetClr.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
btnPresetClr.Location = new Point(113, 56);
btnPresetClr.Name = "btnPresetClr";
btnPresetClr.Size = new Size(103, 28);
btnPresetClr.TabIndex = 5;
btnPresetClr.Text = "Clear";
btnPresetClr.UseVisualStyleBackColor = true;
btnPresetClr.Click += btnPresetClr_Click;
//
// btnPresetRec
//
btnPresetRec.Enabled = false;
btnPresetRec.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
btnPresetRec.Location = new Point(5, 56);
btnPresetRec.Name = "btnPresetRec";
btnPresetRec.Size = new Size(103, 28);
btnPresetRec.TabIndex = 4;
btnPresetRec.Text = "Record";
btnPresetRec.UseVisualStyleBackColor = true;
btnPresetRec.Click += btnPresetRec_Click;
//
// btnPreset4
//
btnPreset4.Enabled = false;
btnPreset4.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
btnPreset4.Location = new Point(167, 22);
btnPreset4.Name = "btnPreset4";
btnPreset4.Size = new Size(49, 28);
btnPreset4.TabIndex = 3;
btnPreset4.Text = "4";
btnPreset4.UseVisualStyleBackColor = true;
btnPreset4.Click += btnPreset4_Click;
//
// btnPreset3
//
btnPreset3.Enabled = false;
btnPreset3.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
btnPreset3.Location = new Point(113, 22);
btnPreset3.Name = "btnPreset3";
btnPreset3.Size = new Size(49, 28);
btnPreset3.TabIndex = 2;
btnPreset3.Text = "3";
btnPreset3.UseVisualStyleBackColor = true;
btnPreset3.Click += btnPreset3_Click;
//
// btnPreset2
//
btnPreset2.Enabled = false;
btnPreset2.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
btnPreset2.Location = new Point(59, 22);
btnPreset2.Name = "btnPreset2";
btnPreset2.Size = new Size(49, 28);
btnPreset2.TabIndex = 1;
btnPreset2.Text = "2";
btnPreset2.UseVisualStyleBackColor = true;
btnPreset2.Click += btnPreset2_Click;
//
// btnPreset1
//
btnPreset1.Enabled = false;
btnPreset1.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
btnPreset1.Location = new Point(5, 22);
btnPreset1.Name = "btnPreset1";
btnPreset1.Size = new Size(49, 28);
btnPreset1.TabIndex = 0;
btnPreset1.Text = "1";
btnPreset1.UseVisualStyleBackColor = true;
btnPreset1.Click += btnPreset1_Click;
//
// cbEnableSACN
//
cbEnableSACN.AutoSize = true;
@@ -240,6 +338,8 @@ namespace robospot_camera_finder
//
// splitContainerMain.Panel1
//
splitContainerMain.Panel1.Controls.Add(labelSerial);
splitContainerMain.Panel1.Controls.Add(tbSerial);
splitContainerMain.Panel1.Controls.Add(btnSidePanel);
splitContainerMain.Panel1.Controls.Add(btnZoomMin);
splitContainerMain.Panel1.Controls.Add(tbZoom);
@@ -255,6 +355,25 @@ namespace robospot_camera_finder
splitContainerMain.TabIndex = 6;
splitContainerMain.TabStop = false;
//
// labelSerial
//
labelSerial.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
labelSerial.AutoSize = true;
labelSerial.Location = new Point(12, 483);
labelSerial.Name = "labelSerial";
labelSerial.Size = new Size(82, 15);
labelSerial.TabIndex = 6;
labelSerial.Text = "Serial Number";
//
// tbSerial
//
tbSerial.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
tbSerial.Location = new Point(100, 479);
tbSerial.Name = "tbSerial";
tbSerial.ReadOnly = true;
tbSerial.Size = new Size(170, 23);
tbSerial.TabIndex = 5;
//
// btnSidePanel
//
btnSidePanel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
@@ -283,6 +402,7 @@ namespace robospot_camera_finder
((System.ComponentModel.ISupportInitialize)tbZoom).EndInit();
grpSACN.ResumeLayout(false);
grpSACN.PerformLayout();
gbPresetBtns.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)tbTilt).EndInit();
((System.ComponentModel.ISupportInitialize)tbPan).EndInit();
((System.ComponentModel.ISupportInitialize)numDMXAddr).EndInit();
@@ -314,5 +434,14 @@ namespace robospot_camera_finder
private SplitContainer splitContainerMain;
private CheckBox cbEnableSACN;
private Button btnSidePanel;
private Label labelSerial;
private TextBox tbSerial;
private GroupBox gbPresetBtns;
private Button btnPreset1;
private Button btnPresetClr;
private Button btnPresetRec;
private Button btnPreset4;
private Button btnPreset3;
private Button btnPreset2;
}
}