Miam-Player  0.8.0
A nice music player
TagEditor Class Reference

The TagEditor class is the main class for editing metadata inside this soft. More...

#include <tageditor.h>

Inheritance diagram for TagEditor:
Ui::TagEditor SelectedTracksModel Ui_TagEditor

Public Slots

void addItemsToEditor (const QStringList &tracks)
 
void addItemsToEditor (const QList< QUrl > &tracks)
 
void addItemsToEditor (const QList< TrackDAO > &tracks)
 
void clear ()
 

Signals

void aboutToCloseTagEditor ()
 

Public Member Functions

 TagEditor (QWidget *parent=nullptr)
 
void addDirectory (const QDir &dir)
 
virtual QStringList selectedTracks () override
 
virtual void updateSelectedTracks () override
 
- Public Member Functions inherited from Ui_TagEditor
void setupUi (QWidget *TagEditor)
 
void retranslateUi (QWidget *TagEditor)
 
- Public Member Functions inherited from SelectedTracksModel
virtual ~SelectedTracksModel ()
 

Public Attributes

TagConvertertagConverter
 
- Public Attributes inherited from Ui_TagEditor
QVBoxLayout * verticalLayout
 
QHBoxLayout * hl_top
 
QPushButton * closeTagEditorButton
 
QSpacerItem * spacer_tagEditor
 
QHBoxLayout * extensiblePushButtonArea
 
QPushButton * convertPushButton
 
QPushButton * saveChangesButton
 
QPushButton * cancelButton
 
QStackedWidget * extensibleWidgetArea
 
TagEditorTableWidgettagEditorWidget
 
QHBoxLayout * hl_bottom
 
AlbumCoveralbumCover
 
QGridLayout * gridLayout
 
QLabel * labelTitle
 
QLabel * labelArtistAlbum
 
QLabel * labelDisc
 
QLabel * labelAlbum
 
QComboBox * artistAlbumComboBox
 
QLabel * labelComment_2
 
QComboBox * albumComboBox
 
QComboBox * commentComboBox
 
QComboBox * artistComboBox
 
QComboBox * coverPathComboBox
 
QLabel * labelComment
 
QLabel * labelTrack
 
QLabel * labelArtist
 
QHBoxLayout * horizontalLayout_5
 
QComboBox * trackComboBox
 
QLabel * labelYear
 
QComboBox * yearComboBox
 
QComboBox * titleComboBox
 
QHBoxLayout * horizontalLayout_4
 
QComboBox * discComboBox
 
QLabel * labelGenre
 
QComboBox * genreComboBox
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void dragMoveEvent (QDragMoveEvent *event) override
 
virtual void dropEvent (QDropEvent *event) override
 
virtual bool eventFilter (QObject *obj, QEvent *event) override
 

Detailed Description

The TagEditor class is the main class for editing metadata inside this soft.

This Widget displays selected tracks in table form. One can interact by selecting one or multiples files at the same time. Relevant information are automatically collected and displayed in comboboxes. It is possible to tag lots of files in very few mouse clicks. It is also possible to load / extract covers from files.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

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

FIXME

Member Function Documentation

void TagEditor::aboutToCloseTagEditor ( )
signal
void TagEditor::addDirectory ( const QDir &  dir)
void TagEditor::addItemsToEditor ( const QStringList &  tracks)
slot

Splits tracks into columns to be able to edit metadatas.

void TagEditor::addItemsToEditor ( const QList< QUrl > &  tracks)
slot

Wrapper for addItemsToEditor.

void TagEditor::addItemsToEditor ( const QList< TrackDAO > &  tracks)
slot

Wrapper for addItemsToEditor.

void TagEditor::clear ( )
slot

Clears all rows and comboboxes.

void TagEditor::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual
void TagEditor::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual
void TagEditor::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual
bool TagEditor::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprotectedvirtual

Redefined to filter context menu event for the cover album object.

TEST

FIXME

QStringList TagEditor::selectedTracks ( )
overridevirtual

Implements SelectedTracksModel.

void TagEditor::updateSelectedTracks ( )
overridevirtual

Implements SelectedTracksModel.

Member Data Documentation

TagConverter* TagEditor::tagConverter

An automatic helper for writing tags following regExp.


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