Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CameraMainWindow Class Reference

#include </home/clem/local/src/opie/noncore/multimedia/camera/gui/mainwindow.h>

Collaboration diagram for CameraMainWindow:

Collaboration graph
[legend]
List of all members.

Public Slots

void changeZoom (int)
void systemMessage (const QCString &, const QByteArray &)
void showContextMenu ()
void resoMenuItemClicked (QAction *)
void qualityMenuItemClicked (QAction *)
void zoomMenuItemClicked (QAction *)
void flipMenuItemClicked (QAction *)
void outputToMenuItemClicked (QAction *)
void outputMenuItemClicked (QAction *)
void prefixItemChoosen ()
void appendSettingsChoosen ()
void shutterClicked ()
void updateCaption ()

Public Member Functions

 CameraMainWindow (QWidget *parent=0, const char *name="mainwindow", WFlags f=0)
virtual ~CameraMainWindow ()

Protected Slots

void doSomething ()

Protected Member Functions

void init ()
void startVideoCapture ()
void stopVideoCapture ()
void postProcessVideo (const QString &, const QString &)
void performCapture (const QString &)
virtual void timerEvent (QTimerEvent *)

Private Attributes

PreviewWidgetpreview
int _rotation
QCopChannel_sysChannel
QActionGroup * resog
QActionGroup * qualityg
QActionGroup * zoomg
QActionGroup * flipg
QActionGroup * outputTog
QAction * custom
QAction * docfolder
QActionGroup * outputg
QString flip
int quality
int zoom
int captureX
int captureY
QString captureFormat
QString outputTo
QString prefix
bool appendSettings
bool _capturing
int _pics
int _videos
QTime _time
int _videopics
int _capturefd
int _framerate
unsigned char * _capturebuf

Constructor & Destructor Documentation

CameraMainWindow::CameraMainWindow QWidget *  parent = 0,
const char *  name = "mainwindow",
WFlags  f = 0
 

Definition at line 70 of file mainwindow.cpp.

References _rotation, _sysChannel, init(), ZCameraIO::instance(), Opie::Core::OResource::loadPixmap(), preview, showContextMenu(), shutterClicked(), Opie::Core::OResource::SmallIcon, systemMessage(), updateCaption(), and v.

CameraMainWindow::~CameraMainWindow  )  [virtual]
 

Definition at line 116 of file mainwindow.cpp.

References appendSettings, captureFormat, captureX, captureY, Opie::Core::OConfigGroupSaver::config(), flip, oApp, outputTo, prefix, quality, and zoom.


Member Function Documentation

void CameraMainWindow::appendSettingsChoosen  )  [slot]
 

Definition at line 433 of file mainwindow.cpp.

References appendSettings, odebug, and oendl.

Referenced by showContextMenu().

void CameraMainWindow::changeZoom int   )  [slot]
 

Definition at line 258 of file mainwindow.cpp.

References assert, and ZCameraIO::instance().

void CameraMainWindow::doSomething  )  [protected, slot]
 

Definition at line 717 of file mainwindow.cpp.

References _framerate, _videopics, captureX, captureY, and postProcessVideo().

Referenced by showContextMenu().

void CameraMainWindow::flipMenuItemClicked QAction *   )  [slot]
 

Definition at line 360 of file mainwindow.cpp.

References ZCameraIO::AUTOMATICFLIP, flip, ZCameraIO::instance(), odebug, oendl, updateCaption(), ZCameraIO::XFLIP, ZCameraIO::XNOFLIP, ZCameraIO::YFLIP, and ZCameraIO::YNOFLIP.

Referenced by init().

void CameraMainWindow::init  )  [protected]
 

Definition at line 132 of file mainwindow.cpp.

References appendSettings, captureFormat, captureX, captureY, Opie::Core::OConfigGroupSaver::config(), custom, docfolder, flip, flipg, flipMenuItemClicked(), oApp, oendl, outputg, outputMenuItemClicked(), outputTo, outputTog, outputToMenuItemClicked(), owarn, prefix, quality, qualityg, qualityMenuItemClicked(), resog, resoMenuItemClicked(), zoom, zoomg, and zoomMenuItemClicked().

Referenced by CameraMainWindow().

void CameraMainWindow::outputMenuItemClicked QAction *   )  [slot]
 

Definition at line 411 of file mainwindow.cpp.

References captureFormat, odebug, oendl, and updateCaption().

Referenced by init().

void CameraMainWindow::outputToMenuItemClicked QAction *   )  [slot]
 

Definition at line 379 of file mainwindow.cpp.

References docfolder, OFileDialog::getSaveFileName(), QMap< Key, T >::insert(), QString::isEmpty(), QString::null, odebug, oendl, outputTo, str, text, and tr.

Referenced by init().

void CameraMainWindow::performCapture const QString  )  [protected]
 

Definition at line 459 of file mainwindow.cpp.

References _pics, QString::append(), appendSettings, captureFormat, captureX, captureY, QDir::homeDirPath(), i, ZCameraIO::instance(), QString::latin1(), QString::lower(), name, odebug, oendl, oerr, outputTo, prefix, quality, QString::sprintf(), Global::statusMessage(), and zoom.

Referenced by shutterClicked().

void CameraMainWindow::postProcessVideo const QString ,
const QString
[protected]
 

Definition at line 581 of file mainwindow.cpp.

References _framerate, _videopics, avi_add(), avi_end(), avi_start(), bufferToImage(), captureX, captureY, QFile::close(), filesize(), fr, i, image, imageToFile(), IO_ReadOnly, odebug, oendl, oerr, QFile::open(), owarn, p, preview, qApp, quality, QFile::readBlock(), QFile::remove(), PreviewWidget::setRefreshingRate(), QFile::size(), QString::sprintf(), and updateCaption().

Referenced by doSomething(), and stopVideoCapture().

void CameraMainWindow::prefixItemChoosen  )  [slot]
 

Definition at line 419 of file mainwindow.cpp.

References d, odebug, oendl, prefix, and v.

Referenced by showContextMenu().

void CameraMainWindow::qualityMenuItemClicked QAction *   )  [slot]
 

Definition at line 343 of file mainwindow.cpp.

References odebug, oendl, quality, and updateCaption().

Referenced by init().

void CameraMainWindow::resoMenuItemClicked QAction *   )  [slot]
 

Definition at line 322 of file mainwindow.cpp.

References _rotation, captureX, captureY, odebug, oendl, updateCaption(), and warning().

Referenced by init().

void CameraMainWindow::showContextMenu  )  [slot]
 

Definition at line 273 of file mainwindow.cpp.

References appendSettings, appendSettingsChoosen(), doSomething(), flip, flipg, output, outputg, outputTo, outputTog, pos, prefix, prefixItemChoosen(), quality, qualityg, resog, zoom, and zoomg.

Referenced by CameraMainWindow().

void CameraMainWindow::shutterClicked  )  [slot]
 

Definition at line 440 of file mainwindow.cpp.

References _capturing, captureFormat, Opie::Core::ODevice::inst(), odebug, oendl, performCapture(), qApp, startVideoCapture(), Global::statusMessage(), and stopVideoCapture().

Referenced by CameraMainWindow().

void CameraMainWindow::startVideoCapture  )  [protected]
 

Definition at line 500 of file mainwindow.cpp.

References _capturebuf, _capturefd, _capturing, _framerate, _time, _videopics, CAPTUREFILE, captureX, captureY, Opie::Core::ODevice::inst(), Opie::Core::Led_BlinkSlow, Opie::Core::Led_Mail, oendl, owarn, preview, PreviewWidget::setRefreshingRate(), QTime::start(), and updateCaption().

Referenced by shutterClicked().

void CameraMainWindow::stopVideoCapture  )  [protected]
 

Definition at line 541 of file mainwindow.cpp.

References _capturefd, _capturing, _framerate, _time, _videopics, _videos, QString::append(), appendSettings, CAPTUREFILE, captureFormat, captureX, captureY, QTime::elapsed(), QDir::homeDirPath(), Opie::Core::ODevice::inst(), QString::latin1(), Opie::Core::Led_Mail, Opie::Core::Led_Off, QString::lower(), name, odebug, oendl, outputTo, postProcessVideo(), prefix, preview, quality, PreviewWidget::setRefreshingRate(), QString::sprintf(), and updateCaption().

Referenced by shutterClicked().

void CameraMainWindow::systemMessage const QCString ,
const QByteArray
[slot]
 

Definition at line 224 of file mainwindow.cpp.

References _rotation, captureX, captureY, IO_ReadOnly, odebug, oendl, preview, stream, updateCaption(), and warning().

Referenced by CameraMainWindow().

void CameraMainWindow::timerEvent QTimerEvent *   )  [protected, virtual]
 

Definition at line 523 of file mainwindow.cpp.

References _capturebuf, _capturefd, _capturing, _time, _videopics, captureX, captureY, QTime::elapsed(), ZCameraIO::instance(), odebug, oendl, write(), and zoom.

void CameraMainWindow::updateCaption  )  [slot]
 

Definition at line 706 of file mainwindow.cpp.

References _capturing, captureFormat, captureX, captureY, flip, QString::lower(), qApp, quality, and zoom.

Referenced by CameraMainWindow(), flipMenuItemClicked(), outputMenuItemClicked(), postProcessVideo(), qualityMenuItemClicked(), resoMenuItemClicked(), startVideoCapture(), stopVideoCapture(), systemMessage(), and zoomMenuItemClicked().

void CameraMainWindow::zoomMenuItemClicked QAction *   )  [slot]
 

Definition at line 351 of file mainwindow.cpp.

References ZCameraIO::instance(), odebug, oendl, updateCaption(), and zoom.

Referenced by init().


Member Data Documentation

unsigned char* CameraMainWindow::_capturebuf [private]
 

Definition at line 103 of file mainwindow.h.

Referenced by startVideoCapture(), and timerEvent().

int CameraMainWindow::_capturefd [private]
 

Definition at line 101 of file mainwindow.h.

Referenced by startVideoCapture(), stopVideoCapture(), and timerEvent().

bool CameraMainWindow::_capturing [private]
 

Definition at line 95 of file mainwindow.h.

Referenced by shutterClicked(), startVideoCapture(), stopVideoCapture(), timerEvent(), and updateCaption().

int CameraMainWindow::_framerate [private]
 

Definition at line 102 of file mainwindow.h.

Referenced by doSomething(), postProcessVideo(), startVideoCapture(), and stopVideoCapture().

int CameraMainWindow::_pics [private]
 

Definition at line 96 of file mainwindow.h.

Referenced by performCapture().

int CameraMainWindow::_rotation [private]
 

Definition at line 72 of file mainwindow.h.

Referenced by CameraMainWindow(), resoMenuItemClicked(), and systemMessage().

QCopChannel* CameraMainWindow::_sysChannel [private]
 

Definition at line 73 of file mainwindow.h.

Referenced by CameraMainWindow().

QTime CameraMainWindow::_time [private]
 

Definition at line 99 of file mainwindow.h.

Referenced by startVideoCapture(), stopVideoCapture(), and timerEvent().

int CameraMainWindow::_videopics [private]
 

Definition at line 100 of file mainwindow.h.

Referenced by doSomething(), postProcessVideo(), startVideoCapture(), stopVideoCapture(), and timerEvent().

int CameraMainWindow::_videos [private]
 

Definition at line 97 of file mainwindow.h.

Referenced by stopVideoCapture().

bool CameraMainWindow::appendSettings [private]
 

Definition at line 93 of file mainwindow.h.

Referenced by appendSettingsChoosen(), init(), performCapture(), showContextMenu(), stopVideoCapture(), and ~CameraMainWindow().

QString CameraMainWindow::captureFormat [private]
 

Definition at line 89 of file mainwindow.h.

Referenced by init(), outputMenuItemClicked(), performCapture(), shutterClicked(), stopVideoCapture(), updateCaption(), and ~CameraMainWindow().

int CameraMainWindow::captureX [private]
 

Definition at line 87 of file mainwindow.h.

Referenced by doSomething(), init(), performCapture(), postProcessVideo(), resoMenuItemClicked(), startVideoCapture(), stopVideoCapture(), systemMessage(), timerEvent(), updateCaption(), and ~CameraMainWindow().

int CameraMainWindow::captureY [private]
 

Definition at line 88 of file mainwindow.h.

Referenced by doSomething(), init(), performCapture(), postProcessVideo(), resoMenuItemClicked(), startVideoCapture(), stopVideoCapture(), systemMessage(), timerEvent(), updateCaption(), and ~CameraMainWindow().

QAction* CameraMainWindow::custom [private]
 

Definition at line 80 of file mainwindow.h.

Referenced by init().

QAction* CameraMainWindow::docfolder [private]
 

Definition at line 81 of file mainwindow.h.

Referenced by init(), and outputToMenuItemClicked().

QString CameraMainWindow::flip [private]
 

Definition at line 84 of file mainwindow.h.

Referenced by flipMenuItemClicked(), init(), showContextMenu(), updateCaption(), and ~CameraMainWindow().

QActionGroup* CameraMainWindow::flipg [private]
 

Definition at line 78 of file mainwindow.h.

Referenced by init(), and showContextMenu().

QActionGroup* CameraMainWindow::outputg [private]
 

Definition at line 82 of file mainwindow.h.

Referenced by init(), and showContextMenu().

QString CameraMainWindow::outputTo [private]
 

Definition at line 91 of file mainwindow.h.

Referenced by init(), outputToMenuItemClicked(), performCapture(), showContextMenu(), stopVideoCapture(), and ~CameraMainWindow().

QActionGroup* CameraMainWindow::outputTog [private]
 

Definition at line 79 of file mainwindow.h.

Referenced by init(), and showContextMenu().

QString CameraMainWindow::prefix [private]
 

Definition at line 92 of file mainwindow.h.

Referenced by init(), performCapture(), prefixItemChoosen(), showContextMenu(), stopVideoCapture(), and ~CameraMainWindow().

PreviewWidget* CameraMainWindow::preview [private]
 

Definition at line 71 of file mainwindow.h.

Referenced by CameraMainWindow(), postProcessVideo(), startVideoCapture(), stopVideoCapture(), and systemMessage().

int CameraMainWindow::quality [private]
 

Definition at line 85 of file mainwindow.h.

Referenced by init(), performCapture(), postProcessVideo(), qualityMenuItemClicked(), showContextMenu(), stopVideoCapture(), updateCaption(), and ~CameraMainWindow().

QActionGroup* CameraMainWindow::qualityg [private]
 

Definition at line 76 of file mainwindow.h.

Referenced by init(), and showContextMenu().

QActionGroup* CameraMainWindow::resog [private]
 

Definition at line 75 of file mainwindow.h.

Referenced by init(), and showContextMenu().

int CameraMainWindow::zoom [private]
 

Definition at line 86 of file mainwindow.h.

Referenced by init(), performCapture(), showContextMenu(), timerEvent(), updateCaption(), zoomMenuItemClicked(), and ~CameraMainWindow().

QActionGroup* CameraMainWindow::zoomg [private]
 

Definition at line 77 of file mainwindow.h.

Referenced by init(), and showContextMenu().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:27:50 2005 for OPIE by  doxygen 1.4.2