]>
Commit | Line | Data |
---|---|---|
e066e256 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Purpose: XML resources editor | |
3 | // Author: Vaclav Slavik | |
4 | // Created: 2000/05/05 | |
5 | // RCS-ID: $Id$ | |
6 | // Copyright: (c) 2000 Vaclav Slavik | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifdef __GNUG__ | |
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); | |
26607f41 VS |
35 | void MakeDirty(); |
36 | // current node updated, needs preview refresh | |
37 | // (will be done once mouse enters preview win) | |
e066e256 VS |
38 | |
39 | static PreviewFrame *Get(); | |
40 | ||
41 | private: | |
42 | void PreviewMenu(); | |
43 | void PreviewToolbar(); | |
44 | void PreviewPanel(); | |
45 | ||
46 | private: | |
47 | static PreviewFrame *ms_Instance; | |
48 | wxXmlNode *m_Node; | |
49 | wxScrolledWindow *m_ScrollWin; | |
50 | wxTextCtrl *m_LogCtrl; | |
51 | wxSplitterWindow *m_Splitter; | |
52 | ||
53 | wxXmlResource *m_RC; | |
54 | wxString m_TmpFile; | |
26607f41 VS |
55 | |
56 | bool m_Dirty; | |
57 | ||
58 | DECLARE_EVENT_TABLE() | |
59 | void OnMouseEnter(wxMouseEvent& event); | |
e066e256 VS |
60 | }; |
61 | ||
62 | ||
63 | #endif |