Frama_c_gui.Source_managerSourceThe source viewer multi-tabs widget window.
Prevents the filetree callback from resetting the selected line when it was selected via a click in the original source viewer.
val load_file :
t ->
?title:string ->
filename:Frama_c_kernel.Filepath.t ->
?line:int ->
click_cb:(Pretty_source.localizable option -> unit) ->
unit ->
unitIf line is 0 then the last line of the text is shown. If line is less that 0 then no scrolling occurs (default). If title is not provided the page title is the filename. click_cb is a callback called whenever the user clicks on the original source code. This callback is given the localizable that the user clicked on, if any was found. This localizable is estimated from a reverse mapping from the original source to the Cil source, and not always exact.
Selection by page filename
Returns the source viewer for the currently displayed tab