| 590 | } |
| 591 | |
| 592 | void Widget::SetId( const std::string& id ) { |
| 593 | if( id.empty() ) { |
| 594 | return; |
| 595 | } |
| 596 | |
| 597 | if( !m_class_id ) { |
| 598 | m_class_id.reset( new ClassId ); |
| 599 | } |
| 600 | |
| 601 | m_class_id->id = id; |
| 602 | |
| 603 | Refresh(); |
| 604 | } |
| 605 | |
| 606 | std::string Widget::GetId() const { |
| 607 | if( !m_class_id ) { |