added wxXRC_NO_RELOADING

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-07-16 22:01:47 +00:00
parent 31ad423e4f
commit 648db587c4
4 changed files with 12 additions and 4 deletions

View File

@@ -93,7 +93,8 @@ WX_DECLARE_USER_EXPORTED_OBJARRAY(wxXmlResourceDataRecord,
enum wxXmlResourceFlags
{
wxXRC_USE_LOCALE = 1,
wxXRC_NO_SUBCLASSING = 2
wxXRC_NO_SUBCLASSING = 2,
wxXRC_NO_RELOADING = 4
};
// This class holds XML resources from one or more .xml files

View File

@@ -343,7 +343,7 @@ bool wxXmlResource::UpdateResources()
{
modif = (m_data[i].Doc == NULL);
if (!modif)
if (!modif && !(m_flags & wxXRC_NO_RELOADING))
{
# if wxUSE_FILESYSTEM
file = fsys.OpenFile(m_data[i].File);
@@ -362,6 +362,9 @@ bool wxXmlResource::UpdateResources()
if (modif)
{
wxLogTrace(_T("xrc"),
_T("opening file '%s'"), m_data[i].File.c_str());
wxInputStream *stream = NULL;
# if wxUSE_FILESYSTEM

View File

@@ -93,7 +93,8 @@ WX_DECLARE_USER_EXPORTED_OBJARRAY(wxXmlResourceDataRecord,
enum wxXmlResourceFlags
{
wxXRC_USE_LOCALE = 1,
wxXRC_NO_SUBCLASSING = 2
wxXRC_NO_SUBCLASSING = 2,
wxXRC_NO_RELOADING = 4
};
// This class holds XML resources from one or more .xml files

View File

@@ -343,7 +343,7 @@ bool wxXmlResource::UpdateResources()
{
modif = (m_data[i].Doc == NULL);
if (!modif)
if (!modif && !(m_flags & wxXRC_NO_RELOADING))
{
# if wxUSE_FILESYSTEM
file = fsys.OpenFile(m_data[i].File);
@@ -362,6 +362,9 @@ bool wxXmlResource::UpdateResources()
if (modif)
{
wxLogTrace(_T("xrc"),
_T("opening file '%s'"), m_data[i].File.c_str());
wxInputStream *stream = NULL;
# if wxUSE_FILESYSTEM