Moved SetPropertyAttributeAll() to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -595,12 +595,6 @@ public:
|
|||||||
/** Sets y coordinate of the description box splitter. */
|
/** Sets y coordinate of the description box splitter. */
|
||||||
void SetDescBoxHeight( int ht, bool refresh = true );
|
void SetDescBoxHeight( int ht, bool refresh = true );
|
||||||
|
|
||||||
/** Sets property attribute for all applicapple properties.
|
|
||||||
Be sure to use this method after all properties have been
|
|
||||||
added to the grid.
|
|
||||||
*/
|
|
||||||
void SetPropertyAttributeAll( const wxString& name, wxVariant value );
|
|
||||||
|
|
||||||
/** Moves splitter as left as possible, while still allowing all
|
/** Moves splitter as left as possible, while still allowing all
|
||||||
labels to be shown in full.
|
labels to be shown in full.
|
||||||
@param subProps
|
@param subProps
|
||||||
|
@@ -966,12 +966,6 @@ public:
|
|||||||
/** Sets background colour of margin. */
|
/** Sets background colour of margin. */
|
||||||
void SetMarginColour(const wxColour& col);
|
void SetMarginColour(const wxColour& col);
|
||||||
|
|
||||||
/** Sets property attribute for all applicapple properties.
|
|
||||||
Be sure to use this method only after all properties have been
|
|
||||||
added to the grid.
|
|
||||||
*/
|
|
||||||
void SetPropertyAttributeAll( const wxString& attrName, wxVariant value );
|
|
||||||
|
|
||||||
/** Sets background colour of property and all its children. Colours of
|
/** Sets background colour of property and all its children. Colours of
|
||||||
captions are not affected. Background brush cache is optimized for often
|
captions are not affected. Background brush cache is optimized for often
|
||||||
set colours to be set last.
|
set colours to be set last.
|
||||||
|
@@ -908,6 +908,12 @@ public:
|
|||||||
DoSetPropertyAttribute(id,attrName,value,argFlags);
|
DoSetPropertyAttribute(id,attrName,value,argFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Sets property attribute for all applicapple properties.
|
||||||
|
Be sure to use this method only after all properties have been
|
||||||
|
added to the grid.
|
||||||
|
*/
|
||||||
|
void SetPropertyAttributeAll( const wxString& attrName, wxVariant value );
|
||||||
|
|
||||||
/** Sets attributes from a wxPGAttributeStorage.
|
/** Sets attributes from a wxPGAttributeStorage.
|
||||||
*/
|
*/
|
||||||
void SetPropertyAttributes( wxPGPropArg id,
|
void SetPropertyAttributes( wxPGPropArg id,
|
||||||
|
@@ -483,12 +483,6 @@ public:
|
|||||||
/** Sets y coordinate of the description box splitter. */
|
/** Sets y coordinate of the description box splitter. */
|
||||||
void SetDescBoxHeight( int ht, bool refresh = true );
|
void SetDescBoxHeight( int ht, bool refresh = true );
|
||||||
|
|
||||||
/** Sets property attribute for all applicapple properties.
|
|
||||||
Be sure to use this method after all properties have been
|
|
||||||
added to the grid.
|
|
||||||
*/
|
|
||||||
void SetPropertyAttributeAll( const wxString& name, wxVariant value );
|
|
||||||
|
|
||||||
/** Moves splitter as left as possible, while still allowing all
|
/** Moves splitter as left as possible, while still allowing all
|
||||||
labels to be shown in full.
|
labels to be shown in full.
|
||||||
@param subProps
|
@param subProps
|
||||||
|
@@ -647,12 +647,6 @@ public:
|
|||||||
/** Sets background colour of margin. */
|
/** Sets background colour of margin. */
|
||||||
void SetMarginColour(const wxColour& col);
|
void SetMarginColour(const wxColour& col);
|
||||||
|
|
||||||
/** Sets property attribute for all applicapple properties.
|
|
||||||
Be sure to use this method only after all properties have been
|
|
||||||
added to the grid.
|
|
||||||
*/
|
|
||||||
void SetPropertyAttributeAll( const wxString& attrName, wxVariant value );
|
|
||||||
|
|
||||||
/** Sets background colour of property and all its children. Colours of
|
/** Sets background colour of property and all its children. Colours of
|
||||||
captions are not affected. Background brush cache is optimized for often
|
captions are not affected. Background brush cache is optimized for often
|
||||||
set colours to be set last.
|
set colours to be set last.
|
||||||
|
@@ -665,6 +665,12 @@ public:
|
|||||||
DoSetPropertyAttribute(id,attrName,value,argFlags);
|
DoSetPropertyAttribute(id,attrName,value,argFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Sets property attribute for all applicapple properties.
|
||||||
|
Be sure to use this method only after all properties have been
|
||||||
|
added to the grid.
|
||||||
|
*/
|
||||||
|
void SetPropertyAttributeAll( const wxString& attrName, wxVariant value );
|
||||||
|
|
||||||
/** Sets attributes from a wxPGAttributeStorage.
|
/** Sets attributes from a wxPGAttributeStorage.
|
||||||
*/
|
*/
|
||||||
void SetPropertyAttributes( wxPGPropArg id, const wxPGAttributeStorage& attributes )
|
void SetPropertyAttributes( wxPGPropArg id, const wxPGAttributeStorage& attributes )
|
||||||
|
@@ -703,19 +703,6 @@ void wxPropertyGridManager::SetColumnCount( int colCount, int page )
|
|||||||
}
|
}
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void wxPropertyGridManager::SetPropertyAttributeAll( const wxString& attrName, wxVariant value )
|
|
||||||
{
|
|
||||||
size_t i;
|
|
||||||
for ( i=0; i<GetPageCount(); i++ )
|
|
||||||
{
|
|
||||||
wxPropertyGridPage* page = (wxPropertyGridPage*)m_arrPages.Item(i);
|
|
||||||
|
|
||||||
DoSetPropertyAttribute(page->GetStatePtr()->m_properties, attrName, value, wxPG_RECURSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
|
||||||
|
|
||||||
size_t wxPropertyGridManager::GetPageCount() const
|
size_t wxPropertyGridManager::GetPageCount() const
|
||||||
{
|
{
|
||||||
if ( !(m_iFlags & wxPG_MAN_FL_PAGE_INSERTED) )
|
if ( !(m_iFlags & wxPG_MAN_FL_PAGE_INSERTED) )
|
||||||
|
@@ -6016,11 +6016,6 @@ wxEvent* wxPropertyGridEvent::Clone() const
|
|||||||
return new wxPropertyGridEvent( *this );
|
return new wxPropertyGridEvent( *this );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxPropertyGrid::SetPropertyAttributeAll( const wxString& attrName, wxVariant value )
|
|
||||||
{
|
|
||||||
DoSetPropertyAttribute(GetRoot(), attrName, value, wxPG_RECURSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
// wxPropertyGridPopulator
|
// wxPropertyGridPopulator
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
@@ -549,6 +549,24 @@ void wxPropertyGridInterface::DoSetPropertyAttribute( wxPGPropArg id, const wxSt
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
void wxPropertyGridInterface::SetPropertyAttributeAll( const wxString& attrName,
|
||||||
|
wxVariant value )
|
||||||
|
{
|
||||||
|
unsigned int pageIndex = 0;
|
||||||
|
|
||||||
|
for (;;)
|
||||||
|
{
|
||||||
|
wxPropertyGridPageState* page = GetPageState(pageIndex);
|
||||||
|
if ( !page ) break;
|
||||||
|
|
||||||
|
DoSetPropertyAttribute(page->DoGetRoot(), attrName, value, wxPG_RECURSE);
|
||||||
|
|
||||||
|
pageIndex++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void wxPropertyGridInterface::GetPropertiesWithFlag( wxArrayPGProperty* targetArr,
|
void wxPropertyGridInterface::GetPropertiesWithFlag( wxArrayPGProperty* targetArr,
|
||||||
wxPGProperty::FlagType flags,
|
wxPGProperty::FlagType flags,
|
||||||
bool inverse,
|
bool inverse,
|
||||||
@@ -874,14 +892,17 @@ wxString wxPropertyGridInterface::SaveEditableState( int includedStates ) const
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Save state on page basis
|
// Save state on page basis
|
||||||
size_t pageIndex = 0;
|
unsigned int pageIndex = 0;
|
||||||
wxPropertyGridPageState* pageState = GetPageState(pageIndex);
|
|
||||||
wxArrayPtrVoid pageStates;
|
wxArrayPtrVoid pageStates;
|
||||||
while ( pageState )
|
|
||||||
|
for (;;)
|
||||||
{
|
{
|
||||||
pageStates.Add(pageState);
|
wxPropertyGridPageState* page = GetPageState(pageIndex);
|
||||||
pageIndex += 1;
|
if ( !page ) break;
|
||||||
pageState = GetPageState(pageIndex);
|
|
||||||
|
pageStates.Add(page);
|
||||||
|
|
||||||
|
pageIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( pageIndex=0; pageIndex < pageStates.size(); pageIndex++ )
|
for ( pageIndex=0; pageIndex < pageStates.size(); pageIndex++ )
|
||||||
|
Reference in New Issue
Block a user