Set up basic request layout to fill with logic.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user