|
| 1 | +#pragma once |
| 2 | + |
| 3 | +namespace XRay |
| 4 | +{ |
| 5 | +namespace ECore |
| 6 | +{ |
| 7 | +namespace Props |
| 8 | +{ |
| 9 | +using namespace System; |
| 10 | +using namespace System::ComponentModel; |
| 11 | +using namespace System::Collections; |
| 12 | +using namespace System::Windows::Forms; |
| 13 | +using namespace System::Data; |
| 14 | +using namespace System::Drawing; |
| 15 | + |
| 16 | +public ref class TextEdit : public System::Windows::Forms::Form |
| 17 | +{ |
| 18 | +public: |
| 19 | + TextEdit(void) |
| 20 | + { |
| 21 | + InitializeComponent(); |
| 22 | + } |
| 23 | + |
| 24 | +protected: |
| 25 | + ~TextEdit() |
| 26 | + { |
| 27 | + if (components) |
| 28 | + { |
| 29 | + delete components; |
| 30 | + } |
| 31 | + } |
| 32 | + |
| 33 | +public: |
| 34 | + bool Run(); |
| 35 | + |
| 36 | +private: |
| 37 | + xr_string* m_text; |
| 38 | + |
| 39 | +private: System::Void buttonOk_Click(System::Object^ sender, System::EventArgs^ e); |
| 40 | +private: System::Void buttonClear_Click(System::Object^ sender, System::EventArgs^ e); |
| 41 | + |
| 42 | +private: System::Windows::Forms::Button^ buttonOk; |
| 43 | +private: System::Windows::Forms::Button^ buttonCancel; |
| 44 | +private: System::Windows::Forms::Button^ buttonApply; |
| 45 | +private: System::Windows::Forms::Button^ buttonLoad; |
| 46 | +private: System::Windows::Forms::Button^ buttonSave; |
| 47 | +private: System::Windows::Forms::Button^ buttonClear; |
| 48 | + |
| 49 | +private: System::Windows::Forms::Panel^ panel1; |
| 50 | +private: System::Windows::Forms::TextBox^ textBox1; |
| 51 | + |
| 52 | +private: System::Windows::Forms::StatusStrip^ statusStrip1; |
| 53 | +private: System::Windows::Forms::ToolStripStatusLabel^ toolStripStatusLabel1; |
| 54 | +private: System::Windows::Forms::ToolStripStatusLabel^ toolStripStatusLabel2; |
| 55 | +private: System::Windows::Forms::ToolStripStatusLabel^ toolStripStatusLabel3; |
| 56 | + |
| 57 | + |
| 58 | +private: |
| 59 | + System::ComponentModel::Container^ components; |
| 60 | + |
| 61 | +#pragma region Windows Form Designer generated code |
| 62 | + void InitializeComponent(void) |
| 63 | + { |
| 64 | + this->textBox1 = (gcnew System::Windows::Forms::TextBox()); |
| 65 | + this->buttonOk = (gcnew System::Windows::Forms::Button()); |
| 66 | + this->buttonCancel = (gcnew System::Windows::Forms::Button()); |
| 67 | + this->buttonApply = (gcnew System::Windows::Forms::Button()); |
| 68 | + this->buttonLoad = (gcnew System::Windows::Forms::Button()); |
| 69 | + this->buttonSave = (gcnew System::Windows::Forms::Button()); |
| 70 | + this->buttonClear = (gcnew System::Windows::Forms::Button()); |
| 71 | + this->panel1 = (gcnew System::Windows::Forms::Panel()); |
| 72 | + this->statusStrip1 = (gcnew System::Windows::Forms::StatusStrip()); |
| 73 | + this->toolStripStatusLabel1 = (gcnew System::Windows::Forms::ToolStripStatusLabel()); |
| 74 | + this->toolStripStatusLabel2 = (gcnew System::Windows::Forms::ToolStripStatusLabel()); |
| 75 | + this->toolStripStatusLabel3 = (gcnew System::Windows::Forms::ToolStripStatusLabel()); |
| 76 | + this->panel1->SuspendLayout(); |
| 77 | + this->statusStrip1->SuspendLayout(); |
| 78 | + this->SuspendLayout(); |
| 79 | + // |
| 80 | + // textBox1 |
| 81 | + // |
| 82 | + this->textBox1->AcceptsReturn = true; |
| 83 | + this->textBox1->AcceptsTab = true; |
| 84 | + this->textBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) |
| 85 | + | System::Windows::Forms::AnchorStyles::Left) |
| 86 | + | System::Windows::Forms::AnchorStyles::Right)); |
| 87 | + this->textBox1->Location = System::Drawing::Point(0, 25); |
| 88 | + this->textBox1->Multiline = true; |
| 89 | + this->textBox1->Name = L"textBox1"; |
| 90 | + this->textBox1->ScrollBars = System::Windows::Forms::ScrollBars::Both; |
| 91 | + this->textBox1->Size = System::Drawing::Size(445, 217); |
| 92 | + this->textBox1->TabIndex = 0; |
| 93 | + // |
| 94 | + // buttonOk |
| 95 | + // |
| 96 | + this->buttonOk->Anchor = System::Windows::Forms::AnchorStyles::Top; |
| 97 | + this->buttonOk->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink; |
| 98 | + this->buttonOk->DialogResult = System::Windows::Forms::DialogResult::OK; |
| 99 | + this->buttonOk->Location = System::Drawing::Point(0, 0); |
| 100 | + this->buttonOk->Name = L"buttonOk"; |
| 101 | + this->buttonOk->Size = System::Drawing::Size(75, 23); |
| 102 | + this->buttonOk->TabIndex = 1; |
| 103 | + this->buttonOk->Text = L"Ok"; |
| 104 | + this->buttonOk->UseVisualStyleBackColor = true; |
| 105 | + this->buttonOk->Click += gcnew System::EventHandler(this, &TextEdit::buttonOk_Click); |
| 106 | + // |
| 107 | + // buttonCancel |
| 108 | + // |
| 109 | + this->buttonCancel->Anchor = System::Windows::Forms::AnchorStyles::Top; |
| 110 | + this->buttonCancel->DialogResult = System::Windows::Forms::DialogResult::Cancel; |
| 111 | + this->buttonCancel->Location = System::Drawing::Point(74, 0); |
| 112 | + this->buttonCancel->Name = L"buttonCancel"; |
| 113 | + this->buttonCancel->Size = System::Drawing::Size(75, 23); |
| 114 | + this->buttonCancel->TabIndex = 2; |
| 115 | + this->buttonCancel->Text = L"Cancel"; |
| 116 | + this->buttonCancel->UseVisualStyleBackColor = true; |
| 117 | + // |
| 118 | + // buttonApply |
| 119 | + // |
| 120 | + this->buttonApply->Anchor = System::Windows::Forms::AnchorStyles::Top; |
| 121 | + this->buttonApply->Location = System::Drawing::Point(148, 0); |
| 122 | + this->buttonApply->Name = L"buttonApply"; |
| 123 | + this->buttonApply->Size = System::Drawing::Size(75, 23); |
| 124 | + this->buttonApply->TabIndex = 3; |
| 125 | + this->buttonApply->Text = L"Apply"; |
| 126 | + this->buttonApply->UseVisualStyleBackColor = true; |
| 127 | + // |
| 128 | + // buttonLoad |
| 129 | + // |
| 130 | + this->buttonLoad->Anchor = System::Windows::Forms::AnchorStyles::Top; |
| 131 | + this->buttonLoad->Location = System::Drawing::Point(222, 0); |
| 132 | + this->buttonLoad->Name = L"buttonLoad"; |
| 133 | + this->buttonLoad->Size = System::Drawing::Size(75, 23); |
| 134 | + this->buttonLoad->TabIndex = 4; |
| 135 | + this->buttonLoad->Text = L"Load"; |
| 136 | + this->buttonLoad->UseVisualStyleBackColor = true; |
| 137 | + // |
| 138 | + // buttonSave |
| 139 | + // |
| 140 | + this->buttonSave->Anchor = System::Windows::Forms::AnchorStyles::Top; |
| 141 | + this->buttonSave->Location = System::Drawing::Point(296, 0); |
| 142 | + this->buttonSave->Name = L"buttonSave"; |
| 143 | + this->buttonSave->Size = System::Drawing::Size(75, 23); |
| 144 | + this->buttonSave->TabIndex = 5; |
| 145 | + this->buttonSave->Text = L"Save"; |
| 146 | + this->buttonSave->UseVisualStyleBackColor = true; |
| 147 | + // |
| 148 | + // buttonClear |
| 149 | + // |
| 150 | + this->buttonClear->Anchor = System::Windows::Forms::AnchorStyles::Top; |
| 151 | + this->buttonClear->Location = System::Drawing::Point(370, 0); |
| 152 | + this->buttonClear->Name = L"buttonClear"; |
| 153 | + this->buttonClear->Size = System::Drawing::Size(75, 23); |
| 154 | + this->buttonClear->TabIndex = 6; |
| 155 | + this->buttonClear->Text = L"Clear"; |
| 156 | + this->buttonClear->UseVisualStyleBackColor = true; |
| 157 | + this->buttonClear->Click += gcnew System::EventHandler(this, &TextEdit::buttonClear_Click); |
| 158 | + // |
| 159 | + // panel1 |
| 160 | + // |
| 161 | + this->panel1->Controls->Add(this->buttonOk); |
| 162 | + this->panel1->Controls->Add(this->buttonClear); |
| 163 | + this->panel1->Controls->Add(this->buttonCancel); |
| 164 | + this->panel1->Controls->Add(this->buttonSave); |
| 165 | + this->panel1->Controls->Add(this->buttonApply); |
| 166 | + this->panel1->Controls->Add(this->buttonLoad); |
| 167 | + this->panel1->Dock = System::Windows::Forms::DockStyle::Top; |
| 168 | + this->panel1->Location = System::Drawing::Point(0, 0); |
| 169 | + this->panel1->Name = L"panel1"; |
| 170 | + this->panel1->Size = System::Drawing::Size(445, 24); |
| 171 | + this->panel1->TabIndex = 7; |
| 172 | + // |
| 173 | + // statusStrip1 |
| 174 | + // |
| 175 | + this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) { |
| 176 | + this->toolStripStatusLabel1, |
| 177 | + this->toolStripStatusLabel2, this->toolStripStatusLabel3 |
| 178 | + }); |
| 179 | + this->statusStrip1->Location = System::Drawing::Point(0, 242); |
| 180 | + this->statusStrip1->Name = L"statusStrip1"; |
| 181 | + this->statusStrip1->Size = System::Drawing::Size(445, 22); |
| 182 | + this->statusStrip1->TabIndex = 8; |
| 183 | + this->statusStrip1->Text = L"statusStrip1"; |
| 184 | + // |
| 185 | + // toolStripStatusLabel1 |
| 186 | + // |
| 187 | + this->toolStripStatusLabel1->BorderStyle = System::Windows::Forms::Border3DStyle::RaisedInner; |
| 188 | + this->toolStripStatusLabel1->Name = L"toolStripStatusLabel1"; |
| 189 | + this->toolStripStatusLabel1->Size = System::Drawing::Size(54, 17); |
| 190 | + this->toolStripStatusLabel1->Text = L"Position"; |
| 191 | + // |
| 192 | + // toolStripStatusLabel2 |
| 193 | + // |
| 194 | + this->toolStripStatusLabel2->Enabled = false; |
| 195 | + this->toolStripStatusLabel2->Name = L"toolStripStatusLabel2"; |
| 196 | + this->toolStripStatusLabel2->Size = System::Drawing::Size(0, 17); |
| 197 | + // |
| 198 | + // toolStripStatusLabel3 |
| 199 | + // |
| 200 | + this->toolStripStatusLabel3->BorderStyle = System::Windows::Forms::Border3DStyle::RaisedInner; |
| 201 | + this->toolStripStatusLabel3->Name = L"toolStripStatusLabel3"; |
| 202 | + this->toolStripStatusLabel3->Size = System::Drawing::Size(376, 17); |
| 203 | + this->toolStripStatusLabel3->Spring = true; |
| 204 | + this->toolStripStatusLabel3->Text = L"Description"; |
| 205 | + // |
| 206 | + // TextEdit |
| 207 | + // |
| 208 | + this->AcceptButton = this->buttonOk; |
| 209 | + this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); |
| 210 | + this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; |
| 211 | + this->CancelButton = this->buttonCancel; |
| 212 | + this->ClientSize = System::Drawing::Size(445, 264); |
| 213 | + this->Controls->Add(this->statusStrip1); |
| 214 | + this->Controls->Add(this->panel1); |
| 215 | + this->Controls->Add(this->textBox1); |
| 216 | + this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::SizableToolWindow; |
| 217 | + this->Name = L"TextEdit"; |
| 218 | + this->Text = L"TextForm"; |
| 219 | + this->panel1->ResumeLayout(false); |
| 220 | + this->statusStrip1->ResumeLayout(false); |
| 221 | + this->statusStrip1->PerformLayout(); |
| 222 | + this->ResumeLayout(false); |
| 223 | + this->PerformLayout(); |
| 224 | + |
| 225 | + } |
| 226 | +#pragma endregion |
| 227 | +}; |
| 228 | +} |
| 229 | +} |
| 230 | +} |
0 commit comments