home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / DatabaseKit / PubsDemo / Controller.h next >
Text File  |  1992-07-17  |  1KB  |  51 lines

  1. /* Controller.h:
  2.  * You may freely copy, distribute, and reuse the code in this example.
  3.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  4.  * fitness for any particular use.
  5.  *
  6.  * Written by Mai Nguyen, NeXT Developer Support
  7.  *
  8.  */
  9.  
  10. #import <objc/Object.h>
  11.  
  12.  
  13. @interface Controller:Object
  14. {
  15.     id    theWindow;            /* The main application window */
  16.     id    dbModule;            /* DBModule instance representing the Authors
  17.                                     table */
  18.        id  dbDatabase;            /* the pubs database */    
  19.     id    dbRecordList;
  20.     id    dbTableView;
  21.     id    dbQualifier;
  22.     id    dbFetchGroup;
  23.     id    sortProp;            /* Property used for sorting    */
  24.       id     aValue;                /* a DBValue instance to look at record contents */    
  25.     int recordOrder;        /* Record retrieval order */
  26.     id     formMatrix;            /* Author data form matrix */
  27.     id    qualifierField;        /* Text field to build the query before a SELECT */
  28.     id    textView;            /* ScrollView inside the SQL panel */
  29.     id    queryField;            /* Text field to contain an SQL query */        
  30. }
  31.  
  32. - select:sender;
  33. - insert:sender;
  34. - checkInputRecord:sender;
  35. - display;
  36. - clearData;
  37. - fillNewRecordAt:(int)index;
  38. - changeRetrieveOrder:sender;
  39. - buildSelectQualifier:sender; 
  40. - appendToView:(id)scrollView text:(const char *)newText;
  41. - evaluateSQL:sender;
  42.  
  43. /* Controller Object Delegate methods */
  44. - fetchGroup:fetchGroup didInsertRecordAt:(int)index;
  45. - fetchGroupDidSave:fetchGroup;
  46. - fetchGroupWillFetch:fetchGroup;
  47.  
  48.  
  49. @end
  50.  
  51.