Update of /cvsroot/mahogany/M/doc/tech
In directory usw-pr-cvs1:/tmp/cvs-serv22456/doc/tech
Modified Files:
options.txt
Log Message:
1. implemented --config=filename command line option support for Windows
2. changes the profile section name handling to account for this: now we
may use either Unix or Windows-style section names under Windows
Index: options.txt
===================================================================
RCS file: /cvsroot/mahogany/M/doc/tech/options.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -2 -r1.1 -r1.2
--- options.txt 21 Jan 2002 00:21:40 -0000 1.1
+++ options.txt 14 Apr 2002 12:16:54 -0000 1.2
@@ -4,5 +4,6 @@
Author: Vadim Zeitlin <[EMAIL PROTECTED]>
Created: 21.01.02
-Version: accurate for 0.64
+Modified: 14.04.02
+Version: accurate for 0.64.2
How to add a new option to Mahogany
@@ -126,7 +127,13 @@
The steps (a) and (c) should be obvious, for the step (b) please look at
-wxOptionsPage.h for the Field_XXX constants descriptions.
-
- TODO: the dependency fields
+wxOptionsPage.h for the Field_XXX constants descriptions. The types should be
+self explanatory (they simply correspond to the controls shown in the dialog),
+for the flags please see the desscriptions in the comments. Finally, this
+struct also has a dependency field: if it is -1, it is not used at all. If it
+is positive, this field is only enabled if the field with id equal to the given
+number is "on" which means being checked for a checkbox, non empty for a text
+zone and so on. And if the dependency field is negative (but not -1) it is
+interpreted in the "opposite" way: the field is only enabled when the field
+specified by the absolute value of the dependency field is "off".
@@ -151,2 +158,16 @@
how this should be done.
+5. Advanced notes
+-----------------
+
+ Mahogany uses different profile paths under Unix and Windows or, to be more
+precise, when using registry under Windows (which is the default) and using
+config files (which is the only possibility under Unix and may be also done
+under Windows). In the latter case, all Mahogany profile paths start with "/M",
+e.g. "/M/Profiles". In the former case, the "/M" prefix is removed as it is
+superfluous under Windows: the registry key is already called "M". This means
+that the path used in the program and the actual path in wxConfig may be
+different. Normally, it shouldn't matter as Profile class takes care of it but
+it will break down if you access the config directly using wxConfig. For this
+reason you must use Profile::GetXXXPath() methods to retrieve the actual path
+in config.
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates