summaryrefslogtreecommitdiff
path: root/noncore/multimedia/camera2/camerabase.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/camera2/camerabase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/camera2/camerabase.cpp93
1 files changed, 93 insertions, 0 deletions
diff --git a/noncore/multimedia/camera2/camerabase.cpp b/noncore/multimedia/camera2/camerabase.cpp
new file mode 100644
index 0000000..cbb1ba9
--- a/dev/null
+++ b/noncore/multimedia/camera2/camerabase.cpp
@@ -0,0 +1,93 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'camerabase.ui'
3**
4** Created: Mon Jul 10 04:21:25 2006
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "camerabase.h"
10
11#include <qframe.h>
12#include <qpushbutton.h>
13#include "thumbbutton.h"
14#include "videocaptureview.h"
15#include <qlayout.h>
16#include <qvariant.h>
17#include <qtooltip.h>
18#include <qwhatsthis.h>
19
20/*
21 * Constructs a CameraBase which is a child of 'parent', with the
22 * name 'name' and widget flags set to 'f'
23 */
24CameraBase::CameraBase( QWidget* parent, const char* name, WFlags fl )
25 : QWidget( parent, name, fl )
26{
27 if ( !name )
28 setName( "camera" );
29 resize( 311, 381 );
30 setCaption( tr( "Camera" ) );
31 cameraLayout = new QGridLayout( this );
32 cameraLayout->setSpacing( 0 );
33 cameraLayout->setMargin( 0 );
34
35 Frame3 = new QFrame( this, "Frame3" );
36 Frame3->setFrameShape( QFrame::Panel );
37 Frame3->setFrameShadow( QFrame::Sunken );
38 Frame3->setLineWidth( 4 );
39 Frame3->setMargin( 4 );
40 Frame3->setMidLineWidth( 3 );
41 Frame3Layout = new QVBoxLayout( Frame3 );
42 Frame3Layout->setSpacing( 6 );
43 Frame3Layout->setMargin( 4 );
44
45 videocaptureview = new VideoCaptureView( Frame3, "videocaptureview" );
46 videocaptureview->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, videocaptureview->sizePolicy().hasHeightForWidth() ) );
47 Frame3Layout->addWidget( videocaptureview );
48
49 cameraLayout->addMultiCellWidget( Frame3, 0, 0, 0, 1 );
50
51 photo = new QPushButton( this, "photo" );
52 photo->setText( tr( "Photo" ) );
53
54 cameraLayout->addWidget( photo, 1, 0 );
55
56 video = new QPushButton( this, "video" );
57 video->setText( tr( "Video" ) );
58
59 cameraLayout->addWidget( video, 1, 1 );
60
61 thumbs = new QFrame( this, "thumbs" );
62 thumbs->setFrameShape( QFrame::NoFrame );
63 thumbs->setFrameShadow( QFrame::Plain );
64 thumbsLayout = new QHBoxLayout( thumbs );
65 thumbsLayout->setSpacing( 0 );
66 thumbsLayout->setMargin( 0 );
67
68 thumb1 = new ThumbButton( thumbs, "thumb1" );
69 thumbsLayout->addWidget( thumb1 );
70
71 thumb2 = new ThumbButton( thumbs, "thumb2" );
72 thumbsLayout->addWidget( thumb2 );
73
74 thumb3 = new ThumbButton( thumbs, "thumb3" );
75 thumbsLayout->addWidget( thumb3 );
76
77 thumb4 = new ThumbButton( thumbs, "thumb4" );
78 thumbsLayout->addWidget( thumb4 );
79
80 thumb5 = new ThumbButton( thumbs, "thumb5" );
81 thumbsLayout->addWidget( thumb5 );
82
83 cameraLayout->addMultiCellWidget( thumbs, 2, 2, 0, 1 );
84}
85
86/*
87 * Destroys the object and frees any allocated resources
88 */
89CameraBase::~CameraBase()
90{
91 // no need to delete child widgets, Qt does it all for us
92}
93