/[Sims3RigEditor]/trunk/gr2lib_cpp/gr2lib_rigeditor.h
ViewVC logotype

Annotation of /trunk/gr2lib_cpp/gr2lib_rigeditor.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (hide annotations) (download)
Thu Jul 29 17:25:37 2010 UTC (10 years, 2 months ago) by william
File MIME type: text/plain
File size: 2177 byte(s)
initial commit --

** Started implementing native unmanaged <=> managed conversion

1 william 5 #pragma once
2    
3     #include "gr2lib_core.h"
4     #include "gr2lib_core_imports.h"
5     using namespace System;
6     using namespace System::ComponentModel;
7     using namespace System::Collections;
8     using namespace System::Windows::Forms;
9     using namespace System::Data;
10     using namespace System::Drawing;
11    
12    
13     namespace gr2lib
14     {
15     namespace core
16     {
17     namespace rigeditor
18     {
19     /// <summary>
20     /// Summary for gr2lib_rigeditor
21     /// </summary>
22     public ref class gr2lib_rigeditor : public System::Windows::Forms::UserControl
23     {
24     public:
25     gr2lib_rigeditor(void)
26     {
27     InitializeComponent();
28     //
29     //TODO: Add the constructor code here
30     //
31     }
32     gr2lib_rigeditor(grannyfile* grn_file)
33     {
34     InitializeComponent();
35     // parse art tool info
36     propgrid->SelectedObject = this;
37     }
38    
39     protected:
40     /// <summary>
41     /// Clean up any resources being used.
42     /// </summary>
43     ~gr2lib_rigeditor()
44     {
45     if (components)
46     {
47     delete components;
48     }
49     }
50     private: System::Windows::Forms::PropertyGrid^ propgrid;
51     protected:
52    
53     private:
54     /// <summary>
55     /// Required designer variable.
56     /// </summary>
57     System::ComponentModel::Container ^components;
58    
59     #pragma region Windows Form Designer generated code
60     /// <summary>
61     /// Required method for Designer support - do not modify
62     /// the contents of this method with the code editor.
63     /// </summary>
64     void InitializeComponent(void)
65     {
66     this->propgrid = (gcnew System::Windows::Forms::PropertyGrid());
67     this->SuspendLayout();
68     //
69     // propgrid
70     //
71     this->propgrid->Dock = System::Windows::Forms::DockStyle::Fill;
72     this->propgrid->Location = System::Drawing::Point(0, 0);
73     this->propgrid->Name = L"propgrid";
74     this->propgrid->Size = System::Drawing::Size(268, 314);
75     this->propgrid->TabIndex = 0;
76     //
77     // gr2lib_rigeditor
78     //
79     this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
80     this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
81     this->Controls->Add(this->propgrid);
82     this->Name = L"gr2lib_rigeditor";
83     this->Size = System::Drawing::Size(268, 314);
84     this->ResumeLayout(false);
85    
86     }
87     #pragma endregion
88     };
89     }
90     }
91     }

  ViewVC Help
Powered by ViewVC 1.1.22