/[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/08/02 02:25:56	24
+++ trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h	2010/08/02 03:33:24	26
@@ -128,6 +128,7 @@
 private: System::Windows::Forms::OpenFileDialog^  RigLoader;
 private: System::Windows::Forms::ToolStripMenuItem^  mnuTestExporterInfoReturnValues;
 private: System::Windows::Forms::SaveFileDialog^  RigSaver;
+private: System::Windows::Forms::ToolStripMenuItem^  mnuItemClose;
 
 
 
@@ -160,6 +161,7 @@
 		this->mnuTestExporterInfoReturnValues = (gcnew System::Windows::Forms::ToolStripMenuItem());
 		this->RigLoader = (gcnew System::Windows::Forms::OpenFileDialog());
 		this->RigSaver = (gcnew System::Windows::Forms::SaveFileDialog());
+		this->mnuItemClose = (gcnew System::Windows::Forms::ToolStripMenuItem());
 		this->mainmenu->SuspendLayout();
 		this->SuspendLayout();
 		// 
@@ -184,8 +186,8 @@
 		// 
 		// mnuFile
 		// 
-		this->mnuFile->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->mnuItemOpen, 
-			this->mnuItemSave, this->mnuItemSaveAs, this->mnuItemExit});
+		this->mnuFile->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(5) {this->mnuItemOpen, 
+			this->mnuItemClose, this->mnuItemSave, this->mnuItemSaveAs, this->mnuItemExit});
 		this->mnuFile->Name = L"mnuFile";
 		this->mnuFile->Size = System::Drawing::Size(37, 20);
 		this->mnuFile->Text = L"&File";
@@ -193,28 +195,28 @@
 		// mnuItemOpen
 		// 
 		this->mnuItemOpen->Name = L"mnuItemOpen";
-		this->mnuItemOpen->Size = System::Drawing::Size(114, 22);
+		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(114, 22);
+		this->mnuItemSave->Size = System::Drawing::Size(152, 22);
 		this->mnuItemSave->Text = L"&Save";
 		this->mnuItemSave->Click += gcnew System::EventHandler(this, &gr2lib_rigeditor_frm::mnuItemSave_Click);
 		// 
 		// mnuItemSaveAs
 		// 
 		this->mnuItemSaveAs->Name = L"mnuItemSaveAs";
-		this->mnuItemSaveAs->Size = System::Drawing::Size(114, 22);
+		this->mnuItemSaveAs->Size = System::Drawing::Size(152, 22);
 		this->mnuItemSaveAs->Text = L"Save &As";
 		this->mnuItemSaveAs->Click += gcnew System::EventHandler(this, &gr2lib_rigeditor_frm::mnuItemSaveAs_Click);
 		// 
 		// mnuItemExit
 		// 
 		this->mnuItemExit->Name = L"mnuItemExit";
-		this->mnuItemExit->Size = System::Drawing::Size(114, 22);
+		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);
 		// 
@@ -261,6 +263,13 @@
 		this->RigSaver->SupportMultiDottedExtensions = true;
 		this->RigSaver->Title = L"Please select the Granny2 Rig to write to or create";
 		// 
+		// mnuItemClose
+		// 
+		this->mnuItemClose->Name = L"mnuItemClose";
+		this->mnuItemClose->Size = System::Drawing::Size(152, 22);
+		this->mnuItemClose->Text = L"&Close";
+		this->mnuItemClose->Click += gcnew System::EventHandler(this, &gr2lib_rigeditor_frm::mnuItemClose_Click);
+		// 
 		// gr2lib_rigeditor_frm
 		// 
 		this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
@@ -653,6 +662,10 @@
 			 const char* filename = (char*)Marshal::StringToHGlobalAnsi(RigSaver->FileName).ToPointer();
 			 GrannyFileWriter::WriteFile(filename,_grn_file->GrannyFileInfo,_grn_file->_logger);			  
 		 }
+private: System::Void mnuItemClose_Click(System::Object^  sender, System::EventArgs^  e) 
+		 {
+			  propgrid->SelectedObject = NULL;
+		 }
 };
 //		}
 //	}

 

  ViewVC Help
Powered by ViewVC 1.1.22