From 5ba5befec11f287e4810e66da85aa30f440ef1b5 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 17 Oct 2016 16:46:57 +0000 Subject: [PATCH] Added line numbers to Edit -> Show Source Code viewer (source + header tabs) Fixes Aditya Siram's observation today on fltk.coredev. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/function_panel.fl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl index 4d56c8a5b..cd4ec5cce 100644 --- a/fluid/function_panel.fl +++ b/fluid/function_panel.fl @@ -905,6 +905,8 @@ Function {make_sourceview()} {} { Fl_Text_Editor sv_source { xywh {20 50 480 390} textfont 4 textsize 11 resizable code0 {\#include "CodeEditor.h"} + code1 {o->linenumber_width(60);} + code2 {o->linenumber_size(o->Fl_Text_Display::textsize());} class CodeViewer } } @@ -915,6 +917,8 @@ Function {make_sourceview()} {} { Fl_Text_Editor sv_header { xywh {20 50 480 390} textfont 4 textsize 11 resizable code0 {\#include "CodeEditor.h"} + code1 {o->linenumber_width(60);} + code2 {o->linenumber_size(o->Fl_Text_Display::textsize());} class CodeViewer } }