예제 #1
0
MenuBar::MenuBar(QWidget* parent)
    : QMenuBar(parent)
{
    AddFileMenu();
    AddEmulationMenu();
    addMenu(tr("Movie"));
    addMenu(tr("Options"));
    addMenu(tr("Tools"));
    AddViewMenu();
    AddHelpMenu();

    EmulationStopped();
}
예제 #2
0
파일: MenuBar.cpp 프로젝트: t27duck/dolphin
MenuBar::MenuBar(QWidget* parent) : QMenuBar(parent)
{
  AddFileMenu();
  AddEmulationMenu();
  AddMovieMenu();
  AddOptionsMenu();
  AddToolsMenu();
  AddViewMenu();
  AddHelpMenu();

  connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
          [=](Core::State state) { OnEmulationStateChanged(state); });
  OnEmulationStateChanged(Core::GetState());
  connect(&Settings::Instance(), &Settings::DebugModeToggled, this, &MenuBar::OnDebugModeToggled);

  connect(this, &MenuBar::SelectionChanged, this, &MenuBar::OnSelectionChanged);
  connect(this, &MenuBar::RecordingStatusChanged, this, &MenuBar::OnRecordingStatusChanged);
  connect(this, &MenuBar::ReadOnlyModeChanged, this, &MenuBar::OnReadOnlyModeChanged);
}