kontact
summarywidget.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef SUMMARYWIDGET_H
00025 #define SUMMARYWIDGET_H
00026
00027 #include <qptrlist.h>
00028 #include <qwidget.h>
00029
00030 #include <libkcal/calendarresources.h>
00031
00032 #include "summary.h"
00033
00034 class QGridLayout;
00035 class QLabel;
00036
00037 class KOrganizerPlugin;
00038
00039 class SummaryWidget : public Kontact::Summary
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 SummaryWidget( KOrganizerPlugin *plugin, QWidget *parent,
00045 const char *name = 0 );
00046 ~SummaryWidget();
00047
00048 int summaryHeight() const { return 3; }
00049 QStringList configModules() const;
00050 public slots:
00051 void updateSummary( bool force = false ) { Q_UNUSED( force ); updateView(); }
00052
00053 protected:
00054 virtual bool eventFilter( QObject *obj, QEvent* e );
00055
00056 private slots:
00057 void updateView();
00058 void selectEvent( const QString &uid );
00059
00060 private:
00061 KOrganizerPlugin *mPlugin;
00062 QGridLayout *mLayout;
00063
00064 QPtrList<QLabel> mLabels;
00065 KCal::CalendarResources *mCalendar;
00066 };
00067
00068 #endif
|