Added wxPropertyGridInterface::GetColumnProportion()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-02-16 15:38:12 +00:00
parent 008a4cb321
commit 4279fdb44a
3 changed files with 26 additions and 0 deletions

View File

@@ -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.

View File

@@ -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,

View File

@@ -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 );