The LocalLibraryContainer class.
More...
#include <LocalLibraryContainer.h>
|
|
| LocalLibraryContainer (Library::Manager *libraryManager, const Library::Info &library, QObject *parent=nullptr) |
| |
| QString | name () const override |
| | Should return an untranslated name used for identifying this widget. More...
|
| |
| QString | displayName () const override |
| | Should return the translated name displayed in the library view combobox. More...
|
| |
| QWidget * | widget () const override |
| | Should return the UI for the library view. More...
|
| |
| QMenu * | menu () override |
| | return actions menu (may be nullptr). The title does not have to be set More...
|
| |
| QFrame * | header () const override |
| | this is a frame at the top left of the container where the combo box will be located More...
|
| |
| QIcon | icon () const override |
| | Every library should show a icon in the combo box. More...
|
| |
| void | initUi () override |
| | Should initialize the ui. The ui constructor should be called within this function. More...
|
| |
| bool | isLocal () const override |
| | a local library is a library which writes to the library field of the database. This should be false for every new plugin More...
|
| |
| void | rename (const QString &new_name) override |
| |
| void | init () override |
| | init More...
|
| |
◆ displayName()
| QString LocalLibraryContainer::displayName |
( |
| ) |
const |
|
overridevirtual |
Should return the translated name displayed in the library view combobox.
- Returns
- display name
Reimplemented from Library::Container.
◆ header()
| QFrame * LocalLibraryContainer::header |
( |
| ) |
const |
|
overridevirtual |
this is a frame at the top left of the container where the combo box will be located
- Returns
Implements Library::AbstractContainer.
◆ icon()
| QIcon LocalLibraryContainer::icon |
( |
| ) |
const |
|
overridevirtual |
◆ init()
| void Library::Container::init |
( |
| ) |
|
|
overridevirtualinherited |
◆ initUi()
| void LocalLibraryContainer::initUi |
( |
| ) |
|
|
overridevirtual |
Should initialize the ui. The ui constructor should be called within this function.
Implements Library::Container.
◆ isLocal()
| bool LocalLibraryContainer::isLocal |
( |
| ) |
const |
|
overridevirtual |
a local library is a library which writes to the library field of the database. This should be false for every new plugin
- Returns
Reimplemented from Library::Container.
◆ menu()
| QMenu * LocalLibraryContainer::menu |
( |
| ) |
|
|
overridevirtual |
return actions menu (may be nullptr). The title does not have to be set
- Returns
- the translated menu relevant for the corresponding library
Reimplemented from Library::Container.
◆ name()
| QString LocalLibraryContainer::name |
( |
| ) |
const |
|
overridevirtual |
◆ rename()
| void LocalLibraryContainer::rename |
( |
const QString & |
new_name | ) |
|
|
overridevirtual |
◆ widget()
| QWidget * LocalLibraryContainer::widget |
( |
| ) |
const |
|
overridevirtual |