VideoGallery Class Reference

#include <videogallery.h>

Inheritance diagram for VideoGallery:

VideoDialog MythDialog

List of all members.


Detailed Description

Definition at line 21 of file videogallery.h.


Public Member Functions

 VideoGallery (MythMainWindow *lparent, const QString &lname, VideoList *video_list)

Protected Slots

void moveCursor (const QString &action)
void exitWin ()
void slotChangeView ()
void handleVideoSelect ()

Protected Member Functions

 ~VideoGallery ()
virtual void parseContainer (QDomElement &element)
virtual void fetchVideos ()
void doMenu (bool info=false)
void paintEvent (QPaintEvent *e)
void keyPressEvent (QKeyEvent *e)
bool handleSelect ()
void handleDirSelect ()
void handleUpDirSelect ()
bool goBack ()

Private Member Functions

void LoadIconWindow ()
void updateText (QPainter *p)
void updateView (QPainter *p)
void updateArrows (QPainter *p)
void updateSingleIcon (QPainter *p, int lx, int ly)
void drawIcon (QPainter *p, GenericTree *curTreePos, int curPos, int xpos, int ypos)
void positionIcon ()
void computeLastRowCol (int list_count)

Private Attributes

bool subtitleOn
bool keepAspectRatio
QRect textRect
QRect viewRect
QRect arrowsRect
QPixmap backRegPix
QPixmap backSelPix
QPixmap folderRegPix
QPixmap folderSelPix
int currRow
int currCol
int lastRow
int lastCol
int topRow
int nRows
int nCols
int spaceW
int spaceH
int thumbW
int thumbH
bool allowselect
GenericTreevideo_tree_root
GenericTreewhere_we_are

Constructor & Destructor Documentation

VideoGallery::VideoGallery ( MythMainWindow lparent,
const QString &  lname,
VideoList video_list 
)

Definition at line 33 of file videogallery.cpp.

VideoGallery::~VideoGallery (  )  [inline, protected]

Definition at line 36 of file videogallery.h.


Member Function Documentation

void VideoGallery::moveCursor ( const QString &  action  )  [protected, slot]

Definition at line 602 of file videogallery.cpp.

Referenced by keyPressEvent().

void VideoGallery::exitWin (  )  [protected, slot]

Reimplemented from VideoDialog.

Definition at line 597 of file videogallery.cpp.

void VideoGallery::slotChangeView (  )  [protected, slot]

Definition at line 762 of file videogallery.cpp.

void VideoGallery::handleVideoSelect (  )  [protected, slot]

Definition at line 825 of file videogallery.cpp.

Referenced by doMenu(), and handleSelect().

void VideoGallery::parseContainer ( QDomElement &  element  )  [protected, virtual]

Implements VideoDialog.

Definition at line 863 of file videogallery.cpp.

void VideoGallery::fetchVideos (  )  [protected, virtual]

Reimplemented from VideoDialog.

Definition at line 153 of file videogallery.cpp.

Referenced by slotChangeView(), and VideoGallery().

void VideoGallery::doMenu ( bool  info = false  )  [protected]

Reimplemented from VideoDialog.

Definition at line 492 of file videogallery.cpp.

Referenced by keyPressEvent().

void VideoGallery::paintEvent ( QPaintEvent *  e  )  [protected]

Definition at line 199 of file videogallery.cpp.

void VideoGallery::keyPressEvent ( QKeyEvent *  e  )  [protected]

Reimplemented from MythDialog.

Definition at line 54 of file videogallery.cpp.

bool VideoGallery::handleSelect (  )  [protected]

Definition at line 839 of file videogallery.cpp.

Referenced by keyPressEvent().

void VideoGallery::handleDirSelect (  )  [protected]

Definition at line 787 of file videogallery.cpp.

Referenced by handleSelect().

void VideoGallery::handleUpDirSelect (  )  [protected]

Definition at line 807 of file videogallery.cpp.

Referenced by handleSelect().

bool VideoGallery::goBack (  )  [protected]

Definition at line 121 of file videogallery.cpp.

Referenced by keyPressEvent().

void VideoGallery::LoadIconWindow (  )  [private]

Definition at line 523 of file videogallery.cpp.

Referenced by VideoGallery().

void VideoGallery::updateText ( QPainter *  p  )  [private]

Definition at line 219 of file videogallery.cpp.

Referenced by moveCursor(), and paintEvent().

void VideoGallery::updateView ( QPainter *  p  )  [private]

Definition at line 272 of file videogallery.cpp.

Referenced by paintEvent().

void VideoGallery::updateArrows ( QPainter *  p  )  [private]

Definition at line 247 of file videogallery.cpp.

Referenced by paintEvent().

void VideoGallery::updateSingleIcon ( QPainter *  p,
int  lx,
int  ly 
) [private]

Definition at line 315 of file videogallery.cpp.

Referenced by moveCursor().

void VideoGallery::drawIcon ( QPainter *  p,
GenericTree curTreePos,
int  curPos,
int  xpos,
int  ypos 
) [private]

Definition at line 351 of file videogallery.cpp.

Referenced by updateSingleIcon(), and updateView().

void VideoGallery::positionIcon (  )  [private]

Definition at line 775 of file videogallery.cpp.

Referenced by goBack(), and handleUpDirSelect().

void VideoGallery::computeLastRowCol ( int  list_count  )  [private]

Definition at line 147 of file videogallery.cpp.

Referenced by fetchVideos(), handleDirSelect(), and positionIcon().


Member Data Documentation

Definition at line 62 of file videogallery.h.

Referenced by drawIcon(), LoadIconWindow(), and VideoGallery().

Definition at line 63 of file videogallery.h.

QRect VideoGallery::textRect [private]

Definition at line 65 of file videogallery.h.

Referenced by moveCursor(), paintEvent(), parseContainer(), and updateText().

QRect VideoGallery::viewRect [private]

QRect VideoGallery::arrowsRect [private]

Definition at line 67 of file videogallery.h.

Referenced by moveCursor(), paintEvent(), parseContainer(), and updateArrows().

QPixmap VideoGallery::backRegPix [private]

Definition at line 69 of file videogallery.h.

Referenced by drawIcon(), and LoadIconWindow().

QPixmap VideoGallery::backSelPix [private]

Definition at line 70 of file videogallery.h.

Referenced by drawIcon(), and LoadIconWindow().

QPixmap VideoGallery::folderRegPix [private]

Definition at line 71 of file videogallery.h.

Referenced by drawIcon(), and LoadIconWindow().

QPixmap VideoGallery::folderSelPix [private]

Definition at line 72 of file videogallery.h.

Referenced by drawIcon(), and LoadIconWindow().

int VideoGallery::currRow [private]

Definition at line 74 of file videogallery.h.

Referenced by drawIcon(), fetchVideos(), handleDirSelect(), moveCursor(), and positionIcon().

int VideoGallery::currCol [private]

Definition at line 75 of file videogallery.h.

Referenced by drawIcon(), fetchVideos(), handleDirSelect(), moveCursor(), and positionIcon().

int VideoGallery::lastRow [private]

Definition at line 76 of file videogallery.h.

Referenced by computeLastRowCol(), fetchVideos(), moveCursor(), positionIcon(), and updateArrows().

int VideoGallery::lastCol [private]

Definition at line 77 of file videogallery.h.

Referenced by computeLastRowCol(), fetchVideos(), and moveCursor().

int VideoGallery::topRow [private]

int VideoGallery::nRows [private]

int VideoGallery::nCols [private]

int VideoGallery::spaceW [private]

Definition at line 82 of file videogallery.h.

Referenced by LoadIconWindow(), updateSingleIcon(), and updateView().

int VideoGallery::spaceH [private]

Definition at line 83 of file videogallery.h.

Referenced by drawIcon(), LoadIconWindow(), updateSingleIcon(), and updateView().

int VideoGallery::thumbW [private]

Definition at line 84 of file videogallery.h.

Referenced by drawIcon(), LoadIconWindow(), updateSingleIcon(), and updateView().

int VideoGallery::thumbH [private]

Definition at line 85 of file videogallery.h.

Referenced by drawIcon(), LoadIconWindow(), updateSingleIcon(), and updateView().

Definition at line 87 of file videogallery.h.

Referenced by fetchVideos(), handleDirSelect(), handleSelect(), and handleUpDirSelect().

Reimplemented from VideoDialog.

Definition at line 89 of file videogallery.h.

Referenced by fetchVideos(), goBack(), handleUpDirSelect(), and keyPressEvent().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:13 2010 for MythTV by  doxygen 1.5.5