]>
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 | ||
ab7ce33c | 10 | #if defined(__GNUG__) && !defined(__APPLE__) |
e066e256 VS |
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(); | |
f80ea77b | 33 | |
2b5f62a0 | 34 | void Preview(wxXmlNode *node,wxXmlDocument *doc); |
26607f41 VS |
35 | void MakeDirty(); |
36 | // current node updated, needs preview refresh | |
37 | // (will be done once mouse enters preview win) | |
f80ea77b | 38 | |
e066e256 | 39 | static PreviewFrame *Get(); |
43ef6d9e | 40 | void ResetResource(); |
f80ea77b | 41 | |
e066e256 VS |
42 | private: |
43 | void PreviewMenu(); | |
44 | void PreviewToolbar(); | |
45 | void PreviewPanel(); | |
f80ea77b WS |
46 | void PreviewWXFrame(); |
47 | ||
e066e256 VS |
48 | private: |
49 | static PreviewFrame *ms_Instance; | |
50 | wxXmlNode *m_Node; | |
2b5f62a0 | 51 | wxXmlDocument *m_Doc; |
e066e256 | 52 | wxScrolledWindow *m_ScrollWin; |
fa0d3447 | 53 | #if wxUSE_LOG |
e066e256 | 54 | wxTextCtrl *m_LogCtrl; |
fa0d3447 | 55 | #endif // wxUSE_LOG |
e066e256 | 56 | wxSplitterWindow *m_Splitter; |
f80ea77b | 57 | |
e066e256 VS |
58 | wxXmlResource *m_RC; |
59 | wxString m_TmpFile; | |
f80ea77b | 60 | |
26607f41 | 61 | bool m_Dirty; |
f80ea77b | 62 | |
26607f41 VS |
63 | DECLARE_EVENT_TABLE() |
64 | void OnMouseEnter(wxMouseEvent& event); | |
e066e256 VS |
65 | }; |
66 | ||
67 | ||
68 | #endif |