![]() |
Sayonara Player
|
#include <LibraryContextMenu.h>
Context menu used for Library and playlist windows.
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), EntryRating =(1<<9), EntryClearSelection =(1<<10), EntryCoverView =(1<<11), EntryPlay =(1<<12), EntryPlayNewTab =(1<<13), EntryLast =(1<<14) } |
This enum indicates which entries should be visible. | |
Public Member Functions | |
LibraryContextMenu (QWidget *parent=nullptr) | |
virtual LibraryContexMenuEntries | get_entries () const |
get all visible entries More... | |
virtual void | show_actions (LibraryContexMenuEntries entries) |
show a specific amount of Entries More... | |
virtual void | show_action (Entry entry, bool visible) |
show/hide a specific Entry More... | |
virtual void | show_all () |
show all possible entries | |
void | set_rating (int rating) |
set rating for the rating entry More... | |
QAction * | get_action (Entry entry) const |
QAction * | add_preference_action (PreferenceAction *action) |
virtual void | showEvent (QShowEvent *e) override |
Protected Member Functions | |
QAction * | init_rating_action (int rating) |
void | skin_changed () override |
void | language_changed () override |
Protected Attributes | |
Settings * | _settings =nullptr |
|
virtual |
get all visible entries
void LibraryContextMenu::set_rating | ( | int | rating | ) |
set rating for the rating entry
rating | from 0 to 5 |
|
virtual |
show/hide a specific Entry
The | entry of interest |
visible |
|
virtual |
show a specific amount of Entries
entries | bitwise combination of Entry |