![]() |
Sayonara Player
|
Public Types | |
enum | SCEntry { SCEntryAddArtist =Library::ContextMenu::EntryLast } |
using | Entries = uint64_t |
enum | Entry { EntryNone = 0, EntryInfo = (1<<0), EntryEdit = (1<<1), EntryLyrics = (1<<2), EntryRemove = (1<<3), EntryDelete = (1<<4), EntryPlayNext = (1<<5), EntryAppend = (1<<6), EntryRefresh = (1<<7), EntryClear = (1<<8), EntryPlay = (1<<9), EntryPlayNewTab = (1<<10), EntryFilterExtension = (1<<11), EntryReload = (1<<12), EntryLast = (1<<13) } |
This enum indicates which entries should be visible. | |
Public Member Functions | |
ContextMenu (QWidget *parent=nullptr) | |
ContextMenu::Entries | entries () const override |
get all visible entries More... | |
void | showActions (ContextMenu::Entries entries) override |
show a specific amount of Entries More... | |
void | showAction (ContextMenu::Entry entry, bool visible) override |
show/hide a specific Entry More... | |
virtual void | showAll () |
show all possible entries | |
QAction * | action (ContextMenu::Entry entry) const |
QAction * | actionAfter (ContextMenu::Entry entry) const |
QAction * | addPreferenceAction (Gui::PreferenceAction *action) |
QAction * | beforePreferenceAction () const |
void | setActionShortcut (ContextMenu::Entry entry, const QString &shortcut) |
void | setExtensions (const Gui::ExtensionSet &extensions) |
void | setSelectionCount (int selectionSount) |
QKeySequence | shortcut (ContextMenu::Entry entry) const |
virtual void | showEvent (QShowEvent *e) override |
Protected Member Functions | |
void | languageChanged () override |
void | skinChanged () override |
|
overridevirtual |
|
overridevirtual |
show/hide a specific Entry
The | entry of interest |
visible |
Reimplemented from Library::ContextMenu.
|
overridevirtual |
show a specific amount of Entries
entries | bitwise combination of Entry |
Reimplemented from Library::ContextMenu.