kontact Library API Documentation

knotetip.h

00001 /* 00002 This file is part of the KDE project 00003 Copyright (C) 2004 Michael Brade <brade@kde.org> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; see the file COPYING. If not, write to 00017 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 00020 In addition, as a special exception, the copyright holders give 00021 permission to link the code of this program with any edition of 00022 the Qt library by Trolltech AS, Norway (or with modified versions 00023 of Qt that use the same license as Qt), and distribute linked 00024 combinations including the two. You must obey the GNU General 00025 Public License in all respects for all of the code used other than 00026 Qt. If you modify this file, you may extend this exception to 00027 your version of the file, but you are not obligated to do so. If 00028 you do not wish to do so, delete this exception statement from 00029 your version. 00030 */ 00031 00032 #ifndef KNOTETIP_H 00033 #define KNOTETIP_H 00034 00035 #include <qframe.h> 00036 00037 class QTextEdit; 00038 class KIconView; 00039 class KNotesIconViewItem; 00040 00041 00042 class KNoteTip : public QFrame 00043 { 00044 public: 00045 KNoteTip( KIconView *parent ); 00046 ~KNoteTip(); 00047 00048 void setNote( KNotesIconViewItem *item, Qt::TextFormat format = Qt::PlainText ); 00049 00050 protected: 00051 virtual bool eventFilter( QObject *, QEvent *e ); 00052 virtual void timerEvent( QTimerEvent * ); 00053 virtual void resizeEvent( QResizeEvent * ); 00054 00055 private: 00056 void setFilter( bool enable ); 00057 void reposition(); 00058 00059 private: 00060 bool m_filter; 00061 00062 KIconView *m_view; 00063 KNotesIconViewItem *m_noteIVI; 00064 00065 QTextEdit *m_preview; 00066 Qt::TextFormat m_format; 00067 }; 00068 00069 00070 #endif
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:47:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003