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"
18 #include "wx/arrstr.h"
20 class WXDLLEXPORT wxXmlNode
;
21 class WXDLLEXPORT wxString
;
22 class WXDLLEXPORT wxPathList
;
29 PropertyInfo(const wxString
& atype
, const wxString
& aname
, const wxString
& amoreinfo
)
30 : Type(atype
), Name(aname
), MoreInfo(amoreinfo
) {}
32 PropertyInfo
& operator=(const PropertyInfo
& p
)
34 Type
= p
.Type
; Name
= p
.Name
; MoreInfo
= p
.MoreInfo
;
43 WX_DECLARE_OBJARRAY(PropertyInfo
, PropertyInfoArray
);
51 PropertyInfoArray Props
;
52 wxArrayString DerivedFrom
;
57 void Read(const wxString
& filename
, wxPathList
& list
);
60 WX_DECLARE_OBJARRAY(NodeInfo
, NodeInfoArray
);
70 void LoadDir(const wxString
& path
);
71 void LoadFile(const wxString
& file
);
73 NodeInfoArray
& GetNodesInfo() { return m_Infos
; }
75 static NodesDb
*Get();
78 static NodesDb
*ms_Instance
;
79 NodeInfoArray m_Infos
;
80 wxArrayString m_Paths
;