add boost in because wt seems to now complain about it. Remove first song change message as it's unlikely anyone will encounter it with other events firing soon after. Start cleaning up some container/layout mess. Implement trackdetails and show this on the play controls.
This commit is contained in:
@@ -21,9 +21,28 @@
|
||||
#define TRACKDETAILS_H
|
||||
|
||||
#include <Wt/WContainerWidget>
|
||||
#include <Wt/WHBoxLayout>
|
||||
#include <Wt/WVBoxLayout>
|
||||
#include <Wt/WText>
|
||||
#include <Wt/WImage>
|
||||
#include <Wt/WMemoryResource>
|
||||
#include "../db/AudioTrack.h"
|
||||
|
||||
class TrackDetails : Wt::WContainerWidget
|
||||
class TrackDetails : public Wt::WContainerWidget
|
||||
{
|
||||
public:
|
||||
TrackDetails();
|
||||
Wt::WHBoxLayout* mainLayout;
|
||||
Wt::WContainerWidget* metaContainer;
|
||||
Wt::WVBoxLayout* metaLayout;
|
||||
|
||||
Wt::WImage* albumCover;
|
||||
Wt::WMemoryResource* coverData;
|
||||
Wt::WText* trackTitle;
|
||||
Wt::WText* trackArtist;
|
||||
Wt::WText* trackAlbum;
|
||||
|
||||
void updateWithTrackDetails(AudioTrack track);
|
||||
};
|
||||
|
||||
#endif // TRACKDETAILS_H
|
||||
|
||||
Reference in New Issue
Block a user