renamed meaningless IsRealClass() function in CanBeUsedWithXRCCTRL() because this is what it really does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,7 +109,7 @@ public:
|
|||||||
return m_wdata;
|
return m_wdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsRealClass(const wxString& name)
|
bool CanBeUsedWithXRCCTRL(const wxString& name)
|
||||||
{
|
{
|
||||||
if (name == _T("tool") ||
|
if (name == _T("tool") ||
|
||||||
name == _T("unknown") ||
|
name == _T("unknown") ||
|
||||||
@@ -134,7 +134,7 @@ public:
|
|||||||
for(i=0;i<m_wdata.Count();++i)
|
for(i=0;i<m_wdata.Count();++i)
|
||||||
{
|
{
|
||||||
const XRCWidgetData& w = m_wdata.Item(i);
|
const XRCWidgetData& w = m_wdata.Item(i);
|
||||||
if( !IsRealClass(w.GetClass()) ) continue;
|
if( !CanBeUsedWithXRCCTRL(w.GetClass()) ) continue;
|
||||||
if( w.GetName().Length() == 0 ) continue;
|
if( w.GetName().Length() == 0 ) continue;
|
||||||
file.Write(
|
file.Write(
|
||||||
_T(" ") + w.GetClass() + _T("* ") + w.GetName()
|
_T(" ") + w.GetClass() + _T("* ") + w.GetName()
|
||||||
@@ -149,7 +149,7 @@ public:
|
|||||||
for(i=0;i<m_wdata.Count();++i)
|
for(i=0;i<m_wdata.Count();++i)
|
||||||
{
|
{
|
||||||
const XRCWidgetData& w = m_wdata.Item(i);
|
const XRCWidgetData& w = m_wdata.Item(i);
|
||||||
if( !IsRealClass(w.GetClass()) ) continue;
|
if( !CanBeUsedWithXRCCTRL(w.GetClass()) ) continue;
|
||||||
if( w.GetName().Length() == 0 ) continue;
|
if( w.GetName().Length() == 0 ) continue;
|
||||||
file.Write( _T(" ")
|
file.Write( _T(" ")
|
||||||
+ w.GetName()
|
+ w.GetName()
|
||||||
|
Reference in New Issue
Block a user