Applied patch [ 1164975 ] xml handler for wxStaticPicture

David Norris


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-03-30 17:14:41 +00:00
parent 2a1f999faf
commit 92c45b12e2
9 changed files with 154 additions and 11 deletions

View File

@@ -0,0 +1,41 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xh_statpict.h
// Purpose: XRC resource handler for wxStaticPicture
// Author: David A. Norris
// Created: 2005/03/13
// RCS-ID: $Id$
// Copyright: David A. Norris
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XH_STATPICT_H
#define _WX_XH_STATPICT_H
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "xh_statpict.h"
#endif
#include "wx/xrc/xmlres.h"
//
// XML resource handler for the wxStaticPicture class in wxContrib.
//
class WXDLLIMPEXP_XRC wxStaticPictureXmlHandler : public wxXmlResourceHandler
{
public:
// Constructor.
wxStaticPictureXmlHandler();
// Creates the control and returns a pointer to it.
virtual wxObject *DoCreateResource();
// Returns true if we know how to create a control for the given node.
virtual bool CanHandle(wxXmlNode *node);
// Register with wxWindows' dynamic class subsystem.
DECLARE_DYNAMIC_CLASS(wxStaticPictureXmlHandler)
};
#endif