author | mickeyl <mickeyl> | 2003-04-02 15:28:33 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-02 15:28:33 (UTC) |
commit | e9eeb493c75bfe6078f40952e85e859fb71fe970 (patch) (unidiff) | |
tree | 2a6eedcdfbc3aa166d3f9d3cf317cfb7d8de7a52 /noncore/multimedia/camera/mainwindow.cpp | |
parent | f0d3ff51dde49f994783827051464920529024af (diff) | |
download | opie-e9eeb493c75bfe6078f40952e85e859fb71fe970.zip opie-e9eeb493c75bfe6078f40952e85e859fb71fe970.tar.gz opie-e9eeb493c75bfe6078f40952e85e859fb71fe970.tar.bz2 |
implementation of camera API as described in the Sharp Camera API document nearly completed
Diffstat (limited to 'noncore/multimedia/camera/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/mainwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/multimedia/camera/mainwindow.cpp b/noncore/multimedia/camera/mainwindow.cpp index 2cca9f9..4218232 100644 --- a/noncore/multimedia/camera/mainwindow.cpp +++ b/noncore/multimedia/camera/mainwindow.cpp | |||
@@ -17,12 +17,14 @@ | |||
17 | #include "zcameraio.h" | 17 | #include "zcameraio.h" |
18 | 18 | ||
19 | #include <qvbox.h> | 19 | #include <qvbox.h> |
20 | #include <qpushbutton.h> | 20 | #include <qpushbutton.h> |
21 | #include <qlabel.h> | 21 | #include <qlabel.h> |
22 | 22 | ||
23 | #include <qdirectpainter_qws.h> | ||
24 | |||
23 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
24 | #include <opie/ofiledialog.h> | 26 | #include <opie/ofiledialog.h> |
25 | 27 | ||
26 | CameraMainWindow::CameraMainWindow( QWidget * parent, const char * name, WFlags f ) | 28 | CameraMainWindow::CameraMainWindow( QWidget * parent, const char * name, WFlags f ) |
27 | :QMainWindow( parent, name, f ) | 29 | :QMainWindow( parent, name, f ) |
28 | { | 30 | { |
@@ -43,15 +45,20 @@ CameraMainWindow::~CameraMainWindow() | |||
43 | { | 45 | { |
44 | } | 46 | } |
45 | 47 | ||
46 | 48 | ||
47 | void CameraMainWindow::clickedSnapShot() | 49 | void CameraMainWindow::clickedSnapShot() |
48 | { | 50 | { |
51 | QDirectPainter fb( l ); | ||
52 | ZCameraIO::instance()->snapshot( fb.frameBuffer() ); | ||
53 | |||
54 | /* | ||
49 | QImage i; | 55 | QImage i; |
50 | QPixmap p; | 56 | QPixmap p; |
51 | if ( ZCameraIO::instance()->snapshot( &i ) ) | 57 | if ( ZCameraIO::instance()->snapshot( &i ) ) |
52 | { | 58 | { |
53 | p.convertFromImage( i ); | 59 | p.convertFromImage( i ); |
54 | l->setPixmap( p ); | 60 | l->setPixmap( p ); |
55 | } | 61 | } |
62 | */ | ||
56 | } | 63 | } |
57 | 64 | ||