action.cpp 709 B

123456789101112131415161718
  1. ActionMenu::ActionMenu(MenuBar* parent) : Menu(parent) {
  2. setText("System");
  3. create.setIcon(Icon::Action::Add).setText("Create").onActivate([&] {
  4. program.setPanelList(systemManager);
  5. systemManager.doCreate();
  6. });
  7. launch.setIcon(Icon::Media::Play).setText("Launch").setEnabled(false).onActivate([&] {
  8. systemManager.onActivate();
  9. });
  10. rename.setIcon(Icon::Application::TextEditor).setText("Rename").setEnabled(false).onActivate([&] {
  11. systemManager.doRename();
  12. });
  13. remove.setIcon(Icon::Action::Remove).setText("Delete").setEnabled(false).onActivate([&] {
  14. systemManager.doRemove();
  15. });
  16. quit.setIcon(Icon::Action::Quit).setText("Quit").onActivate([&] { emulator.quit(); });
  17. }