grep subobject src/*.cc>grepsubobject070220.txt (no comments) ----------------------- src/display.cc:230: topobject->doDraw(); // ReDraw ---> topobj->doDraw ---> subobject::Draw. src/fileio.cc:1262: assert(topobject!= NULL); //bug: subobjects = 0 - RJL 030811 src/fprint.cc:580: current = topobject->subobjects; In void Ggroup::PrintGraphObjectList() //clients: addnode,addlink,doPrint,doDraw,doDump src/graphobject.cc:505: for (current = subobjects; current != (List *) NULL; current = current -> next) In c'tor graphobject::graphobject(hcg_key iid) src/graphobject.cc:534: object->subobjects = new List (this, (List*) object->subobjects); In Ggroup::~Ggroup() src/graphobject.cc:551: if (subobjects != NULL) // to avoid bug RJL 030811 src/graphobject.cc:552: delete subobjects; In graphobject *Ggroup::findbyindex (hcg_key id) src/graphobject.cc:617: for (current = subobjects; current != (List *) NULL; current = current -> next) In void Ggroup::doDraw(): src/graphobject.cc:908: current = topobject->subobjects; // most recent object (prepended to List) In void Ggroup::doPrint(void): src/graphobject.cc:951: current = topobject->subobjects; In void Ggroup::doselection (int absx, int absy) src/graphobject.cc:1058: for (current = topobject->subobjects; current != NULL && src/graphobject.cc:1078: for (current = topobject->subobjects; current != NULL && src/graphobject.cc:1103: if (current != NULL) {//current points to selected subobject src/graphobject.cc:1110: }//topobject->subobjects->object->getcurr() yields cs [NOT XXcurr.RJL040813] In void Ggroup::select_HN(Widget w, int x, int y) src/graphobject.cc:1237: current = topobject->subobjects; #if 0 (commented out old versio of Ggroup::select_HN: 1307-1375) src/graphobject.cc:1321: // topobject->doselection(x, y); //expand to loop to search subobjects src/graphobject.cc:1323: assert(topobject->subobjects!= NULL); src/graphobject.cc:1324: for (current = topobject->subobjects; current != NULL; #endif In int Ggroup::select_CG(Widget w, int x, int y) #if 0 (commented out block) src/graphobject.cc:1416: for(current = topobject->subobjects; current != NULL #endif src/graphobject.cc:1425: for (current = topobject->subobjects; In void Ggroup::select_HL(Widget w, int x, int y) src/graphobject.cc:1497: for(current = topobject->subobjects; current != NULL; In void Ggroup::doDump() #ifdef DEBUG: src/graphobject.cc:1922: List *currentlp; // init to topobject->subobjects below src/graphobject.cc:1937: currentlp = topobject ->subobjects; //List of drawable HN/HL/CG's src/graphobject.cc:1952: printf("\tdoDump: currentlp = topobject->subobjects = %px\n", currentlp); #endif In /*********************** (889-925) ************************* * This action was lifted from doSNR1BUA1 and doSNR2BUA1: - RJL041128 ******************************************************************** */ void doSNR12BUA1(float cx, float cy) // SNR1 and SNR2 BUTTON_UP action: At src/nodeops.cc:920: // side effects of dorecalc? topobject->dorecalc(id); //redundant with cs->recalc()? DP;ReDraw();//doSNR12BUA1: ---> topobj->doDraw() --*> subobject::Draw //updates node's links in/out, but not Captions. Only client: node_resize() (nodeops.cc:635:887) 827: case SResize_node1: //%%SRN1; case BUTTON_UP_EVENT: //%%SRN12BUA1=same action for SRN1,SRN2 827: doSNR12BUA1(center_x, center_y);//WHY? no motion yet-RJL060421 828: //ReDraw(); // node_resize: 050212; removed 060421(not resized) 861: case SResize_node2: //%%SRN2; handle subsequent BUTTON_MOVED and _UP case BUTTON_UP_EVENT: //%%SRN2BUA1 = SRN1BUA1: share same action 861: doSNR12BUA1(center_x, center_y);//==>ReDraw??? 862: ReDraw(); // node_resize: added 050212 (Again???) (Comment out since done by client SRN2BUA1 but not SRN12BUA1 - RJL070220) (BUTTON_MOVED does doresize())