summaryrefslogtreecommitdiff
path: root/noncore/multimedia/camera/mainwindow.h
authormickeyl <mickeyl>2003-04-06 14:38:18 (UTC)
committer mickeyl <mickeyl>2003-04-06 14:38:18 (UTC)
commit0b985ce87d6ce6d4110a50d5be48831d34794cd2 (patch) (unidiff)
treeda19d8dc2cd2b37d15220783940652e8e91f3843 /noncore/multimedia/camera/mainwindow.h
parent91d65a97c956963a24f418fadd7cd69f6a52f5d5 (diff)
downloadopie-0b985ce87d6ce6d4110a50d5be48831d34794cd2.zip
opie-0b985ce87d6ce6d4110a50d5be48831d34794cd2.tar.gz
opie-0b985ce87d6ce6d4110a50d5be48831d34794cd2.tar.bz2
- add realtime preview widget with zoom control
The camera driver is damn slow. For a 240x160x16 image, it takes ~100ms. That gives approx. 10fps which is too slow for doing video. :(
Diffstat (limited to 'noncore/multimedia/camera/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/camera/mainwindow.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/noncore/multimedia/camera/mainwindow.h b/noncore/multimedia/camera/mainwindow.h
index 521107b..7ccdcf8 100644
--- a/noncore/multimedia/camera/mainwindow.h
+++ b/noncore/multimedia/camera/mainwindow.h
@@ -14,29 +14,33 @@
14**********************************************************************/ 14**********************************************************************/
15 15
16#ifndef MAINWINDOW_H 16#ifndef MAINWINDOW_H
17#define MAINWINDOW_H 17#define MAINWINDOW_H
18 18
19#include <qmainwindow.h> 19#include <qmainwindow.h>
20#include <qdatetime.h>
21#include <qimage.h>
22#include <qpixmap.h>
20 23
21class QIconSet; 24class QIconSet;
22class QToolButton; 25class QToolButton;
23class QLabel; 26class QLabel;
27class MainWindowBase;
24 28
25class CameraMainWindow: public QMainWindow 29class CameraMainWindow: public QMainWindow
26{ 30{
27 Q_OBJECT 31 Q_OBJECT
28 32
29 public: 33 public:
30 CameraMainWindow( QWidget * parent = 0, const char * name = "mainwindow", WFlags f = 0 ); 34 CameraMainWindow( QWidget * parent = 0, const char * name = "mainwindow", WFlags f = 0 );
31 virtual ~CameraMainWindow(); 35 virtual ~CameraMainWindow();
32 36
33 protected:
34
35 public slots: 37 public slots:
36 void clickedSnapShot(); 38 void changeZoom( int );
39
40 protected:
37 41
38 private: 42 private:
39 QLabel* l; 43 MainWindowBase* mw;
40}; 44};
41 45
42#endif 46#endif