[GME-commit] GMESRC/GME/Gme GMEView.h, 1.76, 1.77 GMEView.cpp, 1.190, 1.191

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Tue Mar 13 12:54:22 CST 2007


Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv20406

Modified Files:
	GMEView.h GMEView.cpp 
Log Message:
Numpad+ zoomin by 5%,
Numpad- zoomout by 5%


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: GMEView.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.190
retrieving revision 1.191
diff -C2 -d -r1.190 -r1.191
*** GMEView.cpp	13 Mar 2007 14:55:05 -0000	1.190
--- GMEView.cpp	13 Mar 2007 18:54:20 -0000	1.191
***************
*** 424,427 ****
--- 424,429 ----
  	ON_COMMAND(ID_FILE_PRINT_DIRECT, CScrollZoomView::OnFilePrint)
  	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CScrollZoomView::OnFilePrintPreview)
+ 	ON_COMMAND(ID_KEY_ZOOMIN, OnZoomIn)
+ 	ON_COMMAND(ID_KEY_ZOOMOUT, OnZoomOut)
  	ON_MESSAGE(WM_USER_ZOOM, OnZoom)
  	ON_MESSAGE(WM_USER_PANNREFRESH, OnPannRefresh)
***************
*** 6922,6925 ****
--- 6924,6941 ----
  	setZoomPoint(curzoom, point);
  	Invalidate();
+ }
+ 
+ void CGMEView::OnZoomIn()
+ {
+ 	int zoom = m_zoomVal+5;
+ 	zoom = (zoom<ZOOM_MIN)? ZOOM_MIN: ((zoom>ZOOM_MAX)? ZOOM_MAX: zoom);
+ 	ZoomPercent( zoom);
+ }
+ 
+ void CGMEView::OnZoomOut()
+ {
+ 	int zoom = m_zoomVal-5;
+ 	zoom = (zoom<ZOOM_MIN)? ZOOM_MIN: ((zoom>ZOOM_MAX)? ZOOM_MAX: zoom);
+ 	ZoomPercent( zoom);
  }
  

Index: GMEView.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/GMEView.h,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -d -r1.76 -r1.77
*** GMEView.h	13 Mar 2007 14:55:05 -0000	1.76
--- GMEView.h	13 Mar 2007 18:54:20 -0000	1.77
***************
*** 439,442 ****
--- 439,444 ----
  	afx_msg void OnCntxDstarSet();
  	afx_msg void OnPrintMetafile();
+ 	afx_msg void OnZoomIn();
+ 	afx_msg void OnZoomOut();
  	afx_msg LRESULT OnZoom(WPARAM wParam, LPARAM lParam);
  	afx_msg LRESULT OnPannScroll(WPARAM wParam, LPARAM lParam);



More information about the GME-commit mailing list