libkdepim Library API Documentation

completionordereditor.h

00001 00031 #ifndef COMPLETIONORDEREDITOR_H 00032 #define COMPLETIONORDEREDITOR_H 00033 00034 #include <kdialogbase.h> 00035 #include <kconfig.h> 00036 00037 class QToolButton; 00038 class KListView; 00039 namespace KPIM { 00040 00041 class CompletionItem; 00042 class LdapSearch; 00043 00044 // I don't like QPtrList much, but it has compareItems, which QValueList doesn't 00045 class CompletionItemList : public QPtrList<CompletionItem> 00046 { 00047 public: 00048 CompletionItemList() {} 00049 virtual int compareItems( QPtrCollection::Item s1, QPtrCollection::Item s2 ); 00050 }; 00051 00052 class CompletionOrderEditor : public KDialogBase { 00053 Q_OBJECT 00054 00055 public: 00056 CompletionOrderEditor( KPIM::LdapSearch* ldapSearch, QWidget* parent, const char* name = 0 ); 00057 ~CompletionOrderEditor(); 00058 00059 KConfig* configFile() { return &mConfig; } 00060 00061 private slots: 00062 void slotSelectionChanged( QListViewItem* ); 00063 void slotMoveUp(); 00064 void slotMoveDown(); 00065 virtual void slotOk(); 00066 00067 private: 00068 KConfig mConfig; 00069 CompletionItemList mItems; 00070 KListView* mListView; 00071 QToolButton* mUpButton; 00072 QToolButton* mDownButton; 00073 00074 bool mDirty; 00075 }; 00076 00077 } // namespace 00078 00079 #endif /* COMPLETIONORDEREDITOR_H */ 00080
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:18:55 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003