diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-11-18 19:39:47 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-11-18 19:39:47 +0000 |
| commit | bdfdce7315b4db7b6d2a5c8f3ce418a747dfc9c6 (patch) | |
| tree | 1574d5189c8dfbd2e325d1e92026f76fdbf51894 /src/playlisttitlebar.h | |
| parent | 967db4498a7a1fc85f0865f6266482b2c92e1476 (diff) | |
| download | qmmp-bdfdce7315b4db7b6d2a5c8f3ce418a747dfc9c6.tar.gz qmmp-bdfdce7315b4db7b6d2a5c8f3ce418a747dfc9c6.tar.bz2 qmmp-bdfdce7315b4db7b6d2a5c8f3ce418a747dfc9c6.zip | |
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
Diffstat (limited to 'src/playlisttitlebar.h')
| -rw-r--r-- | src/playlisttitlebar.h | 17 |
1 files changed, 16 insertions, 1 deletions
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*); |
