31 #ifndef COMPLETIONORDEREDITOR_H
32 #define COMPLETIONORDEREDITOR_H
34 #include <kdialogbase.h>
35 #include <tdeconfig.h>
42 class CompletionOrderEditor;
48 virtual ~CompletionItem() {}
49 virtual TQString label() const = 0;
50 virtual int completionWeight() const = 0;
51 virtual void setCompletionWeight( int weight ) = 0;
52 virtual void save( CompletionOrderEditor* ) = 0;
57 class CompletionItemList : public TQPtrList<CompletionItem>
60 CompletionItemList() {}
61 virtual int compareItems( TQPtrCollection::Item s1, TQPtrCollection::Item s2 );
64 class CompletionOrderEditor : public KDialogBase {
69 CompletionOrderEditor( KPIM::LdapSearch* ldapSearch, TQWidget* parent, const char* name = 0 );
70 ~CompletionOrderEditor();
72 TDEConfig* configFile() { return &mConfig; }
75 void slotSelectionChanged( TQListViewItem* );
78 virtual void slotOk();
82 CompletionItemList mItems;
83 TDEListView* mListView;
84 KPushButton* mUpButton;
85 KPushButton* mDownButton;
TDEPIM classes for drag and drop of mails.
|