Debian Codegraph @

ide/rocqide/session.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 (** A session is a script buffer + proof + messages,
12 interacting with a rocqtop, and a few other elements around *)
13
14 class type ['a] page =
15 object
16 inherit GObj.widget
17 method update : 'a -> unit
18 method on_update : callback:('a -> unit) -> unit
19 method data : 'a
20 end
21
22 class type control =
23 object
24 method detach : unit -> unit
25 end
26
27 type errpage = (int * string) list page
28 type jobpage = string CString.Map.t page
29
30 type breakpoint = {
31 mark_id : string;
32 mutable prev_byte_offset : int; (* UTF-8 byte offset for Rocq *)
33 mutable prev_uni_offset : int; (* unicode offset for GTK *)
34 }
35
36 type session = {
37 buffer : GText.buffer;
38 script : Wg_ScriptView.script_view;
39 proof : Wg_ProofView.proof_view;
40 messages : Wg_RoutedMessageViews.message_views_router;
41 segment : Wg_Segment.segment;
42 fileops : FileOps.ops;
43 rocqops : RocqOps.ops;
44 rocqtop : RocqDriver.rocqtop;
45 command : Wg_Command.command_window;
46 finder : Wg_Find.finder;
47 debugger : Wg_Debugger.debugger_view;
48 tab_label : GMisc.label;
49 errpage : errpage;
50 warnpage : errpage;
51 jobpage : jobpage;
52 sid : int;
53 basename : string;
54 mutable control : control;
55 mutable abs_file_name : string option;
56 mutable debug_stop_pt : (session * int * int) option;
57 mutable breakpoints : breakpoint list;
58 mutable last_db_goals : Pp.t
59 }
60
61 (** [create filename rocqtop_args] *)
62 val create : string option -> string list -> session
63
64 val to_abs_file_name : string -> string
65
66 val kill : session -> unit
67
68 val build_layout : session ->
69 GObj.widget option * GObj.widget option * GObj.widget
70
71 val window_size : (int * int) ref