summaryrefslogtreecommitdiff
path: root/noncore/multimedia/camera/gui/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/multimedia/camera/gui/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/camera/gui/mainwindow.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/noncore/multimedia/camera/gui/mainwindow.h b/noncore/multimedia/camera/gui/mainwindow.h
new file mode 100644
index 0000000..451ad5f
--- a/dev/null
+++ b/noncore/multimedia/camera/gui/mainwindow.h
@@ -0,0 +1,107 @@
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
25class QAction;
26class QActionGroup;
27class QIconSet;
28class QTimerEvent;
29class QToolButton;
30class QLabel;
31class MainWindowBase;
32class QCopChannel;
33class PreviewWidget;
34
35class 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