-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathForm2.h
129 lines (121 loc) · 4.47 KB
/
Form2.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
#pragma once
#include "TeamData.h"
#include "CustomUI.h"
namespace nhl94e
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Zusammenfassung für Form1
/// </summary>
public ref class Form2 : public System::Windows::Forms::Form
{
public:
Form2(void)
{
InitializeComponent();
}
protected:
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
~Form2()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Panel^ m_panel1;
private: System::Drawing::Bitmap^ m_demoBitmap;
private: System::Windows::Forms::Button^ m_saveTemplateBtn;
private: ProfileImageData* m_profileImageData;
private: ProfilePalletteData* m_profilePalletteData;
private: System::Windows::Forms::Button^ m_importButton;
private: System::Windows::Forms::Button^ m_okButton;
protected:
private:
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
void InitializeComponent(void)
{
this->m_panel1 = (gcnew System::Windows::Forms::Panel());
this->m_saveTemplateBtn = (gcnew System::Windows::Forms::Button());
this->m_importButton = (gcnew System::Windows::Forms::Button());
this->m_okButton = (gcnew System::Windows::Forms::Button());
this->SuspendLayout();
//
// m_panel1
//
this->m_panel1->Location = System::Drawing::Point(13, 13);
this->m_panel1->Name = L"m_panel1";
this->m_panel1->Size = System::Drawing::Size(1152, 192);
this->m_panel1->TabIndex = 0;
this->m_panel1->Paint += gcnew System::Windows::Forms::PaintEventHandler(this, &Form2::panel1_Paint);
//
// m_saveTemplateBtn
//
this->m_saveTemplateBtn->Location = System::Drawing::Point(13, 221);
this->m_saveTemplateBtn->Name = L"m_saveTemplateBtn";
this->m_saveTemplateBtn->Size = System::Drawing::Size(193, 39);
this->m_saveTemplateBtn->TabIndex = 1;
this->m_saveTemplateBtn->Text = L"Save Template";
this->m_saveTemplateBtn->UseVisualStyleBackColor = true;
this->m_saveTemplateBtn->Click += gcnew System::EventHandler(this, &Form2::saveTemplateBtn_Click);
//
// m_importButton
//
this->m_importButton->Location = System::Drawing::Point(212, 221);
this->m_importButton->Name = L"m_importButton";
this->m_importButton->Size = System::Drawing::Size(193, 39);
this->m_importButton->TabIndex = 2;
this->m_importButton->Text = L"Import From Template";
this->m_importButton->UseVisualStyleBackColor = true;
this->m_importButton->Click += gcnew System::EventHandler(this, &Form2::importButton_Click);
//
// m_okButton
//
this->m_okButton->Location = System::Drawing::Point(972, 221);
this->m_okButton->Name = L"m_okButton";
this->m_okButton->Size = System::Drawing::Size(193, 39);
this->m_okButton->TabIndex = 3;
this->m_okButton->Text = L"OK";
this->m_okButton->UseVisualStyleBackColor = true;
this->m_okButton->Click += gcnew System::EventHandler(this, &Form2::m_okButton_Click);
//
// Form2
//
this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
this->ClientSize = System::Drawing::Size(1180, 276);
this->Controls->Add(this->m_okButton);
this->Controls->Add(this->m_importButton);
this->Controls->Add(this->m_saveTemplateBtn);
this->Controls->Add(this->m_panel1);
this->Name = L"Form2";
this->Load += gcnew System::EventHandler(this, &Form2::OnLoad);
this->ResumeLayout(false);
}
#pragma endregion
private:
private: System::Void panel1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e);
void OnLoad(System::Object^ sender, System::EventArgs^ e);
private: System::Void saveTemplateBtn_Click(System::Object^ sender, System::EventArgs^ e);
public: void SetProfileData(ProfileImageData* img, ProfilePalletteData* pal);
private: System::Void importButton_Click(System::Object^ sender, System::EventArgs^ e);
public: MultiFormatPallette* GetImportedPallette();
public: std::vector<unsigned char>* GetImportedSnesImageData();
public: bool ImportedSomethingValid();
private: System::Void m_okButton_Click(System::Object^ sender, System::EventArgs^ e);
};
}