diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-04-28 01:00:41 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-04-28 01:00:41 +0000 |
| commit | d90102f9d22f7da2a21c42e6f7e953ca479c6671 (patch) | |
| tree | 41d1cb07269f3c260d501ac2930b56aaac75fb7b /fluid/CodeEditor.cxx | |
| parent | f74a812003bab965e02e6811eb90d111bff90139 (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.cxx')
| -rw-r--r-- | fluid/CodeEditor.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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$". // |
