CustomLabel Class Reference

#include <CustomLabel.h>

Collaboration diagram for CustomLabel:

Collaboration graph
[legend]

List of all members.

Public Slots

void setPixmap (const QPixmap &pixmap)
void setImagePath (const QString &imagePath)
void imageZoomedIn ()
void imageZoomedOut ()

Public Member Functions

 CustomLabel (QWidget *parent=0)
virtual ~CustomLabel ()

Private Attributes

CImageHolderm_pImageHolderInstance
QPixmap m_VisibleImageState


Detailed Description

CustomLabel class is container class which holds the CImageHolder class object.

See also:
CImageHolder
Author:
vishwajeet <vishwajeet.dusane@gmail.com>

Constructor & Destructor Documentation

CustomLabel::CustomLabel ( QWidget *  parent = 0  ) 

Parameters:
parent 

References m_pImageHolderInstance.

CustomLabel::~CustomLabel (  )  [virtual]


Member Function Documentation

void CustomLabel::setPixmap ( const QPixmap &  pixmap  )  [slot]

This function sets pixmap to CImageHolder object. This function is called when image within CImageHolder object needs to change

See also:
CImageHolder
Parameters:
pixmap 

References m_pImageHolderInstance, m_VisibleImageState, and CImageHolder::setPixmap().

Referenced by CMainPictureWallArea::showImageOnWall().

void CustomLabel::setImagePath ( const QString &  imagePath  )  [slot]

This function sets the absoulute path of the image, Whever image zoom is called CImageHolder class loads the image from this path and set the scaled image to zoomed CImageHolder widget

See also:
CImageHolder
Parameters:
imagePath abosolute path of the image which needs to be displayed while image zoom in is called

References m_pImageHolderInstance, and CImageHolder::setImagePath().

Referenced by CMainPictureWallArea::showImageOnWall().

void CustomLabel::imageZoomedIn (  )  [slot]

This slot is called whenever zoom in on respective CImageHolder widget is called. In this application, This slot is called when mouse pressed event occurs on image.

See also:
CImageHolder

References m_pImageHolderInstance, and CImageHolder::setOriginalPixmap().

void CustomLabel::imageZoomedOut (  )  [slot]

This slot is called whenever zoom out on respective CImageHolder widget is called. In this application, This slot is called when mouse pressed event occurs on image and image is already zoomed in state and also when mouse is moved away from the zoomed in image.

See also:
CImageHolder

References m_pImageHolderInstance, m_VisibleImageState, and CImageHolder::setPixmap().


Member Data Documentation

Referenced by imageZoomedOut(), and setPixmap().


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

Generated on Mon Apr 27 15:25:35 2009 for PictureWall by  doxygen 1.5.6