Annotation of Examples/AppKit/Draw/textUndo.subproj/UndoText.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * This subclass of Text knows how to create change objects in response
        !             3:  * to modifications made by the user.
        !             4:  */
        !             5: 
        !             6: @interface UndoText : Text
        !             7: {
        !             8:     NXTextFilterFunc oldTextFilter; /* keep the old text filter around */
        !             9:     int startBeforeKeydown;    /* beginning of selection before keydown */
        !            10:     int endBeforeKeydown;      /* end of selection before keydown */
        !            11: }
        !            12: 
        !            13: /* Creation method */
        !            14: 
        !            15: - initFrame:(const NXRect *)frameRect;
        !            16: 
        !            17: /* Public methods */
        !            18: 
        !            19: - eraseSelection;
        !            20: - (int)clickCount;
        !            21: - setClickCount:(int)count;
        !            22: - keyDown:(NXEvent *)event;
        !            23: - setTextFilter:(NXTextFilterFunc)aFunc;
        !            24: 
        !            25: /* Methods that create change objects */
        !            26: 
        !            27: - clear:sender;
        !            28: - cut:sender;
        !            29: - delete:sender;
        !            30: - paste:sender;
        !            31: - setSelGray:(float)value;
        !            32: - setSelColor:(NXColor)color;
        !            33: - setSelFont:font;
        !            34: - subscript:sender;
        !            35: - superscript:sender;
        !            36: - underline:sender;
        !            37: - unscript:sender;
        !            38: - changeFont:sender;
        !            39: - changeTabStopAt:(NXCoord)oldX to:(NXCoord)newX;
        !            40: - setSelProp:(NXParagraphProp)prop to:(NXCoord)val;
        !            41: - setSelFontSize:(float)size;
        !            42: - setSelFontFamily:(const char *)fontName;
        !            43: - replaceSel:(char *)str;
        !            44: - pasteFont:sender;
        !            45: - pasteRuler:sender;
        !            46: 
        !            47: @end

unix.superglobalmegacorp.com

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