home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / RB3641.ZIP / EX2 / TDLIST2.ST < prev    next >
Text File  |  1991-12-18  |  2KB  |  67 lines

  1.        Exercise 2 - solutions
  2.  
  3.         ToDoListView & ToDoTopPane class
  4.       ( * This is the step by step instruction file ** )
  5.  
  6. "To install the two toppane class, evaluate the following with DoIt:"
  7.  
  8.   (File pathName: 'ex2\CUATopP.cls') fileIn; close.
  9.   (File pathName: 'ex2\TDTopP1.cls') fileIn; close.
  10.  
  11. "Test the new toppane.  Evaluate the following expression
  12.   with DoIt to open the window "
  13.  
  14.    ToDoTopPane new open
  15.  
  16. "To go on the exercises, install the following classes"
  17.  
  18.   (File pathName: 'ex2\TDlistV1.cls') fileIn; close.
  19.   (File pathName: 'ex2\ToDoItem.cls') fileIn; close.
  20.   (File pathName: 'ex2\ToDoPri.cls') fileIn; close.
  21.   (File pathName: 'ex2\ToDoList.cls') fileIn; close.
  22.   (File pathName: 'ex1\TDAbtDlg.cls') fileIn; close.
  23.   (File pathName: 'ex2\ToDoApp1.cls') fileIn; close.
  24.  
  25. "Run the ToDoList Application.
  26.   Evaluate the following expression:"
  27.  
  28.   ToDoListView new open
  29.  
  30. "In the following exercises, the sort function will be
  31.   implemented."
  32.  
  33. "(1). Update the 'sortByType', 'sortByPriority',
  34.         'sortByDescription' and 'sortByDeadline 
  35.          in the ToDoTopPane class"
  36.  
  37. "To install the those methods, evaluate the following:"
  38.  
  39.   (File pathName: 'ex2\sortBy1.mth') fileIn; close.
  40.  
  41. "(2). Update the 'sortBy in the ToDoListView class"
  42.  
  43. "To install the method, evaluate the following:"
  44.  
  45.   (File pathName: 'ex2\sortBy2.mth') fileIn; close.
  46.  
  47. "In the following exercise, the 'Help' function will be
  48.   implemented. To do that, the 'open' method must be
  49.   updated."
  50. "Add the following expression to the 'open' method.
  51.  That must be put before the line of 'self openWindow' "
  52.  
  53.     HelpManager for: (self mainView) 
  54.                            title: 'Help' 
  55.                            file: 'todo.hlp' 
  56.                            dialogs:#()
  57.              aboutDlgClass: (ToDoAboutDialogBox initialize). 
  58.  
  59. "To install the completed classes, 
  60.                   evaluate the following with DoIt:"
  61.  
  62.   (File pathName: 'ex2\TDTopP2.cls') fileIn; close.
  63.   (File pathName: 'ex2\TDListV2.cls') fileIn; close.
  64.  
  65. "**************** END OF EXERECISES **************"
  66.  
  67.