| 170 | } |
| 171 | |
| 172 | void TOPPViewMenu::update(const FS_TV status, const LayerDataBase::DataType layer_type) |
| 173 | { |
| 174 | for (auto& ar : menu_items_) |
| 175 | { // only disable if not supported by the view. This way, the user can still see the item (greyed out) and its ToolTip (for how to activate the item) |
| 176 | ar.enableAction(status, layer_type); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void TOPPViewMenu::addWindowToggle(QAction* const window_toggle) |
| 181 | { |