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);
50 Picture(TVMediaInfo tmedia,float width, float height, bool tbanner, std::string tcaption, std::string tcaption2){
51 media=tmedia; caption=tcaption;caption2=tcaption2;w=width; h=height; banner=tbanner;
61 list<Picture> pictures;
64 unsigned int cur_scroll_line;
65 unsigned int rem_scroll_line;
66 unsigned int const_height; // if set only one per line
69 class WActorGallery : public WPictureView
72 WActorGallery(Actors& actors);
76 class WArtworkGallery : public WPictureView
79 WArtworkGallery(MovieInfo& movie);
80 WArtworkGallery(SeriesInfo& series);
82 void addTVMedias(TVMedias& medias, bool banner=false);
83 void addTVMedia(TVMedia& media, bool banner=false);