From 4279fdb44ac849bc12e2d93b1fefad1a29d14c74 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Tue, 16 Feb 2010 15:38:12 +0000 Subject: [PATCH] Added wxPropertyGridInterface::GetColumnProportion() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/propgrid/propgridiface.h | 12 ++++++++++++ include/wx/propgrid/propgridpagestate.h | 5 +++++ interface/wx/propgrid/propgridiface.h | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/include/wx/propgrid/propgridiface.h b/include/wx/propgrid/propgridiface.h index f69a0729f0..a79f2a93b2 100644 --- a/include/wx/propgrid/propgridiface.h +++ b/include/wx/propgrid/propgridiface.h @@ -870,9 +870,21 @@ public: @remarks You should call this for individual pages of wxPropertyGridManager (if used). + + @see GetColumnProportion() */ 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. diff --git a/include/wx/propgrid/propgridpagestate.h b/include/wx/propgrid/propgridpagestate.h index 1f7d15fab7..d6171510d6 100644 --- a/include/wx/propgrid/propgridpagestate.h +++ b/include/wx/propgrid/propgridpagestate.h @@ -549,6 +549,11 @@ public: 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, diff --git a/interface/wx/propgrid/propgridiface.h b/interface/wx/propgrid/propgridiface.h index 2014a6f086..c8bdd55707 100644 --- a/interface/wx/propgrid/propgridiface.h +++ b/interface/wx/propgrid/propgridiface.h @@ -192,6 +192,13 @@ public: */ 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. @@ -687,6 +694,8 @@ public: @remarks You should call this for individual pages of wxPropertyGridManager (if used). + + @see GetColumnProportion() */ bool SetColumnProportion( unsigned int column, int proportion ); -- 2.45.2