135 wxPGProperty* ret =
nullptr;
137 switch( aParam->
type )
139 case kiapi::common::types::WPDT_DISTANCE:
144 case kiapi::common::types::WPDT_AREA:
149 case kiapi::common::types::WPDT_VOLUME:
150 wxASSERT_MSG(
false,
"Volume properties are not currently implemented" );
153 case kiapi::common::types::WPDT_TIME:
154 ret =
new wxFloatProperty();
157 case kiapi::common::types::WPDT_ANGLE:
162 case kiapi::common::types::WPDT_STRING:
166 case kiapi::common::types::WPDT_INTEGER:
167 ret =
new wxIntProperty();
170 case kiapi::common::types::WPDT_REAL:
171 ret =
new wxFloatProperty();
174 case kiapi::common::types::WPDT_BOOL:
180 case kiapi::common::types::WPDT_UNKNOWN:
187 ret->SetLabel( wxGetTranslation( aParam->
name ) );
189 ret->SetHelpString( wxGetTranslation( aParam->
description ) );
190 ret->SetClientData( aParam );
193 ret->SetValue( ip->value );
195 ret->SetValue( rp->value );
197 ret->SetValue( bp->value );
199 ret->SetValue( sp->value );