author | zautrix <zautrix> | 2005-01-21 19:36:09 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-21 19:36:09 (UTC) |
commit | 243562861a82aa2793362029a6c93b2b300b9477 (patch) (unidiff) | |
tree | 2ec9c81f21ef058dedf506d1d0be7213b9301eef | |
parent | 5cbac3131e5cecde6042db12ca73d5cd72fbed77 (diff) | |
download | kdepimpi-243562861a82aa2793362029a6c93b2b300b9477.zip kdepimpi-243562861a82aa2793362029a6c93b2b300b9477.tar.gz kdepimpi-243562861a82aa2793362029a6c93b2b300b9477.tar.bz2 |
added tr.h
-rw-r--r-- | kabc/distributionlisteditor.cpp | 4 | ||||
-rw-r--r-- | kaddressbook/tr.h | 2 | ||||
-rw-r--r-- | korganizer/tr.h | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/kabc/distributionlisteditor.cpp b/kabc/distributionlisteditor.cpp index bad1efc..9f5840b 100644 --- a/kabc/distributionlisteditor.cpp +++ b/kabc/distributionlisteditor.cpp | |||
@@ -1,57 +1,61 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkabc. | 2 | This file is part of libkabc. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library 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 GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <qlistview.h> | 21 | #include <qlistview.h> |
22 | #include <qlayout.h> | 22 | #include <qlayout.h> |
23 | #include <qpushbutton.h> | 23 | #include <qpushbutton.h> |
24 | #include <qcombobox.h> | 24 | #include <qcombobox.h> |
25 | #ifdef DESKTOP_VERSION | ||
25 | #include <qinputdialog.h> | 26 | #include <qinputdialog.h> |
27 | #else | ||
28 | #include <qtcompat/qinputdialog.h> | ||
29 | #endif | ||
26 | #include <qbuttongroup.h> | 30 | #include <qbuttongroup.h> |
27 | #include <qradiobutton.h> | 31 | #include <qradiobutton.h> |
28 | 32 | ||
29 | #include <klocale.h> | 33 | #include <klocale.h> |
30 | #include <kdebug.h> | 34 | #include <kdebug.h> |
31 | 35 | ||
32 | #include "addressbook.h" | 36 | #include "addressbook.h" |
33 | #include "addresseedialog.h" | 37 | #include "addresseedialog.h" |
34 | #include "distributionlist.h" | 38 | #include "distributionlist.h" |
35 | 39 | ||
36 | #include "distributionlisteditor.h" | 40 | #include "distributionlisteditor.h" |
37 | 41 | ||
38 | //US #include "distributionlisteditor.moc" | 42 | //US #include "distributionlisteditor.moc" |
39 | 43 | ||
40 | using namespace KABC; | 44 | using namespace KABC; |
41 | 45 | ||
42 | EmailSelectDialog::EmailSelectDialog( const QStringList &emails, const QString ¤t, | 46 | EmailSelectDialog::EmailSelectDialog( const QStringList &emails, const QString ¤t, |
43 | QWidget *parent ) : | 47 | QWidget *parent ) : |
44 | KDialogBase( KDialogBase::Plain, i18n("Select Email Address"), Ok, Ok, | 48 | KDialogBase( KDialogBase::Plain, i18n("Select Email Address"), Ok, Ok, |
45 | parent ) | 49 | parent ) |
46 | { | 50 | { |
47 | QFrame *topFrame = plainPage(); | 51 | QFrame *topFrame = plainPage(); |
48 | QBoxLayout *topLayout = new QVBoxLayout( topFrame ); | 52 | QBoxLayout *topLayout = new QVBoxLayout( topFrame ); |
49 | 53 | ||
50 | mButtonGroup = new QButtonGroup( 1, Horizontal, i18n("Email Addresses"), | 54 | mButtonGroup = new QButtonGroup( 1, Horizontal, i18n("Email Addresses"), |
51 | topFrame ); | 55 | topFrame ); |
52 | topLayout->addWidget( mButtonGroup ); | 56 | topLayout->addWidget( mButtonGroup ); |
53 | 57 | ||
54 | QStringList::ConstIterator it; | 58 | QStringList::ConstIterator it; |
55 | for( it = emails.begin(); it != emails.end(); ++it ) { | 59 | for( it = emails.begin(); it != emails.end(); ++it ) { |
56 | QRadioButton *button = new QRadioButton( *it, mButtonGroup ); | 60 | QRadioButton *button = new QRadioButton( *it, mButtonGroup ); |
57 | if ( (*it) == current ) { | 61 | if ( (*it) == current ) { |
diff --git a/kaddressbook/tr.h b/kaddressbook/tr.h new file mode 100644 index 0000000..981e2c1 --- a/dev/null +++ b/kaddressbook/tr.h | |||
@@ -0,0 +1,2 @@ | |||
1 | #include <klocale.h> | ||
2 | #define tr i18n | ||
diff --git a/korganizer/tr.h b/korganizer/tr.h new file mode 100644 index 0000000..981e2c1 --- a/dev/null +++ b/korganizer/tr.h | |||
@@ -0,0 +1,2 @@ | |||
1 | #include <klocale.h> | ||
2 | #define tr i18n | ||