Start implementing web UI. Add track detail container. Comment out some old test code and DB code while more gets hooked up. Play/pause button is mostly implemented.

This commit is contained in:
Kevin Whitaker
2017-02-15 00:47:58 -05:00
parent 7668a923d8
commit 53bc31ebb9
8 changed files with 158 additions and 31 deletions

View File

@@ -21,15 +21,44 @@
#define PLAYERINTERFACE_H
#include <Wt/WContainerWidget>
#include <Wt/WHBoxLayout>
#include <Wt/WVBoxLayout>
#include "../WebInterface.h"
#include <Wt/WPushButton>
#include <Wt/WText>
#include <Wt/WProgressBar>
#include <Wt/WTimer>
#include "TrackDetails.h"
class PlayerInterface : public Wt::WContainerWidget
{
public:
PlayerInterface(WebInterface* app);
WebInterface* app;
Wt::WText* tempText;
Wt::WVBoxLayout* interfaceLayout;
Wt::WContainerWidget* playControlContainer;
Wt::WHBoxLayout* playControlLayout;
Wt::WVBoxLayout* voteControlLayout;
Wt::WContainerWidget* voteControlContainer;
//Play controls
TrackDetails* currentTrackDetails;
Wt::WProgressBar* currentTrackProgress;
Wt::WTimer* trackProgress;
Wt::WHBoxLayout* currentTrackLayout;
Wt::WContainerWidget* currentTrackContainer;
Wt::WPushButton* playpause;
bool isPaused = false;
//TODO:put in controls for requesting/admin skip and adding users as admin.
//Vote controls
//TODO:put in vote controls for seeing tracks to vote on and vote buttons.
//TODO:put in controls for requesting songs.
void playpauseClicked();
void playpauseUpdated();
};
#endif // PLAYERINTERFACE_H