| 284 | } |
| 285 | |
| 286 | std::string UITab::getPropertyString( const PropertyDefinition* propertyDef, |
| 287 | const Uint32& propertyIndex ) const { |
| 288 | if ( NULL == propertyDef ) |
| 289 | return ""; |
| 290 | |
| 291 | switch ( propertyDef->getPropertyId() ) { |
| 292 | case PropertyId::Text: |
| 293 | return getText().toUtf8(); |
| 294 | case PropertyId::Owns: |
| 295 | return mOwnedName; |
| 296 | default: |
| 297 | return UISelectButton::getPropertyString( propertyDef, propertyIndex ); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | std::vector<PropertyId> UITab::getPropertiesImplemented() const { |
| 302 | auto props = UIWidget::getPropertiesImplemented(); |