1 /////////////////////////////////////////////////////////////////////////////
2 // Purpose: XML resources editor
3 // Author: Vaclav Slavik
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #if defined(__GNUG__) && !defined(__APPLE__)
11 #pragma interface "nodesdb.h"
17 #include "wx/dynarray.h"
19 class WXDLLEXPORT wxXmlNode
;
20 class WXDLLEXPORT wxString
;
21 class WXDLLEXPORT wxPathList
;
28 PropertyInfo(const wxString
& atype
, const wxString
& aname
, const wxString
& amoreinfo
)
29 : Type(atype
), Name(aname
), MoreInfo(amoreinfo
) {}
31 PropertyInfo
& operator=(const PropertyInfo
& p
)
33 Type
= p
.Type
; Name
= p
.Name
; MoreInfo
= p
.MoreInfo
;
42 WX_DECLARE_OBJARRAY(PropertyInfo
, PropertyInfoArray
);
50 PropertyInfoArray Props
;
51 wxArrayString DerivedFrom
;
56 void Read(const wxString
& filename
, wxPathList
& list
);
59 WX_DECLARE_OBJARRAY(NodeInfo
, NodeInfoArray
);
69 void LoadDir(const wxString
& path
);
70 void LoadFile(const wxString
& file
);
72 NodeInfoArray
& GetNodesInfo() { return m_Infos
; }
74 static NodesDb
*Get();
77 static NodesDb
*ms_Instance
;
78 NodeInfoArray m_Infos
;
79 wxArrayString m_Paths
;