mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +00:00
16c60655e7
Line formatting segs when scrolling horizontally through a tab, but... things ware working nicely.
29 lines
693 B
Objective-C
29 lines
693 B
Objective-C
#ifndef __qwaq_editor_h
|
|
#define __qwaq_editor_h
|
|
|
|
#include "qwaq-editbuffer.h"
|
|
#include "qwaq-view.h"
|
|
|
|
@class EditBuffer;
|
|
|
|
@interface Editor : View
|
|
{
|
|
EditBuffer *buffer;
|
|
DrawBuffer *linebuffer;
|
|
eb_sel_t selection;
|
|
unsigned base_index; // top left corner
|
|
unsigned line_index; // current line
|
|
unsigned x_index; // horizontal scrolling
|
|
unsigned char_index; // current character
|
|
unsigned old_cind; // previous character
|
|
Point cursor;
|
|
unsigned line_count;
|
|
}
|
|
-initWithRect:(Rect) rect file:(string) filename;
|
|
-scrollUp:(unsigned) count;
|
|
-scrollDown:(unsigned) count;
|
|
-scrollLeft:(unsigned) count;
|
|
-scrollRight:(unsigned) count;
|
|
@end
|
|
|
|
#endif//__qwaq_editor_h
|