}
/**
- Composes text from values of child properties. You usually do not have
- to care about arguments other than 'text'.
+ Composes text from values of child properties.
*/
- void GenerateComposedValue( wxString& text,
- int argFlags = wxPG_VALUE_IS_CURRENT,
- const wxVariantList* valueOverrides = NULL,
- wxPGHashMapS2S* childResults = NULL ) const;
+ wxString GenerateComposedValue() const
+ {
+ wxString s;
+ DoGenerateComposedValue(s);
+ return s;
+ }
/** Returns property's label. */
const wxString& GetLabel() const { return m_label; }
int index = -1,
bool correct_mode = true );
+ void DoGenerateComposedValue( wxString& text,
+ int argFlags = wxPG_VALUE_IS_CURRENT,
+ const wxVariantList* valueOverrides = NULL,
+ wxPGHashMapS2S* childResults = NULL ) const;
+
void DoSetName(const wxString& str) { m_name = str; }
void InitAfterAdded( wxPropertyGridPageState* pageState,
void Empty();
/**
- Composes text from values of child properties. You usually do not have
- to care about arguments other than 'text'.
+ Composes text from values of child properties.
*/
- void GenerateComposedValue( wxString& text, int argFlags = 0 ) const;
+ wxString GenerateComposedValue() const;
/**
Returns property attribute value, null variant if not found.
return wxEmptyString;
}
-void wxPGProperty::GenerateComposedValue( wxString& text,
- int argFlags,
- const wxVariantList* valueOverrides,
- wxPGHashMapS2S* childResults ) const
+void wxPGProperty::DoGenerateComposedValue( wxString& text,
+ int argFlags,
+ const wxVariantList* valueOverrides,
+ wxPGHashMapS2S* childResults ) const
{
int i;
int iMax = m_children.size();
childValue.GetType() == wxPG_VARIANT_TYPE_LIST )
{
wxVariantList& childList = childValue.GetList();
- GenerateComposedValue(s, argFlags|wxPG_COMPOSITE_FRAGMENT,
- &childList, childResults);
+ DoGenerateComposedValue(s, argFlags|wxPG_COMPOSITE_FRAGMENT,
+ &childList, childResults);
}
else
{
"implementation only works if value is m_value." );
wxString text;
- GenerateComposedValue(text, argFlags);
+ DoGenerateComposedValue(text, argFlags);
return text;
}
!parent->IsCategory() && !parent->IsRoot() )
{
wxString s;
- parent->GenerateComposedValue(s);
+ parent->DoGenerateComposedValue(s);
parent->m_value = s;
return parent->UpdateParentValues();
}
if ( HasFlag(wxPG_PROP_COMPOSED_VALUE) )
{
wxString s;
- GenerateComposedValue(s);
+ DoGenerateComposedValue(s);
m_value = s;
}
}
"Sorry, currently default wxPGProperty::ValueToString() "
"implementation only works if value is m_value." );
- GenerateComposedValue(s, argFlags);
+ DoGenerateComposedValue(s, argFlags);
}
return s;