+ file.Write( _T("public:\n"));
+
+ if ( m_ancestorClassNames.size() == 1 )
+ {
+ file.Write
+ (
+ m_className +
+ _T("(") +
+ *m_ancestorClassNames.begin() +
+ _T(" *parent=NULL){\n") +
+ _T(" InitWidgetsFromXRC((wxWindow *)parent);\n")
+ _T(" }\n")
+ _T("};\n")
+ );
+ }
+ else
+ {
+ file.Write(m_className + _T("(){\n") +
+ _T(" InitWidgetsFromXRC(NULL);\n")
+ _T(" }\n")
+ _T("};\n"));
+
+ for ( StringSet::const_iterator it = m_ancestorClassNames.begin();
+ it != m_ancestorClassNames.end();
+ ++it )
+ {
+ file.Write(m_className + _T("(") + *it + _T(" *parent){\n") +
+ _T(" InitWidgetsFromXRC((wxWindow *)parent);\n")
+ _T(" }\n")
+ _T("};\n"));
+ }
+ }
+ }