summaryrefslogtreecommitdiff
path: root/fluid/CodeEditor.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-04-28 01:00:41 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-04-28 01:00:41 +0000
commitd90102f9d22f7da2a21c42e6f7e953ca479c6671 (patch)
tree41d1cb07269f3c260d501ac2930b56aaac75fb7b /fluid/CodeEditor.h
parentf74a812003bab965e02e6811eb90d111bff90139 (diff)
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
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
//