![]() |
Sayonara Player
|
Public Types | |
enum | Mode { Dir =0, File } |
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), EntryClearSelection =(1<<9), EntryCoverView =(1<<10), EntryPlay =(1<<11), EntryPlayNewTab =(1<<12), EntryLast =(1<<13) } |
This enum indicates which entries should be visible. | |
using | Entries = uint64_t |
Public Member Functions | |
DirectoryContextMenu (Mode mode, QWidget *parent) | |
void | set_create_dir_visible (bool b) |
void | set_rename_visible (bool b) |
void | set_collapse_all_visibled (bool b) |
virtual LibraryContextMenu::Entries | get_entries () const |
get all visible entries More... | |
virtual void | show_actions (LibraryContextMenu::Entries entries) |
show a specific amount of Entries More... | |
virtual void | show_action (LibraryContextMenu::Entry entry, bool visible) |
show/hide a specific Entry More... | |
virtual void | show_all () |
show all possible entries | |
QAction * | get_action (LibraryContextMenu::Entry entry) const |
QAction * | add_preference_action (PreferenceAction *action) |
QAction * | before_preference_action () const |
void | set_action_shortcut (LibraryContextMenu::Entry entry, const QString &shortcut) |
virtual void | showEvent (QShowEvent *e) override |
Protected Member Functions | |
void | language_changed () override |
void | skin_changed () override |
Protected Attributes | |
Settings * | _settings =nullptr |
|
virtualinherited |
get all visible entries
Reimplemented in CoverViewContextMenu, and PlaylistContextMenu.
|
virtualinherited |
show/hide a specific Entry
The | entry of interest |
visible |
|
virtualinherited |
show a specific amount of Entries
entries | bitwise combination of Entry |
Reimplemented in CoverViewContextMenu, and PlaylistContextMenu.