val clickableMathView: MatitaGuiTypes.clickableMathView constructor
-val sequentViewer: MatitaGuiTypes.sequentViewer constructor
+val cicMathView: MatitaGuiTypes.cicMathView constructor
val sequentsViewer:
notebook:GPack.notebook ->
- sequentViewer:MatitaGuiTypes.sequentViewer ->
+ cicMathView:MatitaGuiTypes.cicMathView ->
unit ->
MatitaGuiTypes.sequentsViewer
val refresh_all_browsers: unit -> unit (** act on all cicBrowsers *)
val update_font_sizes: unit -> unit
- (** {3 selection handling} *)
+ (** {3 Clipboard & Selection handling} *)
- (* @return the selections of a (unspecified) math viewer *)
-val get_selections: unit -> string list option
+val has_selection: unit -> bool
- (* remove the selections of all math viewers *)
-val reset_selections: unit -> unit
+ (** fills the clipboard with the current selection
+ * @raise Failure "no selection" *)
+val copy_selection: unit -> unit
+val has_clipboard: unit -> bool (** clipboard is not empty *)
+val empty_clipboard: unit -> unit (** empty the clipboard *)
+
+ (** @raise Failure "empty clipboard" *)
+val paste_clipboard: MatitaGuiTypes.paste_kind -> string
(** {2 Singleton instances} *)
-val sequentViewer_instance: unit -> MatitaGuiTypes.sequentViewer
+val cicMathView_instance: unit -> MatitaGuiTypes.cicMathView
val sequentsViewer_instance: unit -> MatitaGuiTypes.sequentsViewer
val mathViewer: unit -> MatitaTypes.mathViewer