home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / Examples / AppKit / TravelAdvisor / TAController.h < prev    next >
Encoding:
Text File  |  1996-01-05  |  1.3 KB  |  61 lines

  1.  
  2. #import <AppKit/AppKit.h>
  3. #import <Foundation/Foundation.h>
  4. #import "Country.h"
  5.  
  6. enum LogisticsFormTags {
  7.     LGairports=0,
  8.     LGairlines,
  9.     LGtransportation,  
  10.     LGhotels  
  11. };
  12.  
  13.  
  14. @interface TAController:NSObject
  15. {
  16.     id    tableView;
  17.     id    celsius;
  18.     id  commentsLabel;
  19.     id    commentsField;
  20.     id  converter;
  21.     id    countryField;
  22.     id  currencyDollarsField;
  23.     id  currencyLocalField;
  24.     id    currencyNameField;
  25.     id    currencyRateField;
  26.     id    englishSpokenSwitch;
  27.     id    fahrenheit;
  28.     id    languagesField;
  29.     id    logisticsForm;
  30.  
  31.     NSMutableDictionary *countryDict;
  32.     NSMutableArray *countryKeys;
  33.     BOOL recordNeedsSaving;
  34. }
  35.  
  36. /* target/action */
  37. - (void)addRecord:(id)sender;
  38. - (void)convertCelsius:(id)sender;
  39. - (void)convertCurrency:(id)sender;
  40. - (void)deleteRecord:(id)sender;
  41. - (void)handleTVClick:(id)sender;
  42. - (void)blankFields:(id)sender;
  43. - (void)nextRecord:(id)sender;
  44. - (void)priorRecord:(id)sender;
  45. - (void)switchChecked:(id)sender;
  46.  
  47. /* Data read and write methods */
  48. - (void)populateFields:(Country *)aRec;
  49. - (void)extractFields:(Country *)aRec;
  50.  
  51. /* housekeeping methods */
  52. - (id)init;
  53. - (void)awakeFromNib;
  54. - (void)dealloc;
  55.  
  56. /* delegate and notification methods */
  57. - (void)textDidChange:(NSNotification *)notification;
  58. - (BOOL)applicationShouldTerminate:(id)sender;
  59.  
  60. @end
  61.