From 4383c2b97a013f427dffabefc255997e9bf8b12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 6 Nov 2002 11:10:59 +0000 Subject: [PATCH] added wxXmlResource::SetFlags as per wxWorkshop team's request git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/xrc/xmlres.h | 4 +++- docs/latex/wx/xmlres.tex | 6 ++++++ include/wx/xrc/xmlres.h | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/contrib/include/wx/xrc/xmlres.h b/contrib/include/wx/xrc/xmlres.h index e47520f5a9..b936c1b7bc 100644 --- a/contrib/include/wx/xrc/xmlres.h +++ b/contrib/include/wx/xrc/xmlres.h @@ -228,7 +228,9 @@ public: static wxXmlResource *Set(wxXmlResource *res); // Returns flags, which may be a bitlist of wxXRC_USE_LOCALE and wxXRC_NO_SUBCLASSING. - int GetFlags() { return m_flags; } + int GetFlags() const { return m_flags; } + // Set flags after construction. + void SetFlags(int flags) { m_flags = flags; } protected: // Scans the resources list for unloaded files and loads them. Also reloads diff --git a/docs/latex/wx/xmlres.tex b/docs/latex/wx/xmlres.tex index 16d57d69fa..1b5974706a 100644 --- a/docs/latex/wx/xmlres.tex +++ b/docs/latex/wx/xmlres.tex @@ -229,6 +229,12 @@ Loads a toolbar. Sets the global resources object and returns a pointer to the previous one (may be NULL). +\membersection{wxXmlResource::SetFlags}\label{wxxmlresourcesetflags} + +\func{int}{SetFlags}{\void} + +Sets flags (bitlist of wxXRC\_USE\_LOCALE and wxXRC\_NO\_SUBCLASSING). + \membersection{wxXmlResource::UpdateResources}\label{wxxmlresourceupdateresources} \func{void}{UpdateResources}{\void} diff --git a/include/wx/xrc/xmlres.h b/include/wx/xrc/xmlres.h index e47520f5a9..b936c1b7bc 100644 --- a/include/wx/xrc/xmlres.h +++ b/include/wx/xrc/xmlres.h @@ -228,7 +228,9 @@ public: static wxXmlResource *Set(wxXmlResource *res); // Returns flags, which may be a bitlist of wxXRC_USE_LOCALE and wxXRC_NO_SUBCLASSING. - int GetFlags() { return m_flags; } + int GetFlags() const { return m_flags; } + // Set flags after construction. + void SetFlags(int flags) { m_flags = flags; } protected: // Scans the resources list for unloaded files and loads them. Also reloads