added wxHyperlinkCtrl (patch 1476781 from Francesco)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
44
include/wx/xrc/xh_hyperlink.h
Normal file
44
include/wx/xrc/xh_hyperlink.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: xh_hyperlink.h
|
||||
// Purpose: Hyperlink control (wxAdv)
|
||||
// Author: David Norris <danorris@gmail.com>
|
||||
// Modified by: Ryan Norton, Francesco Montorsi
|
||||
// Created: 04/02/2005
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2005 David Norris
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_XH_HYPERLINKH__
|
||||
#define _WX_XH_HYPERLINKH__
|
||||
|
||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
||||
#pragma interface "hyperlink.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_HYPERLINKCTRL
|
||||
|
||||
#include "wx/hyperlink.h"
|
||||
#include "wx/xrc/xmlres.h"
|
||||
|
||||
class WXDLLIMPEXP_XRC wxHyperlinkCtrlXmlHandler : public wxXmlResourceHandler
|
||||
{
|
||||
public:
|
||||
// Constructor.
|
||||
wxHyperlinkCtrlXmlHandler();
|
||||
|
||||
// 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(wxHyperlinkCtrlXmlHandler)
|
||||
};
|
||||
|
||||
#endif // wxUSE_HYPERLINKCTRL
|
||||
#endif // _WX_XH_HYPERLINKH__
|
||||
|
Reference in New Issue
Block a user