2020-09-20 01:21:28 +01:00
|
|
|
#include "main_frame.hpp"
|
2020-10-05 01:59:46 +01:00
|
|
|
#include "lang.hpp"
|
|
|
|
using namespace lang::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 01:59:46 +01:00
|
|
|
setTitle(std::string(APP_TITLE) + "main_app"_lang);
|
2020-09-29 15:41:43 +01:00
|
|
|
else
|
2020-10-05 01:59:46 +01:00
|
|
|
setTitle(std::string(APP_TITLE) + "main_v"_lang + std::string(APP_VERSION));
|
|
|
|
this->addTab("main_about"_lang, new AboutTab());
|
2020-09-20 01:21:28 +01:00
|
|
|
|
|
|
|
this->addSeparator();
|
|
|
|
|
2020-10-05 01:59:46 +01:00
|
|
|
this->addTab("main_update_cfw"_lang, new ListDownloadTab(cfw));
|
|
|
|
this->addTab("main_update_si"_lang, new ListDownloadTab(sigpatches));
|
|
|
|
this->addTab("main_firmwares"_lang, new ListDownloadTab(fw));
|
|
|
|
this->addTab("main_cheats"_lang, new ListDownloadTab(cheats));
|
2020-09-20 01:21:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
this->addSeparator();
|
2020-10-05 01:59:46 +01:00
|
|
|
this->addTab("main_tools"_lang, new ToolsTab(tag));
|
2020-09-20 01:21:28 +01:00
|
|
|
}
|