[GME-commit] GMESRC/GME/Gme/AutoRoute AutoRouter.cpp,1.8,1.9

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Jul 19 11:23:01 CDT 2004


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

Modified Files:
	AutoRouter.cpp 
Log Message:
Enhanced handling of project properties

CVS User: volgy

Index: AutoRouter.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/AutoRoute/AutoRouter.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** AutoRouter.cpp	7 Feb 2003 15:11:24 -0000	1.8
--- AutoRouter.cpp	19 Jul 2004 15:22:59 -0000	1.9
***************
*** 60,63 ****
--- 60,64 ----
  			if (obj->IsVisible()) {
  				obj->SetRouterBox(0);
+ 				obj->SetRouterNameBox(0);
  				POSITION ppos = obj->GetPorts().GetHeadPosition();
  				while (ppos) {
***************
*** 178,181 ****
--- 179,188 ----
  	CRect loc = object->GetLocation();
  	box->SetRect(loc);
+ 	
+ 	CArBox *nameBox;
+ 	nameBox = router->CreateBox();
+ 	CRect nameLoc = object->GetNameLocation();
+ 	nameBox->SetRect(nameLoc);
+ 
  	CGuiPortList &ports = object->GetPorts();
  	POSITION pos = ports.GetHeadPosition();
***************
*** 191,195 ****
--- 198,204 ----
  
  	object->SetRouterBox(box);
+ 	object->SetRouterNameBox(nameBox);
  	router->Add(box);
+ 	router->Add(nameBox);
  }
  
***************
*** 236,240 ****
--- 245,251 ----
  	if (object->IsVisible()) {
  		router->Delete(object->GetRouterBox());
+ 		router->Delete(object->GetRouterNameBox());
  		object->SetRouterBox(0);
+ 		object->SetRouterNameBox(0);
  		ClearRouterPorts(object->GetPorts());
  	}
***************
*** 287,290 ****
--- 298,302 ----
  		CGuiObject *obj = objectList.GetNext(pos);
  		router->ShiftBy(obj->GetRouterBox(),offs);
+ 		router->ShiftBy(obj->GetRouterNameBox(),offs);
  	}
  	AutoRoute();



More information about the GME-commit mailing list