2 Copyright 2004-2005 Chris Tallon, Andreas Vogel
4 This file is part of VOMP.
6 VOMP is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 VOMP is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with VOMP; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29 #include "timerreceiver.h"
30 #include "vmedialist.h"
39 * will ineract with the parent List for ff,back, slide show...
44 class VPicture : public Boxx, public TimerReceiver
49 void processMessage(Message* m);
50 int handleCommand(int command);
52 void timercall(int clientReference);
54 //return NULL on error
55 static VPicture *createViewer(VMediaList * parent, bool startSlideshow=false);
56 //show the picture currently selected in the parent
57 //potentially moving to next/previous one
58 void showPicture(ULONG move=VMediaList::MV_NONE,int rotate=WJpeg::ROT_0);
61 void startSlideshow();
65 VPicture(VMediaList * plist);
66 void showBanner(bool loading=false, int shortDisplayTime=0);
67 void destroyBanner(bool fromTimer=false);
68 void updateBanner(bool shortDisplay=false);
71 void destroyInfo(bool fromTimer=false);
72 //add or destroy a view (banner, info)
73 void sendViewMsg(Boxx *v,bool destroy=false);
74 //send command in main thread
75 void sendCommandMsg(int command);
81 VPictureBanner *banner;
87 const char * mediaError;
89 const static int INITIAL_SHOWTIME=5;
93 static Colour pictureBack;
94 static Colour infoBack;