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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user