From bdfdce7315b4db7b6d2a5c8f3ce418a747dfc9c6 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 18 Nov 2007 19:39:47 +0000 Subject: added shaded mode for the playlist window git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@188 90c681e8-e032-0410-971d-27865f9a5e38 --- src/playlisttitlebar.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/playlisttitlebar.h') diff --git a/src/playlisttitlebar.h b/src/playlisttitlebar.h index d70202946..f50018371 100644 --- a/src/playlisttitlebar.h +++ b/src/playlisttitlebar.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006 by Ilya Kotov * + * Copyright (C) 2007 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -30,6 +30,7 @@ class Skin; class MainWindow; class Button; +class PlayListModel; class PlayListTitleBar : public PixmapWidget { @@ -40,18 +41,32 @@ public: ~PlayListTitleBar(); void setActive(bool); + void setModel(PlayListModel *model); + void readSettings(); private slots: void updateSkin(); + void shade(); + void showCurrent(); private: void drawPixmap(int); + void truncate(); Skin *m_skin; QPoint pos; bool m_active; PlayList* m_pl; MainWindow* m_mw; Button* m_close; + Button* m_shade; + Button* m_shade2; + bool m_shaded; + bool m_align, m_resize; + int m_height; + PlayListModel* m_model; + QString m_text; + QString m_truncatedText; + QFont m_font; protected: void resizeEvent(QResizeEvent*); -- cgit v1.2.3-13-gbd6f