- check for specific files / folders case-insensitive
[Rockbox.git] / rbutil / rbutilqt / preview.h
blobc84a02a7648bf570c0338f4a4ba0c685f1316c74
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef PREVIEW_H
21 #define PREVIEW_H
23 #include <QtGui>
24 #include "ui_previewfrm.h"
27 class PreviewDlg : public QDialog
29 Q_OBJECT
31 public:
32 PreviewDlg(QWidget *parent = 0);
33 void setPixmap(QPixmap p);
34 void setText(QString text);
36 private slots:
37 void mouseMoveEvent(QMouseEvent * event);
38 void leaveEvent(QEvent * event);
40 private:
41 Ui::PreviewFrm ui;
47 class PreviewLabel : public QLabel
49 Q_OBJECT
51 public:
52 PreviewLabel(QWidget * parent = 0, Qt::WindowFlags f = 0);
54 void setPixmap(QPixmap p);
55 void setText(QString text);
56 private slots:
57 void mouseMoveEvent(QMouseEvent * event);
58 void enterEvent(QEvent * event);
59 void leaveEvent(QEvent * event);
60 void timeout();
62 private:
63 QTimer hovertimer;
64 int mousex;
65 int mousey;
66 PreviewDlg* preview;
70 #endif