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.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'fluid/CodeEditor.cxx') diff --git a/fluid/CodeEditor.cxx b/fluid/CodeEditor.cxx index af1e0c8ac..a2df6ec07 100644 --- a/fluid/CodeEditor.cxx +++ b/fluid/CodeEditor.cxx @@ -406,6 +406,14 @@ CodeEditor::~CodeEditor() { } +CodeViewer::CodeViewer(int X, int Y, int W, int H, const char *L) +: CodeEditor(X, Y, W, H, L) +{ + default_key_function(kf_ignore); + remove_all_key_bindings(&key_bindings); + cursor_style(CARET_CURSOR); +} + // // End of "$Id$". // -- cgit v1.2.3