コード例 #1
0
ファイル: berryHelpEditor.cpp プロジェクト: Cymatium/MITK
void HelpEditor::PerspectiveDeactivated(const SmartPointer<IWorkbenchPage>& /*page*/,
                                        const IPerspectiveDescriptor::Pointer& perspective)
{
  if (perspective->GetId() == HelpPerspective::ID)
  {
    m_OpenHelpMode->setVisible(true);
    m_CloseHelpMode->setVisible(false);
  }
}
コード例 #2
0
 void PerspectiveActivated(IWorkbenchPage::Pointer /*page*/,
         IPerspectiveDescriptor::Pointer perspective)
 {
   QAction* action = switcher->perspIdToActionMap[QString::fromStdString(perspective->GetId())];
   if (action) action->setChecked(true);
 }
コード例 #3
0
 void PerspectiveActivated(const IWorkbenchPage::Pointer& /*page*/,
                           const IPerspectiveDescriptor::Pointer& perspective) override
 {
   QAction* action = switcher->perspIdToActionMap[perspective->GetId()];
   if (action) action->setChecked(true);
 }