[GME-commit] GMESRC/GME/GMEActiveBrowser ActiveBrowserPropertyPage.cpp,1.54,1.55 GMEActiveBrowser.odl,1.6,1.7 GMEActiveBrowserCtl.cpp,1.15,1.16 GMEActiveBrowserCtl.h,1.7,1.8

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Wed Dec 6 21:26:43 CST 2006


Update of /project/gme-repository/GMESRC/GME/GMEActiveBrowser
In directory escher:/tmp/cvs-serv1003

Modified Files:
	ActiveBrowserPropertyPage.cpp GMEActiveBrowser.odl 
	GMEActiveBrowserCtl.cpp GMEActiveBrowserCtl.h 
Log Message:
When RootFolder name changed , main app notified via a custom Event: RootFolderNameChanged.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: ActiveBrowserPropertyPage.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/GMEActiveBrowser/ActiveBrowserPropertyPage.cpp,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** ActiveBrowserPropertyPage.cpp	6 Dec 2006 20:53:31 -0000	1.54
--- ActiveBrowserPropertyPage.cpp	6 Dec 2006 21:26:41 -0000	1.55
***************
*** 1684,1687 ****
--- 1684,1695 ----
  				// Ending transaction
  				pMgaContext->CommitTransaction();
+ 
+ 				if( !ccpParent) // parentless, means> Root Folder 
+ 				{
+ 					// FireRootFolderNameChanged event fired
+ 					CGMEActiveBrowserApp* pApp=(CGMEActiveBrowserApp*)AfxGetApp();
+ 					pApp->GetCtrl()->FireRootFolderNameChanged();
+ 				}
+ 
  			}MSGCATCH("Error retrieving object name",pMgaContext->AbortTransaction();)	
  		}

Index: GMEActiveBrowser.odl
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/GMEActiveBrowser/GMEActiveBrowser.odl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** GMEActiveBrowser.odl	14 Feb 2006 18:50:15 -0000	1.6
--- GMEActiveBrowser.odl	6 Dec 2006 21:26:41 -0000	1.7
***************
*** 74,77 ****
--- 74,78 ----
  			[id(5)] void ClickMgaObject(IUnknown* pMgaObject);
  			[id(6)] void ShowInParentMgaObject(IUnknown* pMgaObject);
+ 			[id(7)] void RootFolderNameChanged();
  			//}}AFX_ODL_EVENT
  	};

Index: GMEActiveBrowserCtl.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/GMEActiveBrowser/GMEActiveBrowserCtl.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** GMEActiveBrowserCtl.cpp	14 Feb 2006 18:50:15 -0000	1.15
--- GMEActiveBrowserCtl.cpp	6 Dec 2006 21:26:41 -0000	1.16
***************
*** 66,69 ****
--- 66,70 ----
  	EVENT_CUSTOM("ClickMgaObject", FireClickMgaObject, VTS_UNKNOWN)
  	EVENT_CUSTOM("ShowInParentMgaObject", FireShowInParentMgaObject, VTS_UNKNOWN)
+ 	EVENT_CUSTOM("RootFolderNameChanged", FireRootFolderNameChanged, VTS_NONE)
  	//}}AFX_EVENT_MAP
  END_EVENT_MAP()

Index: GMEActiveBrowserCtl.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/GMEActiveBrowser/GMEActiveBrowserCtl.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** GMEActiveBrowserCtl.h	14 Feb 2006 18:50:15 -0000	1.7
--- GMEActiveBrowserCtl.h	6 Dec 2006 21:26:41 -0000	1.8
***************
*** 54,57 ****
--- 54,59 ----
  	void FireShowInParentMgaObject(LPUNKNOWN pMgaObject)
  		{FireEvent(eventidShowInParentMgaObject,EVENT_PARAM(VTS_UNKNOWN), pMgaObject);}
+ 	void FireRootFolderNameChanged()
+ 		{FireEvent(eventidRootFolderNameChanged, EVENT_PARAM(VTS_NONE)); }
  	//}}AFX_EVENT
  	DECLARE_EVENT_MAP()
***************
*** 125,128 ****
--- 127,131 ----
  	eventidClickMgaObject = 5L,
  	eventidShowInParentMgaObject = 6L,
+ 	eventidRootFolderNameChanged = 7L,
  	//}}AFX_DISP_ID
  	};



More information about the GME-commit mailing list