diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-02-20 20:19:59 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-02-20 20:19:59 +0000 |
| commit | fc99b46d57b13e22c70f8acc1aaf297bab25f880 (patch) | |
| tree | a1a4bedd32a1f0e3cca388e232549da4df70cab7 /src/plugins/Ui/skinned/playlistselector.h | |
| parent | 3d6d597ffbe16422d817e06cb83463210769d5f4 (diff) | |
| download | qmmp-fc99b46d57b13e22c70f8acc1aaf297bab25f880.tar.gz qmmp-fc99b46d57b13e22c70f8acc1aaf297bab25f880.tar.bz2 qmmp-fc99b46d57b13e22c70f8acc1aaf297bab25f880.zip | |
added 'New Playlist' button (Closes issue 382)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2625 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/playlistselector.h')
| -rw-r--r-- | src/plugins/Ui/skinned/playlistselector.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/plugins/Ui/skinned/playlistselector.h b/src/plugins/Ui/skinned/playlistselector.h index 2dbef24f7..0d585d23a 100644 --- a/src/plugins/Ui/skinned/playlistselector.h +++ b/src/plugins/Ui/skinned/playlistselector.h @@ -60,23 +60,35 @@ private: void loadColors(); void drawButtons(); void updateScrollers(); - int firstVisible(); - int lastVisible(); + QRect firstVisible(); + QRect lastVisible(); + int findPlayList(QPoint pos); + int findButton(QPoint pos); PlayListManager *m_pl_manager; QFontMetrics *m_metrics; QFont m_font; QMenu *m_menu; - bool m_update; bool m_scrollable; QList <QRect> m_rects; + QList <QRect> m_extra_rects; Skin *m_skin; QColor m_normal, m_current, m_normal_bg, m_selected_bg; QPixmap m_pixmap; - bool m_showButtons; + bool m_show_new_pl_button; int m_offset, m_offset_max, m_press_offset; - bool m_moving, m_left_pressed, m_right_pressed; + bool m_moving; QPoint m_mouse_pos; QString m_pl_separator; + QString m_pl_button; + int m_pressed_button; + + enum BUTTON + { + BUTTON_UNKNOWN = -1, + BUTTON_NEW_PL, + BUTTON_LEFT, + BUTTON_RIGHT + }; }; #endif // PLAYLISTSELECTOR_H |
