// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "editor.h"
#endif
{
public:
friend class EditorTreeCtrl;
-
+
EditorFrame(wxFrame *parent, const wxString& filename);
~EditorFrame();
void NewFile();
void SaveFile(const wxString& filename);
wxString GetFileName() { return m_FileName; }
-
+
void RefreshTree();
void RefreshTitle();
bool SelectNode(wxXmlNode *node, wxTreeItemId *root = NULL);
-
+
wxTreeItemId CreateTreeNode(wxTreeCtrl *treectrl, wxTreeItemId parent, wxXmlNode *node);
-
+
void NotifyChanged(int change_type);
-
+
static EditorFrame *Get() { return ms_Instance; }
-
+
private:
static EditorFrame *ms_Instance;
-
+
wxTreeCtrl *m_TreeCtrl;
-
+
wxXmlNode *m_SelectedNode;
-
+
wxXmlNode *m_Clipboard;
wxString m_FileName;
wxXmlRcEditDocument *m_Resource;
-
+
bool m_Modified;
-
+
bool AskToSave();
void DeleteSelectedNode();