[commit] r1535 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Sep 14 15:56:22 CDT 2011


Author: ksmyth
Date: Wed Sep 14 15:56:21 2011
New Revision: 1535

Log:
Dont reset the view on every activate. Make alt-tab very slow

Modified:
   trunk/GME/Gme/GMEView.cpp

Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp	Wed Sep 14 15:56:11 2011	(r1534)
+++ trunk/GME/Gme/GMEView.cpp	Wed Sep 14 15:56:21 2011	(r1535)
@@ -66,10 +66,7 @@
 
 // #define END_SCROLL_OFFSET 50 // not used - instead EXTENT_ERROR_CORR
 
-#ifdef _DEBUG
-//#define CONSIDER_ONLY_FIRST_ACTIVATE
-#endif
-
+#define CONSIDER_ONLY_FIRST_ACTIVATE
 
 /////////////////////////////////////////////////////////////////////////////
 // CViewDriver
@@ -1073,7 +1070,16 @@
 
 	CGMEEventLogger::LogGMEEvent(_T("CGMEView::OnInitialUpdate() - opened model: ")+path+name+_T("\r\n"));
 
-	// AutoRoute();
+	modelGrid.Clear();
+	FillModelGrid();
+	AutoRoute();
+	ClearConnSpecs();
+	if(guiMeta) {
+		theApp.UpdateCompList4CurrentKind( guiMeta->name);
+		CMainFrame::theInstance->SetPartBrowserMetaModel(guiMeta);
+		CMainFrame::theInstance->SetPartBrowserBg(bgColor);
+		CMainFrame::theInstance->ChangePartBrowserAspect(currentAspect->index);
+	}
 	TRACE(_T("CGMEView::OnInitialUpdate DoPannWinRefresh\n"));
 	DoPannWinRefresh(); // terge - new window opened
 	SetScroll();
@@ -7044,6 +7050,7 @@
 			CMainFrame::theInstance->SetPartBrowserBg(bgColor);
 			CMainFrame::theInstance->ChangePartBrowserAspect(currentAspect->index);
 		}
+		DoPannWinRefresh();
 	}
 	else if(tmpConnectMode) {
 		tmpConnectMode = false;
@@ -7061,9 +7068,8 @@
 	if (bActivate)
 	{
 //		if (gmeviewA  &&  guiMeta)
-		{
+            {
 			TRACE(_T("CGMEView::OnActivateView DoPannWinRefresh\n"));
-			DoPannWinRefresh();
 		}
 	}
 	TRACE(_T("CGMEView::OnActivateView final false\n"));


More information about the gme-commit mailing list