Show
Ignore:
Timestamp:
10/08/08 11:15:10 (3 months ago)
Author:
JMS
Message:

Removed dysfunctional wxPGPropery::PrepareValueForDialogEditing(); Replaced its functionality with wxPropertyGrid::GetPendingEditedValue(); Added wxPropertyGrid::PerformValidation() flags so it can be called in generic context.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/src/propgrid/props.cpp

    r56147 r56169  
    15591559{ 
    15601560    // Update property value from editor, if necessary 
    1561     PrepareValueForDialogEditing(propGrid); 
    1562  
    15631561    wxSize dlg_sz(300,400); 
    15641562 
     
    18881886    { 
    18891887        // Update the value 
    1890         PrepareValueForDialogEditing(propGrid); 
    1891  
    1892         wxString val1 = GetValueAsString(0); 
     1888        wxVariant useValue = propGrid->GetPendingEditedValue(); 
     1889 
     1890        wxString val1 = useValue.GetString(); 
    18931891        wxString val_orig = val1; 
    18941892 
     
    24902488{ 
    24912489    // Update the value 
    2492     PrepareValueForDialogEditing(propGrid); 
     2490    wxVariant useValue = propGrid->GetPendingEditedValue(); 
    24932491 
    24942492    if ( !propGrid->EditorValidate() ) 
     
    25072505        strEdDlg->SetCustomButton(cbt, this); 
    25082506 
    2509     dlg->SetDialogValue( wxVariant(m_value) ); 
     2507    dlg->SetDialogValue( useValue ); 
    25102508    dlg->Create(propGrid, wxEmptyString, m_label); 
    25112509