home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WSTBSK.ZIP / WASTEBSK.SC < prev    next >
Text File  |  1992-06-08  |  7KB  |  181 lines

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: wastebsk.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7. #include "wpfolder.sc"
  8.  
  9. class: WPWasteBskt, 
  10.     file stem = wastebsk, external prefix = wpwastebskt_, class prefix = wpwastebsktcls_, 
  11.     major version = 1, minor version = 1, local;
  12.  
  13.     --  PWFolder is a replacement for the shredder
  14.     --  It is derived as follows:
  15.     --         SOMOject
  16.     --           - WPObject
  17.     --              - WPFileSystem
  18.     --                 - WPFolder
  19.     --                    - WPWasteBskt
  20.  
  21.  
  22. parent class: WPFolder;
  23.  
  24.  
  25. release order:
  26.     SetAutoEmptyFlag, QueryAutoEmptyFlag;
  27.  
  28. methods:
  29.  
  30.  
  31.     override wpInitData;
  32.  
  33.     -- 
  34.     --   METHOD:   wpInitData                                  PUBLIC
  35.     --   PURPOSE:  Initializes instance data
  36.     --   INVOKED:  By Workplace Shell, upon instantiation of the object instance.
  37.     -- 
  38.  
  39.     override wpModifyPopupMenu;
  40.  
  41.     -- 
  42.     --   METHOD:   wpModifyPopupMenu                           PUBLIC
  43.     --   PURPOSE:  Adds an additional "Empty now" item to the object's context menu.
  44.     --   INVOKED:  By Workplace Shell, upon instantiation of the object instance.
  45.     -- 
  46.  
  47.     override wpMenuItemSelected;
  48.  
  49.     -- 
  50.     --   METHOD:   wpMenuItemSelected                          PUBLIC
  51.     --   PURPOSE:  Processes the user's selections from the context menu.  The
  52.     --             overridden method processes only the added "Empty now" item, before
  53.     --             invoking the parent's default processing to handle other items.
  54.     --   INVOKED:  By Workplace Shell, upon selection of a menu item by the user.
  55.     -- 
  56.  
  57.     override wpSetup;
  58.  
  59.     -- 
  60.     --   METHOD:   wpSetup                                     PUBLIC
  61.     --   PURPOSE:  Sets folder properties based upon a setup string passed by the
  62.     --             object's creator as part of the WinCreateObject() call.  The
  63.     --             overridden method simply processes the AUTOEMPTY keyword to set
  64.     --             the folder's autoempty status and period, before
  65.     --             invoking the parent's default processing to handle all other
  66.     --             keywords.
  67.     --   INVOKED:  By the Workplace Shell, upon instantiation of the object
  68.     --             instance.
  69.     -- 
  70.  
  71.     override wpSaveState;
  72.  
  73.     -- 
  74.     --   METHOD:   wpSaveState                                 PUBLIC
  75.     --   PURPOSE:  Saves the object instance's persistent state data.  The
  76.     --             overridden method simply saves the autoempty info , then invokes
  77.     --             the parent's default processing to handle any other instance
  78.     --             data defined by ancestor classes.
  79.     --   INVOKED:  By the Workplace Shell, when the object becomes dormant.
  80.  
  81.     override wpRestoreState;
  82.  
  83.     -- 
  84.     --   METHOD:   wpRestoreState                              PUBLIC
  85.     --   PURPOSE:  Restores the object instance's persistent state data.  The
  86.     --             overridden method simply restores the autoempty data, then
  87.     --             invokes the parent's default processing to handle any other
  88.     --             instance data defined by ancestor classes.
  89.     --   INVOKED:  By the Workplace Shell, when the object becomes awake.
  90.     -- 
  91.  
  92.     override wpQueryStyle;
  93.  
  94.     -- 
  95.     --   METHOD:   wpQueryStyle                                 PUBLIC
  96.     --   PURPOSE: Allows us to force a style such as OBJSYTLE_NOCOPY or NODELETE
  97.     --   INVOKED:  By the Workplace Shell, when object(s) are dragged over the wastebasket
  98.     -- 
  99.  
  100.     override wpDragOver;
  101.  
  102.     -- 
  103.     --   METHOD:   wpDragOver                                 PUBLIC
  104.     --   PURPOSE: To detect if the user is trying to drag permanent/undeletable objects to
  105.     --               the wastebasket.  If they are, we will put up the no-drop sign.
  106.     --   INVOKED:  By the Workplace Shell, when object(s) are dragged over the wastebasket
  107.     -- 
  108.  
  109.     override wpDrop;
  110.  
  111.     -- 
  112.     --   METHOD:   wpDrop                                 PUBLIC
  113.     --   PURPOSE:  Allows us to put up a dialog when the user trys to drop on the wastebasket.
  114.     --   INVOKED:  By the Workplace Shell, when object(s) are dropped on the wastebasket
  115.     -- 
  116.  
  117.     override wpAddFolderIncludePage;
  118.  
  119.     -- 
  120.     --   METHOD:   wpAddFolderIncludePage                                 PUBLIC
  121.     --   PURPOSE:  Allows us to remove the include page so the user can't hide any of the
  122.     --               items in the waste basket.  This is important for we want the user to
  123.     --               always see the items so that something important is not accidentally
  124.     --               emptied.
  125.     --   INVOKED:  By the Workplace Shell, when the include page is added to the settings view.
  126.     -- 
  127.  
  128.     override wpAddSettingsPages;
  129.  
  130.     -- 
  131.     --   METHOD:   wpAddSettingsPages                              PUBLIC
  132.     --   PURPOSE:  Allows us to add the AutoEmpty page to the settings view.
  133.     --   INVOKED:  By the Workplace Shell, when the settings view is openned.
  134.     -- 
  135.  
  136.     override wpclsQueryTitle, class;
  137.  
  138.     -- 
  139.     --   METHOD:   wpclsQueryTitle                             PUBLIC
  140.     --   PURPOSE:  This class method returns the default folder title for any
  141.     --             instance of the password protected folder class.  This title
  142.     --             is used if a title is not supplied in the WinCreateObject()
  143.     --             call.
  144.     --   INVOKED:  By the Workplace Shell, upon instantiation of the object
  145.     --             instance.
  146.     -- 
  147.  
  148.     override wpclsInitData, class;
  149.  
  150.     -- 
  151.     --   METHOD:   wpclsInitData                               PUBLIC
  152.     --   PURPOSE:  This class method allows the initialization of any class data
  153.     --             items.  The overridden method simply obtains a module handle
  154.     --             to be used when accessing Presentation Manager resources, then
  155.     --             invokes the parent's default processing.
  156.     --   INVOKED:  By the Workplace Shell, upon loading the class DLL.
  157.     -- 
  158.  
  159.     override wpclsQueryIcon, class;
  160.  
  161.     -- 
  162.     --   METHOD:   wpclsQueryIcon                                 PUBLIC
  163.     --   PURPOSE:  This class method returns the handle to the default icon for
  164.     --             the class. Allows setting of the icon to a wastebasket.
  165.     --   INVOKED:  By the Workplace Shell, upon instantiation of the object
  166.     --             instance.
  167.     -- 
  168.  
  169.     override wpclsUnInitData, class;
  170.  
  171.     -- 
  172.     --   METHOD:   wpclsUnInitData                             PUBLIC
  173.     -- 
  174.     --   PURPOSE:  This class method allows the release of any class data items
  175.     --             or resources.  The overridden method releases the module handle
  176.     --             obtained by wpclsInitData, then invokes the parent's default
  177.     --             processing.
  178.     --   INVOKED:  By the Workplace Shell, upon unloading the class DLL.
  179.     -- 
  180.  
  181.