Ejemplo n.º 1
0
void HelpEditor::PerspectiveDeactivated(const SmartPointer<IWorkbenchPage>& /*page*/,
                                        const IPerspectiveDescriptor::Pointer& perspective)
{
  if (perspective->GetId() == HelpPerspective::ID)
  {
    m_OpenHelpMode->setVisible(true);
    m_CloseHelpMode->setVisible(false);
  }
}
 void PerspectiveActivated(IWorkbenchPage::Pointer /*page*/,
         IPerspectiveDescriptor::Pointer perspective)
 {
   QAction* action = switcher->perspIdToActionMap[QString::fromStdString(perspective->GetId())];
   if (action) action->setChecked(true);
 }
Ejemplo n.º 3
0
 void PerspectiveActivated(const IWorkbenchPage::Pointer& /*page*/,
                           const IPerspectiveDescriptor::Pointer& perspective) override
 {
   QAction* action = switcher->perspIdToActionMap[perspective->GetId()];
   if (action) action->setChecked(true);
 }