Add member function to retrieve wxBoolProperty attribute.
Added wxBoolProperty::DoGetAttribute virtual function. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -361,6 +361,7 @@ public:
|
|||||||
virtual bool IntToValue( wxVariant& variant,
|
virtual bool IntToValue( wxVariant& variant,
|
||||||
int number, int argFlags = 0 ) const;
|
int number, int argFlags = 0 ) const;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
||||||
|
virtual wxVariant DoGetAttribute( const wxString& name ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
@@ -1092,6 +1092,23 @@ bool wxBoolProperty::DoSetAttribute( const wxString& name, wxVariant& value )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxVariant wxBoolProperty::DoGetAttribute( const wxString& name ) const
|
||||||
|
{
|
||||||
|
wxVariant value;
|
||||||
|
#if wxPG_INCLUDE_CHECKBOX
|
||||||
|
if ( name == wxPG_BOOL_USE_CHECKBOX )
|
||||||
|
{
|
||||||
|
value = (bool)((m_flags & wxPG_PROP_USE_CHECKBOX) != 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
if ( name == wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING )
|
||||||
|
{
|
||||||
|
value = (bool)((m_flags & wxPG_PROP_USE_DCC) != 0);
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
// wxEnumProperty
|
// wxEnumProperty
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user