X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaScript.mli;h=5266a61e04ee1c05ebc0e234cf5360521061f07a;hb=1bcad789810fd37d346e690f18557aeedc6fe08c;hp=2529376f1880b7e3effb524b06ffd5e5002ff675;hpb=de9a83f286eee12117fb478ea2db18f7faebac9a;p=helm.git diff --git a/helm/matita/matitaScript.mli b/helm/matita/matitaScript.mli index 2529376f1..5266a61e0 100644 --- a/helm/matita/matitaScript.mli +++ b/helm/matita/matitaScript.mli @@ -26,6 +26,8 @@ class type script = object + method locked_mark : Gtk.text_mark + (** @return current status *) method status: MatitaTypes.status @@ -39,11 +41,13 @@ object method retract : unit -> unit method goto: [`Top | `Bottom | `Cursor] -> unit -> unit method reset: unit -> unit + method template: unit -> unit (** {2 Load/save} *) - method loadFrom : string -> unit - method saveTo : string -> unit + method assignFileName : string -> unit (* to the current active file *) + method loadFromFile : unit -> unit + method saveToFile : unit -> unit (** {2 Current proof} (if any) *) @@ -56,12 +60,30 @@ object method setGoal: int -> unit + (** end of script, true if the whole script has been executed *) + method eos: bool + + (** misc *) + method clean_dirty_lock: unit + (* debug *) method dump : unit -> unit end -val script: buffer:GText.buffer -> init:MatitaTypes.status -> unit -> script + (** @param set_star callback used to set the modified symbol (usually a star + * "*") on the side of a script name *) +val script: + view:GText.view -> + init:MatitaTypes.status -> + mathviewer: MatitaTypes.mathViewer-> + urichooser: (UriManager.uri list -> UriManager.uri list) -> + develcreator: (containing:string option -> unit) -> + ask_confirmation: + (title:string -> message:string -> [`YES | `NO | `CANCEL]) -> + set_star: (string -> bool -> unit) -> + unit -> + script (* each time script above is called an internal ref is set, instance will return * the value of this ref *)