]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxPropertyGridInterface::GetColumnProportion()
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 16 Feb 2010 15:38:12 +0000 (15:38 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 16 Feb 2010 15:38:12 +0000 (15:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/propgridiface.h
include/wx/propgrid/propgridpagestate.h
interface/wx/propgrid/propgridiface.h

index f69a0729f02a75e7dd317634b045d97990db99a6..a79f2a93b28b2ba3bae1789a6b192ea5e099408e 100644 (file)
@@ -870,9 +870,21 @@ public:
 
         @remarks You should call this for individual pages of
                  wxPropertyGridManager (if used).
 
         @remarks You should call this for individual pages of
                  wxPropertyGridManager (if used).
+
+        @see GetColumnProportion()
     */
     bool SetColumnProportion( unsigned int column, int proportion );
 
     */
     bool SetColumnProportion( unsigned int column, int proportion );
 
+    /**
+        Returns auto-resize proportion of the given column.
+
+        @see SetColumnProportion()
+    */
+    int GetColumnProportion( unsigned int column ) const
+    {
+        return m_pState->DoGetColumnProportion(column);
+    }
+
     /** Sets an attribute for this property.
         @param name
             Text identifier of attribute. See @ref propgrid_property_attributes.
     /** Sets an attribute for this property.
         @param name
             Text identifier of attribute. See @ref propgrid_property_attributes.
index 1f7d15fab7b308e66688d62f2b0d85204a962689..d6171510d67f25d4d3679eb127659f89056b9ac3 100644 (file)
@@ -549,6 +549,11 @@ public:
 
     void DoSetColumnProportion( unsigned int column, int proportion );
 
 
     void DoSetColumnProportion( unsigned int column, int proportion );
 
+    int DoGetColumnProportion( unsigned int column ) const
+    {
+        return m_columnProportions[column];
+    }
+
     wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const;
 
     wxPGProperty* GetPropertyByLabel( const wxString& name,
     wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const;
 
     wxPGProperty* GetPropertyByLabel( const wxString& name,
index 2014a6f08654ae701cf4a5607d2f50dc5b3c2420..c8bdd55707a6c07b7625e483238c110e26a9b24d 100644 (file)
@@ -192,6 +192,13 @@ public:
     */
     bool ExpandAll( bool expand = true );
 
     */
     bool ExpandAll( bool expand = true );
 
+    /**
+        Returns auto-resize proportion of the given column.
+
+        @see SetColumnProportion()
+    */
+    int GetColumnProportion( unsigned int column ) const;
+
     /**
         Returns id of first child of given property.
 
     /**
         Returns id of first child of given property.
 
@@ -687,6 +694,8 @@ public:
 
         @remarks You should call this for individual pages of
                  wxPropertyGridManager (if used).
 
         @remarks You should call this for individual pages of
                  wxPropertyGridManager (if used).
+
+        @see GetColumnProportion()
     */
     bool SetColumnProportion( unsigned int column, int proportion );
 
     */
     bool SetColumnProportion( unsigned int column, int proportion );