EyaPhotoPreview Class Reference

Photo preview class. More...

#include <eyasetuptab.h>

List of all members.

Public Types

enum  CAMERA_PARAM {
  CAPTURETARGET, CAPTURE, IMGQUALITY, IMGSIZE,
  ISO, WHITEBALANCE, ZOOM, ASSISTLIGHT,
  EXPOSURECOMPENSATION, CANONFLASHMODE, SHOOTINGMODE, APERTURE,
  FOCUSINGPOINT, SHUTTERSPEED, METERINGMODE, AFDISTANCE,
  FOCUSLOCK
}

Public Slots

void closeCamera ()
 Close the camera.
void slotBottomCutChanged (double)
 To manage the crop selection.
void slotTopCutChanged (double)
 To manage the crop selection.
void slotRightCutChanged (double)
 To manage the crop selection.
void slotLeftCutChanged (double)
 To manage the crop selection.

Public Member Functions

 EyaPhotoPreview (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor.
 ~EyaPhotoPreview ()
 Destructor.
virtual void paintEvent (QPaintEvent *e)
void openCamera ()
 This sends a command to the camera to open it.
void getPhotoPreview ()
 It takes a photo and shows the preview.
QRect getPhotoSelectedRect ()
 Crop rectangle in order to remove a part of the photo in the final web presentation.

Static Public Member Functions

static bool getCameraConfig (enum CAMERA_PARAM, QStringList &, int &)
 This function gets some infomrations from the camera by using the gphto2 interface.
static bool setCameraConfig (enum CAMERA_PARAM, int)
 This function sets some infomrations from the camera by using the gphto2 interface.
static QString autodetectCamera ()
 Autodetec the camera.

Public Attributes

double cutTop
double cutBottom
double cutRight
double cutLeft

Private Attributes

QImage * imageToShow
 Image showed by the class (photo preview).
QString currentModel
QString currentPort
 Some parameters about the connected camera: these parameters are set from the config file.


Detailed Description

Photo preview class.

This class manages the photo camera and gives to the user a preview. The same class can set some parameters of the camera as the zoom, aperture, and so on. The photo preview class, for sake of compatibility, takes a complete photo (maximum resolution) and shows a resized version. By using this class, the user can select a crop area and add a watermark.


Member Enumeration Documentation

Enumerator:
CAPTURETARGET 
CAPTURE 
IMGQUALITY 
IMGSIZE 
ISO 
WHITEBALANCE 
ZOOM 
ASSISTLIGHT 
EXPOSURECOMPENSATION 
CANONFLASHMODE 
SHOOTINGMODE 
APERTURE 
FOCUSINGPOINT 
SHUTTERSPEED 
METERINGMODE 
AFDISTANCE 
FOCUSLOCK 


Constructor & Destructor Documentation

EyaPhotoPreview::EyaPhotoPreview ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

EyaPhotoPreview::~EyaPhotoPreview (  ) 

Destructor.


Member Function Documentation

QString EyaPhotoPreview::autodetectCamera (  )  [static]

Autodetec the camera.

void EyaPhotoPreview::closeCamera (  )  [slot]

Close the camera.

bool EyaPhotoPreview::getCameraConfig ( enum CAMERA_PARAM  par,
QStringList &  choices,
int &  current 
) [static]

This function gets some infomrations from the camera by using the gphto2 interface.

void EyaPhotoPreview::getPhotoPreview (  ) 

It takes a photo and shows the preview.

QRect EyaPhotoPreview::getPhotoSelectedRect (  ) 

Crop rectangle in order to remove a part of the photo in the final web presentation.

void EyaPhotoPreview::openCamera (  ) 

This sends a command to the camera to open it.

void EyaPhotoPreview::paintEvent ( QPaintEvent *  e  )  [virtual]

bool EyaPhotoPreview::setCameraConfig ( enum CAMERA_PARAM  par,
int  current 
) [static]

This function sets some infomrations from the camera by using the gphto2 interface.

void EyaPhotoPreview::slotBottomCutChanged ( double  v  )  [slot]

To manage the crop selection.

void EyaPhotoPreview::slotLeftCutChanged ( double  v  )  [slot]

To manage the crop selection.

void EyaPhotoPreview::slotRightCutChanged ( double  v  )  [slot]

To manage the crop selection.

void EyaPhotoPreview::slotTopCutChanged ( double  v  )  [slot]

To manage the crop selection.


Member Data Documentation

QString EyaPhotoPreview::currentModel [private]

QString EyaPhotoPreview::currentPort [private]

Some parameters about the connected camera: these parameters are set from the config file.

QImage* EyaPhotoPreview::imageToShow [private]

Image showed by the class (photo preview).


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

Generated on Mon Aug 24 14:01:40 2009 for openeya by  doxygen 1.5.8