}
#endif
- /** Same as GetValueAsString, except takes common value into account.
+ /** To acquire property's value as string, you should use this
+ function (instead of GetValueAsString()), as it may produce
+ more accurate value in future versions.
*/
wxString GetValueString( int argFlags = 0 ) const;
*/
void DeleteChoice( int index );
- /** Call to enable or disable usage of common value (integer value that can be selected for
- properties instead of their normal values) for this property.
-
- Common values are disabled by the default for all properties.
- */
- void EnableCommonValue( bool enable = true )
- {
- if ( enable ) SetFlag( wxPG_PROP_USES_COMMON_VALUE );
- else ClearFlag( wxPG_PROP_USES_COMMON_VALUE );
- }
-
/** Composes text from values of child properties. */
void GenerateComposedValue( wxString& text, int argFlags = 0 ) const;
return m_value;
}
- /** Same as GetValueAsString, except takes common value into account.
+ /** To acquire property's value as string, you should use this
+ function (instead of GetValueAsString()), as it may produce
+ more accurate value in future versions.
*/
wxString GetValueString( int argFlags = 0 ) const;
return (wxPGCell*) m_cells[column];
}
- /** Return number of displayed common values for this property.
- */
- int GetDisplayedCommonValueCount() const;
-
+ /** Returns property's displayed text.
+ */
wxString GetDisplayedString() const
{
return GetValueString(0);
return NULL;
}
- /** Returns common value selected for this property. -1 for none.
- */
- int GetCommonValue() const
- {
- return m_commonValue;
- }
-
/** Returns true if property has even one visible child.
*/
bool HasVisibleChildren() const;
*/
void SetChoiceSelection( int newValue );
- /** Sets common value selected for this property. -1 for none.
- */
- void SetCommonValue( int commonValue )
- {
- m_commonValue = commonValue;
- }
-
/** Sets flags from a '|' delimited string. Note that flag names are not
prepended with 'wxPG_PROP_'.
*/