MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / updateMenu

Method updateMenu

src/openms_gui/source/VISUAL/APPLICATIONS/TOPPViewBase.cpp:1286–1309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284 }
1285
1286 void TOPPViewBase::updateMenu()
1287 {
1288 FS_TV fs;
1289 LayerDataBase::DataType layer_type = LayerDataBase::DT_UNKNOWN;
1290 // is there a canvas?
1291 if (getActiveCanvas() != nullptr)
1292 {
1293 fs |= TV_STATUS::HAS_CANVAS;
1294 // is there a layer?
1295 if (getActiveCanvas()->getLayerCount() != 0)
1296 {
1297 fs |= TV_STATUS::HAS_LAYER;
1298 layer_type = getCurrentLayer()->type;
1299 }
1300 }
1301 // is this a 1D view
1302 if (getActive1DWidget() != nullptr) fs |= TV_STATUS::IS_1D_VIEW;
1303 // are we in 1D mirror mode
1304 if (getActive1DWidget() && getActive1DWidget()->canvas()->mirrorModeActive()) fs |= TV_STATUS::HAS_MIRROR_MODE;
1305 // is there a TOPP tool running
1306 if (topp_.process == nullptr) fs |= TV_STATUS::TOPP_IDLE;
1307
1308 menu_.update(fs, layer_type);
1309 }
1310
1311 void TOPPViewBase::updateFilterBar()
1312 {

Callers

nothing calls this directly

Calls 3

getLayerCountMethod · 0.80
mirrorModeActiveMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected