Awoo-Installer/source/ui/MainApplication.cpp

17 lines
879 B
C++
Raw Normal View History

2019-10-17 16:20:40 -04:00
#include "ui/MainApplication.hpp"
namespace inst::ui {
MainApplication *mainApp;
void MainApplication::OnLoad() {
mainApp = this;
this->mainPage = MainPage::New();
2019-10-18 15:01:51 -04:00
this->netinstPage = netInstPage::New();
2019-10-22 18:14:37 -04:00
this->nspinstPage = nspInstPage::New();
2019-10-17 16:20:40 -04: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 15:01:51 -04:00
this->netinstPage->SetOnInput(std::bind(&netInstPage::onInput, this->netinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-10-22 18:14:37 -04:00
this->nspinstPage->SetOnInput(std::bind(&nspInstPage::onInput, this->nspinstPage, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
2019-10-17 16:20:40 -04:00
this->LoadLayout(this->mainPage);
}
}