summaryview_part.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef SUMMARYVIEW_PART_H
00025 #define SUMMARYVIEW_PART_H
00026
00027 #include <qdatetime.h>
00028 #include <kparts/part.h>
00029
00030 #include "core.h"
00031
00032 namespace Kontact
00033 {
00034 class Plugin;
00035 class Summary;
00036 }
00037
00038 namespace KParts
00039 {
00040 class PartActivateEvent;
00041 }
00042
00043 class QFrame;
00044 class QLabel;
00045 class QGridLayout;
00046 class KAction;
00047 class KCMultiDialog;
00048
00049 class SummaryViewPart : public KParts::ReadOnlyPart
00050 {
00051 Q_OBJECT
00052
00053 public:
00054 SummaryViewPart( Kontact::Core *core, const char *widgetName,
00055 const KAboutData *aboutData,
00056 QObject *parent = 0, const char *name = 0 );
00057 ~SummaryViewPart();
00058
00059 public slots:
00060 void slotTextChanged();
00061 void slotAdjustPalette();
00062 void setDate( const QDate& newDate );
00063
00064 signals:
00065 void textChanged( const QString& );
00066
00067 protected:
00068 virtual bool openFile();
00069 virtual void partActivateEvent( KParts::PartActivateEvent *event );
00070
00071 protected slots:
00072 void slotConfigure();
00073 void updateWidgets();
00074
00075 private:
00076 void initGUI( Kontact::Core *core );
00077
00078 QStringList configModules() const;
00079
00080 QPtrList<Kontact::Summary> mSummaries;
00081 Kontact::Core *mCore;
00082 QFrame *mFrame;
00083 QFrame *mMainWidget;
00084 QVBoxLayout *mMainLayout;
00085 QLabel *mDateLabel;
00086 KAction *mConfigAction;
00087 };
00088
00089 #endif
This file is part of the documentation for kontact Library Version 3.3.2.