Set up basic request layout to fill with logic.

This commit is contained in:
Kevin Whitaker
2017-02-19 18:17:56 -05:00
parent c6c2eccec5
commit 8c8a6c30f1
2 changed files with 66 additions and 0 deletions

View File

@@ -22,5 +22,31 @@
RequestInterface::RequestInterface(WebInterface* app)
{
this->app = app;
mainLayout = new Wt::WVBoxLayout();
searchHeader = new Wt::WContainerWidget();
searchLayout = new Wt::WHBoxLayout();
searchBox = new Wt::WLineEdit();
searchBtn = new Wt::WPushButton();
resultBody = new Wt::WContainerWidget();
resultLayout = new Wt::WGridLayout();
this->setLayout(mainLayout);
mainLayout->addWidget(searchHeader,0,Wt::AlignmentFlag::AlignCenter);
mainLayout->addWidget(resultBody);
searchHeader->setLayout(searchLayout);
searchBtn->setTextFormat(Wt::XHTMLText);
searchBtn->decorationStyle().font().setFamily(Wt::WFont::Default,"FontAwesome");
searchBtn->setText("");
searchLayout->addWidget(searchBox);
searchLayout->addWidget(searchBtn);
//TODO:btn connections
resultBody->setLayout(resultLayout);
}
void RequestInterface::trackRequestClicked(AudioTrack track)
{
//TODO
}