FLTK logo

STR #3344

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | SVN ⇄ GIT ]

STR #3344

Application:FLTK Library
Status:2 - Closed w/o Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:FLUID
Summary:fluid's New->Code->Code should show .cxx file line#s
Version:1.4-feature
Created By:greg.ercolano
Assigned To:greg.ercolano
Fix Version:Will Not Fix
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 greg.ercolano
11:44 Oct 17, 2016
The current source code viewer for New->Code->Code
(which lets users attach custom code to functions/methods/widgets)
currently shows line#s that always start with 1.

Would be better if it showed line numbers relative to the .cxx/.h files.
This way compiler errors about specific line numbers would match line#s
in the code viewer.

I think the Fl_Text_Display widget might need to be modified to
support this, as there would need to be a way to specify a line# offset
via the API. Then when the user opens the code viewer, fluid could
determine the line# offset of the beginning of the code block,
and set the offset just before opening the viewer.
 
 
#2 greg.ercolano
20:25 Nov 03, 2017
I'm closing this because Edit -> Show Source Code does this,
and is arguably a better solution, since it shows all the code
in context.
 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.