![]() |
Sayonara Player
|
Context menu used for Library and playlist windows. More...
#include <LibraryContextMenu.h>
Public Types | |
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. | |
using | Entries = uint64_t |
Public Member Functions | |
ContextMenu (QWidget *parent=nullptr) | |
virtual ContextMenu::Entries | entries () const |
get all visible entries More... | |
virtual void | showActions (ContextMenu::Entries entries) |
show a specific amount of Entries More... | |
virtual void | showAction (ContextMenu::Entry entry, bool visible) |
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 | skinChanged () override |
void | languageChanged () override |
Context menu used for Library and playlist windows.
|
virtual |
get all visible entries
Reimplemented in SC::ContextMenu, Playlist::ContextMenu, Directory::ContextMenu, and Library::CoverViewContextMenu.
|
virtual |
show/hide a specific Entry
The | entry of interest |
visible |
Reimplemented in SC::ContextMenu.
|
virtual |
show a specific amount of Entries
entries | bitwise combination of Entry |
Reimplemented in Library::CoverViewContextMenu, SC::ContextMenu, Playlist::ContextMenu, and Directory::ContextMenu.