Use symbolic attributes names in wxPropertyGrid code.
No real changes, just use constants instead of hardcoding their values. See #15625. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -340,13 +340,13 @@ bool wxPGSpinCtrlEditor::OnEvent( wxPropertyGrid* propgrid, wxPGProperty* proper
|
||||
|
||||
int mode = wxPG_PROPERTY_VALIDATION_SATURATE;
|
||||
|
||||
if ( property->GetAttributeAsLong(wxT("Wrap"), 0) )
|
||||
if ( property->GetAttributeAsLong(wxPG_ATTR_SPINCTRL_WRAP, 0) )
|
||||
mode = wxPG_PROPERTY_VALIDATION_WRAP;
|
||||
|
||||
if ( property->GetValueType() == wxT("double") )
|
||||
{
|
||||
double v_d;
|
||||
double step = property->GetAttributeAsDouble(wxT("Step"), 1.0);
|
||||
double step = property->GetAttributeAsDouble(wxPG_ATTR_SPINCTRL_STEP, 1.0);
|
||||
|
||||
// Try double
|
||||
if ( s.ToDouble(&v_d) )
|
||||
@@ -372,7 +372,7 @@ bool wxPGSpinCtrlEditor::OnEvent( wxPropertyGrid* propgrid, wxPGProperty* proper
|
||||
else
|
||||
{
|
||||
wxLongLong_t v_ll;
|
||||
wxLongLong_t step = property->GetAttributeAsLong(wxT("Step"), 1);
|
||||
wxLongLong_t step = property->GetAttributeAsLong(wxPG_ATTR_SPINCTRL_STEP, 1);
|
||||
|
||||
// Try (long) long
|
||||
if ( s.ToLongLong(&v_ll, 10) )
|
||||
|
Reference in New Issue
Block a user