コード例 #1
0
ファイル: MenuBar.cpp プロジェクト: Lionel07/dolphin
void MenuBar::AddEmulationMenu()
{
    QMenu* emu_menu = addMenu(tr("Emulation"));
    m_play_action = emu_menu->addAction(tr("Play"), this, SIGNAL(Play()));
    m_pause_action = emu_menu->addAction(tr("Pause"), this, SIGNAL(Pause()));
    m_stop_action = emu_menu->addAction(tr("Stop"), this, SIGNAL(Stop()));
    m_reset_action = emu_menu->addAction(tr("Reset"), this, SIGNAL(Reset()));
    m_fullscreen_action = emu_menu->addAction(tr("Fullscreen"), this, SIGNAL(Fullscreen()));
    m_frame_advance_action = emu_menu->addAction(tr("Frame Advance"), this, SIGNAL(FrameAdvance()));
    m_screenshot_action = emu_menu->addAction(tr("Take Screenshot"), this, SIGNAL(Screenshot()));
    AddStateLoadMenu(emu_menu);
    AddStateSaveMenu(emu_menu);
    AddStateSlotMenu(emu_menu);
    UpdateStateSlotMenu();
}
コード例 #2
0
ファイル: MenuBar.cpp プロジェクト: t27duck/dolphin
void MenuBar::AddEmulationMenu()
{
  QMenu* emu_menu = addMenu(tr("&Emulation"));
  m_play_action = AddAction(emu_menu, tr("&Play"), this, &MenuBar::Play);
  m_pause_action = AddAction(emu_menu, tr("&Pause"), this, &MenuBar::Pause);
  m_stop_action = AddAction(emu_menu, tr("&Stop"), this, &MenuBar::Stop);
  m_reset_action = AddAction(emu_menu, tr("&Reset"), this, &MenuBar::Reset);
  m_fullscreen_action = AddAction(emu_menu, tr("Toggle &Fullscreen"), this, &MenuBar::Fullscreen);
  m_frame_advance_action = AddAction(emu_menu, tr("&Frame Advance"), this, &MenuBar::FrameAdvance);

  m_screenshot_action = AddAction(emu_menu, tr("Take Screenshot"), this, &MenuBar::Screenshot);

  emu_menu->addSeparator();

  AddStateLoadMenu(emu_menu);
  AddStateSaveMenu(emu_menu);
  AddStateSlotMenu(emu_menu);
  UpdateStateSlotMenu();
}