[GME-commit] GMESRC/GME/ObjectInspector ObjectInspectorCtl.cpp,1.35,1.36

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Dec 4 18:54:56 CST 2006


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

Modified Files:
	ObjectInspectorCtl.cpp 
Log Message:
Objects property getter was not implemented.



CVS User: Zoltan Molnar, ISIS (zolmol)

Index: ObjectInspectorCtl.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/ObjectInspector/ObjectInspectorCtl.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** ObjectInspectorCtl.cpp	15 Mar 2006 21:47:14 -0000	1.35
--- ObjectInspectorCtl.cpp	4 Dec 2006 18:54:54 -0000	1.36
***************
*** 189,192 ****
--- 189,198 ----
  {
  	// TODO: Cleanup your control's instance data here.
+ 	m_territory = NULL;
+ 	m_project = NULL;
+ 	m_objects = NULL;
+ 
+ 	m_FCOList.RemoveAll();
+ 	m_FolderList.RemoveAll();
  }
  
***************
*** 316,319 ****
--- 322,326 ----
  	if(newValue==NULL)
  	{
+ 		m_objects.Release();
  		m_FCOList.RemoveAll();
  		m_FolderList.RemoveAll();
***************
*** 350,353 ****
--- 357,361 ----
  		COMTHROW( m_project->CreateTerritory(&m_xEventSink,&m_territory,NULL) );	
  
+ 		m_objects.Release();
  		m_FCOList.RemoveAll();
  		m_FolderList.RemoveAll();
***************
*** 372,375 ****
--- 380,389 ----
  void CObjectInspectorCtrl::SetMgaObjects(LPUNKNOWN newValue) 
  {
+ 	if( !m_project) {
+ 		m_objects.Release();
+ 		m_FCOList.RemoveAll();
+ 		m_FolderList.RemoveAll();
+ 		return;
+ 	}
  	CComQIPtr<IMgaObjects> ccpMgaObjects(newValue);
  	if(!ccpMgaObjects)
***************
*** 427,430 ****
--- 441,445 ----
  
  		RefreshPanels();
+ 		m_objects = ccpMgaObjects;
  		
  	}



More information about the GME-commit mailing list