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
32 #include "imageloader.h"
36 class WPictureView : public Boxx
40 virtual ~WPictureView();
41 void addPicture(Image& pict, float width, float height,bool banner=false, std::string caption ="", std::string caption2 ="");
43 void setForegroundColour(const DrawStyle& fcolour);
47 int handleCommand(int command);
48 bool mouseAndroidScroll(int x, int y, int sx, int sy);
53 Picture(Image& tmedia, float width, float height, bool tbanner, std::string tcaption, std::string tcaption2)
55 media=tmedia; caption=tcaption;caption2=tcaption2;w=width; h=height; banner=tbanner;
65 std::list<Picture> pictures;
68 unsigned int cur_scroll_line;
69 unsigned int rem_scroll_line;
70 unsigned int const_height; // if set only one per line
73 class WActorGallery : public WPictureView
76 WActorGallery(Actors& actors);
80 class WArtworkGallery : public WPictureView
83 WArtworkGallery(MovieInfo& movie);
84 WArtworkGallery(SeriesInfo& series);
86 void addTVMedias(TVMedias& medias, bool banner=false);
87 void addTVMedia(TVMediaStruct& media, bool banner=false);