[GME-commit] GMESRC/GME/ObjectInspector ObjectInspector.odl,1.2,1.3 ObjectInspectorCtl.cpp,1.36,1.37 ObjectInspectorCtl.h,1.13,1.14

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Thu Dec 7 19:50:02 CST 2006


Update of /project/gme-repository/GMESRC/GME/ObjectInspector
In directory escher:/tmp/cvs-serv15593

Modified Files:
	ObjectInspector.odl ObjectInspectorCtl.cpp 
	ObjectInspectorCtl.h 
Log Message:
RootFolderNameChanged event added to ObjectInspector.
Fired when rootfolder name is edited in edit field.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: ObjectInspectorCtl.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/ObjectInspector/ObjectInspectorCtl.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** ObjectInspectorCtl.cpp	4 Dec 2006 18:54:54 -0000	1.36
--- ObjectInspectorCtl.cpp	7 Dec 2006 19:49:59 -0000	1.37
***************
*** 984,988 ****
  void CObjectInspectorCtrl::WriteNameToMga(const CString &strName)
  {
! 
  	CComPtr<IMgaMetaProject> ccpMetaProject;
  	try
--- 984,988 ----
  void CObjectInspectorCtrl::WriteNameToMga(const CString &strName)
  {
! 	bool rootfolder_name_edited = false;
  	CComPtr<IMgaMetaProject> ccpMetaProject;
  	try
***************
*** 1041,1044 ****
--- 1041,1045 ----
  			{
  				COMTHROW(m_project->put_Name(bstrName));
+ 				rootfolder_name_edited = true;
  			}
  
***************
*** 1051,1054 ****
--- 1052,1060 ----
  			COMTHROW(m_project->CommitTransaction());
  		}		
+ 
+ 		if( rootfolder_name_edited)
+ 		{
+ 			this->FireRootFolderNameChanged();
+ 		}
  	}
  	catch (hresult_exception e)

Index: ObjectInspectorCtl.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/ObjectInspector/ObjectInspectorCtl.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** ObjectInspectorCtl.h	26 Jan 2005 17:30:57 -0000	1.13
--- ObjectInspectorCtl.h	7 Dec 2006 19:49:59 -0000	1.14
***************
*** 96,99 ****
--- 96,101 ----
  // Event maps
  	//{{AFX_EVENT(CObjectInspectorCtrl)
+ 	void FireRootFolderNameChanged()
+ 		{FireEvent(eventidRootFolderNameChanged, EVENT_PARAM(VTS_NONE)); }
  	//}}AFX_EVENT
  	DECLARE_EVENT_MAP()
***************
*** 130,133 ****
--- 132,136 ----
  	dispidShowPanel = 3L,
  	dispidEditName = 4L,
+ 	eventidRootFolderNameChanged = 1L
  	//}}AFX_DISP_ID
  	};

Index: ObjectInspector.odl
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/ObjectInspector/ObjectInspector.odl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ObjectInspector.odl	29 Nov 2001 20:07:00 -0000	1.2
--- ObjectInspector.odl	7 Dec 2006 19:49:59 -0000	1.3
***************
*** 55,58 ****
--- 55,59 ----
  			//    Use extreme caution when editing this section.
  			//{{AFX_ODL_EVENT(CObjectInspectorCtrl)
+ 			[id(1)] void RootFolderNameChanged();
  			//}}AFX_ODL_EVENT
  	};



More information about the GME-commit mailing list