File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Graph / GraphDoc.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:25 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3


#import <objc/Object.h>
@class Window, Expression, LineGraph, Form, Matrix, Slider, SliderCell, TextFieldCell, Button, NXDataLinkManager;

@interface GraphDoc : Object {
    Window *window;
    Expression *expr;		/* Expression object for evaluation */
    LineGraph *graph;		/* custom view for drawing graph */
    Form *equation;		/* form holding equation text */
    Matrix *variableSliders;	/* outlets to other controls */
    Matrix *variableTexts;
    Matrix *variableLabels;
    SliderCell *resolutionSlider;
    TextFieldCell *resolutionText;
    SliderCell *minXSlider;
    TextFieldCell *minXText;
    SliderCell *maxXSlider;
    TextFieldCell *maxXText;
    Button *autoScale;
    char *name;			/* the name of the document */
    char *realName;		/* unambiguous name of the document */
    NXDataLinkManager *linkMgr;	/* LinkManager */
    List *linksTracked;		/* active links to this document */
}

- init;
- initFromFile:(const char *)file;
- free;
- (const char *)filename;
/* unambiguous path to this file (no symlinks) */
- (const char *)realFilename;

/* target action messages sent from various graph controls */
- equationChanged:sender;
- xRangeSliderChanged:sender;
- xRangeTextChanged:sender;
- resolutionChanged:sender;
- variableSliderChanged:sender;
- variableTextChanged:sender;
- zoomIn:sender;
- zoomOut:sender;
- autoScale:sender;
- invertColors:sender;

/* target action messages sent menu items */
- copyGraph:sender;
- save:sender;
- saveAs:sender;
- saveTo:sender;
- revertToSaved:sender;

@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.