author | mickeyl <mickeyl> | 2003-04-23 22:33:01 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-23 22:33:01 (UTC) |
commit | 545bc71ee282f93b993ae680fbe9ec135162dd21 (patch) (unidiff) | |
tree | ba23be7854b2bc017130b7e9814d2e0815292553 /noncore/multimedia/camera/mainwindow.h | |
parent | 79b22a18f68b5f39bc14eb28a175d22208d6853a (diff) | |
download | opie-545bc71ee282f93b993ae680fbe9ec135162dd21.zip opie-545bc71ee282f93b993ae680fbe9ec135162dd21.tar.gz opie-545bc71ee282f93b993ae680fbe9ec135162dd21.tar.bz2 |
add customization of output folder and filename
Diffstat (limited to 'noncore/multimedia/camera/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/mainwindow.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/noncore/multimedia/camera/mainwindow.h b/noncore/multimedia/camera/mainwindow.h index 1d844da..451ad5f 100644 --- a/noncore/multimedia/camera/mainwindow.h +++ b/noncore/multimedia/camera/mainwindow.h | |||
@@ -27,73 +27,81 @@ class QActionGroup; | |||
27 | class QIconSet; | 27 | class QIconSet; |
28 | class QTimerEvent; | 28 | class QTimerEvent; |
29 | class QToolButton; | 29 | class QToolButton; |
30 | class QLabel; | 30 | class QLabel; |
31 | class MainWindowBase; | 31 | class MainWindowBase; |
32 | class QCopChannel; | 32 | class QCopChannel; |
33 | class PreviewWidget; | 33 | class PreviewWidget; |
34 | 34 | ||
35 | class CameraMainWindow: public QMainWindow | 35 | class CameraMainWindow: public QMainWindow |
36 | { | 36 | { |
37 | Q_OBJECT | 37 | Q_OBJECT |
38 | 38 | ||
39 | public: | 39 | public: |
40 | CameraMainWindow( QWidget * parent = 0, const char * name = "mainwindow", WFlags f = 0 ); | 40 | CameraMainWindow( QWidget * parent = 0, const char * name = "mainwindow", WFlags f = 0 ); |
41 | virtual ~CameraMainWindow(); | 41 | virtual ~CameraMainWindow(); |
42 | 42 | ||
43 | public slots: | 43 | public slots: |
44 | void changeZoom( int ); | 44 | void changeZoom( int ); |
45 | void systemMessage( const QCString&, const QByteArray& ); | 45 | void systemMessage( const QCString&, const QByteArray& ); |
46 | void showContextMenu(); | 46 | void showContextMenu(); |
47 | void resoMenuItemClicked( QAction* ); | 47 | void resoMenuItemClicked( QAction* ); |
48 | void qualityMenuItemClicked( QAction* ); | 48 | void qualityMenuItemClicked( QAction* ); |
49 | void zoomMenuItemClicked( QAction* ); | 49 | void zoomMenuItemClicked( QAction* ); |
50 | void flipMenuItemClicked( QAction* ); | 50 | void flipMenuItemClicked( QAction* ); |
51 | void outputToMenuItemClicked( QAction* ); | ||
51 | void outputMenuItemClicked( QAction* ); | 52 | void outputMenuItemClicked( QAction* ); |
53 | void prefixItemChoosen(); | ||
54 | void appendSettingsChoosen(); | ||
52 | void shutterClicked(); | 55 | void shutterClicked(); |
53 | 56 | ||
54 | void updateCaption(); | 57 | void updateCaption(); |
55 | 58 | ||
56 | protected: | 59 | protected: |
57 | void init(); | 60 | void init(); |
58 | void startVideoCapture(); | 61 | void startVideoCapture(); |
59 | void stopVideoCapture(); | 62 | void stopVideoCapture(); |
60 | void postProcessVideo( const QString&, const QString& ); | 63 | void postProcessVideo( const QString&, const QString& ); |
61 | void performCapture( const QString& ); | 64 | void performCapture( const QString& ); |
62 | 65 | ||
63 | virtual void timerEvent( QTimerEvent* ); | 66 | virtual void timerEvent( QTimerEvent* ); |
64 | 67 | ||
65 | protected slots: | 68 | protected slots: |
66 | #ifndef QT_NO_DEBUG | 69 | void doSomething(); // solely for debugging purposes |
67 | //void doSomething(); // solely for debugging purposes | ||
68 | #endif | ||
69 | 70 | ||
70 | private: | 71 | private: |
71 | PreviewWidget* preview; | 72 | PreviewWidget* preview; |
72 | int _rotation; | 73 | int _rotation; |
73 | QCopChannel* _sysChannel; | 74 | QCopChannel* _sysChannel; |
74 | 75 | ||
75 | QActionGroup* resog; | 76 | QActionGroup* resog; |
76 | QActionGroup* qualityg; | 77 | QActionGroup* qualityg; |
77 | QActionGroup* zoomg; | 78 | QActionGroup* zoomg; |
78 | QActionGroup* flipg; | 79 | QActionGroup* flipg; |
80 | QActionGroup* outputTog; | ||
81 | QAction* custom; | ||
82 | QAction* docfolder; | ||
79 | QActionGroup* outputg; | 83 | QActionGroup* outputg; |
80 | 84 | ||
81 | QString flip; | 85 | QString flip; |
82 | int quality; | 86 | int quality; |
83 | int zoom; | 87 | int zoom; |
84 | int captureX; | 88 | int captureX; |
85 | int captureY; | 89 | int captureY; |
86 | QString captureFormat; | 90 | QString captureFormat; |
87 | 91 | ||
92 | QString outputTo; | ||
93 | QString prefix; | ||
94 | bool appendSettings; | ||
95 | |||
88 | bool _capturing; | 96 | bool _capturing; |
89 | int _pics; | 97 | int _pics; |
90 | int _videos; | 98 | int _videos; |
91 | 99 | ||
92 | QTime _time; | 100 | QTime _time; |
93 | int _videopics; | 101 | int _videopics; |
94 | int _capturefd; | 102 | int _capturefd; |
95 | int _framerate; | 103 | int _framerate; |
96 | unsigned char* _capturebuf; | 104 | unsigned char* _capturebuf; |
97 | }; | 105 | }; |
98 | 106 | ||
99 | #endif | 107 | #endif |