wxVariant list used to translate between list of property child values and composite value string now maps values by names instead of labels. Naturally this means properties can no longer have empty name (this change allows using identical labels under same parent property. Ported from wxpropgrid SVN trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1615,9 +1615,9 @@ void FormMain::PopulateWithExamples ()
|
||||
wxPGProperty* topId = pg->Append( new wxStringProperty(wxT("3D Object"), wxPG_LABEL, wxT("<composed>")) );
|
||||
|
||||
pid = pg->AppendIn( topId, new wxStringProperty(wxT("Triangle 1"), wxT("Triangle 1"), wxT("<composed>")) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("A"), wxEmptyString ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("B"), wxEmptyString ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("C"), wxEmptyString ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("A"), wxPG_LABEL ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("B"), wxPG_LABEL ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("C"), wxPG_LABEL ) );
|
||||
|
||||
pg->AppendIn( topId, new wxTriangleProperty( wxT("Triangle 2"), wxT("Triangle 2") ) );
|
||||
|
||||
@@ -1626,9 +1626,9 @@ void FormMain::PopulateWithExamples ()
|
||||
wxT("three wxVectorProperty children, and other two are custom wxTriangleProperties.") );
|
||||
|
||||
pid = pg->AppendIn( topId, new wxStringProperty(wxT("Triangle 3"), wxT("Triangle 3"), wxT("<composed>")) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("A"), wxEmptyString ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("B"), wxEmptyString ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("C"), wxEmptyString ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("A"), wxPG_LABEL ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("B"), wxPG_LABEL ) );
|
||||
pg->AppendIn( pid, new wxVectorProperty( wxT("C"), wxPG_LABEL ) );
|
||||
|
||||
pg->AppendIn( topId, new wxTriangleProperty( wxT("Triangle 4"), wxT("Triangle 4") ) );
|
||||
|
||||
|
Reference in New Issue
Block a user