void CGUIDialogBoxeeBrowseMenu::OpenSearchWithAction(const CAction &action)
{
  CGUIDialogBoxeeBrowseMenu *pWindow = (CGUIDialogBoxeeBrowseMenu*) g_windowManager.GetWindow(WINDOW_DIALOG_BOXEE_BROWSE_MENU);
  if (pWindow)
  {
    pWindow->SetAction(action);
    pWindow->DoModal();
  }
}
Exemple #2
0
bool CGUIWindowBoxeeMain::OnAction(const CAction& action)
{
  switch (action.id)
  {
    case ACTION_MOUSE:
    case ACTION_MOVE_LEFT:
    case ACTION_MOVE_RIGHT:
    case ACTION_MOVE_UP:
    case ACTION_MOVE_DOWN:
    {
      // In case of move in WINDOW_HOME we want to cancel the HomeScreenTimer
      g_application.SetHomeScreenTimerOnStatus(false);
    }
    break;
    
    case ACTION_SHOW_GUI:
    {
      return true;
    }
    break;
    
    case ACTION_PREVIOUS_MENU:
    case ACTION_PARENT_DIR:
    {
      // Open a main menu
      CGUIDialogBoxeeBrowseMenu* pMenu = (CGUIDialogBoxeeBrowseMenu*)g_windowManager.GetWindow(WINDOW_DIALOG_BOXEE_BROWSE_MENU);
      if (pMenu)
      {
        pMenu->DoModal();
        return true;
      }
    }
    break;
  }
  
  if (action.id >= KEY_ASCII)
  {
    CGUIDialogBoxeeBrowseMenu::OpenSearchWithAction(action);
    return true;
  }

  return CGUILoaderWindow::OnAction(action);
}