summaryrefslogtreecommitdiff
authordwmw2 <dwmw2>2002-05-09 10:43:33 (UTC)
committer dwmw2 <dwmw2>2002-05-09 10:43:33 (UTC)
commitf752e8a9e666cd81d0f77193ba1399994d160bfa (patch) (unidiff)
treec1f753ee54fc10ad77a23588ac0f96f1ba7fa3b7
parent949afcadb315911e1cbeeddc1635ef3202177072 (diff)
downloadopie-f752e8a9e666cd81d0f77193ba1399994d160bfa.zip
opie-f752e8a9e666cd81d0f77193ba1399994d160bfa.tar.gz
opie-f752e8a9e666cd81d0f77193ba1399994d160bfa.tar.bz2
Add missing #include <qregexp.h>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/screenshotapplet/screenshot.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp
index 9d8d4fc..d95396b 100644
--- a/core/applets/screenshotapplet/screenshot.cpp
+++ b/core/applets/screenshotapplet/screenshot.cpp
@@ -1,102 +1,103 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com 2** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com
3** All rights reserved. 3** All rights reserved.
4** 4**
5** This file may be distributed and/or modified under the terms of the 5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software 6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the 7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file. 8** packaging of this file.
9** 9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12** 12**
13**********************************************************************/ 13**********************************************************************/
14 14
15#include "screenshot.h" 15#include "screenshot.h"
16#include <qapplication.h> 16#include <qapplication.h>
17#include <stdlib.h> 17#include <stdlib.h>
18 18
19 19
20#include <qpe/resource.h> 20#include <qpe/resource.h>
21#include <qpe/qpeapplication.h> 21#include <qpe/qpeapplication.h>
22#include <qpe/timestring.h> 22#include <qpe/timestring.h>
23#include <qpe/resource.h> 23#include <qpe/resource.h>
24#include <qpe/config.h> 24#include <qpe/config.h>
25#include <qpe/applnk.h> 25#include <qpe/applnk.h>
26#include <qpe/config.h> 26#include <qpe/config.h>
27 27
28#include <qdir.h> 28#include <qdir.h>
29#include <qfileinfo.h> 29#include <qfileinfo.h>
30#include <qpoint.h> 30#include <qpoint.h>
31#include <qpushbutton.h> 31#include <qpushbutton.h>
32#include <qpainter.h> 32#include <qpainter.h>
33#include <qcombobox.h> 33#include <qcombobox.h>
34#include <qspinbox.h> 34#include <qspinbox.h>
35#include <qslider.h> 35#include <qslider.h>
36#include <qlayout.h> 36#include <qlayout.h>
37#include <qframe.h> 37#include <qframe.h>
38#include <qpixmap.h> 38#include <qpixmap.h>
39#include <qregexp.h>
39#include <qstring.h> 40#include <qstring.h>
40#include <qfile.h> 41#include <qfile.h>
41#include <qtimer.h> 42#include <qtimer.h>
42 43
43static char * snapshot_xpm[] = { 44static char * snapshot_xpm[] = {
44"16 16 10 1", 45"16 16 10 1",
45" c None", 46" c None",
46". c #000000", 47". c #000000",
47"+ c #00C000", 48"+ c #00C000",
48"@ c #585858", 49"@ c #585858",
49"# c #808080", 50"# c #808080",
50"$ c #00FF00", 51"$ c #00FF00",
51"% c #008000", 52"% c #008000",
52"& c #00FFFF", 53"& c #00FFFF",
53"* c #FF0000", 54"* c #FF0000",
54"= c #FFC0C0", 55"= c #FFC0C0",
55" ", 56" ",
56" ... ", 57" ... ",
57" ..+++..@#. ", 58" ..+++..@#. ",
58" .$++++++.#. ", 59" .$++++++.#. ",
59" .%$$++++++. ", 60" .%$$++++++. ",
60" .&%%$$++@***. ", 61" .&%%$$++@***. ",
61" .$&$++$=**@+. ", 62" .$&$++$=**@+. ",
62" .+$$+++@*$%%. ", 63" .+$$+++@*$%%. ",
63" .+++++%+++%%. ", 64" .+++++%+++%%. ",
64" .%%++++..+%%. ", 65" .%%++++..+%%. ",
65" ..%%+++++%%. ", 66" ..%%+++++%%. ",
66" ..%%+++%%. ", 67" ..%%+++%%. ",
67" ..%%+%%. ", 68" ..%%+%%. ",
68" ..%%.. ", 69" ..%%.. ",
69" .. ", 70" .. ",
70" "}; 71" "};
71 72
72 73
73ScreenshotControl::ScreenshotControl( QWidget *parent, const char *name ) 74ScreenshotControl::ScreenshotControl( QWidget *parent, const char *name )
74 : QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup ) 75 : QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup )
75{ 76{
76 setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); 77 setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
77// qDebug("screenshot control"); 78// qDebug("screenshot control");
78 QVBoxLayout *vbox = new QVBoxLayout( this ); 79 QVBoxLayout *vbox = new QVBoxLayout( this );
79// qDebug("new layout"); 80// qDebug("new layout");
80 delaySpin = new QSpinBox( 0,60,1, this, "Spinner" ); 81 delaySpin = new QSpinBox( 0,60,1, this, "Spinner" );
81// qDebug("new spinbox"); 82// qDebug("new spinbox");
82 delaySpin->setFocusPolicy( QWidget::NoFocus ); 83 delaySpin->setFocusPolicy( QWidget::NoFocus );
83 grabItButton= new QPushButton( this, "GrabButton" ); 84 grabItButton= new QPushButton( this, "GrabButton" );
84// qDebug("new pushbutton"); 85// qDebug("new pushbutton");
85 grabItButton ->setFocusPolicy( QWidget::TabFocus ); 86 grabItButton ->setFocusPolicy( QWidget::TabFocus );
86 grabItButton->setText("Snapshot"); 87 grabItButton->setText("Snapshot");
87 vbox->setMargin( 6 ); 88 vbox->setMargin( 6 );
88 vbox->setSpacing( 3 ); 89 vbox->setSpacing( 3 );
89 vbox->addWidget( delaySpin); 90 vbox->addWidget( delaySpin);
90 vbox->setMargin( 6 ); 91 vbox->setMargin( 6 );
91 vbox->setSpacing( 3 ); 92 vbox->setSpacing( 3 );
92 vbox->addWidget( grabItButton); 93 vbox->addWidget( grabItButton);
93 94
94 setFixedHeight( 100 ); 95 setFixedHeight( 100 );
95 setFixedWidth( sizeHint().width() ); 96 setFixedWidth( sizeHint().width() );
96 setFocusPolicy(QWidget::NoFocus); 97 setFocusPolicy(QWidget::NoFocus);
97 98
98 grabTimer= new QTimer(this,"grab timer"); 99 grabTimer= new QTimer(this,"grab timer");
99// qDebug("newTimer"); 100// qDebug("newTimer");
100 connect( grabTimer, SIGNAL( timeout() ), this, SLOT( grabTimerDone() ) ); 101 connect( grabTimer, SIGNAL( timeout() ), this, SLOT( grabTimerDone() ) );
101 102
102// Config cfg("Snapshot"); 103// Config cfg("Snapshot");