2000-10-07 17:56:37 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Purpose: XML resources editor
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Created: 2000/05/05
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2000 Vaclav Slavik
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "preview.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _PREVIEW_H_
|
|
|
|
#define _PREVIEW_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxXmlNode;
|
|
|
|
class WXDLLEXPORT wxScrolledWindow;
|
|
|
|
class WXDLLEXPORT wxTextCtrl;
|
|
|
|
class WXDLLEXPORT wxSplitterWindow;
|
|
|
|
class WXDLLEXPORT wxXmlResource;
|
|
|
|
class WXDLLEXPORT wxXmlDocument;
|
|
|
|
#include "wx/frame.h"
|
|
|
|
|
|
|
|
|
|
|
|
class PreviewFrame : public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PreviewFrame();
|
|
|
|
~PreviewFrame();
|
|
|
|
|
2001-05-29 14:21:09 -04:00
|
|
|
void Preview(wxXmlNode *node,const wxString &version);
|
2000-11-24 12:19:48 -05:00
|
|
|
void MakeDirty();
|
|
|
|
// current node updated, needs preview refresh
|
|
|
|
// (will be done once mouse enters preview win)
|
2000-10-07 17:56:37 -04:00
|
|
|
|
|
|
|
static PreviewFrame *Get();
|
2001-05-29 14:21:09 -04:00
|
|
|
void ResetResource();
|
2000-10-07 17:56:37 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
void PreviewMenu();
|
|
|
|
void PreviewToolbar();
|
|
|
|
void PreviewPanel();
|
|
|
|
|
|
|
|
private:
|
|
|
|
static PreviewFrame *ms_Instance;
|
|
|
|
wxXmlNode *m_Node;
|
2001-05-29 14:21:09 -04:00
|
|
|
wxString m_Version;
|
2000-10-07 17:56:37 -04:00
|
|
|
wxScrolledWindow *m_ScrollWin;
|
|
|
|
wxTextCtrl *m_LogCtrl;
|
|
|
|
wxSplitterWindow *m_Splitter;
|
|
|
|
|
|
|
|
wxXmlResource *m_RC;
|
|
|
|
wxString m_TmpFile;
|
2000-11-24 12:19:48 -05:00
|
|
|
|
|
|
|
bool m_Dirty;
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
void OnMouseEnter(wxMouseEvent& event);
|
2000-10-07 17:56:37 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|