MenuBar::MenuBar(QWidget* parent) : QMenuBar(parent) { AddFileMenu(); AddEmulationMenu(); addMenu(tr("Movie")); addMenu(tr("Options")); addMenu(tr("Tools")); AddViewMenu(); AddHelpMenu(); EmulationStopped(); }
TAudioEditorMenus::TAudioEditorMenus(BMenuBar* mbar, TAudioEditor* parent) { // Save the BMenuBar into our member variable fMenuBar = mbar; // Store the Editor Window fParent = parent; // // Add our individual menu items // // File menu AddFileMenu(); // Edit menu AddEditMenu(); }
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); }