![]() |
Sayonara Player
|
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>
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) } |
The Entry enum. | |
Public Slots | |
void | showAction (ContextMenu::Entry entry, bool visible) |
show/hide specific action More... | |
void | showActions (ContextMenuEntries entries) |
show actions defined by ContextMenuEntry mask. Hide other actions More... | |
void | showAll () |
show all actions | |
void | addPreferenceAction (PreferenceAction *action) |
Signals | |
void | sigNew () |
void | sigEdit () |
void | sigUndo () |
void | sigSave () |
void | sigSaveAs () |
void | sigRename () |
void | sigDelete () |
void | sigOpen () |
void | sigDefault () |
Public Member Functions | |
GenreViewContextMenu (QWidget *parent=nullptr) | |
void | registerAction (QAction *action) |
register a custom action More... | |
bool | hasActions () |
query, if there are visible actions More... | |
ContextMenuEntries | entries () const |
get all visible entries More... | |
Protected Member Functions | |
void | languageChanged () override |
void | showEvent (QShowEvent *e) override |
void | skinChanged () override |
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.
|
inherited |
get all visible entries
|
inherited |
query, if there are visible actions
|
inherited |
register a custom action
action | the action. You have to set up the connection manually |
|
slotinherited |
show/hide specific action
entry | the entry of interes |
visible | show/hide |
|
slotinherited |
show actions defined by ContextMenuEntry mask. Hide other actions
mask | of ContextMenu::Entry |