255 lines
10 KiB
C#
255 lines
10 KiB
C#
using LibVLCSharp.Forms.Shared;
|
|
|
|
namespace robospot_camera_finder
|
|
{
|
|
partial class StreamViewer
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StreamViewer));
|
|
videoView = new LibVLCSharp.WinForms.VideoView();
|
|
tbZoom = new TrackBar();
|
|
timerUpdateZoom = new System.Windows.Forms.Timer(components);
|
|
btnZoomMin = new Button();
|
|
btnZoomMax = new Button();
|
|
grpSACN = new GroupBox();
|
|
tbTilt = new TrackBar();
|
|
tbPan = new TrackBar();
|
|
label2 = new Label();
|
|
numDMXAddr = new NumericUpDown();
|
|
label1 = new Label();
|
|
numUniv = new NumericUpDown();
|
|
timerDMX = new System.Windows.Forms.Timer(components);
|
|
cbEnableXboxCtrl = new CheckBox();
|
|
((System.ComponentModel.ISupportInitialize)videoView).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)tbZoom).BeginInit();
|
|
grpSACN.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)tbTilt).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)tbPan).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)numDMXAddr).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)numUniv).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// videoView
|
|
//
|
|
videoView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
videoView.BackColor = Color.Black;
|
|
videoView.Location = new Point(12, 12);
|
|
videoView.MediaPlayer = null;
|
|
videoView.Name = "videoView";
|
|
videoView.Size = new Size(823, 495);
|
|
videoView.TabIndex = 0;
|
|
videoView.Text = "videoView";
|
|
//
|
|
// tbZoom
|
|
//
|
|
tbZoom.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
tbZoom.LargeChange = 20;
|
|
tbZoom.Location = new Point(841, 31);
|
|
tbZoom.Maximum = 9999;
|
|
tbZoom.Name = "tbZoom";
|
|
tbZoom.Orientation = Orientation.Vertical;
|
|
tbZoom.Size = new Size(45, 459);
|
|
tbZoom.SmallChange = 10;
|
|
tbZoom.TabIndex = 1;
|
|
tbZoom.TickFrequency = 300;
|
|
tbZoom.TickStyle = TickStyle.TopLeft;
|
|
tbZoom.Value = 10;
|
|
tbZoom.KeyUp += tbZoom_KeyUp;
|
|
tbZoom.MouseUp += tbZoom_MouseUp;
|
|
//
|
|
// timerUpdateZoom
|
|
//
|
|
timerUpdateZoom.Enabled = true;
|
|
timerUpdateZoom.Interval = 10000;
|
|
timerUpdateZoom.Tick += timerUpdateZoom_Tick;
|
|
//
|
|
// btnZoomMin
|
|
//
|
|
btnZoomMin.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
btnZoomMin.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
|
btnZoomMin.Location = new Point(838, 484);
|
|
btnZoomMin.Name = "btnZoomMin";
|
|
btnZoomMin.Size = new Size(42, 23);
|
|
btnZoomMin.TabIndex = 2;
|
|
btnZoomMin.Text = "1x";
|
|
btnZoomMin.UseVisualStyleBackColor = true;
|
|
btnZoomMin.Click += btnZoomMin_Click;
|
|
//
|
|
// btnZoomMax
|
|
//
|
|
btnZoomMax.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btnZoomMax.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
|
btnZoomMax.Location = new Point(838, 12);
|
|
btnZoomMax.Name = "btnZoomMax";
|
|
btnZoomMax.Size = new Size(42, 23);
|
|
btnZoomMax.TabIndex = 3;
|
|
btnZoomMax.Text = "32x";
|
|
btnZoomMax.UseVisualStyleBackColor = true;
|
|
btnZoomMax.Click += btnZoomMax_Click;
|
|
//
|
|
// grpSACN
|
|
//
|
|
grpSACN.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
grpSACN.Controls.Add(tbTilt);
|
|
grpSACN.Controls.Add(tbPan);
|
|
grpSACN.Controls.Add(label2);
|
|
grpSACN.Controls.Add(numDMXAddr);
|
|
grpSACN.Controls.Add(label1);
|
|
grpSACN.Controls.Add(numUniv);
|
|
grpSACN.Location = new Point(892, 12);
|
|
grpSACN.Name = "grpSACN";
|
|
grpSACN.Size = new Size(236, 253);
|
|
grpSACN.TabIndex = 4;
|
|
grpSACN.TabStop = false;
|
|
grpSACN.Text = "sACN Control";
|
|
//
|
|
// tbTilt
|
|
//
|
|
tbTilt.Location = new Point(19, 97);
|
|
tbTilt.Maximum = 65535;
|
|
tbTilt.Name = "tbTilt";
|
|
tbTilt.Orientation = Orientation.Vertical;
|
|
tbTilt.Size = new Size(45, 150);
|
|
tbTilt.TabIndex = 5;
|
|
tbTilt.TickFrequency = 10;
|
|
tbTilt.Value = 32768;
|
|
//
|
|
// tbPan
|
|
//
|
|
tbPan.Location = new Point(70, 150);
|
|
tbPan.Maximum = 65535;
|
|
tbPan.Name = "tbPan";
|
|
tbPan.Size = new Size(150, 45);
|
|
tbPan.TabIndex = 4;
|
|
tbPan.TickFrequency = 10;
|
|
tbPan.Value = 32768;
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new Point(26, 64);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(78, 15);
|
|
label2.TabIndex = 3;
|
|
label2.Text = "DMX Address";
|
|
label2.TextAlign = ContentAlignment.MiddleRight;
|
|
//
|
|
// numDMXAddr
|
|
//
|
|
numDMXAddr.Location = new Point(110, 62);
|
|
numDMXAddr.Maximum = new decimal(new int[] { 504, 0, 0, 0 });
|
|
numDMXAddr.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
|
numDMXAddr.Name = "numDMXAddr";
|
|
numDMXAddr.Size = new Size(120, 23);
|
|
numDMXAddr.TabIndex = 2;
|
|
numDMXAddr.Value = new decimal(new int[] { 1, 0, 0, 0 });
|
|
numDMXAddr.ValueChanged += numDMXAddr_ValueChanged;
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(19, 35);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(85, 15);
|
|
label1.TabIndex = 1;
|
|
label1.Text = "sACN Universe";
|
|
label1.TextAlign = ContentAlignment.MiddleRight;
|
|
//
|
|
// numUniv
|
|
//
|
|
numUniv.Location = new Point(110, 33);
|
|
numUniv.Maximum = new decimal(new int[] { 63999, 0, 0, 0 });
|
|
numUniv.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
|
numUniv.Name = "numUniv";
|
|
numUniv.Size = new Size(120, 23);
|
|
numUniv.TabIndex = 0;
|
|
numUniv.Value = new decimal(new int[] { 1, 0, 0, 0 });
|
|
//
|
|
// timerDMX
|
|
//
|
|
timerDMX.Enabled = true;
|
|
timerDMX.Tick += timerDMX_Tick;
|
|
//
|
|
// cbEnableXboxCtrl
|
|
//
|
|
cbEnableXboxCtrl.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
cbEnableXboxCtrl.AutoSize = true;
|
|
cbEnableXboxCtrl.Location = new Point(892, 271);
|
|
cbEnableXboxCtrl.Name = "cbEnableXboxCtrl";
|
|
cbEnableXboxCtrl.Size = new Size(152, 19);
|
|
cbEnableXboxCtrl.TabIndex = 5;
|
|
cbEnableXboxCtrl.Text = "Enable Xbox360 Control";
|
|
cbEnableXboxCtrl.UseVisualStyleBackColor = true;
|
|
//
|
|
// StreamViewer
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(1140, 519);
|
|
Controls.Add(cbEnableXboxCtrl);
|
|
Controls.Add(grpSACN);
|
|
Controls.Add(btnZoomMax);
|
|
Controls.Add(btnZoomMin);
|
|
Controls.Add(tbZoom);
|
|
Controls.Add(videoView);
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
Margin = new Padding(4, 3, 4, 3);
|
|
Name = "StreamViewer";
|
|
Text = "Camera";
|
|
FormClosed += StreamViewer_FormClosed;
|
|
((System.ComponentModel.ISupportInitialize)videoView).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)tbZoom).EndInit();
|
|
grpSACN.ResumeLayout(false);
|
|
grpSACN.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)tbTilt).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)tbPan).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)numDMXAddr).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)numUniv).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private LibVLCSharp.WinForms.VideoView videoView;
|
|
private TrackBar tbZoom;
|
|
private System.Windows.Forms.Timer timerUpdateZoom;
|
|
private Button btnZoomMin;
|
|
private Button btnZoomMax;
|
|
private GroupBox grpSACN;
|
|
private TrackBar tbTilt;
|
|
private TrackBar tbPan;
|
|
private Label label2;
|
|
private NumericUpDown numDMXAddr;
|
|
private Label label1;
|
|
private NumericUpDown numUniv;
|
|
private System.Windows.Forms.Timer timerDMX;
|
|
private CheckBox cbEnableXboxCtrl;
|
|
}
|
|
} |