2020-09-20 01:21:28 +01:00
|
|
|
#include "main_frame.hpp"
|
2020-10-05 23:53:12 +01:00
|
|
|
|
|
|
|
namespace i18n = brls::i18n;
|
|
|
|
using namespace i18n::literals;
|
|
|
|
|
2020-09-20 01:21:28 +01:00
|
|
|
MainFrame::MainFrame() : TabFrame()
|
|
|
|
{
|
2020-09-29 15:41:43 +01:00
|
|
|
std::string tag = getLatestTag(TAGS_INFO);
|
|
|
|
if(!tag.empty() && tag != APP_VERSION)
|
2020-10-05 23:53:12 +01:00
|
|
|
setTitle(std::string(APP_TITLE) + "menus/main_app"_i18n );
|
2020-09-29 15:41:43 +01:00
|
|
|
else
|
2020-10-05 23:53:12 +01:00
|
|
|
setTitle(std::string(APP_TITLE) + "menus/main_v"_i18n + std::string(APP_VERSION));
|
2020-12-12 15:41:56 +00:00
|
|
|
|
2020-10-05 23:53:12 +01:00
|
|
|
this->addTab("menus/main_about"_i18n , new AboutTab());
|
2020-09-20 01:21:28 +01:00
|
|
|
|
2021-01-02 23:22:45 +00:00
|
|
|
//this->addSeparator();
|
2020-09-20 01:21:28 +01:00
|
|
|
|
2020-12-12 15:41:56 +00:00
|
|
|
this->addTab("menus/main_update_ams"_i18n , new AmsTab());
|
2020-10-05 23:53:12 +01:00
|
|
|
this->addTab("menus/main_update_cfw"_i18n , new ListDownloadTab(cfw));
|
|
|
|
this->addTab("menus/main_update_si"_i18n , new ListDownloadTab(sigpatches));
|
|
|
|
this->addTab("menus/main_firmwares"_i18n , new ListDownloadTab(fw));
|
|
|
|
this->addTab("menus/main_cheats"_i18n , new ListDownloadTab(cheats));
|
2020-09-20 01:21:28 +01:00
|
|
|
|
2020-12-12 15:41:56 +00:00
|
|
|
//this->addSeparator();
|
2020-10-05 23:53:12 +01:00
|
|
|
|
|
|
|
this->addTab("menus/main_tools"_i18n , new ToolsTab(tag));
|
|
|
|
|
2020-09-20 01:21:28 +01:00
|
|
|
}
|