Sayonara Player
Public Member Functions | List of all members
Library::DirectoryContainer Class Reference

Public Member Functions

 DirectoryContainer (QObject *parent=nullptr)
 
QString display_name () const override
 Should return the translated name displayed in the library view combobox. More...
 
QString name () const override
 Should return an untranslated name used for identifying this widget. More...
 
QWidget * widget () const override
 Should return the UI for the library view. More...
 
QFrame * header () const override
 
QPixmap icon () const override
 
void init_ui () override
 Should initialize the ui. The ui constructor should be called within this function.
 
virtual QMenu * menu ()
 return actions menu (may be nullptr). The title does not have to be set More...
 
void set_menu_action (QAction *action)
 sets the action member field used in the player menu bar. This is called by the player if the language has changed More...
 
QAction * menu_action () const
 get the action in the player menubar. More...
 
bool is_initialized () const
 tests, if the ui already has been initialized More...
 
virtual void show ()
 
virtual void hide ()
 

Member Function Documentation

◆ display_name()

QString Library::DirectoryContainer::display_name ( ) const
overridevirtual

Should return the translated name displayed in the library view combobox.

Returns
display name

Reimplemented from Library::Container.

◆ is_initialized()

bool Library::Container::is_initialized ( ) const
inherited

tests, if the ui already has been initialized

Returns
true if ui has been initialized, false else

◆ menu()

virtual QMenu* Library::Container::menu ( )
virtualinherited

return actions menu (may be nullptr). The title does not have to be set

Returns
the translated menu relevant for the corresponding library

Reimplemented in SomaFM::LibraryContainer, SC::LibraryContainer, LocalLibraryContainer, and EmptyLibraryContainer.

◆ menu_action()

QAction* Library::Container::menu_action ( ) const
inherited

get the action in the player menubar.

Returns
pointer to action field

◆ name()

QString Library::DirectoryContainer::name ( ) const
overridevirtual

Should return an untranslated name used for identifying this widget.

Returns
name

Implements Library::Container.

◆ set_menu_action()

void Library::Container::set_menu_action ( QAction *  action)
inherited

sets the action member field used in the player menu bar. This is called by the player if the language has changed

Parameters
actionthe new translated action

◆ widget()

QWidget* Library::DirectoryContainer::widget ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements Library::Container.

Inheritance diagram for Library::DirectoryContainer:
Library::Container