Files correlati : Commento : Spostamento in libraries delle librerie esterne di Campo per una maggiore pulizia e organizzazione git-svn-id: svn://10.65.10.50/branches/R_10_00@24150 c028cbd2-c16b-5b4b-a496-9718f37d4682
56 lines
1.5 KiB
C++
56 lines
1.5 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: xh_propgrid.h
|
|
// Purpose: XML resource handler for wxPropertyGrid
|
|
// Author: Jaakko Salli
|
|
// Modified by:
|
|
// Created: May-16-2007
|
|
// RCS-ID: $Id:
|
|
// Copyright: (c) Jaakko Salli
|
|
// Licence: wxWindows license
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_XH_PROPGRID_H_
|
|
#define _WX_XH_PROPGRID_H_
|
|
|
|
/*
|
|
|
|
NOTE: relevant source file, xh_propgrid.cpp is *not* included in the
|
|
wxPropertyGrid library (to prevent xrc-lib dependency). To use this
|
|
code, you will need to separately add src/xh_propgrid.cpp to your
|
|
application.
|
|
|
|
*/
|
|
|
|
#include "wx/xrc/xmlres.h"
|
|
|
|
#include "wx/propgrid/propgrid.h"
|
|
#include "wx/propgrid/manager.h"
|
|
|
|
#if wxUSE_XRC && wxCHECK_VERSION(2,8,0)
|
|
|
|
class wxPropertyGridXmlHandler : public wxXmlResourceHandler
|
|
{
|
|
friend class wxPropertyGridXrcPopulator;
|
|
DECLARE_DYNAMIC_CLASS(wxPropertyGridXmlHandler)
|
|
|
|
public:
|
|
wxPropertyGridXmlHandler();
|
|
virtual wxObject *DoCreateResource();
|
|
virtual bool CanHandle(wxXmlNode *node);
|
|
|
|
void InitPopulator();
|
|
void PopulatePage( wxPropertyGridState* state );
|
|
void DonePopulator();
|
|
|
|
void HandlePropertyGridParams();
|
|
|
|
private:
|
|
wxPropertyGridManager* m_manager;
|
|
wxPropertyGrid* m_pg;
|
|
wxPropertyGridPopulator* m_populator;
|
|
};
|
|
|
|
#endif // wxUSE_XRC && wxCHECK_VERSION(2,8,0)
|
|
|
|
#endif // _WX_XH_PROPGRID_H_
|