home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Utilities / Comics-1.0-MIS / InputController.h < prev    next >
Encoding:
Text File  |  1997-09-25  |  2.5 KB  |  98 lines

  1. #import <AppKit/AppKit.h>
  2.  
  3. /*
  4.  File:       InputController.h
  5.  
  6.  Contains:   Header file for the Controller of the "Input" window, see also PopupInTable.h
  7.  
  8.  Written by: Eric Simenel
  9.  
  10.  Created:    May 1997
  11.  
  12.  Copyright:  (c)1997 by Apple Computer, Inc., all rights reserved.
  13.  
  14.  Change History (most recent first):
  15.  
  16.  You may incorporate this sample code into your applications without
  17.  restriction, though the sample code has been provided "AS IS" and the
  18.  responsibility for its operation is 100% yours.  However, what you are
  19.  not permitted to do is to redistribute the source as "DSC Sample Code"
  20.  after having made changes. If you're going to re-distribute the source,
  21.  we require that you make it clear in the source that the code was
  22.  descended from Apple Sample Code, but that you've made changes.
  23. */
  24.  
  25. @interface InputController : NSObject
  26. {
  27.     id inputView;
  28.     id nbIssues;
  29.     id nbSelTitles;
  30.     id nbTitles;
  31.     id curBuyMonth;
  32.     id curEditMonth;
  33.     id selBuyMonth;
  34.     id selEditMonth;
  35.  
  36.     id puit;
  37.     
  38.     NSMutableArray *array;
  39.     short *curIshArray;
  40.     short nbRows;
  41.  
  42.     short brand;
  43.     short kind;
  44.     short series;
  45.     short state;
  46.     short sort;
  47.     
  48.     short theBuyMonth;
  49.     short theEditMonth;
  50.  
  51.     NSScroller *myVerticalScroller;
  52.     id saveVerticalScrollerTarget;
  53.     SEL saveVerticalScrollerAction;
  54.  
  55.     NSColor* arrCol[6];
  56.     NSFont *fontProp, *fontNonProp;
  57. }
  58.  
  59. - (id)init;
  60. - (void)awakeFromNib;
  61.  
  62. - (void)brandSelect:(id)sender;
  63. - (void)kindSelect:(id)sender;
  64. - (void)seriesSelect:(id)sender;
  65. - (void)sortSelect:(id)sender;
  66. - (void)stateSelect:(id)sender;
  67.  
  68. - (void)addNewTitle:(id)sender;
  69. - (void)deleteThisTitle:(id)sender;
  70. - (void)selectEditMonth:(id)sender;
  71. - (void)selectBuyMonth:(id)sender;
  72.  
  73. - (NSMutableArray *)array;
  74. - (id)inputView;
  75. - (short *)curIshArray;
  76. - (short)theBuyMonth;
  77. - (short)theEditMonth;
  78. - (void)setTheBuyMonth:(short)b;
  79. - (void)setTheEditMonth:(short)e;
  80. - (NSFont *)fontProp;
  81. - (NSFont *)fontNonProp;
  82.  
  83. - (void)selChanged;
  84. - (void)contentChanged;
  85. - (BOOL)windowShouldClose:(id)sender;
  86.  
  87. // NSTableDataSource interface
  88. - (int)numberOfRowsInTableView:(NSTableView *)tableView;
  89. - (id)tableView:(NSTableView *)tv objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row;
  90. - (void)tableView:(NSTableView *)tv setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(int)row;
  91. - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
  92.  
  93. // popup button management
  94. - (void)doClick:(id)sender;
  95. - (void)userHasScrolled:(id)sender;
  96.  
  97. @end
  98.