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/interface/wx/propgrid/property.h

    r56150 r56169  
    241241        virtual bool OnButtonClick( wxPropertyGrid* propGrid, wxString& value ) 
    242242        { 
    243             // Update property value from editor, if necessary 
    244             PrepareValueForDialogEditing(propGrid); 
    245  
    246243            wxSize dialogSize(...size of your dialog...); 
    247244 
     
    12011198 
    12021199    /** 
    1203         Updates property value in case there were last minute 
    1204         changes. If value was unspecified, it will be set to default. 
    1205         Use only for properties that have TextCtrl-based editor. 
    1206  
    1207         @remarks If you have code similar to 
    1208                 @code 
    1209                 // Update the value in case of last minute changes 
    1210                 if ( primary && propgrid->IsEditorsValueModified() ) 
    1211                      GetEditorClass()->CopyValueFromControl( this, primary ); 
    1212                 @endcode 
    1213                 in wxPGProperty::OnEvent wxEVT_COMMAND_BUTTON_CLICKED handler, 
    1214                 then replace it with call to this method. 
    1215  
    1216         @return Returns @true if value changed. 
    1217     */ 
    1218     bool PrepareValueForDialogEditing( wxPropertyGrid* propgrid ); 
    1219  
    1220     /** 
    12211200        If property's editor is active, then update it's value. 
    12221201    */