X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06f3c649c91e3ad1d7e616495ecc19d83f073a33..b388e8cdec4f45124f31525e651a5e335965e4be:/contrib/utils/wxrcedit/preview.h?ds=inline diff --git a/contrib/utils/wxrcedit/preview.h b/contrib/utils/wxrcedit/preview.h index 6675c4f752..014e91ba24 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 @@ -30,36 +30,38 @@ class PreviewFrame : public wxFrame public: 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; +#if wxUSE_LOG wxTextCtrl *m_LogCtrl; +#endif // wxUSE_LOG wxSplitterWindow *m_Splitter; - + wxXmlResource *m_RC; wxString m_TmpFile; - + bool m_Dirty; - + DECLARE_EVENT_TABLE() void OnMouseEnter(wxMouseEvent& event); -#ifdef __WXMSW__ - void OnActivate(wxActivateEvent &event); -#endif };