21 #ifndef LIBRARYCONTAINER_H 22 #define LIBRARYCONTAINER_H 25 #include "Utils/Pimpl.h" 26 #include "Utils/Settings/SayonaraClass.h" 57 void set_initialized();
60 void language_changed();
63 explicit Container(QObject* parent=
nullptr);
70 virtual QString
name()
const=0;
82 virtual QWidget*
widget()
const=0;
84 virtual QFrame* header()
const=0;
86 virtual QPixmap icon()
const=0;
93 virtual QMenu*
menu();
130 #endif // LIBRARYCONTAINER_H Definition: LibraryContainer.h:47
virtual QMenu * menu()
return actions menu (may be nullptr). The title does not have to be set
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:29
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:37
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:31
Library Plugin Manager.
Definition: LibraryPluginHandler.h:41