home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / desklib / examples / DeskLib / Examples / Widget5 / !Widget5 / h / CheckBanks < prev    next >
Encoding:
Text File  |  1995-05-01  |  2.3 KB  |  78 lines

  1. /************************************************************************
  2.  *                                                                      *
  3.  *        File: CheckBanks.h                                            *
  4.  *                                                                      *
  5.  *     Purpose: Provides routines to keep the state of the image bank   *
  6.  *              icons updated.                                          *
  7.  *                                                                      *
  8.  ************************************************************************/
  9.  
  10.  
  11.  /*
  12.   * definition of the closewindow routine that get called when the
  13.   * window is / has to be closed
  14.   */
  15. typedef void (*closewindow_routine)(BOOL ok, BOOL keepopen, void *range); 
  16.  
  17.  /*
  18.   * information block passed to all the procedures
  19.   */
  20. typedef struct {
  21.    window_handle window;
  22.    int min;
  23.    int max;
  24.    int sourceimage; /* only used for scan destination and scan source */
  25.    closewindow_routine close;   /* only used for scan destination */
  26.    wimp_point size;             /* only used for scan destination and scan source */
  27. } iconrange_block;
  28.  
  29.  /*
  30.   * initialisation to be done on startup
  31.   */
  32. extern void CheckBanks_Init(void);
  33.  
  34.  /*
  35.   * install routines to update image bank radios to make used banks greyed out
  36.   */
  37. extern void CheckBanks_InstallScanFree(iconrange_block *range);
  38.  
  39.  /*
  40.   * remove routines which update image bank radios to make used banks greyed out
  41.   */
  42. extern void CheckBanks_RemoveScanFree(iconrange_block *range);
  43.  
  44.  
  45.  /*
  46.   * return the number of the image bank selected
  47.   */
  48. extern int image_getselect(iconrange_block *range);
  49.  
  50.  
  51.  /*
  52.   * install routines to update image bank radios to make unusable banks greyed out
  53.   */
  54. extern void CheckBanks_InstallScanDestination(iconrange_block *range);
  55.  
  56.  /*
  57.   * remove routines that update image bank radios to make unusable banks greyed out
  58.   */
  59. extern void CheckBanks_RemoveScanDestination(iconrange_block *range);
  60.  
  61.  
  62.  /*
  63.   * install routines to update image bank radios to greyed out unusable input
  64.   * images
  65.   */
  66. extern void CheckBanks_InstallScanSource(iconrange_block *range);
  67.  
  68.  /*
  69.   * remove routines to update image bank radios to greyed out unusable input
  70.   * images
  71.   */
  72. extern void CheckBanks_RemoveScanSource(iconrange_block *range);
  73.  
  74.  
  75.  
  76.  
  77.  
  78.