1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-14 22:16:42 +00:00
AIO-switch-updater/source/main_frame.cpp

27 lines
871 B
C++
Raw Normal View History

2020-09-20 01:21:28 +01:00
#include "main_frame.hpp"
namespace i18n = brls::i18n;
using namespace i18n::literals;
2020-09-20 01:21:28 +01:00
MainFrame::MainFrame() : TabFrame()
{
std::string tag = getLatestTag(TAGS_INFO);
if(!tag.empty() && tag != APP_VERSION)
setTitle(std::string(APP_TITLE) + "menus/main_app"_i18n );
else
setTitle(std::string(APP_TITLE) + "menus/main_v"_i18n + std::string(APP_VERSION));
this->addTab("menus/main_about"_i18n , new AboutTab());
2020-09-20 01:21:28 +01:00
this->addSeparator();
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
this->addSeparator();
this->addTab("menus/main_tools"_i18n , new ToolsTab(tag));
2020-09-20 01:21:28 +01:00
}