Sayonara Player
Loading...
Searching...
No Matches
Library::GenreViewContextMenu Class Reference

Context Menu for the tree view. Notification of the tree view action is done by using a bool setting listener to Set::Lib_GenreTree So there's not signal for it. Everything else can be accessed using the methods of Gui::ContextMenu. More...

#include <GenreViewContextMenu.h>

Inheritance diagram for Library::GenreViewContextMenu:
Gui::ContextMenu Gui::WidgetTemplate< QMenu > Gui::WidgetTemplateParent

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

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

Protected Member Functions

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

Detailed Description

Context Menu for the tree view. Notification of the tree view action is done by using a bool setting listener to Set::Lib_GenreTree So there's not signal for it. Everything else can be accessed using the methods of Gui::ContextMenu.

Member Function Documentation

◆ languageChanged()

void Library::GenreViewContextMenu::languageChanged ( )
overrideprotectedvirtual

Reimplemented from Gui::ContextMenu.

◆ showEvent()

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

Reimplemented from Gui::WidgetTemplate< QMenu >.

◆ skinChanged()

void Gui::ContextMenu::skinChanged ( )
overrideprotectedvirtualinherited

Reimplemented from Gui::WidgetTemplateParent.