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

Diff of /trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h	2010/07/31 01:44:00	7
+++ trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h	2010/07/31 09:33:11	12
@@ -4,12 +4,14 @@
 #ifndef GR2LIB_RIGEDITOR_FRM_H
 #define GR2LIB_RIGEDITOR_FRM_H
 #include "grannyfile.h"
+//#include "guicon.h"
 #include <stdio.h>
 #include <iostream>
 #include <stdlib.h>
 #include <assert.h>
 #include <string>
 #include <sstream>
+#include <vcclr.h>
 using namespace std;
 
 using namespace gr2lib::core;
@@ -30,238 +32,269 @@
 //	{
 //		namespace rigeditor
 //		{
-			/// <summary>
-			/// Summary for gr2lib_rigeditor_frm
-			///
-			/// WARNING: If you change the name of this class, you will need to change the
-			///          'Resource File Name' property for the managed resource compiler tool
-			///          associated with all .resx files this class depends on.  Otherwise,
-			///          the designers will not be able to interact properly with localized
-			///          resources associated with this form.
-			/// </summary>
-			public ref class gr2lib_rigeditor_frm : public System::Windows::Forms::Form
-			{
-			private:
-				grannyfile* _grn_file;
-			public:
-				gr2lib_rigeditor_frm(void)
-				{
-					InitializeComponent();
-					//
-					//TODO: Add the constructor code here
-					//
-				}
-				gr2lib_rigeditor_frm(grannyfile* grn_file)
-				{
-					InitializeComponent();
-					// parse art tool info
-					_grn_file = grn_file;
-					propgrid->SelectedObjects = ConvertToManaged();
-				
-				}
-
-			protected:
-				/// <summary>
-				/// Clean up any resources being used.
-				/// </summary>
-				~gr2lib_rigeditor_frm()
-				{
-					if (components)
-					{
-						delete components;
-					}
-				}
-			private: System::Windows::Forms::PropertyGrid^  propgrid;
-			protected: 
-			private: System::Windows::Forms::MenuStrip^  mainmenu;
-			private: System::Windows::Forms::ToolStripMenuItem^  mnuFile;
-			private: System::Windows::Forms::ToolStripMenuItem^  mnuItemExit;
-			private: System::Windows::Forms::ToolStripMenuItem^  mnuItemOpen;
-			private: System::Windows::Forms::ToolStripMenuItem^  mnuItemSave;
-			private: System::Windows::Forms::ToolStripMenuItem^  mnuItemSaveAs;
-
-			protected: 
-
-			private:
-				/// <summary>
-				/// Required designer variable.
-				/// </summary>
-				System::ComponentModel::Container ^components;
-
-		#pragma region Windows Form Designer generated code
-				/// <summary>
-				/// Required method for Designer support - do not modify
-				/// the contents of this method with the code editor.
-				/// </summary>
-				void InitializeComponent(void)
-				{
-					this->propgrid = (gcnew System::Windows::Forms::PropertyGrid());
-					this->mainmenu = (gcnew System::Windows::Forms::MenuStrip());
-					this->mnuFile = (gcnew System::Windows::Forms::ToolStripMenuItem());
-					this->mnuItemExit = (gcnew System::Windows::Forms::ToolStripMenuItem());
-					this->mnuItemOpen = (gcnew System::Windows::Forms::ToolStripMenuItem());
-					this->mnuItemSave = (gcnew System::Windows::Forms::ToolStripMenuItem());
-					this->mnuItemSaveAs = (gcnew System::Windows::Forms::ToolStripMenuItem());
-					this->mainmenu->SuspendLayout();
-					this->SuspendLayout();
-					// 
-					// propgrid
-					// 
-					this->propgrid->Dock = System::Windows::Forms::DockStyle::Fill;
-					this->propgrid->Location = System::Drawing::Point(0, 24);
-					this->propgrid->Name = L"propgrid";
-					this->propgrid->PropertySort = System::Windows::Forms::PropertySort::Categorized;
-					this->propgrid->Size = System::Drawing::Size(558, 456);
-					this->propgrid->TabIndex = 4;
-					this->propgrid->ToolbarVisible = false;
-					// 
-					// mainmenu
-					// 
-					this->mainmenu->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->mnuFile});
-					this->mainmenu->Location = System::Drawing::Point(0, 0);
-					this->mainmenu->Name = L"mainmenu";
-					this->mainmenu->Size = System::Drawing::Size(558, 24);
-					this->mainmenu->TabIndex = 3;
-					this->mainmenu->Text = L"menuStrip1";
-					// 
-					// mnuFile
-					// 
-					this->mnuFile->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->mnuItemOpen, 
-						this->mnuItemSave, this->mnuItemSaveAs, this->mnuItemExit});
-					this->mnuFile->Name = L"mnuFile";
-					this->mnuFile->Size = System::Drawing::Size(37, 20);
-					this->mnuFile->Text = L"&File";
-					// 
-					// mnuItemExit
-					// 
-					this->mnuItemExit->Name = L"mnuItemExit";
-					this->mnuItemExit->Size = System::Drawing::Size(152, 22);
-					this->mnuItemExit->Text = L"&Exit";
-					this->mnuItemExit->Click += gcnew System::EventHandler(this, &gr2lib_rigeditor_frm::mnuItemExit_Click);
-					// 
-					// mnuItemOpen
-					// 
-					this->mnuItemOpen->Name = L"mnuItemOpen";
-					this->mnuItemOpen->Size = System::Drawing::Size(152, 22);
-					this->mnuItemOpen->Text = L"&Open";
-					this->mnuItemOpen->Click += gcnew System::EventHandler(this, &gr2lib_rigeditor_frm::mnuItemOpen_Click);
-					// 
-					// mnuItemSave
-					// 
-					this->mnuItemSave->Name = L"mnuItemSave";
-					this->mnuItemSave->Size = System::Drawing::Size(152, 22);
-					this->mnuItemSave->Text = L"&Save";
-					// 
-					// mnuItemSaveAs
-					// 
-					this->mnuItemSaveAs->Name = L"mnuItemSaveAs";
-					this->mnuItemSaveAs->Size = System::Drawing::Size(152, 22);
-					this->mnuItemSaveAs->Text = L"Save &As";
-					// 
-					// gr2lib_rigeditor_frm
-					// 
-					this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
-					this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
-					this->ClientSize = System::Drawing::Size(558, 480);
-					this->Controls->Add(this->propgrid);
-					this->Controls->Add(this->mainmenu);
-					this->Name = L"gr2lib_rigeditor_frm";
-					this->Text = L"gr2lib_rigeditor_frm";
-					this->mainmenu->ResumeLayout(false);
-					this->mainmenu->PerformLayout();
-					this->ResumeLayout(false);
-					this->PerformLayout();
+/// <summary>
+/// Summary for gr2lib_rigeditor_frm
+///
+/// WARNING: If you change the name of this class, you will need to change the
+///          'Resource File Name' property for the managed resource compiler tool
+///          associated with all .resx files this class depends on.  Otherwise,
+///          the designers will not be able to interact properly with localized
+///          resources associated with this form.
+/// </summary>
+public ref class gr2lib_rigeditor_frm : public System::Windows::Forms::Form
+{
+private:
+	grannyfile* _grn_file;
+	void LogApplicationStartup()
+	{
+		const char* ApplicationName = "GR2Lib Rig Editor: ";
+
+		const char* product_version = (char*)(void*)Marshal::StringToHGlobalAnsi(Application::ProductVersion);
+		const char* version_prefix = "v";
+		const char* startup_string = " {Starting up...}";					
+
+
+		int msg_malloc = (strlen(ApplicationName) + strlen(product_version) + strlen(version_prefix) + strlen(startup_string)) + 3;
+
+		char* msg = (char*)malloc(msg_malloc);
+		for (int i=0; i<msg_malloc; i++) {
+			msg[i] = 0;    // Initialize all elements to zero.
+		}
+
+		strcat(msg,ApplicationName);
+		strcat(msg,version_prefix);
+		strcat(msg,product_version);
+		strcat(msg,startup_string);
+		strcat(msg,"\n");
+		_grn_file->_logger->LogMessage(msg);
+	}
+public:
+	gr2lib_rigeditor_frm(void)
+	{
+		InitializeComponent();
+		_grn_file = new grannyfile();
+		//
+		//TODO: Add the constructor code here
+		//
+		// Log Application Startup
+		LogApplicationStartup();
+	}
+	gr2lib_rigeditor_frm(grannyfile* grn_file)
+	{
+		InitializeComponent();
+		// parse art tool info
+		_grn_file = grn_file;
+
+		// Log Application Startup
+		LogApplicationStartup();
+
+		propgrid->SelectedObjects = ConvertToManaged();
+
+	}
+
+protected:
+	/// <summary>
+	/// Clean up any resources being used.
+	/// </summary>
+	~gr2lib_rigeditor_frm()
+	{
+		if (components)
+		{
+			delete components;
+		}
+	}
+private: System::Windows::Forms::PropertyGrid^  propgrid;
+protected: 
+private: System::Windows::Forms::MenuStrip^  mainmenu;
+private: System::Windows::Forms::ToolStripMenuItem^  mnuFile;
+private: System::Windows::Forms::ToolStripMenuItem^  mnuItemExit;
+private: System::Windows::Forms::ToolStripMenuItem^  mnuItemOpen;
+private: System::Windows::Forms::ToolStripMenuItem^  mnuItemSave;
+private: System::Windows::Forms::ToolStripMenuItem^  mnuItemSaveAs;
+
+protected: 
+
+private:
+	/// <summary>
+	/// Required designer variable.
+	/// </summary>
+	System::ComponentModel::Container ^components;
+
+#pragma region Windows Form Designer generated code
+	/// <summary>
+	/// Required method for Designer support - do not modify
+	/// the contents of this method with the code editor.
+	/// </summary>
+	void InitializeComponent(void)
+	{
+		this->propgrid = (gcnew System::Windows::Forms::PropertyGrid());
+		this->mainmenu = (gcnew System::Windows::Forms::MenuStrip());
+		this->mnuFile = (gcnew System::Windows::Forms::ToolStripMenuItem());
+		this->mnuItemOpen = (gcnew System::Windows::Forms::ToolStripMenuItem());
+		this->mnuItemSave = (gcnew System::Windows::Forms::ToolStripMenuItem());
+		this->mnuItemSaveAs = (gcnew System::Windows::Forms::ToolStripMenuItem());
+		this->mnuItemExit = (gcnew System::Windows::Forms::ToolStripMenuItem());
+		this->mainmenu->SuspendLayout();
+		this->SuspendLayout();
+		// 
+		// propgrid
+		// 
+		this->propgrid->Dock = System::Windows::Forms::DockStyle::Fill;
+		this->propgrid->Location = System::Drawing::Point(0, 24);
+		this->propgrid->Name = L"propgrid";
+		this->propgrid->PropertySort = System::Windows::Forms::PropertySort::Categorized;
+		this->propgrid->Size = System::Drawing::Size(558, 456);
+		this->propgrid->TabIndex = 4;
+		this->propgrid->ToolbarVisible = false;
+		// 
+		// mainmenu
+		// 
+		this->mainmenu->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->mnuFile});
+		this->mainmenu->Location = System::Drawing::Point(0, 0);
+		this->mainmenu->Name = L"mainmenu";
+		this->mainmenu->Size = System::Drawing::Size(558, 24);
+		this->mainmenu->TabIndex = 3;
+		this->mainmenu->Text = L"menuStrip1";
+		// 
+		// mnuFile
+		// 
+		this->mnuFile->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->mnuItemOpen, 
+			this->mnuItemSave, this->mnuItemSaveAs, this->mnuItemExit});
+		this->mnuFile->Name = L"mnuFile";
+		this->mnuFile->Size = System::Drawing::Size(37, 20);
+		this->mnuFile->Text = L"&File";
+		// 
+		// mnuItemOpen
+		// 
+		this->mnuItemOpen->Name = L"mnuItemOpen";
+		this->mnuItemOpen->Size = System::Drawing::Size(114, 22);
+		this->mnuItemOpen->Text = L"&Open";
+		this->mnuItemOpen->Click += gcnew System::EventHandler(this, &gr2lib_rigeditor_frm::mnuItemOpen_Click);
+		// 
+		// mnuItemSave
+		// 
+		this->mnuItemSave->Name = L"mnuItemSave";
+		this->mnuItemSave->Size = System::Drawing::Size(114, 22);
+		this->mnuItemSave->Text = L"&Save";
+		// 
+		// mnuItemSaveAs
+		// 
+		this->mnuItemSaveAs->Name = L"mnuItemSaveAs";
+		this->mnuItemSaveAs->Size = System::Drawing::Size(114, 22);
+		this->mnuItemSaveAs->Text = L"Save &As";
+		// 
+		// mnuItemExit
+		// 
+		this->mnuItemExit->Name = L"mnuItemExit";
+		this->mnuItemExit->Size = System::Drawing::Size(114, 22);
+		this->mnuItemExit->Text = L"&Exit";
+		this->mnuItemExit->Click += gcnew System::EventHandler(this, &gr2lib_rigeditor_frm::mnuItemExit_Click);
+		// 
+		// gr2lib_rigeditor_frm
+		// 
+		this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
+		this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
+		this->ClientSize = System::Drawing::Size(558, 480);
+		this->Controls->Add(this->propgrid);
+		this->Controls->Add(this->mainmenu);
+		this->Name = L"gr2lib_rigeditor_frm";
+		this->Text = L"gr2lib_rigeditor_frm";
+		this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &gr2lib_rigeditor_frm::gr2lib_rigeditor_frm_FormClosed);
+		this->mainmenu->ResumeLayout(false);
+		this->mainmenu->PerformLayout();
+		this->ResumeLayout(false);
+		this->PerformLayout();
 
-				}
-		#pragma endregion
+	}
+#pragma endregion
 #pragma region MarshalToMananaged
-				ArtToolInfo^ _ArtToolInfo;
+	ArtToolInfo^ _ArtToolInfo;
 
-				#pragma region ManagedNativeParsing
-				array<Object^>^ ConvertToManaged()
-				{
-					List<Object^> ret = gcnew List<Object^>();
-
-					// Art Tool info
-						ret.Add(ArtToolInfo_ToManaged(_grn_file->GrannyFileInfo->ArtToolInfo));
-
-					return ret.ToArray();
-				}
-				void ConvertToNative()
-				{
-					// Art Tool info
-					ArtToolInfo_ToNative();
-				}
-				#pragma endregion
-						
-						#pragma region ArtToolInfo
-						ArtToolInfo^ ArtToolInfo_ToManaged(granny_art_tool_info* toolinfo)
-						{
-							_ArtToolInfo = gcnew ArtToolInfo();
-							// Tool Name
-							_ArtToolInfo->FromArtToolName = gcnew String(reinterpret_cast<const char*>(toolinfo->FromArtToolName));
-
-							// Tool Vector
-							Vector3* Origin = new Vector3(
-								toolinfo->Origin[0],
-								toolinfo->Origin[1],
-								toolinfo->Origin[2]);
-							Vector3* Right = new Vector3(
-								toolinfo->RightVector[0],
-								toolinfo->RightVector[1],
-								toolinfo->RightVector[2]);
-							Vector3* Up = new Vector3(
-								toolinfo->UpVector[0],
-								toolinfo->UpVector[1],
-								toolinfo->UpVector[2]);
-							Vector3* Back = new Vector3(
-								toolinfo->BackVector[0],
-								toolinfo->BackVector[1],
-								toolinfo->BackVector[2]);
-							_ArtToolInfo->Vector = gcnew ArtToolInfoVector(*Origin,*Right,*Up,*Back);
-
-							// Tool Version
-							_ArtToolInfo->ToolVersion = gcnew ArtToolInfoVersion(toolinfo->ArtToolMajorRevision,toolinfo->ArtToolMinorRevision);
-							// Tool Units Per Meter
-							_ArtToolInfo->UnitsPerMeter = toolinfo->UnitsPerMeter;
-							return _ArtToolInfo;
-						}
-						#pragma endregion
-
-						#pragma region MarshalToNative
-
-						#pragma region ArtToolInfo
-						void ArtToolInfo_ToNative()
-						{
-							
-							_grn_file->GrannyFileInfo->ArtToolInfo->FromArtToolName = (char*)Marshal::StringToHGlobalAnsi(_ArtToolInfo->FromArtToolName).ToPointer();
-							_grn_file->GrannyFileInfo->ArtToolInfo->ArtToolMajorRevision = _ArtToolInfo->ToolVersion->Major;
-							_grn_file->GrannyFileInfo->ArtToolInfo->ArtToolMinorRevision = _ArtToolInfo->ToolVersion->Minor;
-							_grn_file->GrannyFileInfo->ArtToolInfo->UnitsPerMeter = _ArtToolInfo->UnitsPerMeter;
-							
-							
-							_grn_file->GrannyFileInfo->ArtToolInfo->Origin[0] = _ArtToolInfo->Vector->Origin.x;
-							_grn_file->GrannyFileInfo->ArtToolInfo->Origin[1] = _ArtToolInfo->Vector->Origin.y;
-							_grn_file->GrannyFileInfo->ArtToolInfo->Origin[2] = _ArtToolInfo->Vector->Origin.z;
-							
-							_grn_file->GrannyFileInfo->ArtToolInfo->RightVector[0] = _ArtToolInfo->Vector->Right.x;
-							_grn_file->GrannyFileInfo->ArtToolInfo->RightVector[1] = _ArtToolInfo->Vector->Right.y;
-							_grn_file->GrannyFileInfo->ArtToolInfo->RightVector[2] = _ArtToolInfo->Vector->Right.z;
-
-							_grn_file->GrannyFileInfo->ArtToolInfo->UpVector[0] = _ArtToolInfo->Vector->Up.x;
-							_grn_file->GrannyFileInfo->ArtToolInfo->UpVector[1] = _ArtToolInfo->Vector->Up.y;
-							_grn_file->GrannyFileInfo->ArtToolInfo->UpVector[2] = _ArtToolInfo->Vector->Up.z;
-
-							_grn_file->GrannyFileInfo->ArtToolInfo->BackVector[0] = _ArtToolInfo->Vector->Back.x;
-							_grn_file->GrannyFileInfo->ArtToolInfo->BackVector[1] = _ArtToolInfo->Vector->Back.y;
-							_grn_file->GrannyFileInfo->ArtToolInfo->BackVector[2] = _ArtToolInfo->Vector->Back.z;
-
-						}
-						#pragma endregion
-
-						#pragma endregion
-						
-						#pragma endregion
+#pragma region ManagedNativeParsing
+	array<Object^>^ ConvertToManaged()
+	{
+		List<Object^> ret = gcnew List<Object^>();
+
+		// Art Tool info
+		ret.Add(ArtToolInfo_ToManaged(_grn_file->GrannyFileInfo->ArtToolInfo));
+
+		return ret.ToArray();
+	}
+	void ConvertToNative()
+	{
+		// Art Tool info
+		ArtToolInfo_ToNative();
+	}
+#pragma endregion
+
+#pragma region ArtToolInfo
+	ArtToolInfo^ ArtToolInfo_ToManaged(granny_art_tool_info* toolinfo)
+	{
+		_ArtToolInfo = gcnew ArtToolInfo();
+		// Tool Name
+		_ArtToolInfo->FromArtToolName = gcnew String(reinterpret_cast<const char*>(toolinfo->FromArtToolName));
+
+		// Tool Vector
+		Vector3* Origin = new Vector3(
+			toolinfo->Origin[0],
+			toolinfo->Origin[1],
+			toolinfo->Origin[2]);
+		Vector3* Right = new Vector3(
+			toolinfo->RightVector[0],
+			toolinfo->RightVector[1],
+			toolinfo->RightVector[2]);
+		Vector3* Up = new Vector3(
+			toolinfo->UpVector[0],
+			toolinfo->UpVector[1],
+			toolinfo->UpVector[2]);
+		Vector3* Back = new Vector3(
+			toolinfo->BackVector[0],
+			toolinfo->BackVector[1],
+			toolinfo->BackVector[2]);
+		_ArtToolInfo->Vector = gcnew ArtToolInfoVector(*Origin,*Right,*Up,*Back);
+
+		// Tool Version
+		_ArtToolInfo->ToolVersion = gcnew ArtToolInfoVersion(toolinfo->ArtToolMajorRevision,toolinfo->ArtToolMinorRevision);
+		// Tool Units Per Meter
+		_ArtToolInfo->UnitsPerMeter = toolinfo->UnitsPerMeter;
+		return _ArtToolInfo;
+	}
+#pragma endregion
+
+#pragma region MarshalToNative
+
+#pragma region ArtToolInfo
+	void ArtToolInfo_ToNative()
+	{
+
+		_grn_file->GrannyFileInfo->ArtToolInfo->FromArtToolName = (char*)Marshal::StringToHGlobalAnsi(_ArtToolInfo->FromArtToolName).ToPointer();
+		_grn_file->GrannyFileInfo->ArtToolInfo->ArtToolMajorRevision = _ArtToolInfo->ToolVersion->Major;
+		_grn_file->GrannyFileInfo->ArtToolInfo->ArtToolMinorRevision = _ArtToolInfo->ToolVersion->Minor;
+		_grn_file->GrannyFileInfo->ArtToolInfo->UnitsPerMeter = _ArtToolInfo->UnitsPerMeter;
+
+
+		_grn_file->GrannyFileInfo->ArtToolInfo->Origin[0] = _ArtToolInfo->Vector->Origin.x;
+		_grn_file->GrannyFileInfo->ArtToolInfo->Origin[1] = _ArtToolInfo->Vector->Origin.y;
+		_grn_file->GrannyFileInfo->ArtToolInfo->Origin[2] = _ArtToolInfo->Vector->Origin.z;
+
+		_grn_file->GrannyFileInfo->ArtToolInfo->RightVector[0] = _ArtToolInfo->Vector->Right.x;
+		_grn_file->GrannyFileInfo->ArtToolInfo->RightVector[1] = _ArtToolInfo->Vector->Right.y;
+		_grn_file->GrannyFileInfo->ArtToolInfo->RightVector[2] = _ArtToolInfo->Vector->Right.z;
+
+		_grn_file->GrannyFileInfo->ArtToolInfo->UpVector[0] = _ArtToolInfo->Vector->Up.x;
+		_grn_file->GrannyFileInfo->ArtToolInfo->UpVector[1] = _ArtToolInfo->Vector->Up.y;
+		_grn_file->GrannyFileInfo->ArtToolInfo->UpVector[2] = _ArtToolInfo->Vector->Up.z;
+
+		_grn_file->GrannyFileInfo->ArtToolInfo->BackVector[0] = _ArtToolInfo->Vector->Back.x;
+		_grn_file->GrannyFileInfo->ArtToolInfo->BackVector[1] = _ArtToolInfo->Vector->Back.y;
+		_grn_file->GrannyFileInfo->ArtToolInfo->BackVector[2] = _ArtToolInfo->Vector->Back.z;
+
+	}
+#pragma endregion
+
+#pragma endregion
+
+#pragma endregion
 private: System::Void mnuItemExit_Click(System::Object^  sender, System::EventArgs^  e) 
 		 {
 			 ConvertToNative();
@@ -269,8 +302,25 @@
 		 }
 private: System::Void mnuItemOpen_Click(System::Object^  sender, System::EventArgs^  e) 
 		 {
-			_grn_file = new grannyfile("C:\\Program Files\\Granny Viewer\\Gryphon.gr2");
-			propgrid->SelectedObjects = ConvertToManaged();
+			 const char* fn = "C:\\Program Files\\Granny Viewer\\Gryphon.gr2";
+			 _grn_file = new grannyfile();
+			 const char* loading_msg = "Loading File: ";
+			 int msg_malloc = (strlen(loading_msg) + strlen(fn));
+			 char* msg = (char*)malloc(msg_malloc);
+			 for (int i=0; i<msg_malloc; i++) {	msg[i] = 0; }
+			 strcat(msg,loading_msg);
+			 strcat(msg,fn);
+			 strcat(msg,"\n");
+			 _grn_file->_logger->LogMessage(msg);
+			 //_grn_file->_logger->SetLogFileName("c:\\gr2_logs",fn);
+			 _grn_file = new grannyfile(fn);
+
+
+			 propgrid->SelectedObjects = ConvertToManaged();
+		 }
+private: System::Void gr2lib_rigeditor_frm_FormClosed(System::Object^  sender, System::Windows::Forms::FormClosedEventArgs^  e) 
+		 {
+			 //TerminateConsoleIO();
 		 }
 };
 //		}

 

  ViewVC Help
Powered by ViewVC 1.1.22