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();
|
|
|
|
|
|
|
|
void Preview(wxXmlNode *node);
|
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();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void PreviewMenu();
|
|
|
|
void PreviewToolbar();
|
|
|
|
void PreviewPanel();
|
|
|
|
|
|
|
|
private:
|
|
|
|
static PreviewFrame *ms_Instance;
|
|
|
|
wxXmlNode *m_Node;
|
|
|
|
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);
|
2001-05-22 18:04:00 -04:00
|
|
|
#ifdef __WXMSW__
|
|
|
|
void OnActivate(wxActivateEvent &event);
|
|
|
|
#endif
|
2000-10-07 17:56:37 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|