From: Claudio Sacerdoti Coen Date: Tue, 17 Feb 2004 10:47:02 +0000 (+0000) Subject: triciclo.conf.xml ==> gTopLevel.conf.xml X-Git-Tag: v0_0_4~179 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=5aee2f85474686a307f2acda957ffe363a72eff3;p=helm.git triciclo.conf.xml ==> gTopLevel.conf.xml --- diff --git a/helm/gTopLevel/gTopLevel.conf.xml.sample b/helm/gTopLevel/gTopLevel.conf.xml.sample new file mode 100644 index 000000000..e8f1a5c58 --- /dev/null +++ b/helm/gTopLevel/gTopLevel.conf.xml.sample @@ -0,0 +1,32 @@ + + + +
+ + /home/sacerdot/helm/local_stuff + + + + http://localhost +
+ + +
+ file://$(users_settings_per_user_work_directory)/objects + $(local_library.dir) +
+
+ remote + $(users_settings.daemons_host):58081/ +
+
+ $(users_settings.per_user_work_directory)/constanttype + $(users_settings.per_user_work_directory)/environment + $(users_settings.per_user_work_directory)/innertypes + $(users_settings.per_user_work_directory)/currentproof + $(users_settings.per_user_work_directory)/currentprooftype +
+
+ $(users_settings.daemons_host):58080/ +
+
diff --git a/helm/gTopLevel/gTopLevel.ml b/helm/gTopLevel/gTopLevel.ml index ba334ac03..e14c9955b 100644 --- a/helm/gTopLevel/gTopLevel.ml +++ b/helm/gTopLevel/gTopLevel.ml @@ -50,7 +50,7 @@ module MQG = MQueryGenerator (* GLOBAL CONSTANTS *) -let configuration_file = "triciclo.conf.xml" +let configuration_file = "gTopLevel.conf.xml" let mqi_debug_fun s = debug_print ~level:2 s let mqi_flags = [MQIC.Postgres ; MQIC.Stat ; MQIC.Warn ; MQIC.Log] @@ -484,8 +484,8 @@ let qed () = (** save an unfinished proof on the filesystem *) let save_unfinished_proof () = let (xml, bodyxml) = ProofEngine.get_current_status_as_xml () in - let proof_file_type = Helm_registry.get "triciclo.proof_file_type" in - let proof_file = Helm_registry.get "triciclo.proof_file" in + let proof_file_type = Helm_registry.get "gtoplevel.proof_file_type" in + let proof_file = Helm_registry.get "gtoplevel.proof_file" in Xml.pp ~quiet:true xml (Some proof_file_type) ; HelmLogger.log (`Msg (`T ("Current proof type saved to " ^ proof_file_type))) ; @@ -676,8 +676,8 @@ let load_unfinished_proof () = None -> raise NoChoice | Some uri0 -> let uri = UriManager.uri_of_string ("cic:" ^ uri0) in - let proof_file_type = Helm_registry.get "triciclo.proof_file_type" in - let proof_file = Helm_registry.get "triciclo.proof_file" in + let proof_file_type = Helm_registry.get "gtoplevel.proof_file_type" in + let proof_file = Helm_registry.get "gtoplevel.proof_file" in match CicParser.obj_of_xml proof_file_type (Some proof_file) with Cic.CurrentProof (_,metasenv,bo,ty,_) -> typecheck_loaded_proof metasenv bo ty ; @@ -2585,7 +2585,7 @@ end let dump_environment () = try - let oc = open_out (Helm_registry.get "triciclo.environment_file") in + let oc = open_out (Helm_registry.get "gtoplevel.environment_file") in HelmLogger.log (`Msg (`T "Dumping environment ...")); CicEnvironment.dump_to_channel oc; HelmLogger.log (`Msg (`T "... done!")) ; @@ -2597,7 +2597,7 @@ let dump_environment () = ;; let restore_environment () = try - let ic = open_in (Helm_registry.get "triciclo.environment_file") in + let ic = open_in (Helm_registry.get "gtoplevel.environment_file") in HelmLogger.log (`Msg (`T "Restoring environment ... ")); CicEnvironment.restore_from_channel ic; HelmLogger.log (`Msg (`T "... done!")); @@ -2853,7 +2853,7 @@ let initialize_everything () = (Some (print_error_as_html "XSLT Debug Message: ")); rendering_window'#show () ; if restore_environment_on_boot && - Sys.file_exists (Helm_registry.get "triciclo.environment_file") + Sys.file_exists (Helm_registry.get "gtoplevel.environment_file") then restore_environment (); GtkThread.main () diff --git a/helm/gTopLevel/triciclo.conf.xml.sample b/helm/gTopLevel/triciclo.conf.xml.sample deleted file mode 100644 index 7a2a3e305..000000000 --- a/helm/gTopLevel/triciclo.conf.xml.sample +++ /dev/null @@ -1,32 +0,0 @@ - - - -
- - /home/sacerdot/helm/local_stuff - - - - http://localhost -
- - -
- file://$(users_settings_per_user_work_directory)/objects - $(local_library.dir) -
-
- remote - $(users_settings.daemons_host):58081 -
-
- $(users_settings.per_user_work_directory)/constanttype - $(users_settings.per_user_work_directory)/environment - $(users_settings.per_user_work_directory)/innertypes - $(users_settings.per_user_work_directory)/currentproof - $(users_settings.per_user_work_directory)/currentprooftype -
-
- $(users_settings.daemons_host):58080/ -
-