home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / aa_Intel_Only / Gnuplot / GnuplotSource / PlotView.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  1.7 KB  |  66 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. /* $Id: PlotView.h,v 1.5 1993/05/04 16:22:31 davis Exp $ */
  11.  
  12. #import <appkit/View.h>
  13.  
  14.  
  15. @interface PlotView:View
  16. {
  17.     id        image;                /* The cache NXImage    */
  18.     NXStream    *epsStream;            /* The stream of EPS    */
  19.     BOOL    tempFileNeedsUpdate;        /* Does temp match stream? */
  20.     float    imageOrigHeight, imageOrigWidth;
  21.     char    *fullPath;            /* Path of the EPS file    */
  22. }
  23.  
  24. - initFrame:(const NXRect *) frameRect;
  25. - free;
  26.  
  27.                     /** Overridden from Responder    **/
  28. - (BOOL)acceptsFirstResponder;
  29. - (BOOL)acceptsFirstMouse;
  30. - drawSelf:(NXRect *)r :(int)count;
  31.  
  32.  
  33. - mouseDown:(NXEvent *)theEvent;        /** Drag support    **/
  34. - (NXDragOperation)draggingSourceOperationMaskForLocal:(BOOL)flag;
  35. - (BOOL)shouldDelayWindowOrderingForEvent:(NXEvent *)theEvent;
  36.  
  37.  
  38. - (float)scale:(float)scaleFactor;
  39.  
  40.  
  41. - (BOOL)validateCommand:menuCell;    /** Auto menu update support    **/
  42.  
  43.  
  44. - changeFont:sender;                /** Font operations    **/
  45. - copyFont:sender;
  46. - pasteFont:sender;
  47.  
  48.                         /** Services support    **/
  49. - validRequestorForSendType:(NXAtom)sendType andReturnType:(NXAtom)returnType;
  50. - (BOOL) writeSelectionToPasteboard:pboard types:(NXAtom *)types;
  51.  
  52.  
  53. - copy:sender;                /** Pasteboard/Stream operations **/
  54. - copyToPasteboard:pboard;
  55. - copyToPasteboard:pboard types:(NXAtom *)typesList;
  56. - copyPSToStream:(NXStream *)stream;
  57. - copyTIFFToStream:(NXStream *)stream;
  58. - newStream:(NXStream *) aStream;
  59.  
  60.  
  61. - (BOOL)saveEPSToFile:(const char *)filename;    /** File operations    **/
  62. - (BOOL)saveTIFFToFile:(const char *)filename;
  63.  
  64.  
  65. @end
  66.