00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KONTACTINTERFACE_SUMMARY_H
00022 #define KONTACTINTERFACE_SUMMARY_H
00023
00024 #include "kontactinterface_export.h"
00025
00026 #include <QtGui/QWidget>
00027
00028 class KStatusBar;
00029 class QMouseEvent;
00030 class QDragEnterEvent;
00031 class QDropEvent;
00032
00033 namespace KontactInterface
00034 {
00035
00042 class KONTACTINTERFACE_EXPORT Summary : public QWidget
00043 {
00044 Q_OBJECT
00045
00046 public:
00052 explicit Summary( QWidget *parent );
00053
00057 virtual ~Summary();
00058
00065 virtual int summaryHeight() const;
00066
00074 QWidget *createHeader( QWidget *parent, const QString &icon, const QString &heading );
00075
00081 virtual QStringList configModules() const;
00082
00083 public Q_SLOTS:
00087 virtual void configChanged();
00088
00094 virtual void updateSummary( bool force = false );
00095
00096 Q_SIGNALS:
00101 void message( const QString &message );
00102
00109 void summaryWidgetDropped( QWidget *target, QWidget *widget, int alignment );
00110
00111 protected:
00112 virtual void mousePressEvent( QMouseEvent * );
00113 virtual void mouseMoveEvent( QMouseEvent * );
00114 virtual void dragEnterEvent( QDragEnterEvent * );
00115 virtual void dropEvent( QDropEvent * );
00116
00117 private:
00118
00119 class Private;
00120 Private *const d;
00121
00122 };
00123
00124 }
00125
00126 #endif