X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fdialogs%2Fplaylist.hpp;h=ac20a45e94e14b0d3beb086e8f71823378a2ef7c;hb=423f5d1b188546c7b9ea273a927ac3a85516e8ed;hp=11de34f8cc036773a37824742bf26bfb83e22988;hpb=a20ffdd49a3a6055b810012bfd46e3e2d4450639;p=vlc diff --git a/modules/gui/qt4/dialogs/playlist.hpp b/modules/gui/qt4/dialogs/playlist.hpp index 11de34f8cc..ac20a45e94 100644 --- a/modules/gui/qt4/dialogs/playlist.hpp +++ b/modules/gui/qt4/dialogs/playlist.hpp @@ -18,33 +18,39 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ -#ifndef _PLAYLIST_DIALOG_H_ -#define _PLAYLIST_DIALOG_H_ +#ifndef QVLC_PLAYLIST_DIALOG_H_ +#define QVLC_PLAYLIST_DIALOG_H_ 1 -#include #include "util/qvlcframe.hpp" +#include "../components/playlist/playlist.hpp" +#include "util/singleton.hpp" + +#include +class QSignalMapper; class PLSelector; class PLPanel; +class QSettings; -class PlaylistDialog : public QVLCMW +class PlaylistDialog : public QVLCMW, public Singleton { Q_OBJECT; -public: - static PlaylistDialog * getInstance( intf_thread_t *p_intf ) - { - if( !instance) instance = new PlaylistDialog( p_intf ); - return instance; - } - virtual ~PlaylistDialog(); +private: + PlaylistWidget *playlistWidget; + private: PlaylistDialog( intf_thread_t * ); - static PlaylistDialog *instance; + virtual ~PlaylistDialog(); + + void dropEvent( QDropEvent *); + void dragEnterEvent( QDragEnterEvent * ); + void dragMoveEvent( QDragMoveEvent * ); + void dragLeaveEvent( QDragLeaveEvent * ); - PLSelector *selector; - PLPanel *rightPanel; + friend class Singleton; };