summaryrefslogtreecommitdiff
path: root/noncore/multimedia/camera/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/camera/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/camera/mainwindow.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/noncore/multimedia/camera/mainwindow.cpp b/noncore/multimedia/camera/mainwindow.cpp
new file mode 100644
index 0000000..6431dfa
--- a/dev/null
+++ b/noncore/multimedia/camera/mainwindow.cpp
@@ -0,0 +1,50 @@
1/**********************************************************************
2** Copyright (C) 2002 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#include "mainwindow.h"
17
18#include <qvbox.h>
19#include <qpushbutton.h>
20#include <qlabel.h>
21
22#include <qpe/resource.h>
23#include <opie/ofiledialog.h>
24
25CameraMainWindow::CameraMainWindow( QWidget * parent, const char * name, WFlags f )
26 :QMainWindow( parent, name, f )
27{
28 QVBox* v = new QVBox( this );
29 QLabel* l = new QLabel( v );
30 l->setFixedSize( QSize( 240, 160 ) );
31 QPushButton* p = new QPushButton( "Snapshot", v );
32 connect( p, SIGNAL( clicked() ), this, SLOT( clickedSnapShot() ) );
33 v->show();
34 l->show();
35 p->show();
36 setCentralWidget( v );
37
38};
39
40
41CameraMainWindow::~CameraMainWindow()
42{
43}
44
45
46void CameraMainWindow::clickedSnapShot()
47{
48 qDebug( "Hello!" );
49}
50