23 #ifndef LIBRARYCONTAINER_H 24 #define LIBRARYCONTAINER_H 51 QAction* _action=
nullptr;
57 void set_initialized();
60 void language_changed();
90 virtual QWidget*
get_ui()
const=0;
136 #endif // LIBRARYCONTAINER_H virtual QString get_name() const =0
Should return an untranslated name used for identifying this widget.
bool is_initialized() const
tests, if the ui already has been initialized
Library Plugin Manager.
Definition: LibraryPluginHandler.h:38
virtual void init_ui()=0
Should initialize the ui. The ui constructor should be called within this function.
virtual QComboBox * get_libchooser()=0
Should return the library chooser combo box.
An interface class needed when implementing a library plugin.
Definition: LibraryContainer.h:42
The Settings class.
Definition: Settings.h:31
virtual QString get_display_name() const =0
Should return the translated name displayed in the library view combobox.
virtual QMenu * get_menu()
return actions menu (may be nullptr). The title does not have to be set
virtual QWidget * get_ui() const =0
Should return the UI for the library view.
virtual QIcon get_icon() const =0
Should return the icon displayed in the library view combobox.
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...
QAction * get_menu_action() const
get the action in the player menubar.