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 >
Wrap
C/C++ Source or Header
|
2002-09-08
|
2KB
|
66 lines
/////////////////////////////////////////////////////////////////////////////
// Purpose: XML resources editor
// Author: Vaclav Slavik
// Created: 2000/05/05
// RCS-ID: $Id: preview.h,v 1.5 2002/09/07 12:15:24 GD Exp $
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(__APPLE__)
#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,const wxString &version);
void MakeDirty();
// current node updated, needs preview refresh
// (will be done once mouse enters preview win)
static PreviewFrame *Get();
void ResetResource();
private:
void PreviewMenu();
void PreviewToolbar();
void PreviewPanel();
private:
static PreviewFrame *ms_Instance;
wxXmlNode *m_Node;
wxString m_Version;
wxScrolledWindow *m_ScrollWin;
wxTextCtrl *m_LogCtrl;
wxSplitterWindow *m_Splitter;
wxXmlResource *m_RC;
wxString m_TmpFile;
bool m_Dirty;
DECLARE_EVENT_TABLE()
void OnMouseEnter(wxMouseEvent& event);
};
#endif