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:
AbstractView Ui::TagEditor SelectedTracksModel Ui_TagEditor

Public Slots

void addItemsToEditor (const QList< QUrl > &tracks)
 
void clear ()
 
virtual void setViewProperty (Settings::ViewProperty vp, QVariant value) override
 
- Public Slots inherited from AbstractView
virtual void initFileExplorer (const QDir &)
 
virtual void setViewProperty (Settings::ViewProperty vp, QVariant value)=0
 
virtual void volumeSliderIncrease ()
 
virtual void volumeSliderDecrease ()
 

Signals

void aboutToCloseTagEditor ()
 
- Signals inherited from AbstractView
void modelReloadRequested ()
 
void aboutToSendToTagEditor (const QList< QUrl > &tracks)
 

Public Member Functions

 TagEditor (QWidget *parent=nullptr)
 
void addDirectory (const QDir &dir)
 
virtual QPair< QString, QObjectList > extensionPoints () const override
 
virtual QList< QUrl > selectedTracks () override
 
virtual ViewType type () const override
 
virtual void updateSelectedTracks () override
 
virtual bool viewProperty (Settings::ViewProperty vp) const override
 
- Public Member Functions inherited from AbstractView
 AbstractView (AbstractMediaPlayerControl *mediaPlayerControl, QWidget *parent=nullptr)
 
virtual ~AbstractView ()
 
virtual void bindShortcut (const QString &, const QKeySequence &)
 
AbstractMediaPlayerControlmediaPlayerControl () const
 
virtual void setMusicSearchEngine (MusicSearchEngine *)
 
virtual void setMediaPlayerControl (AbstractMediaPlayerControl *mpc)
 
void setOrigin (AbstractView *origin)
 
AbstractVieworigin () const
 
- 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 * convertPushButton
 
QPushButton * saveChangesButton
 
QPushButton * cancelButton
 
QHBoxLayout * extensiblePushButtonArea
 
QSpacerItem * horizontalSpacer
 
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 changeEvent (QEvent *event) override
 
virtual void closeEvent (QCloseEvent *event) override
 
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
 

Additional Inherited Members

- Public Types inherited from AbstractView
enum  ViewType { VT_BuiltIn = 0, VT_Plugin = 1 }
 
- Protected Attributes inherited from AbstractView
AbstractMediaPlayerControl_mediaPlayerControl
 

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 QList< QUrl > &  tracks)
slot

Wrapper for addItemsToEditor.

void TagEditor::changeEvent ( QEvent *  event)
overrideprotectedvirtual

Redefined to be able to retransltate User Interface at runtime.

void TagEditor::clear ( )
slot

Clears all rows and comboboxes.

void TagEditor::closeEvent ( QCloseEvent *  event)
overrideprotectedvirtual
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

QPair< QString, QObjectList > TagEditor::extensionPoints ( ) const
overridevirtual

Reimplemented from AbstractView.

QList< QUrl > TagEditor::selectedTracks ( )
overridevirtual

Implements SelectedTracksModel.

void TagEditor::setViewProperty ( Settings::ViewProperty  vp,
QVariant  value 
)
overridevirtualslot
virtual ViewType TagEditor::type ( ) const
inlineoverridevirtual

Implements AbstractView.

void TagEditor::updateSelectedTracks ( )
overridevirtual

Implements SelectedTracksModel.

bool TagEditor::viewProperty ( Settings::ViewProperty  vp) const
overridevirtual

Reimplemented from AbstractView.

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: