author | mickeyl <mickeyl> | 2003-05-07 10:21:19 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-07 10:21:19 (UTC) |
commit | b632caef8d73edb7b5cab0c1b58df723ed654410 (patch) (unidiff) | |
tree | 91f25d0cf8922c2620f90bd716f7a73f29fa0cdd /noncore/multimedia/camera/mainwindow.h | |
parent | 6fc02cae4bd1fe3478e6e34575f481236ce5ede8 (diff) | |
download | opie-b632caef8d73edb7b5cab0c1b58df723ed654410.zip opie-b632caef8d73edb7b5cab0c1b58df723ed654410.tar.gz opie-b632caef8d73edb7b5cab0c1b58df723ed654410.tar.bz2 |
restructure tree for inclusion of a command line application enabling the use as a webcam
Diffstat (limited to 'noncore/multimedia/camera/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/mainwindow.h | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/noncore/multimedia/camera/mainwindow.h b/noncore/multimedia/camera/mainwindow.h deleted file mode 100644 index 451ad5f..0000000 --- a/noncore/multimedia/camera/mainwindow.h +++ b/dev/null | |||
@@ -1,107 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Opie Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | **********************************************************************/ | ||
15 | |||
16 | #ifndef MAINWINDOW_H | ||
17 | #define MAINWINDOW_H | ||
18 | |||
19 | #include <qmainwindow.h> | ||
20 | #include <qdatetime.h> | ||
21 | #include <qimage.h> | ||
22 | #include <qpixmap.h> | ||
23 | #include <qdatetime.h> | ||
24 | |||
25 | class QAction; | ||
26 | class QActionGroup; | ||
27 | class QIconSet; | ||
28 | class QTimerEvent; | ||
29 | class QToolButton; | ||
30 | class QLabel; | ||
31 | class MainWindowBase; | ||
32 | class QCopChannel; | ||
33 | class PreviewWidget; | ||
34 | |||
35 | class CameraMainWindow: public QMainWindow | ||
36 | { | ||
37 | Q_OBJECT | ||
38 | |||
39 | public: | ||
40 | CameraMainWindow( QWidget * parent = 0, const char * name = "mainwindow", WFlags f = 0 ); | ||
41 | virtual ~CameraMainWindow(); | ||
42 | |||
43 | public slots: | ||
44 | void changeZoom( int ); | ||
45 | void systemMessage( const QCString&, const QByteArray& ); | ||
46 | void showContextMenu(); | ||
47 | void resoMenuItemClicked( QAction* ); | ||
48 | void qualityMenuItemClicked( QAction* ); | ||
49 | void zoomMenuItemClicked( QAction* ); | ||
50 | void flipMenuItemClicked( QAction* ); | ||
51 | void outputToMenuItemClicked( QAction* ); | ||
52 | void outputMenuItemClicked( QAction* ); | ||
53 | void prefixItemChoosen(); | ||
54 | void appendSettingsChoosen(); | ||
55 | void shutterClicked(); | ||
56 | |||
57 | void updateCaption(); | ||
58 | |||
59 | protected: | ||
60 | void init(); | ||
61 | void startVideoCapture(); | ||
62 | void stopVideoCapture(); | ||
63 | void postProcessVideo( const QString&, const QString& ); | ||
64 | void performCapture( const QString& ); | ||
65 | |||
66 | virtual void timerEvent( QTimerEvent* ); | ||
67 | |||
68 | protected slots: | ||
69 | void doSomething(); // solely for debugging purposes | ||
70 | |||
71 | private: | ||
72 | PreviewWidget* preview; | ||
73 | int _rotation; | ||
74 | QCopChannel* _sysChannel; | ||
75 | |||
76 | QActionGroup* resog; | ||
77 | QActionGroup* qualityg; | ||
78 | QActionGroup* zoomg; | ||
79 | QActionGroup* flipg; | ||
80 | QActionGroup* outputTog; | ||
81 | QAction* custom; | ||
82 | QAction* docfolder; | ||
83 | QActionGroup* outputg; | ||
84 | |||
85 | QString flip; | ||
86 | int quality; | ||
87 | int zoom; | ||
88 | int captureX; | ||
89 | int captureY; | ||
90 | QString captureFormat; | ||
91 | |||
92 | QString outputTo; | ||
93 | QString prefix; | ||
94 | bool appendSettings; | ||
95 | |||
96 | bool _capturing; | ||
97 | int _pics; | ||
98 | int _videos; | ||
99 | |||
100 | QTime _time; | ||
101 | int _videopics; | ||
102 | int _capturefd; | ||
103 | int _framerate; | ||
104 | unsigned char* _capturebuf; | ||
105 | }; | ||
106 | |||
107 | #endif | ||