![]() |
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), EntryCoverView =(1<<9), EntryPlay =(1<<10), EntryPlayNewTab =(1<<11), EntryFilterExtension =(1<<12), EntryReload =(1<<13), EntryLast =(1<<14) } |
This enum indicates which entries should be visible. | |
using | Entries = uint64_t |
Public Member Functions | |
ContextMenu (QWidget *parent=nullptr) | |
virtual ContextMenu::Entries | get_entries () const |
get all visible entries More... | |
virtual void | show_actions (ContextMenu::Entries entries) |
show a specific amount of Entries More... | |
virtual void | show_action (ContextMenu::Entry entry, bool visible) |
show/hide a specific Entry More... | |
virtual void | show_all () |
show all possible entries | |
QAction * | get_action (ContextMenu::Entry entry) const |
QAction * | get_action_after (ContextMenu::Entry entry) const |
QAction * | add_preference_action (Gui::PreferenceAction *action) |
QAction * | before_preference_action () const |
void | set_action_shortcut (ContextMenu::Entry entry, const QString &shortcut) |
void | set_extensions (const Gui::ExtensionSet &extensions) |
void | set_selection_count (int num_selections) |
QKeySequence | shortcut (ContextMenu::Entry entry) const |
virtual void | showEvent (QShowEvent *e) override |
Protected Member Functions | |
void | skin_changed () override |
void | language_changed () override |
Context menu used for Library and playlist windows.
|
virtual |
get all visible entries
Reimplemented in Library::CoverViewContextMenu, and Playlist::ContextMenu.
|
virtual |
show/hide a specific Entry
The | entry of interest |
visible |
|
virtual |
show a specific amount of Entries
entries | bitwise combination of Entry |
Reimplemented in Library::CoverViewContextMenu, and Playlist::ContextMenu.