X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2FmatitaScript.mli;h=0c12679f121586b926948d0f1d2a8bd6438f30f9;hb=b890d1579e24e6f7e1d4c6af9afcb0431584a3e0;hp=aab7488a42bb9049f61a32dd9a5e341b1c4a03a6;hpb=f3d0ba1e75bc3383d766f3a33a19352db19854df;p=helm.git diff --git a/matita/matita/matitaScript.mli b/matita/matita/matitaScript.mli index aab7488a4..0c12679f1 100644 --- a/matita/matita/matitaScript.mli +++ b/matita/matita/matitaScript.mli @@ -50,6 +50,7 @@ object (** {2 History} *) + method activate : unit method advance : ?statement:string -> unit -> unit method retract : unit -> unit method goto: [`Top | `Bottom | `Cursor] -> unit -> unit @@ -81,16 +82,8 @@ object method include_paths: string list method assignFileName : string option -> unit (* to the current active file *) method loadFromFile : string -> unit - method loadFromString : string -> unit method saveToFile : unit -> unit - (** {2 Current proof} (if any) *) - - method stack: Continuationals.Stack.t (** @raise Statement_error *) - - method setGoal: int option -> unit - method goal: int option - (** end of script, true if the whole script has been executed *) method eos: bool method bos: bool @@ -99,6 +92,7 @@ object method clean_dirty_lock: unit method set_star: bool -> unit method source_view: GSourceView2.source_view + method has_parent: GObj.widget -> bool (* debug *) method dump : unit -> unit @@ -107,15 +101,18 @@ object end val script: - urichooser: (GSourceView2.source_view -> NReference.reference list -> NReference.reference list) -> + urichooser: + (GSourceView2.source_view -> NReference.reference list -> + NReference.reference list) -> ask_confirmation: (title:string -> message:string -> [`YES | `NO | `CANCEL]) -> + parent:GBin.scrolled_window -> + tab_label:GMisc.label -> unit -> script -(* each time script above is called an internal ref is set, instance will return - * the value of this ref *) -(* TODO Zack: orrible solution until we found a better one for having a single - * access point for the script *) +val destroy: int -> unit val current: unit -> script +val at_page: int -> script +val iter_scripts: (script -> unit) -> unit