mirror of
https://github.com/hax4dazy/TinWoo.git
synced 2025-02-09 19:25:05 +01:00
30 lines
1.9 KiB
C++
30 lines
1.9 KiB
C++
#include "ui/MainApplication.hpp"
|
|
#include "util/lang.hpp"
|
|
|
|
namespace inst::ui {
|
|
MainApplication* mainApp;
|
|
|
|
void MainApplication::OnLoad() {
|
|
mainApp = this;
|
|
|
|
Language::Load();
|
|
|
|
this->mainPage = MainPage::New();
|
|
this->netinstPage = netInstPage::New();
|
|
this->ThemeinstPage = ThemeInstPage::New();
|
|
this->sdinstPage = sdInstPage::New();
|
|
this->HDinstPage = HDInstPage::New();
|
|
this->usbinstPage = usbInstPage::New();
|
|
this->instpage = instPage::New();
|
|
this->optionspage = optionsPage::New();
|
|
this->mainPage->SetOnInput(std::bind(&MainPage::onInput, this->mainPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->netinstPage->SetOnInput(std::bind(&netInstPage::onInput, this->netinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->ThemeinstPage->SetOnInput(std::bind(&ThemeInstPage::onInput, this->ThemeinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->sdinstPage->SetOnInput(std::bind(&sdInstPage::onInput, this->sdinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->HDinstPage->SetOnInput(std::bind(&HDInstPage::onInput, this->HDinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->usbinstPage->SetOnInput(std::bind(&usbInstPage::onInput, this->usbinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->instpage->SetOnInput(std::bind(&instPage::onInput, this->instpage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->optionspage->SetOnInput(std::bind(&optionsPage::onInput, this->optionspage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
|
this->LoadLayout(this->mainPage);
|
|
}
|
|
} |