00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __EDELIB_SCHEME_EDITOR_H__
00022 #define __EDELIB_SCHEME_EDITOR_H__
00023
00024 #include "edelib-global.h"
00025
00026 #include <FL/Fl_Text_Editor.H>
00027 #include <FL/Fl_Text_Buffer.H>
00028
00029 EDELIB_NS_BEGIN
00030
00050 class SchemeEditor : public Fl_Text_Editor {
00051 private:
00052 Fl_Text_Buffer *stylebuf, *textbuf;
00053 bool pmatch;
00054 public:
00056 SchemeEditor(int X, int Y, int W, int H, const char *l = 0);
00057
00059 void textsize(int sz);
00060
00062 virtual int handle(int e);
00063
00065 Fl_Text_Buffer *style_buffer(void) { return stylebuf; }
00066
00081 void object_color(int id, int color);
00082
00084 void object_color(int id, const char *color);
00085
00087 void match_parenthesis(bool m) { pmatch = m; }
00088 };
00089
00090 EDELIB_NS_END
00091 #endif