]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed SetPropertiesFlag() (high-level function using 'undocumented' wxPGProperty...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 7 Oct 2008 17:35:06 +0000 (17:35 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 7 Oct 2008 17:35:06 +0000 (17:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/propgridiface.h
interface/wx/propgrid/propgridiface.h
src/propgrid/propgridiface.cpp

index 05592dca15430a6f34361d91dd100dbb48b7b9fd..75946b0792803be98e008ebad8106f7443ae0e56 100644 (file)
@@ -833,16 +833,6 @@ public:
     static void SetBoolChoices( const wxString& trueChoice,
                                 const wxString& falseChoice );
 
-    /** Sets or clears flag(s) of all properties in given array.
-        @param flags
-        Property flags to set or clear.
-        @param inverse
-        Set to true if you want to clear flag instead of setting them.
-    */
-    void SetPropertiesFlag( const wxArrayPGProperty& srcArr,
-                            wxPGProperty::FlagType flags,
-                            bool inverse = false );
-
     /** Sets an attribute for this property.
         @param name
             Text identifier of attribute. See @ref propgrid_property_attributes.
index 72e7d41f2f167e1ccd7f9ac5831ec64b62335650..e8196dad30bad0dfb9243c55249c984f66e3aa03 100644 (file)
@@ -564,18 +564,6 @@ public:
     static void SetBoolChoices( const wxString& trueChoice,
                                 const wxString& falseChoice );
 
-    /**
-        Sets or clears flag(s) of all properties in given array.
-
-        @param flags
-            Property flags to set or clear.
-
-        @param inverse
-            Set to true if you want to clear flag instead of setting them.
-    */
-    void SetPropertiesFlag( const wxArrayPGProperty& srcArr, wxPGProperty::FlagType flags,
-                            bool inverse = false );
-
     /**
         Sets an attribute for this property.
 
index 43906487ab9f4e206b5ba3d75a50c0e07480b654..4a7d70d486c6116d5d0102e47a360d328999b2f3 100644 (file)
@@ -639,34 +639,6 @@ void wxPropertyGridInterface::GetPropertiesWithFlag( wxArrayPGProperty* targetAr
 
 // -----------------------------------------------------------------------
 
-void wxPropertyGridInterface::SetPropertiesFlag( const wxArrayPGProperty& srcArr,
-                                                 wxPGProperty::FlagType flags,
-                                                 bool inverse )
-{
-    unsigned int i;
-
-    for ( i=0; i<srcArr.size(); i++ )
-    {
-        wxPGProperty* property = srcArr[i];
-
-        if ( !inverse )
-            property->SetFlag(flags);
-        else
-            property->ClearFlag(flags);
-    }
-
-    // If collapsed flag or hidden was manipulated, we need to update virtual
-    // size.
-    wxPropertyGrid* pg = GetPropertyGrid();
-    if ( flags & (wxPG_PROP_COLLAPSED|wxPG_PROP_HIDDEN) )
-    {
-        GetState()->VirtualHeightChanged();
-        pg->RecalculateVirtualSize();
-    }
-}
-
-// -----------------------------------------------------------------------
-
 void wxPropertyGridInterface::SetBoolChoices( const wxString& trueChoice,
                                                  const wxString& falseChoice )
 {