home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / aa_Intel_Only / Gnuplot / GnuplotSource / ContourAutoPane.m < prev    next >
Encoding:
Text File  |  1995-06-12  |  1.3 KB  |  76 lines

  1. /*
  2.  *  Copyright (C) 1993  Robert Davis
  3.  *
  4.  *  This program is free software; you can redistribute it and/or
  5.  *  modify it under the terms of Version 2, or any later version, of 
  6.  *  the GNU General Public License as published by the Free Software 
  7.  *  Foundation.
  8.  */
  9.  
  10.  
  11. static char RCSId[]="$Id: ContourAutoPane.m,v 1.4 1993/05/18 03:54:45 davis Exp $";
  12.  
  13. #import <appkit/Application.h>
  14. #import <appkit/Form.h>
  15. #import <appkit/FormCell.h>
  16.  
  17. #import "ContourAutoPane.h"
  18. #import "Status.h"
  19. #import "StatusContour.h"
  20. #import "ContourOptionsPanel.h"
  21.  
  22.  
  23. @implementation ContourAutoPane
  24.  
  25. - init
  26. {
  27.     [super init];
  28.  
  29.     [NXApp loadNibSection: "ContourAutoPane.nib"
  30.             owner: self
  31.         withNames: NO
  32.          fromZone: [self zone]];
  33.  
  34.     return self;
  35. }
  36.  
  37.  
  38. - (BOOL)updateStatus:aStatus doc:aDoc
  39. {
  40.     [super updateStatus:aStatus doc:aDoc];
  41.  
  42.     if (status)
  43.     [levelsFormCell setIntValue:[status contourLevels]];
  44.  
  45.     [levelsFormCell setEnabled:[doc isEnabled]];/* doc is ContourOptionsPanel*/
  46.  
  47.     return NO;
  48. }
  49.  
  50.  
  51. - selectControl:sender
  52. {
  53.     [levelsForm selectText:self];
  54.     return self;
  55. }
  56.  
  57.  
  58.  
  59. - setLevels:sender
  60. {
  61.     [status setContourLevels:[sender intValue]];
  62.     [self forceUpdateStatus:status doc:doc];    /* status may reject levels */
  63.     return self;
  64. }
  65.  
  66.  
  67.  
  68. // Shuts up the compiler about unused RCSId
  69. - (const char *) rcsid
  70. {
  71.     return RCSId;
  72. }
  73.  
  74.  
  75. @end
  76.