00001 #ifndef VIDEOBROWSER_H_ 00002 #define VIDEOBROWSER_H_ 00003 00004 #include <qpainter.h> 00005 00006 #include "videodlg.h" 00007 00008 class VideoBrowser : public VideoDialog 00009 { 00010 Q_OBJECT 00011 00012 public: 00013 VideoBrowser(MythMainWindow *lparent, const QString &lname, 00014 VideoList *video_list); 00015 virtual ~VideoBrowser(); 00016 00017 protected slots: 00018 void cursorLeft(); 00019 void cursorRight(); 00020 00021 void slotParentalLevelChanged(); 00022 00023 protected: 00024 void parseContainer(QDomElement &element); 00025 void paintEvent(QPaintEvent *); 00026 void keyPressEvent(QKeyEvent *e); 00027 void doMenu(bool info = false); 00028 void fetchVideos(); 00029 00030 private: 00031 QPixmap getPixmap(QString &level); 00032 void jumpToSelection(int amount); 00033 void jumpSelection(int amount); 00034 void SetCurrentItem(unsigned int index); 00035 void updateInfo(QPainter *); 00036 void updateBrowsing(QPainter *); 00037 void updatePlayWait(QPainter *); 00038 00039 private: 00040 std::auto_ptr<QPixmap> bgTransBackup; 00041 00042 unsigned int inData; // index of curItem in VideoList.metas 00043 int m_state; 00044 00045 QRect infoRect; 00046 QRect browsingRect; 00047 }; 00048 00049 #endif
1.5.5