Sayonara Player
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
Library::ContextMenu Class Reference
Inheritance diagram for Library::ContextMenu:
Gui::WidgetTemplate< QMenu > Gui::WidgetTemplateParent Directory::ContextMenu Library::CoverViewContextMenu Playlist::ContextMenu SC::ContextMenu

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) ,
  EntryViewType = (1 << 13) ,
  EntryLast = (1 << 14)
}
 
using Entries = uint64_t
 

Signals

void sigFilterTriggered (const QString &extension, bool b)
 

Public Member Functions

 ContextMenu (QWidget *parent=nullptr)
 
virtual ContextMenu::Entries entries () const
 
virtual void showActions (ContextMenu::Entries entries)
 
virtual void showAction (ContextMenu::Entry entry, bool visible)
 
virtual void showAll ()
 
QAction * action (ContextMenu::Entry entry) const
 
QAction * actionAfter (ContextMenu::Entry entry) const
 
QAction * addPreferenceAction (Gui::PreferenceAction *action)
 
QAction * beforePreferenceAction () const
 
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
 

Member Function Documentation

◆ languageChanged()

void Library::ContextMenu::languageChanged ( )
overrideprotectedvirtual

Reimplemented from Gui::WidgetTemplateParent.

◆ skinChanged()

void Library::ContextMenu::skinChanged ( )
overrideprotectedvirtual

Reimplemented from Gui::WidgetTemplateParent.