X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaScript.mli;h=cfc4655414bc08acaca2528aa175fa93c85a8da6;hb=771ee8b9d122fa963881c876e86f90531bb7434f;hp=637584aa97e8c6acdc8600b686b3922b0cfa7166;hpb=619a3a478a4f6b0a50782b620009f6a141c30a53;p=helm.git diff --git a/helm/matita/matitaScript.mli b/helm/matita/matitaScript.mli index 637584aa9..cfc465541 100644 --- a/helm/matita/matitaScript.mli +++ b/helm/matita/matitaScript.mli @@ -23,15 +23,24 @@ * http://helm.cs.unibo.it/ *) +exception NoUnfinishedProof +exception ActionCancelled + class type script = object + method locked_mark : Gtk.text_mark + method locked_tag : GText.tag + method error_tag : GText.tag + (** @return current status *) - method status: MatitaTypes.status + method lexicon_status: LexiconEngine.status + method grafite_status: GrafiteTypes.status (** {2 Observers} *) - method addObserver : (MatitaTypes.status -> unit) -> unit + method addObserver : + (LexiconEngine.status -> GrafiteTypes.status -> unit) -> unit (** {2 History} *) @@ -44,19 +53,23 @@ object (** {2 Load/save} *) method assignFileName : string -> unit (* to the current active file *) - method loadFromFile : unit -> unit + method loadFromFile : string -> unit method saveToFile : unit -> unit + method filename : string (** {2 Current proof} (if any) *) (** @return true if there is an ongoing proof, false otherise *) method onGoingProof: unit -> bool - method proofStatus: ProofEngineTypes.status (** @raise Statement_error *) +(* method proofStatus: ProofEngineTypes.status |+* @raise Statement_error +| *) method proofMetasenv: Cic.metasenv (** @raise Statement_error *) method proofContext: Cic.context (** @raise Statement_error *) + method proofConclusion: Cic.term (** @raise Statement_error *) + method stack: Continuationals.Stack.t (** @raise Statement_error *) - method setGoal: int -> unit + method setGoal: int option -> unit + method goal: int option (** end of script, true if the whole script has been executed *) method eos: bool @@ -72,8 +85,7 @@ end (** @param set_star callback used to set the modified symbol (usually a star * "*") on the side of a script name *) val script: - buffer:GText.buffer -> - init:MatitaTypes.status -> + source_view:GSourceView.source_view -> mathviewer: MatitaTypes.mathViewer-> urichooser: (UriManager.uri list -> UriManager.uri list) -> develcreator: (containing:string option -> unit) -> @@ -87,5 +99,5 @@ val script: * 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 instance: unit -> script +val current: unit -> script