Diffstat (limited to 'kaddressbook/views/kaddressbookiconview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/views/kaddressbookiconview.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/views/kaddressbookiconview.h b/kaddressbook/views/kaddressbookiconview.h index 963ee7c..acfcd71 100644 --- a/kaddressbook/views/kaddressbookiconview.h +++ b/kaddressbook/views/kaddressbookiconview.h | |||
@@ -40,48 +40,50 @@ class AddresseeIconView; | |||
40 | class AddresseeIconViewItem; | 40 | class AddresseeIconViewItem; |
41 | class QIconDragItem; | 41 | class QIconDragItem; |
42 | class KAddressBookIconView; | 42 | class KAddressBookIconView; |
43 | 43 | ||
44 | namespace KABC { class AddressBook; } | 44 | namespace KABC { class AddressBook; } |
45 | 45 | ||
46 | /** This is an example kaddressbook view that is implemented using | 46 | /** This is an example kaddressbook view that is implemented using |
47 | * KIconView. This view is not the most useful view, but it displays | 47 | * KIconView. This view is not the most useful view, but it displays |
48 | * how simple implementing a new view can be. | 48 | * how simple implementing a new view can be. |
49 | */ | 49 | */ |
50 | class KAddressBookIconView : public KAddressBookView | 50 | class KAddressBookIconView : public KAddressBookView |
51 | { | 51 | { |
52 | Q_OBJECT | 52 | Q_OBJECT |
53 | 53 | ||
54 | public: | 54 | public: |
55 | KAddressBookIconView( KABC::AddressBook *ab, QWidget *parent, | 55 | KAddressBookIconView( KABC::AddressBook *ab, QWidget *parent, |
56 | const char *name = 0 ); | 56 | const char *name = 0 ); |
57 | virtual ~KAddressBookIconView(); | 57 | virtual ~KAddressBookIconView(); |
58 | 58 | ||
59 | virtual QStringList selectedUids(); | 59 | virtual QStringList selectedUids(); |
60 | virtual QString type() const { return "Icon"; } | 60 | virtual QString type() const { return "Icon"; } |
61 | void doSearch( const QString& s ,KABC::Field *field ); | 61 | void doSearch( const QString& s ,KABC::Field *field ); |
62 | 62 | ||
63 | virtual void readConfig(KConfig *config); | 63 | virtual void readConfig(KConfig *config); |
64 | virtual void scrollUP(); | ||
65 | virtual void scrollDOWN(); | ||
64 | 66 | ||
65 | public slots: | 67 | public slots: |
66 | void refresh(QString uid = QString::null); | 68 | void refresh(QString uid = QString::null); |
67 | #ifndef KAB_EMBEDDED | 69 | #ifndef KAB_EMBEDDED |
68 | //MOC_SKIP_BEGIN | 70 | //MOC_SKIP_BEGIN |
69 | void setSelected(QString uid = QString::null, bool selected = true); | 71 | void setSelected(QString uid = QString::null, bool selected = true); |
70 | //MOC_SKIP_END | 72 | //MOC_SKIP_END |
71 | #else //KAB_EMBEDDED | 73 | #else //KAB_EMBEDDED |
72 | //US my MOC do not like default parameters ??? | 74 | //US my MOC do not like default parameters ??? |
73 | void setSelected(QString uid, bool selected); | 75 | void setSelected(QString uid, bool selected); |
74 | #endif //KAB_EMBEDDED | 76 | #endif //KAB_EMBEDDED |
75 | 77 | ||
76 | protected slots: | 78 | protected slots: |
77 | void addresseeExecuted(QIconViewItem *item); | 79 | void addresseeExecuted(QIconViewItem *item); |
78 | void addresseeSelected(); | 80 | void addresseeSelected(); |
79 | 81 | ||
80 | private: | 82 | private: |
81 | AddresseeIconView *mIconView; | 83 | AddresseeIconView *mIconView; |
82 | QPtrList<AddresseeIconViewItem> mIconList; | 84 | QPtrList<AddresseeIconViewItem> mIconList; |
83 | }; | 85 | }; |
84 | 86 | ||
85 | 87 | ||
86 | #ifndef KAB_EMBEDDED | 88 | #ifndef KAB_EMBEDDED |
87 | //MOC_SKIP_BEGIN | 89 | //MOC_SKIP_BEGIN |