* Return the news display option. * @return display options */
| 346 | * @return display options |
| 347 | */ |
| 348 | NewsDisplay NewsTypeData::GetDisplay() const |
| 349 | { |
| 350 | const SettingDesc *sd = GetSettingFromName(this->name); |
| 351 | assert(sd != nullptr && sd->IsIntSetting()); |
| 352 | return static_cast<NewsDisplay>(sd->AsIntSetting()->Read(nullptr)); |
| 353 | } |
| 354 | |
| 355 | /** Window class displaying a news item. */ |
| 356 | struct NewsWindow : Window { |
no test coverage detected