📄 markerentry.h
字号:
//
// Copyright 2004-2007, Thomas C. McDermott, N5EG
// This file is part of VNAR - the Vector Network Analyzer program.
//
// VNAR is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// VNAR is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with VNAR, if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace VNAR3
{
/// <summary>
/// Summary for MarkerEntry
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
/// MarkerEntry Class
public __gc class MarkerEntry : public System::Windows::Forms::Form
{
public: unsigned int Marker __gc[];
private: System::Windows::Forms::GroupBox * groupBox1;
private: System::Windows::Forms::GroupBox * groupBox2;
public: float MarkerT __gc[];
public:
MarkerEntry(unsigned int MarkerIn __gc[], float MarkerTIn __gc[]) ///< Array of Markers (frequency of each marker)
{
InitializeComponent();
Marker = new unsigned int __gc[5];
MarkerT = new float __gc[5];
for (int i=0; i<5; i++) // read in marker frequencies
{
Marker[i] = MarkerIn[i];
MarkerT[i] = MarkerTIn[i];
}
Marker1Freq->Text = Marker[0].ToString(); // and display in dialog box
Marker2Freq->Text = Marker[1].ToString();
Marker3Freq->Text = Marker[2].ToString();
Marker4Freq->Text = Marker[3].ToString();
Marker5Freq->Text = Marker[4].ToString();
Marker1Time->Text = MarkerT[0].ToString();
Marker2Time->Text = MarkerT[1].ToString();
Marker3Time->Text = MarkerT[2].ToString();
Marker4Time->Text = MarkerT[3].ToString();
Marker5Time->Text = MarkerT[4].ToString();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::TextBox * Marker1Freq;
private: System::Windows::Forms::TextBox * Marker2Freq;
private: System::Windows::Forms::TextBox * Marker3Freq;
private: System::Windows::Forms::TextBox * Marker4Freq;
private: System::Windows::Forms::TextBox * Marker5Freq;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Label * label6;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::Button * OKButton;
private: System::Windows::Forms::Button * CancelButton;
private: System::Windows::Forms::TextBox * Marker1Time;
private: System::Windows::Forms::TextBox * Marker2Time;
private: System::Windows::Forms::TextBox * Marker3Time;
private: System::Windows::Forms::TextBox * Marker4Time;
private: System::Windows::Forms::TextBox * Marker5Time;
private: System::Windows::Forms::Label * label8;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager* resources = (new System::ComponentModel::ComponentResourceManager(__typeof(MarkerEntry)));
this->label1 = (new System::Windows::Forms::Label());
this->Marker1Freq = (new System::Windows::Forms::TextBox());
this->Marker2Freq = (new System::Windows::Forms::TextBox());
this->Marker3Freq = (new System::Windows::Forms::TextBox());
this->Marker4Freq = (new System::Windows::Forms::TextBox());
this->Marker5Freq = (new System::Windows::Forms::TextBox());
this->label2 = (new System::Windows::Forms::Label());
this->label3 = (new System::Windows::Forms::Label());
this->label4 = (new System::Windows::Forms::Label());
this->label5 = (new System::Windows::Forms::Label());
this->label6 = (new System::Windows::Forms::Label());
this->label7 = (new System::Windows::Forms::Label());
this->OKButton = (new System::Windows::Forms::Button());
this->CancelButton = (new System::Windows::Forms::Button());
this->Marker1Time = (new System::Windows::Forms::TextBox());
this->Marker2Time = (new System::Windows::Forms::TextBox());
this->Marker3Time = (new System::Windows::Forms::TextBox());
this->Marker4Time = (new System::Windows::Forms::TextBox());
this->Marker5Time = (new System::Windows::Forms::TextBox());
this->label8 = (new System::Windows::Forms::Label());
this->groupBox1 = (new System::Windows::Forms::GroupBox());
this->groupBox2 = (new System::Windows::Forms::GroupBox());
this->SuspendLayout();
//
// label1
//
this->label1->BackColor = System::Drawing::Color::Transparent;
this->label1->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
(System::Byte)0));
this->label1->Location = System::Drawing::Point(168, 8);
this->label1->Name = S"label1";
this->label1->Size = System::Drawing::Size(104, 29);
this->label1->TabIndex = 0;
this->label1->Text = S"Markers";
this->label1->TextAlign = System::Drawing::ContentAlignment::TopCenter;
//
// Marker1Freq
//
this->Marker1Freq->Location = System::Drawing::Point(48, 96);
this->Marker1Freq->Name = S"Marker1Freq";
this->Marker1Freq->Size = System::Drawing::Size(112, 20);
this->Marker1Freq->TabIndex = 1;
//
// Marker2Freq
//
this->Marker2Freq->Location = System::Drawing::Point(48, 128);
this->Marker2Freq->Name = S"Marker2Freq";
this->Marker2Freq->Size = System::Drawing::Size(112, 20);
this->Marker2Freq->TabIndex = 2;
//
// Marker3Freq
//
this->Marker3Freq->Location = System::Drawing::Point(48, 160);
this->Marker3Freq->Name = S"Marker3Freq";
this->Marker3Freq->Size = System::Drawing::Size(112, 20);
this->Marker3Freq->TabIndex = 3;
//
// Marker4Freq
//
this->Marker4Freq->Location = System::Drawing::Point(48, 192);
this->Marker4Freq->Name = S"Marker4Freq";
this->Marker4Freq->Size = System::Drawing::Size(112, 20);
this->Marker4Freq->TabIndex = 4;
//
// Marker5Freq
//
this->Marker5Freq->Location = System::Drawing::Point(48, 224);
this->Marker5Freq->Name = S"Marker5Freq";
this->Marker5Freq->Size = System::Drawing::Size(112, 20);
this->Marker5Freq->TabIndex = 5;
//
// label2
//
this->label2->BackColor = System::Drawing::Color::Transparent;
this->label2->Location = System::Drawing::Point(192, 96);
this->label2->Name = S"label2";
this->label2->Size = System::Drawing::Size(56, 21);
this->label2->TabIndex = 6;
this->label2->Text = S"Marker 1";
this->label2->TextAlign = System::Drawing::ContentAlignment::BottomLeft;
//
// label3
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -