[GME-commit] GMESRC/GME/Gme GMEView.cpp,1.159,1.160

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Wed Jan 5 14:51:03 CST 2005


Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv11272

Modified Files:
	GMEView.cpp 
Log Message:
Fixing the file, since i screwed up the last checkin.


CVS User: zolmol

Index: GMEView.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.159
retrieving revision 1.160
diff -C2 -d -r1.159 -r1.160
*** GMEView.cpp	5 Jan 2005 20:07:01 -0000	1.159
--- GMEView.cpp	5 Jan 2005 20:50:54 -0000	1.160
***************
*** 330,334 ****
--- 330,336 ----
  	ON_COMMAND(ID_FILE_CHECKSEL, OnFileCheckSelected)
  	ON_COMMAND(ID_CNTX_INTERPRET, OnCntxInterpret)
+ 	ON_COMMAND(ID_CNTX_CHECK, OnCntxCheck)
  	ON_UPDATE_COMMAND_UI(ID_CNTX_INTERPRET, OnUpdateCntxInterpret)
+ 	ON_UPDATE_COMMAND_UI(ID_CNTX_CHECK, OnUpdateCntxCheck)
  	ON_COMMAND(ID_CNTX_REGISTRY, OnCntxRegistry)
  	ON_COMMAND(ID_EDIT_REGISTRY, OnEditRegistry)
***************
*** 5292,5295 ****
--- 5294,5322 ----
  }
  
+ void CGMEView::OnCntxCheck()
+ {
+ 	CGMEEventLogger::LogGMEEvent("CGMEView::OnCntxCheck\r\n");
+ 	CGMEEventLogger::LogGMEEvent("    Selected FCOs:");
+ 	GMEEVENTLOG_GUIFCOS(selected);
+ 
+ 	ASSERT(theApp.mgaConstMgr);
+ 	if(!theApp.mgaConstMgr) 
+ 		return;
+ 
+ 	MSGTRY
+ 	{
+ 		CComPtr<IMgaFCO> selfco;
+ 
+ 		if (selected.IsEmpty())
+ 			selfco = currentModel;
+ 		else
+ 		{
+ 			POSITION pos = selected.GetHeadPosition();
+ 			selfco = selected.GetNext(pos)->mgaFco;
+ 		}
+ 		theApp.mgaConstMgr->ObjectsInvokeEx(theApp.mgaProject, selfco, NULL, NULL);
+ 	}
+ 	MSGCATCH("Error while trying to check the selected or current model",;)
+ }
  
  void CGMEView::OnCntxInterpret()
***************
*** 5325,5328 ****
--- 5352,5359 ----
  }
  
+ void CGMEView::OnUpdateCntxCheck(CCmdUI* pCmdUI)
+ {
+ 	pCmdUI->Enable(!selected.IsEmpty()  ||  currentModel != NULL); 
+ }
  
  void CGMEView::OnUpdateCntxInterpret(CCmdUI* pCmdUI)
***************
*** 6301,6303 ****
  	Invalidate();
  	return 0;
! }
\ No newline at end of file
--- 6332,6336 ----
  	Invalidate();
  	return 0;
! }
! 
! 



More information about the GME-commit mailing list