Awoo-Installer/source/ui/MainApplication.cpp

26 lines
1.6 KiB
C++
Raw Normal View History

2019-10-17 20:20:40 +00:00
#include "ui/MainApplication.hpp"
#include "util/lang.hpp"
2019-10-17 20:20:40 +00:00
namespace inst::ui {
MainApplication *mainApp;
void MainApplication::OnLoad() {
mainApp = this;
Language::Load();
2019-10-17 20:20:40 +00:00
this->mainPage = MainPage::New();
2019-10-18 19:01:51 +00:00
this->netinstPage = netInstPage::New();
2019-11-30 16:12:45 +00:00
this->sdinstPage = sdInstPage::New();
2019-11-17 15:01:06 +00:00
this->usbinstPage = usbInstPage::New();
2019-10-24 19:53:54 +00:00
this->instpage = instPage::New();
2019-10-26 20:03:15 +00:00
this->optionspage = optionsPage::New();
2019-10-17 20:20:40 +00:00
this->mainPage->SetOnInput(std::bind(&MainPage::onInput, this->mainPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-10-18 19:01:51 +00:00
this->netinstPage->SetOnInput(std::bind(&netInstPage::onInput, this->netinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-11-30 16:12:45 +00:00
this->sdinstPage->SetOnInput(std::bind(&sdInstPage::onInput, this->sdinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-11-17 15:01:06 +00:00
this->usbinstPage->SetOnInput(std::bind(&usbInstPage::onInput, this->usbinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-10-24 19:53:54 +00:00
this->instpage->SetOnInput(std::bind(&instPage::onInput, this->instpage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-10-26 20:03:15 +00:00
this->optionspage->SetOnInput(std::bind(&optionsPage::onInput, this->optionspage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-10-17 20:20:40 +00:00
this->LoadLayout(this->mainPage);
}
}