X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e066e2566a4e5db3510fe6a204d66850eaeceade..3527f29c8769e09d796c547c0c309f8b86407012:/contrib/utils/wxrcedit/preview.h?ds=sidebyside diff --git a/contrib/utils/wxrcedit/preview.h b/contrib/utils/wxrcedit/preview.h index ee7f86d763..e9e558a833 100644 --- a/contrib/utils/wxrcedit/preview.h +++ b/contrib/utils/wxrcedit/preview.h @@ -7,7 +7,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "preview.h" #endif @@ -31,24 +31,35 @@ class PreviewFrame : public wxFrame PreviewFrame(); ~PreviewFrame(); - void Preview(wxXmlNode *node); + void Preview(wxXmlNode *node,wxXmlDocument *doc); + void MakeDirty(); + // current node updated, needs preview refresh + // (will be done once mouse enters preview win) static PreviewFrame *Get(); + void ResetResource(); private: void PreviewMenu(); void PreviewToolbar(); void PreviewPanel(); + void PreviewWXFrame(); private: static PreviewFrame *ms_Instance; wxXmlNode *m_Node; + wxXmlDocument *m_Doc; wxScrolledWindow *m_ScrollWin; wxTextCtrl *m_LogCtrl; wxSplitterWindow *m_Splitter; wxXmlResource *m_RC; wxString m_TmpFile; + + bool m_Dirty; + + DECLARE_EVENT_TABLE() + void OnMouseEnter(wxMouseEvent& event); };