#pragma once
namespace Steuerung {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::IO::Ports;
bool* startenable;
bool* zielvarenable;
///
/// Zusammenfassung für Form1
///
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Konstruktorcode hier hinzufügen.
//
}
protected:
///
/// Verwendete Ressourcen bereinigen.
///
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ stoppe;
private: System::Windows::Forms::MaskedTextBox^ zielvariable;
protected:
protected:
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::Button^ starte;
private: System::Windows::Forms::PictureBox^ pictureBox1;
private: System::Windows::Forms::ProgressBar^ progressBar1;
private: System::Windows::Forms::ComboBox^ comboBox1;
private: System::Windows::Forms::Button^ refresh;
private: System::Windows::Forms::Button^ select;
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::OpenFileDialog^ openFileDialog1;
private: System::Windows::Forms::GroupBox^ groupBox3;
private: System::Windows::Forms::Button^ kalibladen;
private: System::Windows::Forms::GroupBox^ groupBox4;
private: System::Windows::Forms::StatusStrip^ statusStrip1;
private: System::Windows::Forms::ToolStripStatusLabel^ toolStripStatusLabel1;
private: System::Windows::Forms::SaveFileDialog^ saveFileDialog1;
private: System::Windows::Forms::Button^ kalibrieren;
private: System::ComponentModel::IContainer^ components;
private:
///
/// Erforderliche Designervariable.
///
#pragma region Windows Form Designer generated code
///
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
///
void InitializeComponent(void)
{
this->stoppe = (gcnew System::Windows::Forms::Button());
this->zielvariable = (gcnew System::Windows::Forms::MaskedTextBox());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->label1 = (gcnew System::Windows::Forms::Label());
this->starte = (gcnew System::Windows::Forms::Button());
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
this->progressBar1 = (gcnew System::Windows::Forms::ProgressBar());
this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
this->refresh = (gcnew System::Windows::Forms::Button());
this->select = (gcnew System::Windows::Forms::Button());
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
this->kalibrieren = (gcnew System::Windows::Forms::Button());
this->kalibladen = (gcnew System::Windows::Forms::Button());
this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
this->statusStrip1 = (gcnew System::Windows::Forms::StatusStrip());
this->toolStripStatusLabel1 = (gcnew System::Windows::Forms::ToolStripStatusLabel());
this->saveFileDialog1 = (gcnew System::Windows::Forms::SaveFileDialog());
this->groupBox1->SuspendLayout();
(cli::safe_cast(this->pictureBox1))->BeginInit();
this->groupBox2->SuspendLayout();
this->groupBox3->SuspendLayout();
this->groupBox4->SuspendLayout();
this->statusStrip1->SuspendLayout();
this->SuspendLayout();
//
// stoppe
//
this->stoppe->Enabled = false;
this->stoppe->Location = System::Drawing::Point(6, 100);
this->stoppe->Name = L"stoppe";
this->stoppe->Size = System::Drawing::Size(155, 32);
this->stoppe->TabIndex = 0;
this->stoppe->Text = L"Anhalten";
this->stoppe->UseVisualStyleBackColor = true;
this->stoppe->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// zielvariable
//
this->zielvariable->Enabled = false;
this->zielvariable->Location = System::Drawing::Point(9, 37);
this->zielvariable->Name = L"zielvariable";
this->zielvariable->Size = System::Drawing::Size(77, 20);
this->zielvariable->TabIndex = 1;
this->zielvariable->Text = L"0";
this->zielvariable->MaskInputRejected += gcnew System::Windows::Forms::MaskInputRejectedEventHandler(this, &Form1::zielvariable_MaskInputRejected);
//
// groupBox1
//
this->groupBox1->Controls->Add(this->label2);
this->groupBox1->Controls->Add(this->label1);
this->groupBox1->Controls->Add(this->starte);
this->groupBox1->Controls->Add(this->zielvariable);
this->groupBox1->Controls->Add(this->stoppe);
this->groupBox1->Location = System::Drawing::Point(14, 181);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(167, 139);
this->groupBox1->TabIndex = 2;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"Steuerung";
this->groupBox1->Enter += gcnew System::EventHandler(this, &Form1::groupBox1_Enter);
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location = System::Drawing::Point(6, 21);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(81, 13);
this->label2->TabIndex = 4;
this->label2->Text = L"Bauteil liegt bei:";
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(92, 40);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(69, 13);
this->label1->TabIndex = 3;
this->label1->Text = L"mm auf Band";
//
// starte
//
this->starte->Enabled = false;
this->starte->Location = System::Drawing::Point(6, 63);
this->starte->Name = L"starte";
this->starte->Size = System::Drawing::Size(155, 31);
this->starte->TabIndex = 2;
this->starte->Text = L"Verfahren";
this->starte->UseVisualStyleBackColor = true;
this->starte->Click += gcnew System::EventHandler(this, &Form1::starte_Click);
//
// pictureBox1
//
this->pictureBox1->Location = System::Drawing::Point(187, 7);
this->pictureBox1->Name = L"pictureBox1";
this->pictureBox1->Size = System::Drawing::Size(329, 366);
this->pictureBox1->TabIndex = 3;
this->pictureBox1->TabStop = false;
//
// progressBar1
//
this->progressBar1->Location = System::Drawing::Point(8, 19);
this->progressBar1->Name = L"progressBar1";
this->progressBar1->Size = System::Drawing::Size(155, 22);
this->progressBar1->TabIndex = 3;
//
// comboBox1
//
this->comboBox1->FormattingEnabled = true;
this->comboBox1->Location = System::Drawing::Point(4, 19);
this->comboBox1->MaxDropDownItems = 50;
this->comboBox1->Name = L"comboBox1";
this->comboBox1->Size = System::Drawing::Size(80, 21);
this->comboBox1->Sorted = true;
this->comboBox1->TabIndex = 4;
this->comboBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &Form1::comboBox1_SelectedIndexChanged);
//
// refresh
//
this->refresh->Location = System::Drawing::Point(90, 19);
this->refresh->Name = L"refresh";
this->refresh->Size = System::Drawing::Size(71, 23);
this->refresh->TabIndex = 5;
this->refresh->Text = L"Refresh";
this->refresh->UseVisualStyleBackColor = true;
this->refresh->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
//
// select
//
this->select->Location = System::Drawing::Point(6, 46);
this->select->Name = L"select";
this->select->Size = System::Drawing::Size(155, 23);
this->select->TabIndex = 7;
this->select->Text = L"Select";
this->select->UseVisualStyleBackColor = true;
this->select->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
//
// groupBox2
//
this->groupBox2->Controls->Add(this->select);
this->groupBox2->Controls->Add(this->refresh);
this->groupBox2->Controls->Add(this->comboBox1);
this->groupBox2->Location = System::Drawing::Point(14, 13);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Size = System::Drawing::Size(167, 77);
this->groupBox2->TabIndex = 8;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"COM-Port";
//
// openFileDialog1
//
this->openFileDialog1->FileName = L"openFileDialog1";
this->openFileDialog1->Tag = L"*.calib";
//
// groupBox3
//
this->groupBox3->Controls->Add(this->progressBar1);
this->groupBox3->Location = System::Drawing::Point(12, 326);
this->groupBox3->Name = L"groupBox3";
this->groupBox3->Size = System::Drawing::Size(169, 47);
this->groupBox3->TabIndex = 9;
this->groupBox3->TabStop = false;
this->groupBox3->Text = L"Fortschritt:";
//
// kalibrieren
//
this->kalibrieren->Enabled = false;
this->kalibrieren->Location = System::Drawing::Point(6, 21);
this->kalibrieren->Name = L"kalibrieren";
this->kalibrieren->Size = System::Drawing::Size(155, 23);
this->kalibrieren->TabIndex = 10;
this->kalibrieren->Text = L"Kalibrieren";
this->kalibrieren->UseVisualStyleBackColor = true;
this->kalibrieren->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
//
// kalibladen
//
this->kalibladen->Enabled = false;
this->kalibladen->Location = System::Drawing::Point(6, 50);
this->kalibladen->Name = L"kalibladen";
this->kalibladen->Size = System::Drawing::Size(155, 23);
this->kalibladen->TabIndex = 11;
this->kalibladen->Text = L"Kalibrierdatei laden";
this->kalibladen->UseVisualStyleBackColor = true;
this->kalibladen->Click += gcnew System::EventHandler(this, &Form1::button6_Click);
//
// groupBox4
//
this->groupBox4->Controls->Add(this->kalibrieren);
this->groupBox4->Controls->Add(this->kalibladen);
this->groupBox4->Location = System::Drawing::Point(14, 96);
this->groupBox4->Name = L"groupBox4";
this->groupBox4->Size = System::Drawing::Size(167, 79);
this->groupBox4->TabIndex = 12;
this->groupBox4->TabStop = false;
this->groupBox4->Text = L"Kalibrierung";
//
// statusStrip1
//
this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->toolStripStatusLabel1});
this->statusStrip1->Location = System::Drawing::Point(0, 384);
this->statusStrip1->Name = L"statusStrip1";
this->statusStrip1->Size = System::Drawing::Size(521, 22);
this->statusStrip1->SizingGrip = false;
this->statusStrip1->TabIndex = 13;
this->statusStrip1->Text = L"statusStrip1";
//
// toolStripStatusLabel1
//
this->toolStripStatusLabel1->Name = L"toolStripStatusLabel1";
this->toolStripStatusLabel1->Size = System::Drawing::Size(118, 17);
this->toolStripStatusLabel1->Text = L"toolStripStatusLabel1";
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(521, 406);
this->Controls->Add(this->statusStrip1);
this->Controls->Add(this->groupBox4);
this->Controls->Add(this->groupBox3);
this->Controls->Add(this->groupBox2);
this->Controls->Add(this->pictureBox1);
this->Controls->Add(this->groupBox1);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
this->MaximizeBox = false;
this->Name = L"Form1";
this->SizeGripStyle = System::Windows::Forms::SizeGripStyle::Hide;
this->Text = L"Greiferarmsteuerung";
this->groupBox1->ResumeLayout(false);
this->groupBox1->PerformLayout();
(cli::safe_cast(this->pictureBox1))->EndInit();
this->groupBox2->ResumeLayout(false);
this->groupBox3->ResumeLayout(false);
this->groupBox4->ResumeLayout(false);
this->statusStrip1->ResumeLayout(false);
this->statusStrip1->PerformLayout();
this->ResumeLayout(false);
this->PerformLayout();
this->comboBox1->Items->Clear();
this->comboBox1->Items->AddRange(SerialPort::GetPortNames());
}