Now the current_id changed broadcast is handled in xclientcache, the now unused code from XMMSHandler has been removed
66 lines
1.5 KiB
C++
66 lines
1.5 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 <xmmsclient/xmmsclient++.h>
|
|
#include "Skin.h"
|
|
|
|
#include <QWidget>
|
|
#include <QHash>
|
|
#include <QVariant>
|
|
|
|
typedef QHash<QString, QVariant> QVariantHash;
|
|
|
|
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 settingsSaved ();
|
|
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
|