![]() |
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), EntryLast =(1<<10) } |
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... | |
Protected Member Functions | |
void | changeEvent (QEvent *e) override |
QAction * | init_rating_action (int rating) |
QString | rating_text () |
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 |