author | ulf69 <ulf69> | 2004-06-29 05:23:32 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-29 05:23:32 (UTC) |
commit | fbc79b15b58ca195fa63c741a89d6d098cc05a66 (patch) (side-by-side diff) | |
tree | e17713fc73877f2ff133af8910d40e0ae0590df5 | |
parent | 822dcc26ab3b70952679a1e12a010549659b6351 (diff) | |
download | kdepimpi-fbc79b15b58ca195fa63c741a89d6d098cc05a66.zip kdepimpi-fbc79b15b58ca195fa63c741a89d6d098cc05a66.tar.gz kdepimpi-fbc79b15b58ca195fa63c741a89d6d098cc05a66.tar.bz2 |
removed inclusion of moc file
-rw-r--r-- | kabc/distributionlistdialog.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kabc/distributionlistdialog.cpp b/kabc/distributionlistdialog.cpp index 31d5944..d2e1144 100644 --- a/kabc/distributionlistdialog.cpp +++ b/kabc/distributionlistdialog.cpp @@ -1,138 +1,136 @@ /* This file is part of libkabc. Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <qlistview.h> #include <qlayout.h> #include <qlabel.h> #include <qpushbutton.h> #include <qcombobox.h> #include <klineeditdlg.h> #include <qbuttongroup.h> #include <qradiobutton.h> #include <klocale.h> #include <kdebug.h> #include <kmessagebox.h> #include "addressbook.h" #include "addresseedialog.h" #include "distributionlist.h" #include "distributionlistdialog.h" -#ifndef KAB_EMBEDDED -#include "distributionlistdialog.moc" -#endif //KAB_EMBEDDED +//US #include "distributionlistdialog.moc" using namespace KABC; DistributionListDialog::DistributionListDialog( AddressBook *addressBook, QWidget *parent) : KDialogBase( parent, "", true, i18n("Configure Distribution Lists"), Ok, Ok, true) { mEditor = new DistributionListEditorWidget( addressBook, this ); setMainWidget( mEditor ); connect( this, SIGNAL( okClicked() ), mEditor, SLOT( save() ) ); } DistributionListDialog::~DistributionListDialog() { } EmailSelector::EmailSelector( const QStringList &emails, const QString ¤t, QWidget *parent ) : KDialogBase( KDialogBase::Plain, i18n("Select Email Address"), Ok, Ok, parent ) { QFrame *topFrame = plainPage(); QBoxLayout *topLayout = new QVBoxLayout( topFrame ); mButtonGroup = new QButtonGroup( 1, Horizontal, i18n("Email Addresses"), topFrame ); topLayout->addWidget( mButtonGroup ); QStringList::ConstIterator it; for( it = emails.begin(); it != emails.end(); ++it ) { QRadioButton *button = new QRadioButton( *it, mButtonGroup ); if ( (*it) == current ) { button->setDown( true ); } } } QString EmailSelector::selected() { QButton *button = mButtonGroup->selected(); if ( button ) return button->text(); return QString::null; } QString EmailSelector::getEmail( const QStringList &emails, const QString ¤t, QWidget *parent ) { EmailSelector *dlg = new EmailSelector( emails, current, parent ); dlg->exec(); QString result = dlg->selected(); delete dlg; return result; } class EntryItem : public QListViewItem { public: EntryItem( QListView *parent, const Addressee &addressee, const QString &email=QString::null ) : QListViewItem( parent ), mAddressee( addressee ), mEmail( email ) { setText( 0, addressee.realName() ); if( email.isEmpty() ) { setText( 1, addressee.preferredEmail() ); setText( 2, i18n("Yes") ); } else { setText( 1, email ); setText( 2, i18n("No") ); } } Addressee addressee() const { return mAddressee; } QString email() const { return mEmail; } private: Addressee mAddressee; QString mEmail; }; DistributionListEditorWidget::DistributionListEditorWidget( AddressBook *addressBook, QWidget *parent) : QWidget( parent ), mAddressBook( addressBook ) { |