| 2624 | } |
| 2625 | |
| 2626 | QMenu* MainWindow::openFolderMenu() |
| 2627 | { |
| 2628 | QMenu* FolderMenu = new QMenu(this); |
| 2629 | |
| 2630 | // game folders that are not necessarily MO-specific |
| 2631 | FolderMenu->addAction(tr("Open Game folder"), this, SLOT(openGameFolder())); |
| 2632 | FolderMenu->addAction(tr("Open MyGames folder"), this, SLOT(openMyGamesFolder())); |
| 2633 | FolderMenu->addAction(tr("Open INIs folder"), this, SLOT(openIniFolder())); |
| 2634 | |
| 2635 | FolderMenu->addSeparator(); |
| 2636 | |
| 2637 | // MO-specific folders that are related to modding the game |
| 2638 | FolderMenu->addAction(tr("Open Instance folder"), this, SLOT(openInstanceFolder())); |
| 2639 | FolderMenu->addAction(tr("Open Mods folder"), this, SLOT(openModsFolder())); |
| 2640 | FolderMenu->addAction(tr("Open Profile folder"), this, SLOT(openProfileFolder())); |
| 2641 | FolderMenu->addAction(tr("Open Downloads folder"), this, SLOT(openDownloadsFolder())); |
| 2642 | |
| 2643 | FolderMenu->addSeparator(); |
| 2644 | |
| 2645 | // MO-specific folders that are not directly related to modding and are either |
| 2646 | // in the installation folder or the instance |
| 2647 | FolderMenu->addAction(tr("Open MO2 Install folder"), this, SLOT(openInstallFolder())); |
| 2648 | FolderMenu->addAction(tr("Open MO2 Plugins folder"), this, SLOT(openPluginsFolder())); |
| 2649 | FolderMenu->addAction(tr("Open MO2 Stylesheets folder"), this, |
| 2650 | SLOT(openStylesheetsFolder())); |
| 2651 | FolderMenu->addAction(tr("Open MO2 Logs folder"), [=] { |
| 2652 | ui->logList->openLogsFolder(); |
| 2653 | }); |
| 2654 | |
| 2655 | return FolderMenu; |
| 2656 | } |
| 2657 | |
| 2658 | void MainWindow::linkToolbar() |
| 2659 | { |
nothing calls this directly
no test coverage detected