]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/utils/wxrcedit/preview.h
[ 1176516 ] argv datatype has changed (char in docs but really wxChar)
[wxWidgets.git] / contrib / utils / wxrcedit / preview.h
index ee7f86d7632a5310925f7b4e759de9e856c52456..014e91ba24312fa6eda13188d78ae761fc476ac6 100644 (file)
@@ -7,7 +7,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma interface "preview.h"
 #endif
 
@@ -30,25 +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);
 };