Diffstat (limited to 'noncore/multimedia/camera/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/mainwindow.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/noncore/multimedia/camera/mainwindow.h b/noncore/multimedia/camera/mainwindow.h index 7a12452..ad8d1b1 100644 --- a/noncore/multimedia/camera/mainwindow.h +++ b/noncore/multimedia/camera/mainwindow.h | |||
@@ -17,16 +17,18 @@ | |||
17 | #define MAINWINDOW_H | 17 | #define MAINWINDOW_H |
18 | 18 | ||
19 | #include <qmainwindow.h> | 19 | #include <qmainwindow.h> |
20 | #include <qdatetime.h> | 20 | #include <qdatetime.h> |
21 | #include <qimage.h> | 21 | #include <qimage.h> |
22 | #include <qpixmap.h> | 22 | #include <qpixmap.h> |
23 | #include <qdatetime.h> | ||
23 | 24 | ||
24 | class QAction; | 25 | class QAction; |
25 | class QActionGroup; | 26 | class QActionGroup; |
26 | class QIconSet; | 27 | class QIconSet; |
28 | class QTimerEvent; | ||
27 | class QToolButton; | 29 | class QToolButton; |
28 | class QLabel; | 30 | class QLabel; |
29 | class MainWindowBase; | 31 | class MainWindowBase; |
30 | class QCopChannel; | 32 | class QCopChannel; |
31 | class PreviewWidget; | 33 | class PreviewWidget; |
32 | 34 | ||
@@ -42,32 +44,49 @@ class CameraMainWindow: public QMainWindow | |||
42 | void changeZoom( int ); | 44 | void changeZoom( int ); |
43 | void systemMessage( const QCString&, const QByteArray& ); | 45 | void systemMessage( const QCString&, const QByteArray& ); |
44 | void showContextMenu(); | 46 | void showContextMenu(); |
45 | void resoMenuItemClicked( QAction* ); | 47 | void resoMenuItemClicked( QAction* ); |
46 | void qualityMenuItemClicked( QAction* ); | 48 | void qualityMenuItemClicked( QAction* ); |
47 | void zoomMenuItemClicked( QAction* ); | 49 | void zoomMenuItemClicked( QAction* ); |
50 | void flipMenuItemClicked( QAction* ); | ||
48 | void outputMenuItemClicked( QAction* ); | 51 | void outputMenuItemClicked( QAction* ); |
49 | void shutterClicked(); | 52 | void shutterClicked(); |
50 | 53 | ||
54 | void updateCaption(); | ||
55 | |||
51 | protected: | 56 | protected: |
52 | void init(); | 57 | void init(); |
58 | void startVideoCapture(); | ||
59 | void stopVideoCapture(); | ||
60 | void postProcessVideo(); | ||
61 | void performCapture( const QString& ); | ||
62 | |||
63 | virtual void timerEvent( QTimerEvent* ); | ||
53 | 64 | ||
54 | private: | 65 | private: |
55 | PreviewWidget* preview; | 66 | PreviewWidget* preview; |
56 | int _rotation; | 67 | int _rotation; |
57 | QCopChannel* _sysChannel; | 68 | QCopChannel* _sysChannel; |
58 | 69 | ||
59 | QActionGroup* resog; | 70 | QActionGroup* resog; |
60 | QActionGroup* qualityg; | 71 | QActionGroup* qualityg; |
61 | QActionGroup* zoomg; | 72 | QActionGroup* zoomg; |
73 | QActionGroup* flipg; | ||
62 | QActionGroup* outputg; | 74 | QActionGroup* outputg; |
63 | 75 | ||
76 | QString flip; | ||
64 | int quality; | 77 | int quality; |
65 | int zoom; | 78 | int zoom; |
66 | int captureX; | 79 | int captureX; |
67 | int captureY; | 80 | int captureY; |
68 | QString captureFormat; | 81 | QString captureFormat; |
69 | 82 | ||
83 | bool _capturing; | ||
70 | int _pics; | 84 | int _pics; |
85 | |||
86 | QTime _time; | ||
87 | int _videopics; | ||
88 | int _capturefd; | ||
89 | unsigned char* _capturebuf; | ||
71 | }; | 90 | }; |
72 | 91 | ||
73 | #endif | 92 | #endif |