X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e066e2566a4e5db3510fe6a204d66850eaeceade..f2616db56739e4962f683f59ac9e207756efe23c:/contrib/utils/wxrcedit/preview.h?ds=inline diff --git a/contrib/utils/wxrcedit/preview.h b/contrib/utils/wxrcedit/preview.h index ee7f86d763..538ea3e157 100644 --- a/contrib/utils/wxrcedit/preview.h +++ b/contrib/utils/wxrcedit/preview.h @@ -31,9 +31,13 @@ class PreviewFrame : public wxFrame PreviewFrame(); ~PreviewFrame(); - void Preview(wxXmlNode *node); + void Preview(wxXmlNode *node,const wxString &version); + void MakeDirty(); + // current node updated, needs preview refresh + // (will be done once mouse enters preview win) static PreviewFrame *Get(); + void ResetResource(); private: void PreviewMenu(); @@ -43,12 +47,18 @@ class PreviewFrame : public wxFrame private: static PreviewFrame *ms_Instance; wxXmlNode *m_Node; + wxString m_Version; 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); };