summaryrefslogtreecommitdiffabout
path: root/kaddressbook/imagewidget.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kaddressbook/imagewidget.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-p1.zip
kdepimpi-p1.tar.gz
kdepimpi-p1.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'kaddressbook/imagewidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/imagewidget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kaddressbook/imagewidget.h b/kaddressbook/imagewidget.h
index bbfba58..9320a6b 100644
--- a/kaddressbook/imagewidget.h
+++ b/kaddressbook/imagewidget.h
@@ -1,75 +1,78 @@
1/* 1/*
2 This file is part of KAddressBook. 2 This file is part of KAddressBook.
3 Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> 3 Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#ifndef IMAGEWIDGET_H 24#ifndef IMAGEWIDGET_H
25#define IMAGEWIDGET_H 25#define IMAGEWIDGET_H
26 26
27#include <qwidget.h> 27#include <qwidget.h>
28//Added by qt3to4:
29#include <QPixmap>
30#include <QLabel>
28 31
29#include <kabc/picture.h> 32#include <kabc/picture.h>
30#include <kdialogbase.h> 33#include <kdialogbase.h>
31 34
32class KURL; 35class KURL;
33class KURLRequester; 36class KURLRequester;
34 37
35class QCheckBox; 38class QCheckBox;
36class QLabel; 39class QLabel;
37 40
38class ImageWidget : public QWidget 41class ImageWidget : public QWidget
39{ 42{
40 Q_OBJECT 43 Q_OBJECT
41 44
42 public: 45 public:
43 ImageWidget( QWidget *parent, const char *name = 0 ); 46 ImageWidget( QWidget *parent, const char *name = 0 );
44 ~ImageWidget(); 47 ~ImageWidget();
45 48
46 /** 49 /**
47 Sets the photo object. 50 Sets the photo object.
48 */ 51 */
49 void setPhoto( const KABC::Picture &photo ); 52 void setPhoto( const KABC::Picture &photo );
50 53
51 /** 54 /**
52 Returns a photo object. 55 Returns a photo object.
53 */ 56 */
54 KABC::Picture photo() const; 57 KABC::Picture photo() const;
55 58
56 /** 59 /**
57 Sets the logo object. 60 Sets the logo object.
58 */ 61 */
59 void setLogo( const KABC::Picture &photo ); 62 void setLogo( const KABC::Picture &photo );
60 63
61 /** 64 /**
62 Returns a logo object. 65 Returns a logo object.
63 */ 66 */
64 KABC::Picture logo() const; 67 KABC::Picture logo() const;
65 68
66 signals: 69 signals:
67 void changed(); 70 void changed();
68 71
69 private slots: 72 private slots:
70 void loadPhoto(); 73 void loadPhoto();
71 void loadLogo(); 74 void loadLogo();
72 void removePhoto(); 75 void removePhoto();
73 void removeLogo(); 76 void removeLogo();
74 void updateGUI(); 77 void updateGUI();
75 78