From d90102f9d22f7da2a21c42e6f7e953ca479c6671 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 28 Apr 2006 01:00:41 +0000 Subject: Fluid Code Viewer is now truly a viewer, not an editor. I would love to allow text editing in the Code Viewer and re-enter the code into the UI, but that is currently close to impossible to implement git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/CodeEditor.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'fluid/CodeEditor.h') 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 // -- cgit v1.2.3