2 Copyright 2005 Brian Walton (WTextBox)
3 Copyright 2014 Marten Richter (WPictureView)
5 This file is part of VOMP.
7 VOMP is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 VOMP is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with VOMP; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef WPICTUREVIEW_H
23 #define WPICTUREVIEW_H
34 class WPictureView : public Boxx
38 virtual ~WPictureView();
39 void addPicture(TVMediaInfo& pict, float width, float height,bool banner=false, std::string caption ="", std::string caption2 ="");
41 void setForegroundColour(const DrawStyle& fcolour);
45 int handleCommand(int command);
46 bool mouseAndroidScroll(int x, int y, int sx, int sy);
51 Picture(TVMediaInfo tmedia,float width, float height, bool tbanner, std::string tcaption, std::string tcaption2){
52 media=tmedia; caption=tcaption;caption2=tcaption2;w=width; h=height; banner=tbanner;
62 list<Picture> pictures;
65 unsigned int cur_scroll_line;
66 unsigned int rem_scroll_line;
67 unsigned int const_height; // if set only one per line
70 class WActorGallery : public WPictureView
73 WActorGallery(Actors& actors);
77 class WArtworkGallery : public WPictureView
80 WArtworkGallery(MovieInfo& movie);
81 WArtworkGallery(SeriesInfo& series);
83 void addTVMedias(TVMedias& medias, bool banner=false);
84 void addTVMedia(TVMedia& media, bool banner=false);