summaryrefslogtreecommitdiff
path: root/core/launcher/syncdialog.h
Unidiff
Diffstat (limited to 'core/launcher/syncdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/syncdialog.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/core/launcher/syncdialog.h b/core/launcher/syncdialog.h
new file mode 100644
index 0000000..36c01fc
--- a/dev/null
+++ b/core/launcher/syncdialog.h
@@ -0,0 +1,58 @@
1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3**
4** This file is part of the Qtopia 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** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21#ifndef SYNCDIALOG_H
22#define SYNCDIALOG_H
23
24#include <qdialog.h>
25#include <qimage.h>
26#include <qpointarray.h>
27
28
29class SyncDialog : public QDialog
30{
31 Q_OBJECT
32public:
33 SyncDialog( QWidget *parent, const QString & );
34
35signals:
36 void cancel();
37
38protected:
39 void paintEvent( QPaintEvent * );
40 void timerEvent( QTimerEvent * );
41
42 void loadPath();
43 QPointArray scalePath( const QPointArray &pa, int xn, int xd, int yn, int yd );
44 QPointArray generatePath( const QPointArray &pa, int dist );
45
46private:
47 QImage img;
48 QImage dot;
49 QString what;
50 QPointArray path;
51 int nextPt;
52 bool rev;
53 bool hideDot;
54};
55
56
57#endif
58