mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-02-05 15:24:22 +01:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: xh_grid.h
|
|
// Purpose: XML resource handler for the grid control
|
|
// Author: Agron Selimaj
|
|
// Created: 2005/08/11
|
|
// RCS-ID: $Id: xh_grid.cpp 36278 2005-11-29 00:54:02Z VZ $
|
|
// Copyright: (c) 2005 Agron Selimaj, Freepour Controls Inc.
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// For compilers that support precompilation, includes "wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifdef __BORLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#if wxUSE_XRC && wxUSE_GRID
|
|
|
|
#include "wx/xrc/xh_grid.h"
|
|
#include "wx/grid.h"
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxGridXmlHandler, wxXmlResourceHandler)
|
|
|
|
wxGridXmlHandler::wxGridXmlHandler()
|
|
: wxXmlResourceHandler()
|
|
{
|
|
AddWindowStyles();
|
|
}
|
|
|
|
wxObject *wxGridXmlHandler::DoCreateResource()
|
|
{
|
|
XRC_MAKE_INSTANCE(grid, wxGrid)
|
|
|
|
grid->Create(m_parentAsWindow,
|
|
GetID(),
|
|
GetPosition(), GetSize(),
|
|
GetStyle(wxT("style")),
|
|
GetName());
|
|
|
|
SetupWindow( grid);
|
|
|
|
return grid;
|
|
}
|
|
|
|
bool wxGridXmlHandler::CanHandle(wxXmlNode *node)
|
|
{
|
|
return IsOfClass(node, wxT("wxGrid"));
|
|
}
|
|
|
|
#endif // wxUSE_XRC && wxUSE_GRID
|