home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / contrib / utils / wxrcedit / preview.h < prev    next >
C/C++ Source or Header  |  2002-09-08  |  2KB  |  66 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Purpose:     XML resources editor
  3. // Author:      Vaclav Slavik
  4. // Created:     2000/05/05
  5. // RCS-ID:      $Id: preview.h,v 1.5 2002/09/07 12:15:24 GD Exp $
  6. // Copyright:   (c) 2000 Vaclav Slavik
  7. // Licence:     wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9.  
  10. #if defined(__GNUG__) && !defined(__APPLE__)
  11.     #pragma interface "preview.h"
  12. #endif
  13.  
  14. #ifndef _PREVIEW_H_
  15. #define _PREVIEW_H_
  16.  
  17.  
  18.  
  19. class WXDLLEXPORT wxXmlNode;
  20. class WXDLLEXPORT wxScrolledWindow;
  21. class WXDLLEXPORT wxTextCtrl;
  22. class WXDLLEXPORT wxSplitterWindow;
  23. class WXDLLEXPORT wxXmlResource;
  24. class WXDLLEXPORT wxXmlDocument;
  25. #include "wx/frame.h"
  26.  
  27.  
  28. class PreviewFrame : public wxFrame
  29. {
  30.     public:
  31.         PreviewFrame();
  32.         ~PreviewFrame();
  33.         
  34.         void Preview(wxXmlNode *node,const wxString &version);
  35.         void MakeDirty();
  36.                 // current node updated, needs preview refresh
  37.                 // (will be done once mouse enters preview win)
  38.       
  39.         static PreviewFrame *Get();
  40.         void ResetResource();
  41.         
  42.     private:
  43.         void PreviewMenu();
  44.         void PreviewToolbar();
  45.         void PreviewPanel();
  46.     
  47.     private:
  48.         static PreviewFrame *ms_Instance;
  49.         wxXmlNode *m_Node;
  50.         wxString m_Version;
  51.         wxScrolledWindow *m_ScrollWin;
  52.         wxTextCtrl *m_LogCtrl;
  53.         wxSplitterWindow *m_Splitter;
  54.         
  55.         wxXmlResource *m_RC;
  56.         wxString m_TmpFile;
  57.         
  58.         bool m_Dirty;
  59.         
  60.         DECLARE_EVENT_TABLE()
  61.         void OnMouseEnter(wxMouseEvent& event);
  62. };
  63.  
  64.  
  65. #endif
  66.