MythTV  master
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SingleView Class Reference

#include <singleview.h>

Inheritance diagram for SingleView:
Inheritance graph
[legend]
Collaboration diagram for SingleView:
Collaboration graph
[legend]

Public Member Functions

 SingleView (const ThumbList &itemList, int *pos, int slideShow, int sortorder, MythMainWindow *parent, const char *name="SingleView")
 
 ~SingleView ()
 
- Public Member Functions inherited from MythDialog
 MythDialog (MythMainWindow *parent, const char *name="MythDialog", bool setsize=true)
 
DialogCode result (void) const
 
virtual void Show (void)
 
void hide (void)
 
void setNoErase (void)
 
virtual bool onMediaEvent (MythMediaDevice *mediadevice)
 
void setResult (DialogCode r)
 
virtual void deleteLater (void)
 
- Public Member Functions inherited from ImageView
 ImageView (const ThumbList &itemList, int *pos, int slideShow, int sortorder)
 
ThumbItemgetCurrentItem () const
 
virtual ~ImageView ()
 

Static Public Attributes

static const int kSweepRightToLeft = 0
 
static const int kSweepLeftToRight = 1
 
static const int kSweepBottomToTop = 2
 
static const int kSweepTopToBottom = 3
 
static const int kIncomingEdgesFixed = 0
 
static const int kIncomingEdgesMoving = 1
 
- Static Public Attributes inherited from MythDialog
static const DialogCode Rejected = kDialogCodeRejected
 
static const DialogCode Accepted = kDialogCodeAccepted
 
static const DialogCode ListStart = kDialogCodeListStart
 

Protected Member Functions

void Rotate (int angle) override
 
void DisplayNext (bool reset, bool loadImage) override
 
void DisplayPrev (bool reset, bool loadImage) override
 
void Load (void) override
 
void paintEvent (QPaintEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void SetZoom (float zoom) override
 
void SetPixmap (QPixmap *)
 
void RegisterEffects (void) override
 
void RunEffect (const QString &effect) override
 
- Protected Member Functions inherited from MythDialog
 ~MythDialog ()
 
void TeardownAll (void)
 
void keyPressEvent (QKeyEvent *e) override
 
- Protected Member Functions inherited from ImageView
virtual QString GetRandomEffect (void) const
 
void UpdateLCD (const ThumbItem *item)
 
QString GetDescriptionStatus (void) const
 
void GetScreenShot (QImage &image, const ThumbItem *item)
 
virtual void AddItems (const ThumbList &itemList)
 
ThumbItemadvanceItem ()
 
ThumbItemretreatItem ()
 

Private Slots

void SlideTimeout (void)
 
void CaptionTimeout (void)
 

Private Member Functions

void StartPainter (void)
 
void CreateEffectPixmap (void)
 
void CheckPosition (void)
 
void EffectNone (void)
 
void EffectChessboard (void)
 
void EffectSweep (void)
 
void EffectGrowing (void)
 
void EffectHorizLines (void)
 
void EffectVertLines (void)
 
void EffectMeltdown (void)
 
void EffectIncomingEdges (void)
 
void EffectMultiCircleOut (void)
 
void EffectSpiralIn (void)
 
void EffectCircleOut (void)
 
void EffectBlobs (void)
 
void EffectNoise (void)
 

Static Private Member Functions

static QPixmap * CreateBackground (const QSize &sz)
 

Private Attributes

QPixmap * m_pixmap {nullptr}
 
QImage m_image
 
int m_angle {0}
 
QPoint m_source_loc {0,0}
 
ScaleMax m_scaleMax {kScaleToFit}
 
QPixmap * m_info_pixmap {nullptr}
 
int m_caption_show {0}
 
bool m_caption_remove {false}
 
QPixmap * m_caption_pixmap {nullptr}
 
QPixmap * m_caption_restore_pixmap {nullptr}
 
QTimer * m_caption_timer {nullptr}
 
QPixmap * m_effect_pixmap {nullptr}
 
QPainter * m_effect_painter {nullptr}
 
int m_effect_subtype {0}
 
QRect m_effect_bounds {0,0,0,0}
 effect image bounds More...
 
QPoint m_effect_delta0 {0,0}
 misc effects delta More...
 
QPoint m_effect_delta1 {0,0}
 misc effects delta More...
 
int m_effect_i {0}
 misc effects iterator More...
 
int m_effect_j {0}
 misc effects iterator More...
 
int m_effect_framerate {0}
 timeout between effects More...
 
float m_effect_delta2_x {0.0F}
 
float m_effect_delta2_y {0.0F}
 
float m_effect_alpha {0.0F}
 
QPoint m_effect_spiral_tmp0 {0,0}
 
QPoint m_effect_spiral_tmp1 {0,0}
 
vector< int > m_effect_meltdown_y_disp
 
float m_effect_multi_circle_out_delta_alpha {0.0F}
 
QPolygon m_effect_milti_circle_out_points {4}
 
QPolygon m_effect_circle_out_points {4}
 

Additional Inherited Members

- Public Slots inherited from MythDialog
DialogCode exec (void)
 
virtual void done (int)
 
virtual void AcceptItem (int)
 
virtual void accept ()
 
virtual void reject ()
 
- Signals inherited from MythDialog
void menuButtonPressed ()
 
void leaveModality ()
 
- Static Public Member Functions inherited from MythDialog
static int CalcItemIndex (DialogCode code)
 
- Static Protected Member Functions inherited from ImageView
static SequenceBaseComposeSlideshowSequence (int slideshow_sequencing)
 
- Protected Attributes inherited from MythDialog
float m_dlgwmult {0.0F}
 
float m_dlghmult {0.0F}
 
int m_screenwidth {0}
 
int m_screenheight {0}
 
int m_xbase {0}
 
int m_ybase {0}
 
MythMainWindowm_parent {nullptr}
 
DialogCode m_rescode {kDialogCodeAccepted}
 
bool m_in_loop {false}
 
QFont m_defaultBigFont
 
QFont m_defaultMediumFont
 
QFont m_defaultSmallFont
 
- Protected Attributes inherited from ImageView
QSize m_screenSize {640,480}
 
float m_wmult {1.0F}
 
float m_hmult {1.0F}
 
int m_pos
 
int * m_savedPos {nullptr}
 
int m_movieState {0}
 
float m_zoom {1.0F}
 
bool m_info_show {false}
 
bool m_info_show_short {false}
 
bool m_slideshow_running {false}
 
const int m_slideshow_sequencing
 
int m_slideshow_frame_delay {2}
 
int m_slideshow_frame_delay_state {2000}
 
QTimer * m_slideshow_timer {nullptr}
 
const char * m_slideshow_mode {nullptr}
 
bool m_effect_running {false}
 
int m_effect_current_frame {0}
 
QString m_effect_method
 
QMap< QString, QString > m_effect_map
 
bool m_effect_random {false}
 

Detailed Description

Definition at line 44 of file singleview.h.

Constructor & Destructor Documentation

◆ SingleView()

SingleView::SingleView ( const ThumbList itemList,
int *  pos,
int  slideShow,
int  sortorder,
MythMainWindow parent,
const char *  name = "SingleView" 
)

Definition at line 49 of file singleview.cpp.

◆ ~SingleView()

SingleView::~SingleView ( )

Definition at line 115 of file singleview.cpp.

Member Function Documentation

◆ Rotate()

void SingleView::Rotate ( int  angle)
overrideprotectedvirtual

Implements ImageView.

Definition at line 618 of file singleview.cpp.

Referenced by keyPressEvent().

◆ DisplayNext()

void SingleView::DisplayNext ( bool  reset,
bool  loadImage 
)
overrideprotectedvirtual

Implements ImageView.

Definition at line 520 of file singleview.cpp.

Referenced by keyPressEvent(), and SlideTimeout().

◆ DisplayPrev()

void SingleView::DisplayPrev ( bool  reset,
bool  loadImage 
)
overrideprotectedvirtual

Implements ImageView.

Definition at line 553 of file singleview.cpp.

Referenced by keyPressEvent().

◆ Load()

void SingleView::Load ( void  )
overrideprotectedvirtual

Implements ImageView.

Definition at line 582 of file singleview.cpp.

Referenced by DisplayNext(), DisplayPrev(), SingleView(), and SlideTimeout().

◆ paintEvent()

void SingleView::paintEvent ( QPaintEvent *  e)
overrideprotected

Definition at line 150 of file singleview.cpp.

◆ keyPressEvent()

void SingleView::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Definition at line 305 of file singleview.cpp.

◆ SetZoom()

void SingleView::SetZoom ( float  zoom)
overrideprotectedvirtual

Implements ImageView.

Definition at line 639 of file singleview.cpp.

Referenced by keyPressEvent(), Load(), paintEvent(), and Rotate().

◆ SetPixmap()

void SingleView::SetPixmap ( QPixmap *  pixmap)
protected

Definition at line 658 of file singleview.cpp.

Referenced by Load(), SetZoom(), and ~SingleView().

◆ RegisterEffects()

void SingleView::RegisterEffects ( void  )
overrideprotectedvirtual

Implements ImageView.

Definition at line 684 of file singleview.cpp.

Referenced by SingleView().

◆ RunEffect()

void SingleView::RunEffect ( const QString &  effect)
overrideprotectedvirtual

Implements ImageView.

Definition at line 701 of file singleview.cpp.

Referenced by paintEvent().

◆ StartPainter()

void SingleView::StartPainter ( void  )
private

Definition at line 731 of file singleview.cpp.

Referenced by EffectBlobs(), EffectCircleOut(), EffectMultiCircleOut(), and EffectSpiralIn().

◆ CreateEffectPixmap()

void SingleView::CreateEffectPixmap ( void  )
private

Definition at line 748 of file singleview.cpp.

Referenced by SlideTimeout().

◆ CheckPosition()

void SingleView::CheckPosition ( void  )
private

Definition at line 512 of file singleview.cpp.

Referenced by keyPressEvent().

◆ EffectNone()

void SingleView::EffectNone ( void  )
private

Definition at line 765 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectChessboard()

void SingleView::EffectChessboard ( void  )
private

Definition at line 772 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectSweep()

void SingleView::EffectSweep ( void  )
private

Definition at line 822 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectGrowing()

void SingleView::EffectGrowing ( void  )
private

Definition at line 894 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectHorizLines()

void SingleView::EffectHorizLines ( void  )
private

Definition at line 930 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectVertLines()

void SingleView::EffectVertLines ( void  )
private

Definition at line 972 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectMeltdown()

void SingleView::EffectMeltdown ( void  )
private

Definition at line 1014 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectIncomingEdges()

void SingleView::EffectIncomingEdges ( void  )
private

Definition at line 1056 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectMultiCircleOut()

void SingleView::EffectMultiCircleOut ( void  )
private

Definition at line 1123 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectSpiralIn()

void SingleView::EffectSpiralIn ( void  )
private

Definition at line 1182 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectCircleOut()

void SingleView::EffectCircleOut ( void  )
private

Definition at line 1249 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectBlobs()

void SingleView::EffectBlobs ( void  )
private

Definition at line 1296 of file singleview.cpp.

Referenced by RunEffect().

◆ EffectNoise()

void SingleView::EffectNoise ( void  )
private

Definition at line 1331 of file singleview.cpp.

Referenced by RunEffect().

◆ CreateBackground()

QPixmap * SingleView::CreateBackground ( const QSize &  sz)
staticprivate

Definition at line 668 of file singleview.cpp.

Referenced by paintEvent(), and SingleView().

◆ SlideTimeout

void SingleView::SlideTimeout ( void  )
privateslot

Definition at line 1355 of file singleview.cpp.

Referenced by SingleView().

◆ CaptionTimeout

void SingleView::CaptionTimeout ( void  )
privateslot

Definition at line 1428 of file singleview.cpp.

Referenced by SingleView().

Member Data Documentation

◆ kSweepRightToLeft

const int SingleView::kSweepRightToLeft = 0
static

Definition at line 54 of file singleview.h.

Referenced by EffectSweep().

◆ kSweepLeftToRight

const int SingleView::kSweepLeftToRight = 1
static

Definition at line 55 of file singleview.h.

Referenced by EffectSweep().

◆ kSweepBottomToTop

const int SingleView::kSweepBottomToTop = 2
static

Definition at line 56 of file singleview.h.

Referenced by EffectSweep().

◆ kSweepTopToBottom

const int SingleView::kSweepTopToBottom = 3
static

Definition at line 57 of file singleview.h.

Referenced by EffectSweep().

◆ kIncomingEdgesFixed

const int SingleView::kIncomingEdgesFixed = 0
static

Definition at line 59 of file singleview.h.

◆ kIncomingEdgesMoving

const int SingleView::kIncomingEdgesMoving = 1
static

Definition at line 60 of file singleview.h.

Referenced by EffectIncomingEdges().

◆ m_pixmap

QPixmap* SingleView::m_pixmap {nullptr}
private

Definition at line 107 of file singleview.h.

Referenced by CheckPosition(), CreateEffectPixmap(), keyPressEvent(), paintEvent(), and SetPixmap().

◆ m_image

QImage SingleView::m_image
private

Definition at line 108 of file singleview.h.

Referenced by Load(), paintEvent(), Rotate(), and SetZoom().

◆ m_angle

int SingleView::m_angle {0}
private

Definition at line 109 of file singleview.h.

Referenced by DisplayNext(), DisplayPrev(), keyPressEvent(), Load(), paintEvent(), and Rotate().

◆ m_source_loc

QPoint SingleView::m_source_loc {0,0}
private

Definition at line 110 of file singleview.h.

Referenced by CheckPosition(), DisplayNext(), DisplayPrev(), keyPressEvent(), and paintEvent().

◆ m_scaleMax

ScaleMax SingleView::m_scaleMax {kScaleToFit}
private

Definition at line 111 of file singleview.h.

Referenced by keyPressEvent(), SetZoom(), SingleView(), and ~SingleView().

◆ m_info_pixmap

QPixmap* SingleView::m_info_pixmap {nullptr}
private

Definition at line 114 of file singleview.h.

Referenced by paintEvent(), and ~SingleView().

◆ m_caption_show

int SingleView::m_caption_show {0}
private

Definition at line 117 of file singleview.h.

Referenced by paintEvent(), and SingleView().

◆ m_caption_remove

bool SingleView::m_caption_remove {false}
private

Definition at line 118 of file singleview.h.

Referenced by CaptionTimeout(), and paintEvent().

◆ m_caption_pixmap

QPixmap* SingleView::m_caption_pixmap {nullptr}
private

Definition at line 119 of file singleview.h.

Referenced by paintEvent(), and SingleView().

◆ m_caption_restore_pixmap

QPixmap* SingleView::m_caption_restore_pixmap {nullptr}
private

Definition at line 120 of file singleview.h.

Referenced by paintEvent(), and SingleView().

◆ m_caption_timer

QTimer* SingleView::m_caption_timer {nullptr}
private

Definition at line 121 of file singleview.h.

Referenced by CaptionTimeout(), keyPressEvent(), paintEvent(), SingleView(), and SlideTimeout().

◆ m_effect_pixmap

QPixmap* SingleView::m_effect_pixmap {nullptr}
private

◆ m_effect_painter

QPainter* SingleView::m_effect_painter {nullptr}
private

◆ m_effect_subtype

int SingleView::m_effect_subtype {0}
private

Definition at line 126 of file singleview.h.

Referenced by EffectIncomingEdges(), and EffectSweep().

◆ m_effect_bounds

QRect SingleView::m_effect_bounds {0,0,0,0}
private

◆ m_effect_delta0

QPoint SingleView::m_effect_delta0 {0,0}
private

misc effects delta

Definition at line 128 of file singleview.h.

Referenced by EffectChessboard(), EffectMeltdown(), EffectSpiralIn(), and EffectSweep().

◆ m_effect_delta1

QPoint SingleView::m_effect_delta1 {0,0}
private

misc effects delta

Definition at line 129 of file singleview.h.

Referenced by EffectChessboard(), EffectIncomingEdges(), EffectMeltdown(), and EffectSpiralIn().

◆ m_effect_i

int SingleView::m_effect_i {0}
private

◆ m_effect_j

int SingleView::m_effect_j {0}
private

misc effects iterator

Definition at line 131 of file singleview.h.

Referenced by EffectChessboard(), and EffectSpiralIn().

◆ m_effect_framerate

int SingleView::m_effect_framerate {0}
private

timeout between effects

Definition at line 132 of file singleview.h.

Referenced by EffectChessboard(), and EffectMultiCircleOut().

◆ m_effect_delta2_x

float SingleView::m_effect_delta2_x {0.0F}
private

◆ m_effect_delta2_y

float SingleView::m_effect_delta2_y {0.0F}
private

◆ m_effect_alpha

float SingleView::m_effect_alpha {0.0F}
private

Definition at line 135 of file singleview.h.

Referenced by EffectBlobs(), EffectCircleOut(), and EffectMultiCircleOut().

◆ m_effect_spiral_tmp0

QPoint SingleView::m_effect_spiral_tmp0 {0,0}
private

Definition at line 138 of file singleview.h.

Referenced by EffectSpiralIn().

◆ m_effect_spiral_tmp1

QPoint SingleView::m_effect_spiral_tmp1 {0,0}
private

Definition at line 139 of file singleview.h.

Referenced by EffectSpiralIn().

◆ m_effect_meltdown_y_disp

vector<int> SingleView::m_effect_meltdown_y_disp
private

Definition at line 140 of file singleview.h.

Referenced by EffectMeltdown().

◆ m_effect_multi_circle_out_delta_alpha

float SingleView::m_effect_multi_circle_out_delta_alpha {0.0F}
private

Definition at line 141 of file singleview.h.

Referenced by EffectMultiCircleOut().

◆ m_effect_milti_circle_out_points

QPolygon SingleView::m_effect_milti_circle_out_points {4}
private

Definition at line 142 of file singleview.h.

Referenced by EffectMultiCircleOut().

◆ m_effect_circle_out_points

QPolygon SingleView::m_effect_circle_out_points {4}
private

Definition at line 143 of file singleview.h.

Referenced by EffectCircleOut().


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