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>
|
| 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.
|
| |
|
|
void | sigNew () |
| |
|
void | sigEdit () |
| |
|
void | sigUndo () |
| |
|
void | sigSave () |
| |
|
void | sigSaveAs () |
| |
|
void | sigRename () |
| |
|
void | sigDelete () |
| |
|
void | sigOpen () |
| |
|
void | sigDefault () |
| |
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.
◆ entries()
| ContextMenuEntries Gui::ContextMenu::entries |
( |
| ) |
const |
|
inherited |
get all visible entries
- Returns
- ContextMenuEntry mask
◆ hasActions()
| bool Gui::ContextMenu::hasActions |
( |
| ) |
|
|
inherited |
query, if there are visible actions
- Returns
- true, if at least one action is visible. false else
◆ languageChanged()
| void Library::GenreViewContextMenu::languageChanged |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ registerAction()
| void Gui::ContextMenu::registerAction |
( |
QAction * |
action | ) |
|
|
inherited |
register a custom action
- Parameters
-
| action | the action. You have to set up the connection manually |
◆ showAction
show/hide specific action
- Parameters
-
| entry | the entry of interes |
| visible | show/hide |
◆ showActions
show actions defined by ContextMenuEntry mask. Hide other actions
- Parameters
-
◆ showEvent()
| void Gui::ContextMenu::showEvent |
( |
QShowEvent * |
e | ) |
|
|
overrideprotectedvirtualinherited |
◆ skinChanged()
| void Gui::ContextMenu::skinChanged |
( |
| ) |
|
|
overrideprotectedvirtualinherited |