-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTranslator_LanguageC.h
212 lines (202 loc) · 9.14 KB
/
Translator_LanguageC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#pragma once
namespace MethodsDevelopmentTranslator {
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;
/// <summary>
/// Ñâîäêà äëÿ Translator_LanguageC
/// </summary>
public ref class Translator_LanguageC : public System::Windows::Forms::Form
{
public:
Translator_LanguageC(void)
{
InitializeComponent();
btn_analisator->Enabled = false;
btn_reversePolishNotation->Enabled = false;
btn_syntax_analisator->Enabled = false;
btn_toCSharp->Enabled = false;
}
protected:
/// <summary>
/// Îñâîáîäèòü âñå èñïîëüçóåìûå ðåñóðñû.
/// </summary>
~Translator_LanguageC()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ btn_loadFile;
private: System::Windows::Forms::OpenFileDialog^ openFileDialog1;
private: System::Windows::Forms::TextBox^ tb_textC;
private: System::Windows::Forms::Button^ btn_analisator;
private: System::Windows::Forms::TextBox^ tb_syntaxAnalisator;
private: System::Windows::Forms::TextBox^ tb_reversePolishNotation;
private: System::Windows::Forms::Button^ btn_reversePolishNotation;
private: System::Windows::Forms::TextBox^ tb_codeCSharp;
private: System::Windows::Forms::Button^ btn_toCSharp;
private: System::Windows::Forms::Button^ btn_syntax_analisator;
protected:
private:
/// <summary>
/// Îáÿçàòåëüíàÿ ïåðåìåííàÿ êîíñòðóêòîðà.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Òðåáóåìûé ìåòîä äëÿ ïîääåðæêè êîíñòðóêòîðà — íå èçìåíÿéòå
/// ñîäåðæèìîå ýòîãî ìåòîäà ñ ïîìîùüþ ðåäàêòîðà êîäà.
/// </summary>
void InitializeComponent(void)
{
this->btn_loadFile = (gcnew System::Windows::Forms::Button());
this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
this->tb_textC = (gcnew System::Windows::Forms::TextBox());
this->btn_analisator = (gcnew System::Windows::Forms::Button());
this->tb_syntaxAnalisator = (gcnew System::Windows::Forms::TextBox());
this->tb_reversePolishNotation = (gcnew System::Windows::Forms::TextBox());
this->btn_reversePolishNotation = (gcnew System::Windows::Forms::Button());
this->tb_codeCSharp = (gcnew System::Windows::Forms::TextBox());
this->btn_toCSharp = (gcnew System::Windows::Forms::Button());
this->btn_syntax_analisator = (gcnew System::Windows::Forms::Button());
this->SuspendLayout();
//
// btn_loadFile
//
this->btn_loadFile->Location = System::Drawing::Point(13, 13);
this->btn_loadFile->Name = L"btn_loadFile";
this->btn_loadFile->Size = System::Drawing::Size(208, 23);
this->btn_loadFile->TabIndex = 0;
this->btn_loadFile->Text = L"Load file - code C";
this->btn_loadFile->UseVisualStyleBackColor = true;
this->btn_loadFile->Click += gcnew System::EventHandler(this, &Translator_LanguageC::Btn_loadFile_Click);
//
// openFileDialog1
//
this->openFileDialog1->FileName = L"openFileDialog1";
//
// tb_textC
//
this->tb_textC->BackColor = System::Drawing::SystemColors::Info;
this->tb_textC->Location = System::Drawing::Point(13, 43);
this->tb_textC->Multiline = true;
this->tb_textC->Name = L"tb_textC";
this->tb_textC->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
this->tb_textC->Size = System::Drawing::Size(208, 393);
this->tb_textC->TabIndex = 1;
//
// btn_analisator
//
this->btn_analisator->Location = System::Drawing::Point(228, 13);
this->btn_analisator->Name = L"btn_analisator";
this->btn_analisator->Size = System::Drawing::Size(208, 23);
this->btn_analisator->TabIndex = 2;
this->btn_analisator->Text = L"Lexical analisator";
this->btn_analisator->UseVisualStyleBackColor = true;
this->btn_analisator->Click += gcnew System::EventHandler(this, &Translator_LanguageC::Btn_analisator_Click);
//
// tb_syntaxAnalisator
//
this->tb_syntaxAnalisator->BackColor = System::Drawing::SystemColors::ControlLightLight;
this->tb_syntaxAnalisator->Location = System::Drawing::Point(228, 43);
this->tb_syntaxAnalisator->Multiline = true;
this->tb_syntaxAnalisator->Name = L"tb_syntaxAnalisator";
this->tb_syntaxAnalisator->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
this->tb_syntaxAnalisator->Size = System::Drawing::Size(208, 392);
this->tb_syntaxAnalisator->TabIndex = 3;
//
// tb_reversePolishNotation
//
this->tb_reversePolishNotation->BackColor = System::Drawing::Color::Bisque;
this->tb_reversePolishNotation->Font = (gcnew System::Drawing::Font(L"Times New Roman", 11.25F, System::Drawing::FontStyle::Regular,
System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(204)));
this->tb_reversePolishNotation->Location = System::Drawing::Point(442, 42);
this->tb_reversePolishNotation->Multiline = true;
this->tb_reversePolishNotation->Name = L"tb_reversePolishNotation";
this->tb_reversePolishNotation->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
this->tb_reversePolishNotation->Size = System::Drawing::Size(208, 393);
this->tb_reversePolishNotation->TabIndex = 5;
//
// btn_reversePolishNotation
//
this->btn_reversePolishNotation->Location = System::Drawing::Point(442, 13);
this->btn_reversePolishNotation->Name = L"btn_reversePolishNotation";
this->btn_reversePolishNotation->Size = System::Drawing::Size(208, 23);
this->btn_reversePolishNotation->TabIndex = 6;
this->btn_reversePolishNotation->Text = L"Reverse Polish notation";
this->btn_reversePolishNotation->UseVisualStyleBackColor = true;
this->btn_reversePolishNotation->Click += gcnew System::EventHandler(this, &Translator_LanguageC::Btn_reversePolishNotation_Click);
//
// tb_codeCSharp
//
this->tb_codeCSharp->BackColor = System::Drawing::SystemColors::Info;
this->tb_codeCSharp->Font = (gcnew System::Drawing::Font(L"Consolas", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->tb_codeCSharp->Location = System::Drawing::Point(656, 54);
this->tb_codeCSharp->Multiline = true;
this->tb_codeCSharp->Name = L"tb_codeCSharp";
this->tb_codeCSharp->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
this->tb_codeCSharp->Size = System::Drawing::Size(286, 393);
this->tb_codeCSharp->TabIndex = 7;
//
// btn_toCSharp
//
this->btn_toCSharp->Location = System::Drawing::Point(699, 27);
this->btn_toCSharp->Name = L"btn_toCSharp";
this->btn_toCSharp->Size = System::Drawing::Size(208, 23);
this->btn_toCSharp->TabIndex = 8;
this->btn_toCSharp->Text = L"Get code C#";
this->btn_toCSharp->UseVisualStyleBackColor = true;
this->btn_toCSharp->Click += gcnew System::EventHandler(this, &Translator_LanguageC::Btn_toCSharp_Click);
//
// btn_syntax_analisator
//
this->btn_syntax_analisator->Location = System::Drawing::Point(732, 2);
this->btn_syntax_analisator->Name = L"btn_syntax_analisator";
this->btn_syntax_analisator->Size = System::Drawing::Size(137, 23);
this->btn_syntax_analisator->TabIndex = 9;
this->btn_syntax_analisator->Text = L"Syntax analisator";
this->btn_syntax_analisator->UseVisualStyleBackColor = true;
this->btn_syntax_analisator->Click += gcnew System::EventHandler(this, &Translator_LanguageC::Btn_syntax_analisator_Click);
//
// Translator_LanguageC
//
this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->AutoScroll = true;
this->AutoSize = true;
this->BackColor = System::Drawing::Color::MintCream;
this->ClientSize = System::Drawing::Size(954, 452);
this->Controls->Add(this->btn_syntax_analisator);
this->Controls->Add(this->btn_toCSharp);
this->Controls->Add(this->tb_codeCSharp);
this->Controls->Add(this->btn_reversePolishNotation);
this->Controls->Add(this->tb_reversePolishNotation);
this->Controls->Add(this->tb_syntaxAnalisator);
this->Controls->Add(this->btn_analisator);
this->Controls->Add(this->tb_textC);
this->Controls->Add(this->btn_loadFile);
this->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::SizableToolWindow;
this->Margin = System::Windows::Forms::Padding(4);
this->Name = L"Translator_LanguageC";
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
this->Text = L"Translator";
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void Btn_loadFile_Click(System::Object^ sender, System::EventArgs^ e);
System::Void Btn_analisator_Click(System::Object^ sender, System::EventArgs^ e);
System::Void Btn_reversePolishNotation_Click(System::Object^ sender, System::EventArgs^ e);
System::Void Btn_toCSharp_Click(System::Object^ sender, System::EventArgs^ e);
System::Void Btn_syntax_analisator_Click(System::Object^ sender, System::EventArgs^ e);
};
}