00001 /* 00002 Copyright (c) 2004 Koninklijke Philips Electronics NV. All rights reserved. 00003 Based on "videobrowser.h" of MythVideo. 00004 00005 This is free software; you can redistribute it and/or modify it under the 00006 terms of version 2 of the GNU General Public License as published by the 00007 Free Software Foundation. 00008 00009 This program is distributed in the hope that it will be useful, but WITHOUT 00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00011 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00012 */ 00013 00014 #ifndef VIDEOSELECTED_H_ 00015 #define VIDEOSELECTED_H_ 00016 00017 #include <memory> 00018 00019 #include <mythtv/uitypes.h> 00020 00021 class Metadata; 00022 class VideoList; 00023 00024 class VideoSelected : public MythDialog 00025 { 00026 Q_OBJECT 00027 00028 public: 00029 VideoSelected(const VideoList *video_list, 00030 MythMainWindow *lparent, const QString &lname, 00031 int index); 00032 ~VideoSelected(); 00033 00034 void processEvents(); 00035 00036 protected slots: 00037 void exitWin(); 00038 00039 protected: 00040 void paintEvent(QPaintEvent *e); 00041 void keyPressEvent(QKeyEvent *e); 00042 void customEvent(QCustomEvent *e); 00043 00044 private: 00045 QPixmap getPixmap(QString &level); 00046 00047 void LoadWindow(QDomElement &); 00048 void parseContainer(QDomElement &); 00049 00050 void updateBackground(); 00051 void updateInfo(QPainter *); 00052 void updatePlayWait(QPainter *); 00053 00054 void startPlayItem(); 00055 00056 private: 00057 bool noUpdate; 00058 std::auto_ptr<XMLParse> theme; 00059 QDomElement xmldata; 00060 00061 std::auto_ptr<QPixmap> bgTransBackup; 00062 const Metadata *m_item; 00063 00064 QPixmap myBackground; 00065 00066 int m_state; 00067 00068 QRect infoRect; 00069 QRect fullRect; 00070 00071 bool allowselect; 00072 00073 const VideoList *m_video_list; 00074 }; 00075 00076 #endif
1.5.5