| 1857 | bool IsSelected() const { return (PropOptions != nullptr)?(true):((PropVar != nullptr)?(*PropVar):(PropNode->IsSelected())); } |
| 1858 | void SetSelected( bool selected ) { if( PropVar != nullptr ) *PropVar = selected; else if (PropNode != nullptr ) PropNode->SetSelected(selected); else *PropOptionIndex = ( ((*PropOptionIndex)+1) % PropOptions->size() ); } |
| 1859 | std::string GetText() const |
| 1860 | { |
| 1861 | if (PropOptions != nullptr) |
| 1862 | { |
| 1863 | if (GetItemName!=nullptr) |
| 1864 | return Name + (((*PropOptionIndex) >= 0) ? (GetItemName((*PropOptions)[*PropOptionIndex])) : (std::string("other"))); |
| 1865 | else |
| 1866 | return Name + (((*PropOptionIndex)>=0)?((*PropOptions)[*PropOptionIndex]):(std::string("other"))); |
| 1867 | } |
| 1868 | else |
| 1869 | return Name; |
| 1870 | } |
| 1871 | |
| 1872 | }; |
| 1873 | std::vector<BigButton> buttons; |