36 |
cycrow |
1 |
#pragma once
|
|
|
2 |
|
|
|
3 |
using namespace System;
|
|
|
4 |
using namespace System::ComponentModel;
|
|
|
5 |
using namespace System::Collections;
|
|
|
6 |
using namespace System::Windows::Forms;
|
|
|
7 |
using namespace System::Data;
|
|
|
8 |
using namespace System::Drawing;
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
namespace Creator {
|
|
|
12 |
|
|
|
13 |
/// <summary>
|
|
|
14 |
/// Summary for SelectFilesystem
|
|
|
15 |
///
|
|
|
16 |
/// WARNING: If you change the name of this class, you will need to change the
|
|
|
17 |
/// 'Resource File Name' property for the managed resource compiler tool
|
|
|
18 |
/// associated with all .resx files this class depends on. Otherwise,
|
|
|
19 |
/// the designers will not be able to interact properly with localized
|
|
|
20 |
/// resources associated with this form.
|
|
|
21 |
/// </summary>
|
|
|
22 |
public ref class SelectFilesystem : public System::Windows::Forms::Form
|
|
|
23 |
{
|
|
|
24 |
public:
|
94 |
cycrow |
25 |
SelectFilesystem(CGameDirectories *pGameDir) : _pGameDir(pGameDir)
|
36 |
cycrow |
26 |
{
|
|
|
27 |
InitializeComponent();
|
|
|
28 |
|
|
|
29 |
this->update();
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
void update();
|
|
|
33 |
void selectedGame();
|
|
|
34 |
void selectedDir();
|
|
|
35 |
|
197 |
cycrow |
36 |
Utils::WString gameDir();
|
36 |
cycrow |
37 |
String ^gameMod();
|
|
|
38 |
|
|
|
39 |
protected:
|
94 |
cycrow |
40 |
CGameDirectories *_pGameDir;
|
36 |
cycrow |
41 |
|
|
|
42 |
/// <summary>
|
|
|
43 |
/// Clean up any resources being used.
|
|
|
44 |
/// </summary>
|
|
|
45 |
~SelectFilesystem()
|
|
|
46 |
{
|
|
|
47 |
if (components)
|
|
|
48 |
{
|
|
|
49 |
delete components;
|
|
|
50 |
}
|
|
|
51 |
}
|
|
|
52 |
private: System::Windows::Forms::ComboBox^ comboBox1;
|
|
|
53 |
private: System::Windows::Forms::GroupBox^ groupBox1;
|
|
|
54 |
private: System::Windows::Forms::GroupBox^ groupBox2;
|
|
|
55 |
private: System::Windows::Forms::ComboBox^ comboBox2;
|
|
|
56 |
private: System::Windows::Forms::GroupBox^ groupBox3;
|
|
|
57 |
private: System::Windows::Forms::ComboBox^ comboBox3;
|
|
|
58 |
private: System::Windows::Forms::Button^ button1;
|
|
|
59 |
private: System::Windows::Forms::Button^ button2;
|
|
|
60 |
protected:
|
|
|
61 |
|
|
|
62 |
private:
|
|
|
63 |
/// <summary>
|
|
|
64 |
/// Required designer variable.
|
|
|
65 |
/// </summary>
|
|
|
66 |
System::ComponentModel::Container ^components;
|
|
|
67 |
|
|
|
68 |
#pragma region Windows Form Designer generated code
|
|
|
69 |
/// <summary>
|
|
|
70 |
/// Required method for Designer support - do not modify
|
|
|
71 |
/// the contents of this method with the code editor.
|
|
|
72 |
/// </summary>
|
|
|
73 |
void InitializeComponent(void)
|
|
|
74 |
{
|
|
|
75 |
this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
|
|
|
76 |
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
|
|
|
77 |
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
|
|
|
78 |
this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());
|
|
|
79 |
this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
|
|
|
80 |
this->comboBox3 = (gcnew System::Windows::Forms::ComboBox());
|
|
|
81 |
this->button1 = (gcnew System::Windows::Forms::Button());
|
|
|
82 |
this->button2 = (gcnew System::Windows::Forms::Button());
|
|
|
83 |
this->groupBox1->SuspendLayout();
|
|
|
84 |
this->groupBox2->SuspendLayout();
|
|
|
85 |
this->groupBox3->SuspendLayout();
|
|
|
86 |
this->SuspendLayout();
|
|
|
87 |
//
|
|
|
88 |
// comboBox1
|
|
|
89 |
//
|
|
|
90 |
this->comboBox1->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
91 |
this->comboBox1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
|
|
|
92 |
this->comboBox1->FormattingEnabled = true;
|
|
|
93 |
this->comboBox1->Location = System::Drawing::Point(10, 23);
|
|
|
94 |
this->comboBox1->Name = L"comboBox1";
|
|
|
95 |
this->comboBox1->Size = System::Drawing::Size(530, 21);
|
|
|
96 |
this->comboBox1->TabIndex = 0;
|
|
|
97 |
this->comboBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox1_SelectedIndexChanged);
|
|
|
98 |
//
|
|
|
99 |
// groupBox1
|
|
|
100 |
//
|
|
|
101 |
this->groupBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
|
|
|
102 |
| System::Windows::Forms::AnchorStyles::Right));
|
|
|
103 |
this->groupBox1->AutoSize = true;
|
|
|
104 |
this->groupBox1->Controls->Add(this->comboBox1);
|
|
|
105 |
this->groupBox1->Location = System::Drawing::Point(12, 12);
|
|
|
106 |
this->groupBox1->Margin = System::Windows::Forms::Padding(10);
|
|
|
107 |
this->groupBox1->Name = L"groupBox1";
|
|
|
108 |
this->groupBox1->Padding = System::Windows::Forms::Padding(10);
|
|
|
109 |
this->groupBox1->Size = System::Drawing::Size(550, 52);
|
|
|
110 |
this->groupBox1->TabIndex = 1;
|
|
|
111 |
this->groupBox1->TabStop = false;
|
|
|
112 |
this->groupBox1->Text = L"Select Game";
|
|
|
113 |
//
|
|
|
114 |
// groupBox2
|
|
|
115 |
//
|
|
|
116 |
this->groupBox2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
|
|
|
117 |
| System::Windows::Forms::AnchorStyles::Right));
|
|
|
118 |
this->groupBox2->AutoSize = true;
|
|
|
119 |
this->groupBox2->Controls->Add(this->comboBox2);
|
|
|
120 |
this->groupBox2->Location = System::Drawing::Point(12, 84);
|
|
|
121 |
this->groupBox2->Margin = System::Windows::Forms::Padding(10);
|
|
|
122 |
this->groupBox2->Name = L"groupBox2";
|
|
|
123 |
this->groupBox2->Padding = System::Windows::Forms::Padding(10);
|
|
|
124 |
this->groupBox2->Size = System::Drawing::Size(550, 52);
|
|
|
125 |
this->groupBox2->TabIndex = 2;
|
|
|
126 |
this->groupBox2->TabStop = false;
|
|
|
127 |
this->groupBox2->Text = L"Select Directory";
|
|
|
128 |
//
|
|
|
129 |
// comboBox2
|
|
|
130 |
//
|
|
|
131 |
this->comboBox2->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
132 |
this->comboBox2->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
|
|
|
133 |
this->comboBox2->FormattingEnabled = true;
|
|
|
134 |
this->comboBox2->Location = System::Drawing::Point(10, 23);
|
|
|
135 |
this->comboBox2->Name = L"comboBox2";
|
|
|
136 |
this->comboBox2->Size = System::Drawing::Size(530, 21);
|
|
|
137 |
this->comboBox2->TabIndex = 0;
|
|
|
138 |
this->comboBox2->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox2_SelectedIndexChanged);
|
|
|
139 |
//
|
|
|
140 |
// groupBox3
|
|
|
141 |
//
|
|
|
142 |
this->groupBox3->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
|
|
|
143 |
| System::Windows::Forms::AnchorStyles::Right));
|
|
|
144 |
this->groupBox3->AutoSize = true;
|
|
|
145 |
this->groupBox3->Controls->Add(this->comboBox3);
|
|
|
146 |
this->groupBox3->Location = System::Drawing::Point(12, 156);
|
|
|
147 |
this->groupBox3->Margin = System::Windows::Forms::Padding(10);
|
|
|
148 |
this->groupBox3->Name = L"groupBox3";
|
|
|
149 |
this->groupBox3->Padding = System::Windows::Forms::Padding(10);
|
|
|
150 |
this->groupBox3->Size = System::Drawing::Size(550, 52);
|
|
|
151 |
this->groupBox3->TabIndex = 3;
|
|
|
152 |
this->groupBox3->TabStop = false;
|
|
|
153 |
this->groupBox3->Text = L"Select Mod";
|
|
|
154 |
//
|
|
|
155 |
// comboBox3
|
|
|
156 |
//
|
|
|
157 |
this->comboBox3->Dock = System::Windows::Forms::DockStyle::Fill;
|
|
|
158 |
this->comboBox3->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
|
|
|
159 |
this->comboBox3->FormattingEnabled = true;
|
|
|
160 |
this->comboBox3->Location = System::Drawing::Point(10, 23);
|
|
|
161 |
this->comboBox3->Name = L"comboBox3";
|
|
|
162 |
this->comboBox3->Size = System::Drawing::Size(530, 21);
|
|
|
163 |
this->comboBox3->TabIndex = 0;
|
|
|
164 |
this->comboBox3->SelectedIndexChanged += gcnew System::EventHandler(this, &SelectFilesystem::comboBox3_SelectedIndexChanged);
|
|
|
165 |
//
|
|
|
166 |
// button1
|
|
|
167 |
//
|
|
|
168 |
this->button1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
|
|
|
169 |
this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
|
|
|
170 |
this->button1->Location = System::Drawing::Point(487, 226);
|
|
|
171 |
this->button1->Name = L"button1";
|
|
|
172 |
this->button1->Size = System::Drawing::Size(75, 23);
|
|
|
173 |
this->button1->TabIndex = 4;
|
|
|
174 |
this->button1->Text = L"OK";
|
|
|
175 |
this->button1->UseVisualStyleBackColor = true;
|
|
|
176 |
//
|
|
|
177 |
// button2
|
|
|
178 |
//
|
|
|
179 |
this->button2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));
|
|
|
180 |
this->button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
|
|
|
181 |
this->button2->Location = System::Drawing::Point(12, 226);
|
|
|
182 |
this->button2->Name = L"button2";
|
|
|
183 |
this->button2->Size = System::Drawing::Size(75, 23);
|
|
|
184 |
this->button2->TabIndex = 5;
|
|
|
185 |
this->button2->Text = L"Cancel";
|
|
|
186 |
this->button2->UseVisualStyleBackColor = true;
|
|
|
187 |
//
|
|
|
188 |
// SelectFilesystem
|
|
|
189 |
//
|
|
|
190 |
this->AcceptButton = this->button1;
|
|
|
191 |
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
|
|
|
192 |
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
|
|
|
193 |
this->CancelButton = this->button2;
|
|
|
194 |
this->ClientSize = System::Drawing::Size(574, 261);
|
|
|
195 |
this->ControlBox = false;
|
|
|
196 |
this->Controls->Add(this->button2);
|
|
|
197 |
this->Controls->Add(this->button1);
|
|
|
198 |
this->Controls->Add(this->groupBox3);
|
|
|
199 |
this->Controls->Add(this->groupBox2);
|
|
|
200 |
this->Controls->Add(this->groupBox1);
|
|
|
201 |
this->Name = L"SelectFilesystem";
|
|
|
202 |
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
|
|
|
203 |
this->Text = L"Select Filesystem";
|
|
|
204 |
this->groupBox1->ResumeLayout(false);
|
|
|
205 |
this->groupBox2->ResumeLayout(false);
|
|
|
206 |
this->groupBox3->ResumeLayout(false);
|
|
|
207 |
this->ResumeLayout(false);
|
|
|
208 |
this->PerformLayout();
|
|
|
209 |
|
|
|
210 |
}
|
|
|
211 |
#pragma endregion
|
|
|
212 |
private: System::Void comboBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
|
|
|
213 |
this->selectedGame();
|
|
|
214 |
}
|
|
|
215 |
private: System::Void comboBox3_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
|
|
|
216 |
}
|
|
|
217 |
private: System::Void comboBox2_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
|
|
|
218 |
this->selectedDir();
|
|
|
219 |
}
|
|
|
220 |
};
|
|
|
221 |
}
|