summaryrefslogtreecommitdiff
path: root/fluid/CodeEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/CodeEditor.h')
-rw-r--r--fluid/CodeEditor.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fluid/CodeEditor.h b/fluid/CodeEditor.h
index 04c51bd09..a13c8ddd4 100644
--- a/fluid/CodeEditor.h
+++ b/fluid/CodeEditor.h
@@ -70,6 +70,17 @@ class CodeEditor : public Fl_Text_Editor {
int top_line() { return get_absolute_top_line_number(); }
};
+class CodeViewer : public CodeEditor {
+
+ public:
+
+ CodeViewer(int X, int Y, int W, int H, const char *L=0);
+
+ protected:
+
+ int handle(int ev) { return Fl_Text_Display::handle(ev); }
+};
+
#endif // !CodeEditor_h
//