Refactor things so less manual layout is done where not needed. Yields proper boostrap panel.

This commit is contained in:
Kevin Whitaker
2017-02-19 16:40:33 -05:00
parent 4f2eb8232d
commit c6c2eccec5
4 changed files with 21 additions and 10 deletions

View File

@@ -30,6 +30,8 @@
#include <Wt/WProgressBar>
#include <Wt/WTimer>
#include "TrackDetails.h"
#include "RequestInterface.h"
#include <Wt/WPanel>
class PlayerInterface : public Wt::WContainerWidget
{
@@ -40,7 +42,6 @@ public:
Wt::WVBoxLayout* interfaceLayout;
Wt::WHBoxLayout* playControlLayout;
Wt::WContainerWidget* playControlWidget;
Wt::WVBoxLayout* voteControlLayout;
//Play controls
TrackDetails* currentTrackDetails;
@@ -55,13 +56,14 @@ public:
//TabView
Wt::WTabWidget* mainDisplay;
RequestInterface* requestPane;
//Vote Controls
Wt::WContainerWidget* voteMetaContainer;
Wt::WVBoxLayout* voteMetaLayout;
Wt::WPanel* votePanel;
Wt::WContainerWidget* voteControlContainer;
Wt::WContainerWidget* voteTracksContainer;
Wt::WText* voteHeader;
Wt::WVBoxLayout* voteTracksLayout;
Wt::WHBoxLayout* track1;
Wt::WHBoxLayout* track2;