From cd900c5961be75896c28199361c713cfcdac0568 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Jul 2005 16:30:11 +0000 Subject: [PATCH] commented and documented wxXRC_NO_RELOADING flag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/xmlres.tex | 9 ++++++--- include/wx/xrc/xmlres.h | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/latex/wx/xmlres.tex b/docs/latex/wx/xmlres.tex index 741c5e4120..95e99a8e20 100644 --- a/docs/latex/wx/xmlres.tex +++ b/docs/latex/wx/xmlres.tex @@ -19,13 +19,14 @@ See \helpref{XML-based resource system overview}{xrcoverview} for details. -\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} diff --git a/include/wx/xrc/xmlres.h b/include/wx/xrc/xmlres.h index 0f400c8f4f..1554ce82e0 100644 --- a/include/wx/xrc/xmlres.h +++ b/include/wx/xrc/xmlres.h @@ -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. -- 2.47.2