21 #ifndef LIBRARYCONTAINER_H 22 #define LIBRARYCONTAINER_H 24 #include "Utils/Pimpl.h" 55 void set_initialized();
58 void language_changed();
61 explicit Container(QObject* parent=
nullptr);
68 virtual QString
name()
const=0;
80 virtual QWidget*
widget()
const=0;
82 virtual QFrame* header()
const=0;
84 virtual QPixmap icon()
const=0;
91 virtual QMenu*
menu();
128 #endif // LIBRARYCONTAINER_H Definition: LibraryContainer.h:46
virtual QMenu * menu()
return actions menu (may be nullptr). The title does not have to be set
QAction * menu_action() const
get the action in the player menubar.
virtual QString display_name() const
Should return the translated name displayed in the library view combobox.
virtual void init_ui()=0
Should initialize the ui. The ui constructor should be called within this function.
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 languag...
bool is_initialized() const
tests, if the ui already has been initialized
virtual QWidget * widget() const =0
Should return the UI for the library view.
The Settings class.
Definition: Settings.h:42
virtual QString name() const =0
Should return an untranslated name used for identifying this widget.
An interface class needed when implementing a library plugin.
Definition: CachingThread.h:29
Library Plugin Manager.
Definition: LibraryPluginHandler.h:39