// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "nodehnd.h"
#endif
#include "wx/treectrl.h"
#include "wx/xml/xml.h"
#include "nodesdb.h"
-
+#include "wx/arrstr.h"
{
public:
static NodeHandler *Find(wxXmlNode *node);
-
+
NodeHandler(NodeInfo *ni);
virtual ~NodeHandler();
-
+
virtual bool CanHandle(wxXmlNode *node);
virtual wxTreeItemId CreateTreeNode(wxTreeCtrl *treectrl, wxTreeItemId parent,
wxXmlNode *node);
wxArrayString& GetChildTypes();
virtual void InsertNode(wxXmlNode *parent, wxXmlNode *node, wxXmlNode *insert_before = NULL);
virtual wxXmlNode *GetRealNode(wxXmlNode *node) { return node; }
-
+
protected:
NodeInfo *m_NodeInfo;
wxArrayString m_ChildTypes;
-
+
static wxList ms_Handlers;
static bool ms_HandlersLoaded;
};
{
public:
NodeHandlerPanel(NodeInfo *ni) : NodeHandler(ni) {}
-
+
virtual wxTreeItemId CreateTreeNode(wxTreeCtrl *treectrl, wxTreeItemId parent,
wxXmlNode *node);
virtual void InsertNode(wxXmlNode *parent, wxXmlNode *node, wxXmlNode *insert_before = NULL);
{
public:
NodeHandlerSizer(NodeInfo *ni) : NodeHandlerPanel(ni) {}
-
+
virtual void InsertNode(wxXmlNode *parent, wxXmlNode *node, wxXmlNode *insert_before = NULL);
virtual int GetTreeIcon(wxXmlNode *node);
};
{
public:
NodeHandlerNotebook(NodeInfo *ni) : NodeHandlerPanel(ni) {}
-
+
virtual void InsertNode(wxXmlNode *parent, wxXmlNode *node, wxXmlNode *insert_before = NULL);
};
class NodeHandlerNotebookPage : public NodeHandlerSizerItem
{
public:
- NodeHandlerNotebookPage(NodeInfo *ni) :
+ NodeHandlerNotebookPage(NodeInfo *ni) :
NodeHandlerSizerItem(ni) {}
};
{
public:
NodeHandlerUnknown() : NodeHandler(new NodeInfo) {}
-
- virtual bool CanHandle(wxXmlNode *node) { return TRUE; }
+
+ virtual bool CanHandle(wxXmlNode *WXUNUSED(node)) { return true; }
};
-#endif
+#endif