author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kaddressbook/emaileditwidget.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'kaddressbook/emaileditwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/emaileditwidget.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kaddressbook/emaileditwidget.h b/kaddressbook/emaileditwidget.h index acdecaf..618acee 100644 --- a/kaddressbook/emaileditwidget.h +++ b/kaddressbook/emaileditwidget.h | |||
@@ -8,53 +8,53 @@ | |||
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 EMAILEDITWIDGET_H | 24 | #ifndef EMAILEDITWIDGET_H |
25 | #define EMAILEDITWIDGET_H | 25 | #define EMAILEDITWIDGET_H |
26 | 26 | ||
27 | #include <kabc/addressee.h> | 27 | #include <kabc/addressee.h> |
28 | #include <kdialogbase.h> | 28 | #include <kdialogbase.h> |
29 | 29 | ||
30 | #include "addresseeconfig.h" | 30 | #include "addresseeconfig.h" |
31 | 31 | ||
32 | class QButtonGroup; | 32 | class Q3ButtonGroup; |
33 | class QCheckBox; | 33 | class QCheckBox; |
34 | class QListView; | 34 | class Q3ListView; |
35 | class QListBox; | 35 | class Q3ListBox; |
36 | class QTextEdit; | 36 | class Q3TextEdit; |
37 | class QToolButton; | 37 | class QToolButton; |
38 | 38 | ||
39 | class KComboBox; | 39 | class KComboBox; |
40 | class KLineEdit; | 40 | class KLineEdit; |
41 | class KListView; | 41 | class KListView; |
42 | 42 | ||
43 | /** | 43 | /** |
44 | This widget displays a list box of the email addresses as well as buttons | 44 | This widget displays a list box of the email addresses as well as buttons |
45 | to manipulate them (up, down, add, remove). | 45 | to manipulate them (up, down, add, remove). |
46 | */ | 46 | */ |
47 | class EmailEditWidget : public QWidget | 47 | class EmailEditWidget : public QWidget |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | 50 | ||
51 | public: | 51 | public: |
52 | EmailEditWidget( QWidget *parent, const char *name = 0 ); | 52 | EmailEditWidget( QWidget *parent, const char *name = 0 ); |
53 | ~EmailEditWidget(); | 53 | ~EmailEditWidget(); |
54 | 54 | ||
55 | void setEmails( const QStringList &list ); | 55 | void setEmails( const QStringList &list ); |
56 | QStringList emails(); | 56 | QStringList emails(); |
57 | 57 | ||
58 | signals: | 58 | signals: |
59 | void modified(); | 59 | void modified(); |
60 | 60 | ||
@@ -68,34 +68,34 @@ class EmailEditWidget : public QWidget | |||
68 | }; | 68 | }; |
69 | 69 | ||
70 | class EmailEditDialog : public KDialogBase | 70 | class EmailEditDialog : public KDialogBase |
71 | { | 71 | { |
72 | Q_OBJECT | 72 | Q_OBJECT |
73 | 73 | ||
74 | public: | 74 | public: |
75 | EmailEditDialog( const QStringList &list, QWidget *parent, | 75 | EmailEditDialog( const QStringList &list, QWidget *parent, |
76 | const char *name = 0 ); | 76 | const char *name = 0 ); |
77 | ~EmailEditDialog(); | 77 | ~EmailEditDialog(); |
78 | 78 | ||
79 | QStringList emails() const; | 79 | QStringList emails() const; |
80 | bool changed() const; | 80 | bool changed() const; |
81 | 81 | ||
82 | protected slots: | 82 | protected slots: |
83 | void add(); | 83 | void add(); |
84 | void remove(); | 84 | void remove(); |
85 | void edit(); | 85 | void edit(); |
86 | void standard(); | 86 | void standard(); |
87 | void selectionChanged( int ); | 87 | void selectionChanged( int ); |
88 | void emailChanged(); | 88 | void emailChanged(); |
89 | 89 | ||
90 | private: | 90 | private: |
91 | KLineEdit *mEmailEdit; | 91 | KLineEdit *mEmailEdit; |
92 | QListBox *mEmailListBox; | 92 | Q3ListBox *mEmailListBox; |
93 | QPushButton *mAddButton; | 93 | QPushButton *mAddButton; |
94 | QPushButton *mRemoveButton; | 94 | QPushButton *mRemoveButton; |
95 | QPushButton *mEditButton; | 95 | QPushButton *mEditButton; |
96 | QPushButton *mStandardButton; | 96 | QPushButton *mStandardButton; |
97 | 97 | ||
98 | bool mChanged; | 98 | bool mChanged; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | #endif | 101 | #endif |