Object Oriented Analysis And Design Project Report Fall 2001 Due: Dec. 19th 01 RJLRef: $CASE/01f522/bde2_bdeState/01f522bdeStateProjRept.txt This is concat of two files: 01f522bdeStateProjPlan.txt, 01f522bdeStateStatusRept.011223 Team Members ------------ Cris Fernandes, Ngoc Nguyen, Suryamani Sastry, Anvi Vu Project Statement ----------------- Replace bde’s state.h and dobuttonevent in smselect.cc; refactor left_menu*.cc and rename all canvas states. Project Group’s Aim ------------------- Our aim is to make the following changes and make the bde compile. 1. Split the file "bdescv7.cpp" into "bdeState.h" and "bdeState.cpp". - add global variable BdeState* bdeState - Do not include Widget stwidget in BdeState class 2. Remove Select class in "graph.h" - Replace bdeState class for Select class 3. Replace Select selected instances by BdeState* bdeState in all files in which Select selected occurs 4. Move dostate() function from smselect.cc into BdeState class. - Modify dostate() - Remove smselect.cc 5. In fileio.cc, replace dostate(valuemenu,SCNode,NULL) by bdeState->dostate(1,0) 6. Modify state.h by Renaming and Recalculating all state names and values. 7. In buttonevent.cc, modify dobuttonevent() and replace switch(state) by switch(ttyp) and switch(oper). - Need to pass in "step" values instead of state values into all menu functions such as node_delete (event, step, attribute, button_op) 8. In leftmenu_cb.cc, need to modify all calls to dostate() and others. 9. Replace all occurences of selected inside *ops.cc by bdeState - Change switch(state) to switch(step) - Step values usually goes from 0 to 2 - REPLACE "extern Select selected" by "extern BdeState* bdeState" Work Assignment for each member ------------------------------- There are 31 files to be updated including the six *ops.cc files. The following is the list of the files that each person updated. Anvi Vu graph.h buttonevent.cc fileio.cc Ngoc Nguyen state.h bdeState.h bdeState.cpp leftmenu_cb.cc smselect.cc Cris Fernandes All the *ops.cc files bendptops.cc captionops.cc graphops.cc linkups.cc nodeops.cc textops.cc Suryamani Sastry Project documentation and Report bde.cc bendpt.cc cursor.cc dialog.cc display.cc draw.cc edit.cc font.cc fprint.cc graphobject.cc handler.cc select.cc text.cc strdup.cc Documentation Location ---------------------- (see RJLRef: above) Script File Location -------------------- /usr/proj3/case/01f522/bde2_bdeState/bde/logfile Modified Files Location ----------------------- usr/proj3/case/01f522/bde2_bdeState/bde/src usr/proj3/case/01f522/bde2_bdeState/bde/include ==================================================== From ssastry@cs.uml.edu Sun Dec 23 19:24:33 2001 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello Dr. Lechner, We made some changes and some of the errors were removed. Many of the files changed compile , but there is problem with "leftmenu_cb.cc". >>>>RJL 021103: Note that 24 files beyond left_menu_cb were not analyzed: saturn.cs.uml.edu(370)> pwd /usr/proj3/case/01f522/bde2_bdeState/bde/src saturn.cs.uml.edu(371)> lg *.cc | wc 41 369 2685 saturn.cs.uml.edu(372)> lg *.o | wc 24 216 1537 The left_menu_cb errors MAY be due to two xm* refs instead of Xm* : saturn.cs.uml.edu(386)> grep Xm leftmenu_cb.cc|wc 275 1299 15205 saturn.cs.uml.edu(387)> grep xm leftmenu_cb.cc | wc 2 6 147 However, there are MANY such xm refs: saturn.cs.uml.edu(394)> grep Xm *.cc|wc 1105 4496 68499 saturn.cs.uml.edu(395)> grep xm *.cc|wc 74 310 5281 This is OK - the most recent bde also has similar counts: saturn.cs.uml.edu(402)> pwd /usr/cs/fac1/lechner/bde2alpha_rl/sandbox/bdecheckout/bde/src saturn.cs.uml.edu(400)> grep Xm *.cc|wc 1129 4597 69470 saturn.cs.uml.edu(401)> grep xm *.cc | wc 75 317 5310 I did make clean, xmkmf -a and make again. More errors than below, and g++ -g still aborted after leftmenun_cb.cc. See bde/bdemake021103.0230. <<<< > making all in ./pr_util... > > making all in ./src... > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include graphobject.cc > > graphobject.cc:174: warning: `char rcsid[65]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include graphops.cc > > graphops.cc:107: warning: `char rcsid[62]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include handler.cc > > handler.cc:43: warning: `char rcsid[61]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include help.cc > > help.cc:41: warning: `char rcsid[52]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include hlink.cc > > hlink.cc:141: warning: `char rcsid[58]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include infodialog.cc > > infodialog.cc:42: warning: `char rcsid[64]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include infomessage.cc > > infomessage.cc:43: warning: `char rcsid[59]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include init.cc > > init.cc:166: warning: `char rcsid[57]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include initClasses.cc > > initClasses.cc:65: warning: `char rcsid[64]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include leftmenu.cc > > leftmenu.cc:59: warning: `char rcsid[61]' defined but not used > > g++ -c -DGENV11 -DDEBUG > > -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="96subde_schema.h" > > -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\"../lib\" -g > > -Wall -I/usr/include -I../include -I../pr_util > > -I/usr/local/lib/g++-include leftmenu_cb.cc > > leftmenu_cb.cc: In function `void class_cb(_WidgetRec *, void *, > > XmToggleButtonCallbackStruct *)': > > leftmenu_cb.cc:246: implicit declaration of function `int > > XmToggleButtonGetState(...)' > > leftmenu_cb.cc: In function `void link_restyle(_WidgetRec *)': > > leftmenu_cb.cc:617: `xmFrameWidgetClass' undeclared (first use this > > function) > > leftmenu_cb.cc:617: (Each undeclared identifier is reported only once > > leftmenu_cb.cc:617: for each function it appears in.) > > leftmenu_cb.cc:621: `xmRowColumnWidgetClass' undeclared (first use this > > function) > > leftmenu_cb.cc: At top level: > > leftmenu_cb.cc:145: warning: `char rcsid[60]' defined but not used > > leftmenu_cb.cc:1037: warning: `void caption_val_cb(_WidgetRec *, void *, > > XmAnyCallbackStruct *)' defined but not used > > *** Exit 1 > > Stop. > > *** Exit 1 > > Stop.