24 #ifndef DISTRIBUTIONLISTWIDGET_H
25 #define DISTRIBUTIONLISTWIDGET_H
28 #include <kdialogbase.h>
29 #include <tdelistview.h>
31 #include "extensionwidget.h"
45 class DistributionListManager;
48 class DistributionListWidget :
public KAB::ExtensionWidget
54 DistributionListWidget( KAB::Core*, TQWidget *parent,
const char *name = 0 );
55 virtual ~DistributionListWidget();
57 void contactsSelectionChanged();
59 TQString title()
const;
60 TQString identifier()
const;
64 void dropped( TQDropEvent*, TQListViewItem* );
74 void updateNameCombo();
75 void updateContactView();
76 void selectionContactViewChanged();
79 #ifdef TDEPIM_NEW_DISTRLISTS
80 void changed(
const TDEABC::Addressee& dist );
84 bool alreadyExists(
const TQString& distrListName )
const;
87 void dropEvent( TQDropEvent* );
90 TQComboBox *mNameCombo;
91 TQLabel *mEntryCountLabel;
94 #ifndef TDEPIM_NEW_DISTRLISTS
95 TDEABC::DistributionListManager *mManager;
97 TQPushButton *mCreateListButton;
98 TQPushButton *mEditListButton;
99 TQPushButton *mRemoveListButton;
100 TQPushButton *mChangeEmailButton;
101 TQPushButton *mAddContactButton;
102 TQPushButton *mRemoveContactButton;
117 void dragEnterEvent( TQDragEnterEvent *e );
118 void dropEvent( TQDropEvent *e );
119 void viewportDragMoveEvent( TQDragMoveEvent *e );
120 void viewportDropEvent( TQDropEvent *e );
129 EmailSelector(
const TQStringList &emails,
const TQString ¤t,
132 TQString selected()
const;
134 static TQString getEmail(
const TQStringList &emails,
const TQString ¤t,
135 TQWidget *parent,
bool &canceled );
138 TQButtonGroup *mButtonGroup;
139 TQMap<int, TQString> mEmailMap;