Sayonara Player
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GUI_CoverEdit Class Reference

The GUI_CoverEdit class. More...

#include <GUI_CoverEdit.h>

Inheritance diagram for GUI_CoverEdit:
Gui::Widget Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent

Signals

void sig_shown ()
 
void sig_closed ()
 

Public Member Functions

 GUI_CoverEdit (GUI_TagEdit *parent)
 GUI_CoverEdit. More...
 
void reset ()
 Shows the current cover (if there) and offers to replace it Every other widget is hidden.
 
void refresh_current_track ()
 refetches the track from the tag editor and sets the cover to the left button
 
void set_current_index (int index)
 sets the current index for a track which is currently processed More...
 
QPixmap selected_cover (int index) const
 returns the new cover for a current track. More...
 
Dialog * box_into_dialog ()
 

Protected Member Functions

void language_changed () override
 
virtual void showEvent (QShowEvent *e)
 
virtual void closeEvent (QCloseEvent *e)
 
virtual void skin_changed ()
 

Protected Attributes

Dialog * _boxed_dialog =nullptr
 

Detailed Description

The GUI_CoverEdit class.

Constructor & Destructor Documentation

◆ GUI_CoverEdit()

GUI_CoverEdit::GUI_CoverEdit ( GUI_TagEdit parent)
explicit

GUI_CoverEdit.

Parameters
editorThe same tag editor as used in GUI_TagEdit
parent

Member Function Documentation

◆ selected_cover()

QPixmap GUI_CoverEdit::selected_cover ( int  index) const

returns the new cover for a current track.

Parameters
index
Returns
empty pixmap if index is invalid, or no new cover is desired a track

◆ set_current_index()

void GUI_CoverEdit::set_current_index ( int  index)

sets the current index for a track which is currently processed

Parameters
index