add more spacing
[personal-kdebase.git] / workspace / kcontrol / kfontinst / viewpart / CharTip.h
blobf427fae3967ef49a32864892ea137c8695c675e0
1 #ifndef __CHAR_TIP_H__
2 #define __CHAR_TIP_H__
4 /*
5 * KFontInst - KDE Font Installer
7 * Copyright 2003-2007 Craig Drummond <craig@kde.org>
9 * ----
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; see the file COPYING. If not, write to
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA.
27 #include <QtGui/QFrame>
28 #include "FcEngine.h"
30 class QLabel;
31 class QTimer;
32 class QResizeEvent;
33 class QEvent;
35 namespace KFI
38 class CFontPreview;
40 class CCharTip : public QFrame
42 Q_OBJECT
44 public:
46 CCharTip(CFontPreview *parent);
47 ~CCharTip();
49 void setItem(const CFcEngine::TChar &ch);
51 private Q_SLOTS:
53 void showTip();
54 void hideTip();
56 private:
58 void reposition();
59 void resizeEvent(QResizeEvent *event);
60 bool eventFilter(QObject *, QEvent *e);
62 private:
64 CFontPreview *itsParent;
65 QLabel *itsLabel,
66 *itsPixmapLabel;
67 QTimer *itsTimer;
68 CFcEngine::TChar itsItem;
73 #endif