Frama-C API - Source_manager
The 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 make : ?tab_pos:Gtk.Tags.position -> ?packing:(GObj.widget -> unit) -> unit -> tval 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.
val select_file : t -> Frama_c_kernel.Filepath.t -> unitSelection by page filename
val select_name : t -> string -> unitSelection by page title
val get_current_source_view : t -> GSourceView.source_viewReturns the source viewer for the currently displayed tab
val clear : t -> unitRemove all pages added by load_file
