promoe/src/playlist/playlistshade.h
2008-11-04 19:50:28 +01:00

65 lines
1.4 KiB
C++

/**
* This file is a part of Promoe, an XMMS2 Client.
*
* Copyright (C) 2005-2008 XMMS2 Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __PLAYLISTSHADE_H__
#define __PLAYLISTSHADE_H__
#include <QWidget>
#include <QHash>
#include <QVariant>
typedef QHash<QString, QVariant> QVariantHash;
class Skin;
class QResizeEvent;
class PixmapButton;
class PlaylistWindow;
class PlaylistShade : public QWidget {
Q_OBJECT
public:
PlaylistShade (PlaylistWindow *parent);
~PlaylistShade () {}
void paintEvent (QPaintEvent *event);
void mouseDoubleClickEvent (QMouseEvent *event);
void setActive (bool);
public slots:
void setPixmaps (Skin *skin);
void setMediainfo (QVariantHash);
void settingsChanged ();
void resizeEvent (QResizeEvent *);
private:
PixmapButton *m_closebtn;
PixmapButton *m_unshadebtn;
QPixmap m_pixmap_le;
QPixmap m_pixmap_re;
QPixmap m_pixmap_mid;
QPixmap m_pixmap_re_0;
QPixmap m_pixmap_re_1;
QFont m_font;
QColor m_color;
QString m_text;
// QFontMetrics m_fm;
};
#endif