void DNAStatMSAEditorContext::buildMenu(GObjectView* v, QMenu* m) { MSAEditor* msaed = qobject_cast<MSAEditor*>(v); if (msaed != NULL && !msaed->getMaObject()) return; QList<GObjectViewAction *> actions = getViewActions(v); QMenu* statMenu = GUIUtils::findSubMenu(m, MSAE_MENU_STATISTICS); SAFE_POINT(statMenu != NULL, "statMenu", ); foreach(GObjectViewAction* a, actions) { statMenu->addAction(a); }
void HMMMSAEditorContext::buildMenu(GObjectView* v, QMenu* m) { MSAEditor* msaed = qobject_cast<MSAEditor*>(v); assert( NULL != msaed && NULL != m ); if (msaed->getMSAObject() == NULL) return; QList<GObjectViewAction*> list = getViewActions(v); assert(list.size()==1); GObjectViewAction* a = list.first(); QMenu* aMenu = GUIUtils::findSubMenu(m, MSAE_MENU_ADVANCED); SAFE_POINT(aMenu != NULL, "aMenu", ); aMenu->addAction(a); }