]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaScript.mli
Merge branch 'declarative' into matita-lablgtk3
[helm.git] / matita / matita / matitaScript.mli
index 50bc17eda08991223f1b74d108c21218c3e9040f..ca4b2f86dcdb4dafdb27f3175ffde5217153e980 100644 (file)
@@ -34,20 +34,45 @@ object
   method error_tag : GText.tag
 
     (** @return current status *)
-  method grafite_status: GrafiteTypes.status
+  method status: GrafiteTypes.status
     
   (** {2 Observers} *)
 
   method addObserver : (GrafiteTypes.status -> unit) -> unit
 
+  (** {2 Unicode handling} *)
+  method nextSimilarSymbol: unit
+
+  (** {2 Undo/redo} *)
+
+  method safe_undo: unit
+  method safe_redo: unit
+
   (** {2 History} *)
 
+  method activate : unit
   method advance : ?statement:string -> unit -> unit
   method retract : unit -> unit
   method goto: [`Top | `Bottom | `Cursor] -> unit -> unit
   method reset: unit -> unit
   method template: unit -> unit
 
+    (** {2 Selections / clipboards handling} *)
+
+  method markupSelected: bool
+  method canCopy: bool
+  method canCut: bool
+  method canDelete: bool
+  (*CSC: WRONG CODE: we should look in the clipboard instead! *)
+  method canPaste: bool
+  method canPastePattern: bool
+
+  method copy:         unit -> unit
+  method cut:          unit -> unit
+  method delete:       unit -> unit
+  method paste:        unit -> unit
+  method pastePattern: unit -> unit
+
   (** {2 Load/save} *)
   
   method has_name: bool
@@ -57,16 +82,7 @@ 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
-  method filename : string
-
-  (** {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
@@ -74,6 +90,9 @@ object
 
   (** misc *)
   method clean_dirty_lock: unit
+  method set_star: bool -> unit
+  method source_view: GSourceView3.source_view
+  method has_parent: GObj.widget -> bool
   
   (* debug *)
   method dump : unit -> unit
@@ -81,21 +100,11 @@ object
 
 end
 
-  (** @param set_star callback used to set the modified symbol (usually a star
-   * "*") on the side of a script name *)
 val script: 
-  source_view:GSourceView2.source_view -> 
-  mathviewer: MatitaTypes.mathViewer-> 
-  urichooser: (NReference.reference list -> NReference.reference list) -> 
-  ask_confirmation: 
-    (title:string -> message:string -> [`YES | `NO | `CANCEL]) -> 
-  set_star: (bool -> unit) ->
-  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 *)
+ parent:GBin.scrolled_window -> tab_label:GMisc.label -> unit -> script
+
+val destroy: int -> unit
 val current: unit -> script
+val at_page: int -> script
 
+val iter_scripts: (script -> unit) -> unit