Use the same macro to implement all wxPG property classes.
Currently, WX_PG_IMPLEMENT_PROPERTY_CLASS macro is used to implement most of the property classes (and also property classes in the propgrid sample) but few property classes are implemented in alternative way, using separate IMPLEMENT_DYNAMIC_CLASS and WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN macros. These two macros can be replaced with WX_PG_IMPLEMENT_PROPERTY_CLASS macro (which is a concatenation of both) so property class implementation can be unified. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2716,9 +2716,8 @@ void wxPGProperty::SubPropsChanged( int oldSelInd )
|
||||
// wxPGRootProperty
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN(wxPGRootProperty,none,TextCtrl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPGRootProperty, wxPGProperty)
|
||||
|
||||
WX_PG_IMPLEMENT_PROPERTY_CLASS(wxPGRootProperty, wxPGProperty,
|
||||
none, none, TextCtrl)
|
||||
|
||||
wxPGRootProperty::wxPGRootProperty( const wxString& name )
|
||||
: wxPGProperty()
|
||||
@@ -2739,8 +2738,8 @@ wxPGRootProperty::~wxPGRootProperty()
|
||||
// wxPropertyCategory
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN(wxPropertyCategory,none,TextCtrl)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPropertyCategory, wxPGProperty)
|
||||
WX_PG_IMPLEMENT_PROPERTY_CLASS(wxPropertyCategory, wxPGProperty,
|
||||
none, none, TextCtrl)
|
||||
|
||||
void wxPropertyCategory::Init()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user