summary.h
1/*
2 This file is part of KDE Kontact.
3
4 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21#ifndef KONTACT_SUMMARY_H
22#define KONTACT_SUMMARY_H
23
24#include <tqwidget.h>
25#include <tqpixmap.h>
26#include <tdemacros.h>
27
28class KStatusBar;
29
30namespace Kontact
31{
32
36class TDE_EXPORT Summary : public TQWidget
37{
38 TQ_OBJECT
39
40
41 public:
42 Summary( TQWidget *parent, const char *name = 0 );
43
44 virtual ~Summary();
45
51 virtual int summaryHeight() const { return 1; }
52
56 TQWidget *createHeader( TQWidget* parent, const TQPixmap &icon,
57 const TQString& heading );
58
64 virtual TQStringList configModules() const { return TQStringList(); }
65
66 public slots:
67 virtual void configChanged() {}
68
73 virtual void updateSummary( bool force = false ) { Q_UNUSED( force ); }
74
75 signals:
76 void message( const TQString &message );
77 void summaryWidgetDropped( TQWidget *target, TQWidget *widget, int alignment );
78
79 protected:
80 virtual void mousePressEvent( TQMouseEvent* );
81 virtual void mouseMoveEvent( TQMouseEvent* );
82 virtual void dragEnterEvent( TQDragEnterEvent* );
83 virtual void dropEvent( TQDropEvent* );
84
85 private:
86 KStatusBar *mStatusBar;
87 TQPoint mDragStartPoint;
88
89 class Private;
90 Private *d;
91};
92
93}
94
95#endif
Summary widget for display in the Summary View plugin.
Definition: summary.h:37
virtual TQStringList configModules() const
Return list of strings identifying configuration modules for this summary part.
Definition: summary.h:64
virtual int summaryHeight() const
Return logical height of summary widget.
Definition: summary.h:51
virtual void updateSummary(bool force=false)
This is called if the displayed information should be updated.
Definition: summary.h:73