Miam-Player  0.8.0
A nice music player
PlaylistDialog Class Reference

The PlaylistDialog class can save, load and export playlists in m3u format. More...

#include <playlistdialog.h>

Inheritance diagram for PlaylistDialog:
Ui::PlaylistDialog Ui_PlaylistDialog

Public Types

enum  PlaylistRoles { PlaylistID = Qt::UserRole + 1, PlaylistModified = Qt::UserRole + 2 }
 

Public Slots

virtual void open () override
 

Signals

void aboutToLoadPlaylist (uint playlistId)
 
void aboutToSavePlaylist (Playlist *playlist, bool overwrite)
 
void aboutToRenamePlaylist (Playlist *playlist)
 
void aboutToRenameTab (const PlaylistDAO &dao)
 
void aboutToDeletePlaylist (uint playlistId)
 

Public Member Functions

 PlaylistDialog (QWidget *parent=nullptr)
 
void setPlaylists (const QList< Playlist * > &playlists)
 
virtual bool eventFilter (QObject *obj, QEvent *event) override
 
- Public Member Functions inherited from Ui_PlaylistDialog
void setupUi (QDialog *PlaylistDialog)
 
void retranslateUi (QDialog *PlaylistDialog)
 

Additional Inherited Members

- Public Attributes inherited from Ui_PlaylistDialog
QHBoxLayout * horizontalLayout
 
QVBoxLayout * verticalLayout
 
QGroupBox * groupBoxUnsaved
 
QVBoxLayout * verticalLayout_2
 
QListView * unsavedPlaylists
 
QLabel * labelDragDropPlaylists
 
QGroupBox * groupBoxSaved
 
QVBoxLayout * verticalLayout_3
 
QListView * savedPlaylists
 
QHBoxLayout * horizontalLayout_2
 
QSpacerItem * horizontalSpacer
 
QPushButton * loadPlaylists
 
QPushButton * savePlaylists
 
QPushButton * deletePlaylists
 
QPushButton * exportPlaylists
 
QSpacerItem * horizontalSpacer_2
 
QGroupBox * groupBoxPreview
 
QHBoxLayout * horizontalLayout_5
 
QTreeWidget * previewPlaylist
 

Detailed Description

The PlaylistDialog class can save, load and export playlists in m3u format.

Author
Matthieu Bachelier

Member Enumeration Documentation

Enumerator
PlaylistID 
PlaylistModified 

Constructor & Destructor Documentation

PlaylistDialog::PlaylistDialog ( QWidget *  parent = nullptr)
explicit

XXX: MiamStyledItemDelegate should be improved!

Member Function Documentation

void PlaylistDialog::aboutToDeletePlaylist ( uint  playlistId)
signal
void PlaylistDialog::aboutToLoadPlaylist ( uint  playlistId)
signal
void PlaylistDialog::aboutToRenamePlaylist ( Playlist playlist)
signal
void PlaylistDialog::aboutToRenameTab ( const PlaylistDAO dao)
signal
void PlaylistDialog::aboutToSavePlaylist ( Playlist playlist,
bool  overwrite 
)
signal
bool PlaylistDialog::eventFilter ( QObject *  obj,
QEvent *  event 
)
overridevirtual

Add drag & drop processing.

void PlaylistDialog::open ( )
overridevirtualslot

Redefined: clean preview area, populate once again lists.

void PlaylistDialog::setPlaylists ( const QList< Playlist * > &  playlists)
inline

The documentation for this class was generated from the following files: