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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user