• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

albumfiletip.h

Go to the documentation of this file.
00001 /* ============================================================
00002  *
00003  * This file is a part of digiKam project
00004  * http://www.digikam.org
00005  *
00006  * Date        : 2004-08-19
00007  * Description : Album item file tip adapted from kfiletip 
00008  *               (konqueror - konq_iconviewwidget.cc)
00009  *
00010  * Copyright (C) 1998-1999 by Torben Weis <weis@kde.org>
00011  * Copyright (C) 2000-2002 by David Faure <david@mandrakesoft.com>
00012  * Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
00013  * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com> 
00014  *
00015  * This program is free software; you can redistribute it
00016  * and/or modify it under the terms of the GNU General
00017  * Public License as published by the Free Software Foundation;
00018  * either version 2, or (at your option)
00019  * any later version.
00020  *
00021  * This program is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00024  * GNU General Public License for more details.
00025  *
00026  * ============================================================ */
00027 
00028 #ifndef ALBUMFILETIP_H
00029 #define ALBUMFILETIP_H
00030 
00031 // Qt includes.
00032 
00033 #include <QFrame>
00034 #include <QString>
00035 #include <QEvent>
00036 #include <QResizeEvent>
00037 
00038 namespace Digikam
00039 {
00040 
00041 class AlbumIconView;
00042 class AlbumIconItem;
00043 class AlbumFileTipPriv;
00044 
00045 class AlbumFileTip : public QFrame
00046 {
00047 public:
00048 
00049     AlbumFileTip(AlbumIconView* view);
00050     ~AlbumFileTip();
00051 
00052     void setIconItem(AlbumIconItem* iconItem);
00053 
00054 protected:
00055 
00056     bool event(QEvent*);
00057     void resizeEvent(QResizeEvent*);
00058     void paintEvent(QPaintEvent*);
00059 
00060 private:
00061 
00062     void    reposition();
00063     void    renderArrows();
00064     void    updateText();
00065     QString breakString(const QString& str);
00066 
00067 private:
00068 
00069     AlbumFileTipPriv *d;
00070 };
00071 
00072 }  // namespace Digikam
00073 
00074 #endif /* ALBUMFILETIP_H */

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal