mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-14 04:38:30 -04:00
8bebf0c394
Convert to IActivate, IDeactivate scheme, thanks andrew add support for rfcomm* interfaces on linux fix guage off screen draw mono issue. remove use of BackStageViewContentPanel andrews spacer changes - not using dues to screen space issue change configpanel constructor to load xml directly remove IMavlink Interface fix hsi off screen draw issue on mono modify hud to use sprite fonts, instead of drawing via GDI+ modify progress reporter to use a 10hz timer to update screen, using invoke/begininvoke fails on mono at 50hz (over 100ms per call). fix targetalt and target airspeed jumping issue. lots of cleanup on tab switching, ie stoping timers/other 3dr radio status led update update ardurover car icon speedup georef image screen. tested on over 1000 images.
150 lines
6.5 KiB
C#
150 lines
6.5 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ArdupilotMega.Controls
|
|
{
|
|
partial class ProgressReporterDialogue
|
|
{
|
|
|
|
/// <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()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
this.progressBar1 = new System.Windows.Forms.ProgressBar();
|
|
this.lblProgressMessage = new System.Windows.Forms.Label();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.imgWarning = new System.Windows.Forms.PictureBox();
|
|
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
|
this.btnClose = new System.Windows.Forms.Button();
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
((System.ComponentModel.ISupportInitialize)(this.imgWarning)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// progressBar1
|
|
//
|
|
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.progressBar1.Location = new System.Drawing.Point(11, 90);
|
|
this.progressBar1.Name = "progressBar1";
|
|
this.progressBar1.Size = new System.Drawing.Size(277, 13);
|
|
this.progressBar1.TabIndex = 0;
|
|
//
|
|
// lblProgressMessage
|
|
//
|
|
this.lblProgressMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.lblProgressMessage.Location = new System.Drawing.Point(13, 13);
|
|
this.lblProgressMessage.Name = "lblProgressMessage";
|
|
this.lblProgressMessage.Size = new System.Drawing.Size(275, 74);
|
|
this.lblProgressMessage.TabIndex = 1;
|
|
this.lblProgressMessage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.Location = new System.Drawing.Point(213, 109);
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
|
this.btnCancel.TabIndex = 2;
|
|
this.btnCancel.Text = "Cancel";
|
|
this.btnCancel.UseVisualStyleBackColor = true;
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
|
//
|
|
// imgWarning
|
|
//
|
|
this.imgWarning.Image = global::ArdupilotMega.Properties.Resources.iconWarning48;
|
|
this.imgWarning.Location = new System.Drawing.Point(13, 22);
|
|
this.imgWarning.Name = "imgWarning";
|
|
this.imgWarning.Size = new System.Drawing.Size(48, 48);
|
|
this.imgWarning.TabIndex = 3;
|
|
this.imgWarning.TabStop = false;
|
|
this.imgWarning.Visible = false;
|
|
//
|
|
// linkLabel1
|
|
//
|
|
this.linkLabel1.AutoSize = true;
|
|
this.linkLabel1.Location = new System.Drawing.Point(240, 90);
|
|
this.linkLabel1.Name = "linkLabel1";
|
|
this.linkLabel1.Size = new System.Drawing.Size(48, 13);
|
|
this.linkLabel1.TabIndex = 4;
|
|
this.linkLabel1.TabStop = true;
|
|
this.linkLabel1.Text = "Details...";
|
|
this.linkLabel1.Visible = false;
|
|
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
|
//
|
|
// btnClose
|
|
//
|
|
this.btnClose.Location = new System.Drawing.Point(213, 109);
|
|
this.btnClose.Name = "btnClose";
|
|
this.btnClose.Size = new System.Drawing.Size(75, 23);
|
|
this.btnClose.TabIndex = 5;
|
|
this.btnClose.Text = "Close";
|
|
this.btnClose.UseVisualStyleBackColor = true;
|
|
this.btnClose.Click += new System.EventHandler(this.btn_Close_Click);
|
|
//
|
|
// timer1
|
|
//
|
|
this.timer1.Enabled = true;
|
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|
//
|
|
// ProgressReporterDialogue
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(306, 144);
|
|
this.ControlBox = false;
|
|
this.Controls.Add(this.btnClose);
|
|
this.Controls.Add(this.linkLabel1);
|
|
this.Controls.Add(this.imgWarning);
|
|
this.Controls.Add(this.btnCancel);
|
|
this.Controls.Add(this.lblProgressMessage);
|
|
this.Controls.Add(this.progressBar1);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "ProgressReporterDialogue";
|
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "Progress";
|
|
this.TopMost = true;
|
|
((System.ComponentModel.ISupportInitialize)(this.imgWarning)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private ProgressBar progressBar1;
|
|
private System.Windows.Forms.Label lblProgressMessage;
|
|
private Button btnCancel;
|
|
private PictureBox imgWarning;
|
|
private LinkLabel linkLabel1;
|
|
private Button btnClose;
|
|
private Timer timer1;
|
|
}
|
|
} |