Sayonara Player
Loading...
Searching...
No Matches
Gui::ContextMenu Class Reference
Inheritance diagram for Gui::ContextMenu:
Gui::WidgetTemplate< QMenu > Gui::WidgetTemplateParent Library::GenreViewContextMenu

Public Types

enum  Entry {
  EntryNone = 0 ,
  EntryNew = (1 << 0) ,
  EntryEdit = (1 << 1) ,
  EntryUndo = (1 << 2) ,
  EntrySave = (1 << 3) ,
  EntrySaveAs = (1 << 4) ,
  EntryRename = (1 << 5) ,
  EntryDelete = (1 << 6) ,
  EntryOpen = (1 << 7) ,
  EntryDefault = (1 << 8) ,
  EntryApply = (1 << 9)
}

Public Slots

void showActions (ContextMenuEntries entries)
void showAction (ContextMenu::Entry entry, bool visible)
void showAll ()
void addPreferenceAction (PreferenceAction *action)

Signals

void sigApply ()
void sigDefault ()
void sigDelete ()
void sigEdit ()
void sigNew ()
void sigOpen ()
void sigRename ()
void sigSave ()
void sigSaveAs ()
void sigUndo ()

Public Member Functions

 ContextMenu (QWidget *parent=nullptr)
void registerAction (QAction *action)
bool hasActions ()
ContextMenuEntries entries () const

Protected Member Functions

void showEvent (QShowEvent *e) override
void languageChanged () override
void skinChanged () override

Member Function Documentation

◆ languageChanged()

void Gui::ContextMenu::languageChanged ( )
overrideprotectedvirtual

Reimplemented from Gui::WidgetTemplateParent.

◆ showEvent()

void Gui::ContextMenu::showEvent ( QShowEvent * e)
overrideprotectedvirtual

Reimplemented from Gui::WidgetTemplate< QMenu >.

◆ skinChanged()

void Gui::ContextMenu::skinChanged ( )
overrideprotectedvirtual

Reimplemented from Gui::WidgetTemplateParent.