#define _NODESDB_H_
#include "wx/dynarray.h"
+#include "wx/arrstr.h"
class WXDLLEXPORT wxXmlNode;
class WXDLLEXPORT wxString;
PropertyInfo() {}
PropertyInfo(const wxString& atype, const wxString& aname, const wxString& amoreinfo)
: Type(atype), Name(aname), MoreInfo(amoreinfo) {}
-
+
PropertyInfo& operator=(const PropertyInfo& p)
{
Type = p.Type; Name = p.Name; MoreInfo = p.MoreInfo;
return *this;
}
-
+
wxString Type;
wxString Name;
wxString MoreInfo;
{
public:
wxString NodeClass;
- wxString Type;
+ wxString Type;
PropertyInfoArray Props;
wxArrayString DerivedFrom;
bool Abstract;
wxString ChildType;
int Icon;
-
+
void Read(const wxString& filename, wxPathList& list);
};
{
public:
NodesDb();
-
+
void Load();
void LoadDir(const wxString& path);
void LoadFile(const wxString& file);
-
+
NodeInfoArray& GetNodesInfo() { return m_Infos; }
-
+
static NodesDb *Get();
-
+
private:
static NodesDb *ms_Instance;
NodeInfoArray m_Infos;
-#endif
+#endif