]> git.saurik.com Git - wxWidgets.git/commitdiff
commented and documented wxXRC_NO_RELOADING flag
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Jul 2005 16:30:11 +0000 (16:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Jul 2005 16:30:11 +0000 (16:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/xmlres.tex
include/wx/xrc/xmlres.h

index 741c5e4120e75ec10bc82f0d1fb0dd183c933842..95e99a8e20f5a2caedf3e6f83469d2f23a60557e 100644 (file)
@@ -19,13 +19,14 @@ See \helpref{XML-based resource system overview}{xrcoverview} for details.
 
 <wx/xrc/xmlres.h>
 
-\wxheading{Data structures}
+\wxheading{Constants}
 
 \begin{verbatim}
 enum wxXmlResourceFlags
 {
     wxXRC_USE_LOCALE     = 1,
-    wxXRC_NO_SUBCLASSING = 2
+    wxXRC_NO_SUBCLASSING = 2,
+    wxXRC_NO_RELOADING   = 4
 };
 \end{verbatim}
 
@@ -50,7 +51,9 @@ Constructor.
 
 \docparam{flags}{wxXRC\_USE\_LOCALE: translatable strings will be translated via \_().
 wxXRC\_NO\_SUBCLASSING: subclass property of object nodes will be ignored
-(useful for previews in XRC editors).}
+(useful for previews in XRC editors). wxXRC\_NO\_RELOADING will prevent the
+XRC files from being reloaded from disk in case they have been modified there
+since being last loaded (may slightly speed up loading them).}
 
 \membersection{wxXmlResource::\destruct{wxXmlResource}}\label{wxxmlresourcedtor}
 
index 0f400c8f4fd3178027842d80e1f9bf409910243f..1554ce82e0a3b8de408f44b192151df87f2879e9 100644 (file)
@@ -104,6 +104,9 @@ public:
     //        wxXRC_NO_SUBCLASSING
     //              subclass property of object nodes will be ignored
     //              (useful for previews in XRC editors)
+    //        wxXRC_NO_RELOADING
+    //              don't check the modification time of the XRC files and
+    //              reload them if they have changed on disk
     wxXmlResource(int flags = wxXRC_USE_LOCALE);
 
     // Constructor.