Update of /cvsroot/mahogany/M/include/wx
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20295/include/wx
Modified Files:
persctrl.h
Log Message:
implemented recursive fallback for wxPTextEntry
Index: persctrl.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/wx/persctrl.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -b -u -2 -r1.43 -r1.44
--- persctrl.h 16 Jan 2006 20:32:26 -0000 1.43
+++ persctrl.h 6 Mar 2006 00:19:26 -0000 1.44
@@ -205,4 +205,10 @@
// you shouldn't add/remove strings from this combobox manually (but using
// SetValue (and, of course, GetValue) is perfectly ok).
+//
+// It also has a rather unique feature of being able to fall back to the
+// parents values, i.e. an object with config path Foo/Bar can also use the
+// (existing) string for Foo (even though it will only update Bar subkey). To
+// use this feature, append one or more colons (each one counts for an extra
+// step upwards) to the end of the config path.
class WXDLLMAYEXP wxPTextEntry : public wxComboBox
{
@@ -244,4 +250,6 @@
protected:
+ void Init();
+
void SaveSettings();
void RestoreStrings();
@@ -249,4 +257,5 @@
static size_t ms_countSaveDefault; // (default)
size_t m_countSaveMax; // max number of strings to save
+ size_t m_numParentsToCheck; // use that many parent paths
wxPHelper *m_persist;
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates